Saves a layer state to the current database.
eOk if operation succeeded; error code otherwise.
Layer state mask determines which layer attributes are to be stored in the layer state. Layer state mask must be a combination of one or more of the following: