class CMsvServerEntry : public CActive |
Accesses and acts upon a particular Message Server entry.
It provides similar functionality to that which CMsvEntry gives to client-side programs. The current entry that a CMsvServerEntry object relates is similarly referred to as its context.
A difference to note is that CMsvEntry functions, when used on a remote context, can result in requests to Server-side MTMs to change data on a remote server, as well as the local Message Server index. Naturally, as CMsvServerEntry is designed to be used by Server-side MTMs themselves, its comparable functions only alter the Message Server index.
A CBaseServerMTM-derived object gets an initial CMsvServerEntry on construction. It can get further CMsvServerEntry objects by calling NewEntryL(). The context can be changed by SetEntry().
The context is locked, preventing it being accessed by other MTMs. The lock is released when the object is deleted, or the context changes.
As with CMsvEntry, CBaseServerMTM functions can be divided into two broad groups. The first provides means to access the various types of storage associated with an entry. The second provides a means to discover and access other entries that the entry owns (its children).
Protected Member Functions | |
---|---|
CMsvServerEntry(CMsvServer &) | |
void | ConstructL(TMsvId) |
void | DoCancel() |
void | RunL() |
Private Member Functions | |
---|---|
TBool | AreChildren(const CMsvEntrySelection &) |
TInt | DoChangeEntry(const TMsvEntry &, TSecureId, TBool, TBool) |
void | DoCopyEntriesL(const CMsvEntrySelection &, TMsvId, TRequestStatus &) |
void | DoDeleteEntriesL(CMsvEntrySelection &, CMsvEntrySelection *&, CMsvEntrySelection *&) |
void | DoDeleteEntryL(TMsvId, CMsvEntrySelection *&, CMsvEntrySelection *&) |
TInt | DoGetChildren(TMsvId, TUid, TUid, CMsvEntrySelection &) |
void | DoGetChildrenL(TMsvId, TUid, TUid, CMsvEntrySelection &) |
void | DoMoveEntriesL(CMsvEntrySelection &, TMsvId, CMsvEntrySelection *&) |
void | DoMoveEntryL(TMsvId, TMsvId) |
TInt | IncreaseBufferSizes(TInt, TInt) |
TBool | IsAChild(TMsvId) |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
TMsvId * | iCompletedEntryId |
CMsvEntrySelection * | iCompletedSelection |
TSecureId | iContextOwnerId |
CMsvCopyMoveEntriesBase * | iCopyMove |
HBufC * | iDescription |
HBufC * | iDetails |
TMsvEntry | iEntry |
enum CMsvServerEntry::@230 | iEntryState |
TBool | iLockedStore |
TUid | iMtm |
TRequestStatus * | iObserverStatus |
TMsvSelectionOrdering | iOrdering |
CMsvServer & | iServer |
TMsvId | iSource |
CMsvStore * | iStore |
Inherited Attributes | |
---|---|
CActive::iStatus |
CMsvServerEntry | ( | CMsvServer & | aIndex | ) | [protected] |
CMsvServer & aIndex |
TBool | AreChildren | ( | const CMsvEntrySelection & | aSelection | ) | const [private] |
const CMsvEntrySelection & aSelection |
IMPORT_C TInt | ChangeAttributes | ( | const CMsvEntrySelection & | aSelection, |
TUint | aSetAttributes, | |||
TUint | aClearAttributes | |||
) |
const CMsvEntrySelection & aSelection | |
TUint aSetAttributes | |
TUint aClearAttributes |
IMPORT_C TInt | ChangeEntry | ( | const TMsvEntry & | aEntry, |
TSecureId | aOwnerId | |||
) |
IMPORT_C TInt | ChangeEntry | ( | const TMsvEntry & | aEntry | ) |
const TMsvEntry & aEntry |
IMPORT_C TInt | ChangeEntryBulk | ( | const TMsvEntry & | aEntry, |
TSecureId | aOwnerId | |||
) |
IMPORT_C TInt | ChangeEntryBulk | ( | const TMsvEntry & | aEntry | ) |
const TMsvEntry & aEntry |
IMPORT_C void | CopyEntriesL | ( | const CMsvEntrySelection & | aSelection, |
TMsvId | aDestination, | |||
TRequestStatus & | aObserverStatus | |||
) |
const CMsvEntrySelection & aSelection | |
TMsvId aDestination | |
TRequestStatus & aObserverStatus |
IMPORT_C void | CopyEntriesL | ( | const CMsvEntrySelection & | aSelection, |
TMsvId | aDestination, | |||
CMsvEntrySelection & | aCompletedSelection, | |||
TRequestStatus & | aObserverStatus | |||
) |
const CMsvEntrySelection & aSelection | |
TMsvId aDestination | |
CMsvEntrySelection & aCompletedSelection | |
TRequestStatus & aObserverStatus |
IMPORT_C void | CopyEntryL | ( | TMsvId | aId, |
TMsvId | aDestination, | |||
TRequestStatus & | aObserverStatus | |||
) |
TMsvId aId | |
TMsvId aDestination | |
TRequestStatus & aObserverStatus |
IMPORT_C void | CopyEntryL | ( | TMsvId | aId, |
TMsvId | aDestination, | |||
TMsvId & | aCompletedEntry, | |||
TRequestStatus & | aObserverStatus | |||
) |
TMsvId aId | |
TMsvId aDestination | |
TMsvId & aCompletedEntry | |
TRequestStatus & aObserverStatus |
IMPORT_C TInt | CreateEntry | ( | TMsvEntry & | aEntry, |
TSecureId | aOwnerId, | |||
TBool | aBulk | |||
) |
IMPORT_C TInt | CreateEntryBulk | ( | TMsvEntry & | aEntry, |
TSecureId | aOwnerId | |||
) |
IMPORT_C TInt | CreateEntryBulk | ( | TMsvEntry & | aEntry | ) |
TMsvEntry & aEntry |
IMPORT_C TInt | DeleteEntries | ( | CMsvEntrySelection & | aSelection | ) |
CMsvEntrySelection & aSelection |
void | DoCancel | ( | ) | [protected, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
TInt | DoChangeEntry | ( | const TMsvEntry & | aEntry, |
TSecureId | aOwnerId, | |||
TBool | aForcedUpdate, | |||
TBool | aBulk | |||
) | [private] |
void | DoCopyEntriesL | ( | const CMsvEntrySelection & | aSelection, |
TMsvId | aDestination, | |||
TRequestStatus & | aObserverStatus | |||
) | [private] |
const CMsvEntrySelection & aSelection | |
TMsvId aDestination | |
TRequestStatus & aObserverStatus |
void | DoDeleteEntriesL | ( | CMsvEntrySelection & | aSelection, |
CMsvEntrySelection *& | aDeleted, | |||
CMsvEntrySelection *& | aMoved | |||
) | [private] |
CMsvEntrySelection & aSelection | |
CMsvEntrySelection *& aDeleted | |
CMsvEntrySelection *& aMoved |
void | DoDeleteEntryL | ( | TMsvId | aId, |
CMsvEntrySelection *& | aDeleted, | |||
CMsvEntrySelection *& | aMoved | |||
) | [private] |
TMsvId aId | |
CMsvEntrySelection *& aDeleted | |
CMsvEntrySelection *& aMoved |
TInt | DoGetChildren | ( | TMsvId | aServiceId, |
TUid | aMtm, | |||
TUid | aType, | |||
CMsvEntrySelection & | aSelection | |||
) | [private] |
TMsvId aServiceId | |
TUid aMtm | |
TUid aType | |
CMsvEntrySelection & aSelection |
void | DoGetChildrenL | ( | TMsvId | aServiceId, |
TUid | aMtm, | |||
TUid | aType, | |||
CMsvEntrySelection & | aSelection | |||
) | [private] |
TMsvId aServiceId | |
TUid aMtm | |
TUid aType | |
CMsvEntrySelection & aSelection |
void | DoMoveEntriesL | ( | CMsvEntrySelection & | aSelection, |
TMsvId | aDestination, | |||
CMsvEntrySelection *& | aMoved | |||
) | [private] |
CMsvEntrySelection & aSelection | |
TMsvId aDestination | |
CMsvEntrySelection *& aMoved |
IMPORT_C TInt | GetChildren | ( | CMsvEntrySelection & | aSelection | ) |
CMsvEntrySelection & aSelection |
IMPORT_C TInt | GetChildrenWithMtm | ( | TUid | aMtm, |
CMsvEntrySelection & | aSelection | |||
) |
TUid aMtm | |
CMsvEntrySelection & aSelection |
IMPORT_C TInt | GetChildrenWithService | ( | TMsvId | aServiceId, |
CMsvEntrySelection & | aSelection | |||
) |
TMsvId aServiceId | |
CMsvEntrySelection & aSelection |
IMPORT_C TInt | GetChildrenWithType | ( | TUid | aType, |
CMsvEntrySelection & | aSelection | |||
) |
TUid aType | |
CMsvEntrySelection & aSelection |
void | HandleStoreEvent | ( | MMsvStoreObserver::TMsvStoreEvent | aEvent, |
TMsvId | aId | |||
) |
MMsvStoreObserver::TMsvStoreEvent aEvent | |
TMsvId aId |
TInt | IncreaseBufferSizes | ( | TInt | aNewDescriptionSize, |
TInt | aNewDetailsSize | |||
) | [private] |
IMPORT_C void | MoveEntriesL | ( | const CMsvEntrySelection & | aSelection, |
TMsvId | aDestination, | |||
TRequestStatus & | aObserverStatus | |||
) |
const CMsvEntrySelection & aSelection | |
TMsvId aDestination | |
TRequestStatus & aObserverStatus |
IMPORT_C TInt | MoveEntriesWithinService | ( | CMsvEntrySelection & | aSelection, |
TMsvId | aDestination | |||
) |
CMsvEntrySelection & aSelection | |
TMsvId aDestination |
IMPORT_C void | MoveEntryL | ( | TMsvId | aId, |
TMsvId | aDestination, | |||
TRequestStatus & | aObserverStatus | |||
) |
TMsvId aId | |
TMsvId aDestination | |
TRequestStatus & aObserverStatus |
IMPORT_C TInt | MoveEntryWithinService | ( | TMsvId | aId, |
TMsvId | aDestination | |||
) |
IMPORT_C CMsvServerEntry * | NewL | ( | CMsvServer & | aServer, |
TMsvId | aId | |||
) | [static] |
CMsvServer & aServer | |
TMsvId aId |
void | RunL | ( | ) | [protected, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::WaitForAnyRequest
TRAPD
void | SetMtm | ( | TUid | aMtm | ) | [inline] |
Sets this MTM sorting type to specified UID. When children of an entry are sorted, entries belonging to the same MTM type can be grouped together.
TUid aMtm | UID of MTM for sort |
void | SetSort | ( | TMsvSelectionOrdering & | aOrdering | ) | [inline] |
Sets the sort order that is used when listing children, for example with GetChildren().
TMsvSelectionOrdering & aOrdering | Sort order to use |
const TMsvSelectionOrdering & | Sort | ( | ) | [inline] |
Gets the current sort order of children of the entry.
Current sort type