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.

Since

Inherits from

Public Member Functions
RNSmlDMCallbackSession()
~RNSmlDMCallbackSession()
IMPORT_C TIntAddMappingInfoL(TUint32, const TDesC8 &, const TDesC8 &)
IMPORT_C TBoolCheckAclL(const TDesC8 &, TNSmlDmCmdType)
IMPORT_C TBoolCheckDynamicAclL(const TDesC8 &, TNSmlDmCmdType, CNSmlDmMgmtTree *)
IMPORT_C voidClose()
IMPORT_C TIntCommitAtomic()
IMPORT_C TIntConnect()
IMPORT_C TIntDefaultACLsToChildrenL(const TDesC8 &, CBufBase &)
IMPORT_C TIntDefaultACLsToServerL(const TDesC8 &)
IMPORT_C TIntDeleteAclL(const TDesC8 &)
IMPORT_C TIntEraseServerIdL(const TDesC8 &)
IMPORT_C TIntGetAclL(const TDesC8 &, CBufBase &, TBool)
IMPORT_C HBufC8 *GetLuidAllocL(TUint32, const TDesC8 &)
IMPORT_C voidGetUriSegListL(TUint32, const TDesC8 &, CArrayFixFlat< TSmlDmMappingInfo > &)
IMPORT_C TIntRemoveMappingInfoL(TUint32, const TDesC8 &, TBool)
IMPORT_C TIntRenameMappingL(TUint32, const TDesC8 &, const TDesC8 &)
IMPORT_C TIntResourceCount()
IMPORT_C TIntRollbackAtomic()
IMPORT_C voidSetServerL(const TDesC8 &)
IMPORT_C TIntStartAtomic()
IMPORT_C TIntUpdateAclL(const TDesC8 &, const TDesC8 &)
IMPORT_C voidUpdateMappingInfoL(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()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TInt iEnforceCheckdone
RPointerArray< HBufC8 >iLuids
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RNSmlDMCallbackSession()

IMPORT_CRNSmlDMCallbackSession()

Constructor

~RNSmlDMCallbackSession()

IMPORT_C~RNSmlDMCallbackSession()

Desstructor

Member Functions Documentation

AddMappingInfoL(TUint32, const TDesC8 &, const TDesC8 &)

IMPORT_C TIntAddMappingInfoL(TUint32aAdapterId,
const TDesC8 &aURI,
const TDesC8 &aLuid
)

Adds new mapping

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI
const TDesC8 & aLuidLuid to be mapped to URI

CheckAclL(const TDesC8 &, TNSmlDmCmdType)

IMPORT_C TBoolCheckAclL(const TDesC8 &aURI,
TNSmlDmCmdTypeaCmdType
)

Check acl to current command.

Parameters

const TDesC8 & aURIURI
TNSmlDmCmdType aCmdTypeType of command to be checked

CheckDynamicAclL(const TDesC8 &, TNSmlDmCmdType, CNSmlDmMgmtTree *)

IMPORT_C TBoolCheckDynamicAclL(const TDesC8 &aURI,
TNSmlDmCmdTypeaCmdType,
CNSmlDmMgmtTree *aMgmtTree
)
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 & aURITarget URI in command
TNSmlDmCmdType aCmdTypeCommand type or not
CNSmlDmMgmtTree * aMgmtTreeManagement tree, a structure that holds current and valid ddf information

Close()

IMPORT_C voidClose()

Close the session

CommitAtomic()

IMPORT_C TIntCommitAtomic()

Commits atomic

Connect()

IMPORT_C TIntConnect()

Connects to server

DefaultACLsToChildrenL(const TDesC8 &, CBufBase &)

IMPORT_C TIntDefaultACLsToChildrenL(const TDesC8 &aURI,
CBufBase &aCurrentList
)

Set default acls to children which does not have earlier set ACLs

Parameters

const TDesC8 & aURIURI
CBufBase & aCurrentListList of children

DefaultACLsToServerL(const TDesC8 &)

IMPORT_C TIntDefaultACLsToServerL(const TDesC8 &aURI)

Set default acls to current server

Parameters

const TDesC8 & aURIURI

DeleteAclL(const TDesC8 &)

IMPORT_C TIntDeleteAclL(const TDesC8 &aURI)

Delete acl pointed by URI

Parameters

const TDesC8 & aURIURI

EraseServerIdL(const TDesC8 &)

IMPORT_C TIntEraseServerIdL(const TDesC8 &aServerId)

Erases references to server from acls

Parameters

const TDesC8 & aServerIdServer name to be erased

GetAclL(const TDesC8 &, CBufBase &, TBool)

IMPORT_C TIntGetAclL(const TDesC8 &aURI,
CBufBase &aACL,
TBoolaInherited = ETrue
)

Get acl pointed by URI. Two phase operation, the length is get first, then the acl data itself

Parameters

const TDesC8 & aURIURI
CBufBase & aACLBuffer for writing the result ACL
TBool aInherited = ETrueIf true, the inherited value is searhed

GetLuidAllocL(TUint32, const TDesC8 &)

IMPORT_C HBufC8 *GetLuidAllocL(TUint32aAdapterId,
const TDesC8 &aURI
)

Gets luid from server. Two phase operation, asks first the length, then data

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI

GetUriSegListL(TUint32, const TDesC8 &, CArrayFixFlat< TSmlDmMappingInfo > &)

IMPORT_C voidGetUriSegListL(TUint32aAdapterId,
const TDesC8 &aURI,
CArrayFixFlat< TSmlDmMappingInfo > &aURISegList
)

Gets uri seg list from server. Two phase operation, asks first the data length, then data itself

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI
CArrayFixFlat< TSmlDmMappingInfo > & aURISegListReference to list where to fill data

RemoveMappingInfoL(TUint32, const TDesC8 &, TBool)

IMPORT_C TIntRemoveMappingInfoL(TUint32aAdapterId,
const TDesC8 &aURI,
TBoolaChildAlso = ETrue
)

Remove mapping

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI
TBool aChildAlso = ETrueIf true, removes also children

RenameMappingL(TUint32, const TDesC8 &, const TDesC8 &)

IMPORT_C TIntRenameMappingL(TUint32aAdapterId,
const TDesC8 &aURI,
const TDesC8 &aObject
)

Rename mapping

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI
const TDesC8 & aObjectNew name (last uri segment)

ResourceCount()

IMPORT_C TIntResourceCount()

Not used at the moment

RollbackAtomic()

IMPORT_C TIntRollbackAtomic()

Rolls back the commansd inside atomic

SetServerL(const TDesC8 &)

IMPORT_C voidSetServerL(const TDesC8 &aServerId)

Sets server id of current session

Parameters

const TDesC8 & aServerIdServer identifier

StartAtomic()

IMPORT_C TIntStartAtomic()

Indicates atomic start

UpdateAclL(const TDesC8 &, const TDesC8 &)

IMPORT_C TIntUpdateAclL(const TDesC8 &aURI,
const TDesC8 &aACL
)

Update acl pointed by URI

Parameters

const TDesC8 & aURIURI
const TDesC8 & aACLNew ACL info

UpdateMappingInfoL(TUint32, const TDesC8 &, CBufBase &)

IMPORT_C voidUpdateMappingInfoL(TUint32aAdapterId,
const TDesC8 &aURI,
CBufBase &aCurrentList
)

Update mappings (clear database in case of getting childlist)

Parameters

TUint32 aAdapterIdId of plug-in adapter
const TDesC8 & aURIURI
CBufBase & aCurrentListChild list from adapter

Version(void)

TVersion Version(void)const

Returns version

Parameters

void

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

RPointerArray< HBufC8 >iLuids[private]

Luid list when gettiing the luid list