OpenAB
1.0.1
|
Documentation for Source plugin interface. More...
#include <Source.hpp>
Public Types | |
enum | eInit { eInitOk, eInitFail } |
enum | eSuspendRet { eSuspendRetOk, eSuspendRetFail, eSuspendRetNotSupported } |
enum | eResumeRet { eResumeRetOk, eResumeRetFail, eResumeRetNotSupported } |
enum | eCancelRet { eCancelRetOk, eCancelRetFail, eCancelRetNotSupported } |
enum | eGetItemRet { eGetItemRetOk, eGetItemRetEnd, eGetItemRetError } |
Public Member Functions | |
Source (OpenAB::PIMItemType t) | |
Constructor. More... | |
virtual | ~Source () |
Destructor, virtual by default. More... | |
virtual enum eInit | init ()=0 |
Initializes Source. More... | |
virtual enum eSuspendRet | suspend ()=0 |
Suspends Source, if such operation is supported. More... | |
virtual enum eResumeRet | resume ()=0 |
Resumes Source, if such operation is supported. More... | |
virtual enum eCancelRet | cancel ()=0 |
Cancels Source, if such operation is supported. After canceling Source next call to getVCard() should return eGetItemRetError status. More... | |
virtual enum eGetItemRet | getItem (OpenAB::SmartPtr< OpenAB::PIMItem > &item)=0 |
Gets PIM Item from Source. If Source is suspended getItem() should block until Source will be resumed or cancelled. More... | |
virtual int | getTotalCount () const =0 |
Returns total count of items available from Source, if such information is available. More... | |
OpenAB::PIMItemType | getItemType () const |
Returns type of PIM Item supported by Source. More... | |
Documentation for Source plugin interface.
|
inline |
Constructor.
[in] | t | type of provided PIM Item (OpenAB::PIMItem) |
|
inlinevirtual |
Destructor, virtual by default.
|
pure virtual |
Cancels Source, if such operation is supported. After canceling Source next call to getVCard() should return eGetItemRetError status.
Implemented in CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.
|
pure virtual |
Gets PIM Item from Source. If Source is suspended getItem() should block until Source will be resumed or cancelled.
[out] | item | item received from Source |
Implemented in OpenAB_Storage::Storage, CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.
|
inline |
Returns type of PIM Item supported by Source.
|
pure virtual |
Returns total count of items available from Source, if such information is available.
Implemented in CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.
|
pure virtual |
Initializes Source.
Implemented in CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.
|
pure virtual |
Resumes Source, if such operation is supported.
Implemented in CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.
|
pure virtual |
Suspends Source, if such operation is supported.
Implemented in CalDAVStorage, PBAPSource, CardDAVStorage, GoogleSource, FileSource, EDSCalendarStorage, and EDSContactsStorage.