messagingfw/msgsrvnstore/server/inc/MSVENTRY.H
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
equal deleted inserted replaced
55:6f4453afd006 58:6c34d0baa0b1
    72 	IMPORT_C static CMsvServerEntry* NewL(CMsvServer& aServer, TMsvId aId);
    72 	IMPORT_C static CMsvServerEntry* NewL(CMsvServer& aServer, TMsvId aId);
    73 	~CMsvServerEntry();
    73 	~CMsvServerEntry();
    74 	//
    74 	//
    75 	// Set and get the current context
    75 	// Set and get the current context
    76 	IMPORT_C TInt SetEntry(TMsvId aId);
    76 	IMPORT_C TInt SetEntry(TMsvId aId);
    77 	inline const TMsvEntry& Entry() const;
    77 	inline const TMsvEntry& Entry() const{return iEntry;};
    78 	IMPORT_C TMsvId OwningService() const;
    78 	IMPORT_C TMsvId OwningService() const;
    79 	//
    79 	//
    80 	// current entry only functions
    80 	// current entry only functions
    81 	IMPORT_C TInt ChangeEntry(const TMsvEntry& aEntry, TSecureId aOwnerId);
    81 	IMPORT_C TInt ChangeEntry(const TMsvEntry& aEntry, TSecureId aOwnerId);
    82 	IMPORT_C TInt ChangeEntry(const TMsvEntry& aEntry);
    82 	IMPORT_C TInt ChangeEntry(const TMsvEntry& aEntry);
   103 	// read and write the store associated with the context
   103 	// read and write the store associated with the context
   104 	IMPORT_C CMsvStore* ReadStoreL();
   104 	IMPORT_C CMsvStore* ReadStoreL();
   105 	IMPORT_C CMsvStore* EditStoreL();
   105 	IMPORT_C CMsvStore* EditStoreL();
   106 	//
   106 	//
   107 	// List the children of the context 
   107 	// List the children of the context 
   108 	inline const TMsvSelectionOrdering& Sort();
   108 	inline const TMsvSelectionOrdering& Sort(){return iOrdering;};
   109 	inline void SetSort(TMsvSelectionOrdering& aOrdering);
   109 	inline void SetSort(TMsvSelectionOrdering& aOrdering){iOrdering=aOrdering;};
   110 	inline void SetMtm(TUid aMtm);
   110 	inline void SetMtm(TUid aMtm){iMtm=aMtm;};
   111 	IMPORT_C TInt GetChildren(CMsvEntrySelection& aSelection);
   111 	IMPORT_C TInt GetChildren(CMsvEntrySelection& aSelection);
   112 	//
   112 	//
   113 	IMPORT_C TInt GetChildrenWithService(TMsvId aServiceId, CMsvEntrySelection& aSelection);
   113 	IMPORT_C TInt GetChildrenWithService(TMsvId aServiceId, CMsvEntrySelection& aSelection);
   114 	IMPORT_C TInt GetChildrenWithMtm(TUid aMtm, CMsvEntrySelection& aSelection);
   114 	IMPORT_C TInt GetChildrenWithMtm(TUid aMtm, CMsvEntrySelection& aSelection);
   115 	IMPORT_C TInt GetChildrenWithType(TUid aType, CMsvEntrySelection& aSelection);
   115 	IMPORT_C TInt GetChildrenWithType(TUid aType, CMsvEntrySelection& aSelection);
   175 	TMsvId* iCompletedEntryId;
   175 	TMsvId* iCompletedEntryId;
   176 	TSecureId	iContextOwnerId;
   176 	TSecureId	iContextOwnerId;
   177 	};
   177 	};
   178 
   178 
   179 
   179 
   180 #include <msventry.inl>
   180 
   181 
   181 
   182 #endif // __MSVENTRY_H__
   182 #endif // __MSVENTRY_H__