OpenAB
1.0.1
|
#include <PBAP.hpp>
Public Member Functions | |
PBAPSource (const std::string &mac, const std::string &pb, const std::string &filter, unsigned int batchDownloadTime) | |
Constructor. More... | |
virtual | ~PBAPSource () |
enum OpenAB_Source::Source::eInit | init () |
Initializes Source. More... | |
enum OpenAB_Source::Source::eGetItemRet | getItem (OpenAB::SmartPtr< OpenAB::PIMItem > &item) |
Gets PIM Item from Source. If Source is suspended getItem() should block until Source will be resumed or cancelled. More... | |
enum OpenAB_Source::Source::eSuspendRet | suspend () |
Suspends Source, if such operation is supported. More... | |
enum OpenAB_Source::Source::eResumeRet | resume () |
Resumes Source, if such operation is supported. More... | |
enum OpenAB_Source::Source::eCancelRet | cancel () |
Cancels Source, if such operation is supported. After canceling Source next call to getVCard() should return eGetItemRetError status. More... | |
int | getTotalCount () const |
Returns total count of items available from Source, if such information is available. More... | |
Public Member Functions inherited from OpenAB_Source::Source | |
Source (OpenAB::PIMItemType t) | |
Constructor. More... | |
virtual | ~Source () |
Destructor, virtual by default. More... | |
OpenAB::PIMItemType | getItemType () const |
Returns type of PIM Item supported by Source. More... | |
Additional Inherited Members | |
Public Types inherited from OpenAB_Source::Source | |
enum | eInit { eInitOk, eInitFail } |
enum | eSuspendRet { eSuspendRetOk, eSuspendRetFail, eSuspendRetNotSupported } |
enum | eResumeRet { eResumeRetOk, eResumeRetFail, eResumeRetNotSupported } |
enum | eCancelRet { eCancelRetOk, eCancelRetFail, eCancelRetNotSupported } |
enum | eGetItemRet { eGetItemRetOk, eGetItemRetEnd, eGetItemRetError } |
PBAPSource::PBAPSource | ( | const std::string & | mac, |
const std::string & | pb, | ||
const std::string & | filter, | ||
unsigned int | batchDownloadTime | ||
) |
Constructor.
|
virtual |
|
virtual |
Cancels Source, if such operation is supported. After canceling Source next call to getVCard() should return eGetItemRetError status.
Implements OpenAB_Source::Source.
|
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 |
Implements OpenAB_Source::Source.
|
virtual |
Returns total count of items available from Source, if such information is available.
Implements OpenAB_Source::Source.
|
virtual |
|
virtual |
Resumes Source, if such operation is supported.
Implements OpenAB_Source::Source.
|
virtual |
Suspends Source, if such operation is supported.
Implements OpenAB_Source::Source.