76 constructor(GoogleRestClient::GoogleRestClient rest, hash<
string, hash<DataProviderOptionInfo>> constructor_options, *hash<auto> options)
128 processHeaders(*reference<hash<auto>> msg, hash<auto> fields, *hash<auto> pfields);
The parent class for Gmail REST APIs.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:28
date start_date
Start date for scan.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:68
hash< auto > getAttachment(hash< auto > att, *hash< auto > hdr)
Returns attachment data.
abstract messageReceived(hash< auto > msg)
Raise events.
processBody(*reference< hash< auto > > msg)
Process body.
constructor(GoogleRestClient::GoogleRestClient rest, hash< string, hash< DataProviderOptionInfo > > constructor_options, *hash< auto > options)
Creates the object from a REST connection.
int poll_secs
Poll interval in seconds.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:59
processHeaders(*reference< hash< auto > > msg, hash< auto > fields, *hash< auto > pfields)
Process headers and body.
bool delete_messages
Delete emails after retreiving.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:65
bool stop
I/O stop flag.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:56
bool retrieve_attachments
Retrieve attachments.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:62
string q
Match query.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:71
const MinPollInterval
Minimum poll interval in seconds.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:36
pollThread()
I/O polling thread.
*hash< auto > pollOnce(reference< hash< auto > > setup)
Perform one poll.
processOptions(*hash< auto > copts)
Process constructor options.
stopIntern()
Stops polling.
stopEvents()
Called to stop generating events.
observersReady()
Called when all observers have been added to the object.
destructor()
Stops observing and deletes the object.
static auto getHeaderValue(string val)
Get header value.
hash< auto > setup()
Setup for a poll operation.
const MonthMap
For parsing months.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:39
static auto getHeaderValue(string val, hash< auto > f)
Get header value.
int waiting
Number of threads waiting on the I/O condition.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:50
const ConstructorOptions
Constructor options.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:32
Condition cond()
I/O Condition.
int io_tid
I/O TID.
Definition GmailMessageWatchDataProviderBase.qc.dox.h:53
Qore GmailDataProvider module definition.
Definition GmailAttachmentWatchDataProvider.qc.dox.h:26