RNSmlDMCallbackSession Class Reference
class RNSmlDMCallbackSession : public RSessionBase |
RNSmlDMCallbackSession is Symbian OS client session for connecting to DM callback server which handles the tree database. The tree database can be used via this client interface.
Public Member Functions |
---|
| RNSmlDMCallbackSession() |
| ~RNSmlDMCallbackSession() |
IMPORT_C TInt | AddMappingInfoL(TUint32, const TDesC8 &, const TDesC8 &) |
IMPORT_C TBool | CheckAclL(const TDesC8 &, TNSmlDmCmdType) |
IMPORT_C TBool | CheckDynamicAclL(const TDesC8 &, TNSmlDmCmdType, CNSmlDmMgmtTree *) |
IMPORT_C void | Close() |
IMPORT_C TInt | CommitAtomic() |
IMPORT_C TInt | Connect() |
IMPORT_C TInt | DefaultACLsToChildrenL(const TDesC8 &, CBufBase &) |
IMPORT_C TInt | DefaultACLsToServerL(const TDesC8 &) |
IMPORT_C TInt | DeleteAclL(const TDesC8 &) |
IMPORT_C TInt | EraseServerIdL(const TDesC8 &) |
IMPORT_C TInt | GetAclL(const TDesC8 &, CBufBase &, TBool) |
IMPORT_C HBufC8 * | GetLuidAllocL(TUint32, const TDesC8 &) |
IMPORT_C void | GetUriSegListL(TUint32, const TDesC8 &, CArrayFixFlat< TSmlDmMappingInfo > &) |
IMPORT_C TInt | RemoveMappingInfoL(TUint32, const TDesC8 &, TBool) |
IMPORT_C TInt | RenameMappingL(TUint32, const TDesC8 &, const TDesC8 &) |
IMPORT_C TInt | ResourceCount() |
IMPORT_C TInt | RollbackAtomic() |
IMPORT_C void | SetServerL(const TDesC8 &) |
IMPORT_C TInt | StartAtomic() |
IMPORT_C TInt | UpdateAclL(const TDesC8 &, const TDesC8 &) |
IMPORT_C void | UpdateMappingInfoL(TUint32, const TDesC8 &, CBufBase &) |
TVersion
| Version(void) |
Inherited Functions |
---|
| RHandleBase::Attributes()const |
| RHandleBase::BTraceId()const |
| RHandleBase::DoExtendedClose() |
| RHandleBase::Duplicate(const RThread &,TOwnerType) |
| RHandleBase::FullName()const |
| RHandleBase::FullName(TDes &)const |
| RHandleBase::Handle()const |
| RHandleBase::HandleInfo(THandleInfo *) |
| RHandleBase::Name()const |
| RHandleBase::NotifyDestruction(TRequestStatus &) |
| RHandleBase::Open(const TFindHandleBase &,TOwnerType) |
| RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt) |
| RHandleBase::RHandleBase() |
| RHandleBase::RHandleBase(TInt) |
| RHandleBase::SetHandle(TInt) |
| RHandleBase::SetHandleNC(TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt) |
| RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *) |
| RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *) |
| RSessionBase::Open(RMessagePtr2,TInt,TOwnerType) |
| RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Open(TInt,TOwnerType) |
| RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType) |
| RSessionBase::Send(TInt)const |
| RSessionBase::Send(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt)const |
| RSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSessionBase::SetReturnedHandle(TInt) |
| RSessionBase::SetReturnedHandle(TInt,RHandleBase &) |
| RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &) |
| RSessionBase::ShareAuto() |
| RSessionBase::ShareProtected() |
Constructor & Destructor Documentation
RNSmlDMCallbackSession()
IMPORT_C | RNSmlDMCallbackSession | ( | ) | |
~RNSmlDMCallbackSession()
IMPORT_C | ~RNSmlDMCallbackSession | ( | ) | |
Member Functions Documentation
AddMappingInfoL(TUint32, const TDesC8 &, const TDesC8 &)
Parameters
TUint32 aAdapterId | Id of plug-in adapter |
const TDesC8 & aURI | URI |
const TDesC8 & aLuid | Luid to be mapped to URI |
CheckAclL(const TDesC8 &, TNSmlDmCmdType)
Check acl to current command.
CheckDynamicAclL(const TDesC8 &, TNSmlDmCmdType, CNSmlDmMgmtTree *)
Check ACL rights, default value is used if acl is not available
Note: This function (as well as RNSmlDMCallbackSession::CheckAclL) will not specify when the URI does not point into an _existing_ node. Then it returns the same code when access to URI is denied.
Parameters
const TDesC8 & aURI | Target URI in command |
TNSmlDmCmdType aCmdType | Command type or not |
CNSmlDmMgmtTree * aMgmtTree | Management tree, a structure that holds current and valid ddf information |
CommitAtomic()
IMPORT_C TInt | CommitAtomic | ( | ) | |
DefaultACLsToChildrenL(const TDesC8 &, CBufBase &)
Set default acls to children which does not have earlier set ACLs
DefaultACLsToServerL(const TDesC8 &)
IMPORT_C TInt | DefaultACLsToServerL | ( | const TDesC8 & | aURI | ) | |
Set default acls to current server
DeleteAclL(const TDesC8 &)
Delete acl pointed by URI
EraseServerIdL(const TDesC8 &)
IMPORT_C TInt | EraseServerIdL | ( | const TDesC8 & | aServerId | ) | |
Erases references to server from acls
Parameters
const TDesC8 & aServerId | Server name to be erased |
GetAclL(const TDesC8 &, CBufBase &, TBool)
Get acl pointed by URI. Two phase operation, the length is get first, then the acl data itself
Parameters
const TDesC8 & aURI | URI |
CBufBase & aACL | Buffer for writing the result ACL |
TBool aInherited = ETrue | If true, the inherited value is searhed |
GetLuidAllocL(TUint32, const TDesC8 &)
Gets luid from server. Two phase operation, asks first the length, then data
GetUriSegListL(TUint32, const TDesC8 &, CArrayFixFlat< TSmlDmMappingInfo > &)
Gets uri seg list from server. Two phase operation, asks first the data length, then data itself
RemoveMappingInfoL(TUint32, const TDesC8 &, TBool)
Parameters
TUint32 aAdapterId | Id of plug-in adapter |
const TDesC8 & aURI | URI |
TBool aChildAlso = ETrue | If true, removes also children |
RenameMappingL(TUint32, const TDesC8 &, const TDesC8 &)
Parameters
TUint32 aAdapterId | Id of plug-in adapter |
const TDesC8 & aURI | URI |
const TDesC8 & aObject | New name (last uri segment) |
ResourceCount()
IMPORT_C TInt | ResourceCount | ( | ) | |
RollbackAtomic()
IMPORT_C TInt | RollbackAtomic | ( | ) | |
Rolls back the commansd inside atomic
SetServerL(const TDesC8 &)
IMPORT_C void | SetServerL | ( | const TDesC8 & | aServerId | ) | |
Sets server id of current session
Parameters
const TDesC8 & aServerId | Server identifier |
StartAtomic()
IMPORT_C TInt | StartAtomic | ( | ) | |
UpdateAclL(const TDesC8 &, const TDesC8 &)
Update acl pointed by URI
UpdateMappingInfoL(TUint32, const TDesC8 &, CBufBase &)
Update mappings (clear database in case of getting childlist)
Parameters
TUint32 aAdapterId | Id of plug-in adapter |
const TDesC8 & aURI | URI |
CBufBase & aCurrentList | Child list from adapter |
Member Data Documentation
TInt
iEnforceCheckdone
TInt
| iEnforceCheckdone | [private] |
Memeber variable to know the enforcement check of a particular setting is happened or not
RPointerArray< HBufC8 > iLuids
Luid list when gettiing the luid list
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.