class CCalSession : public CBase |
A handle to the calendar file.
When the client instantiates a CCalSession, it will connect to the calendar server. In turn, the client can use its APIs, for instance to create or open a calendar file.
The agenda data in the file can be accessed as entries. To access the entries, clients should use class CCalEntryView or CCalInstanceView to process the entry data. However, both view classes require the handle to the file which is represented by this class.
A calendar file can be opened on any writable drive. Note that if the file is opened on a removable media and that media is removed, operations will leave with KErrNotReady. This error can also happen when trying to access file attachments on removed media. When this error occurs, the user should close the CCalSession and re-open it once the media has been replaced. It is recommended that when using a calendar file on removable media, the user should watch for when the media is removed / replaced using the RFs::NotifyChange API.
The session object must not be destroyed until all the objects which where created by referencing it have been destroyed.
Private Member Functions | |
---|---|
CCalSession() | |
void | ConstructL() |
void | ConstructL(CCalSession &) |
Private Attributes | |
---|---|
CCalSessionImpl * | iImpl |
void | ConstructL | ( | CCalSession & | aCalSession | ) | [private] |
CCalSession & aCalSession |
IMPORT_C void | CreateCalFileL | ( | const TDesC & | aFileName | ) | const |
const TDesC & aFileName |
IMPORT_C void | CreateCalFileL | ( | const TDesC & | aFileName, |
const CCalCalendarInfo & | aCalendarInfo | |||
) | const |
const TDesC & aFileName | |
const CCalCalendarInfo & aCalendarInfo |
IMPORT_C void | DeleteCalFileL | ( | const TDesC & | aFileName | ) | const |
const TDesC & aFileName |
IMPORT_C void | FileIdL | ( | TCalFileId & | aCalFileId | ) | const |
TCalFileId & aCalFileId |
IMPORT_C void | GetFileNameL | ( | TCalPubSubData | aPubSubData, |
TDes & | aFileName | |||
) | const |
TCalPubSubData aPubSubData | |
TDes & aFileName |
IMPORT_C TBool | IsFileNameL | ( | TCalPubSubData | aPubSubData, |
const TDesC & | aFileName | |||
) | const |
TCalPubSubData aPubSubData | |
const TDesC & aFileName |
IMPORT_C TBool | IsOpenedFileL | ( | TCalPubSubData | aPubSubData | ) | const |
TCalPubSubData aPubSubData |
IMPORT_C CCalSession * | NewL | ( | CCalSession & | aCalSession | ) | [static] |
CCalSession & aCalSession |
IMPORT_C void | OpenL | ( | const TDesC & | aFileName | ) | const |
const TDesC & aFileName |
IMPORT_C void | OpenL | ( | const TDesC & | aFileName, |
CalCommon::TCalFileVersionSupport & | aFileSupportStatus | |||
) | const |
const TDesC & aFileName | |
CalCommon::TCalFileVersionSupport & aFileSupportStatus |
IMPORT_C void | SetCalendarInfoL | ( | const CCalCalendarInfo & | aCalendarInfo | ) | const |
const CCalCalendarInfo & aCalendarInfo |
IMPORT_C void | StartChangeNotification | ( | MCalChangeCallBack2 & | aCallBack, |
const CCalChangeNotificationFilter & | aFilter | |||
) |
MCalChangeCallBack2 & aCallBack | |
const CCalChangeNotificationFilter & aFilter |
IMPORT_C void | StartChangeNotification | ( | MCalChangeCallBack * | aCallBack, |
MCalChangeCallBack::TChangeEntryType | aChangeEntryType, | |||
TBool | aIncludeUndatedTodos, | |||
TTime | aFilterStartTime, | |||
TTime | aFilterEndTime | |||
) |
MCalChangeCallBack * aCallBack | |
MCalChangeCallBack::TChangeEntryType aChangeEntryType | |
TBool aIncludeUndatedTodos | |
TTime aFilterStartTime | |
TTime aFilterEndTime |
IMPORT_C void | StartFileChangeNotificationL | ( | MCalFileChangeObserver & | aCallBack | ) |
MCalFileChangeObserver & aCallBack |
IMPORT_C void | _DebugSetHeapFailL | ( | RAllocator::TAllocFail | aFail, |
TInt | aRate | |||
) |
RAllocator::TAllocFail aFail | |
TInt aRate |
IMPORT_C void | __dbgClearTzClientCacheL | ( | TBool | aRestartCaching | ) |
TBool aRestartCaching |