Qore GoogleDataProvider Module Reference 1.0
Loading...
Searching...
No Matches
GoogleCalendarGetDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
26namespace GoogleDataProvider {
29
30public:
32 const ProviderInfo = <DataProviderInfo>{
33 "name": "get",
34 "desc": "Google calendar API for retrieving a specific calendar",
35 "type": "GoogleCalendarGetDataProvider",
36 "constructor_options": GoogleDataProvider::ConstructorOptions + {
37 "id": <DataProviderOptionInfo>{
38 "type": AbstractDataProviderTypeMap."string",
39 "desc": "The calendar ID",
40 },
41 },
42 "supports_request": True,
43 };
44
46 const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
47 AbstractDataProvider::DataProviderSummaryInfoKeys
48 });
49
51 const RequestType = AbstractDataProviderTypeMap."nothing";
52
55
56protected:
58 string id;
59
61 *hash<auto> cal;
62
63public:
64
66 constructor(*hash<auto> options);
67
68
70 constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
71
72
74 string getName();
75
76
78 *string getDesc();
79
80
82
87protected:
88 auto doRequestImpl(auto req, *hash<auto> request_options);
89public:
90
91
93
95protected:
96 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
97public:
98
99
101
103protected:
104 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
105public:
106
107
109 hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
110
111};
112};
Data provider API for retrieving a specific calendar.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:28
const ResponseType
Response type.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:54
string id
The calendar's ID.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:58
string getName()
Returns the data provider name.
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:46
const ProviderInfo
Provider info.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:32
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const RequestType
Request type.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:51
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarGetDataProvider.qc.dox.h:61
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
*string getDesc()
Returns the data provider description.
Google calender type.
Definition: GoogleCalendarType.qc.dox.h:31
The Google data provider base class.
Definition: GoogleDataProviderBase.qc.dox.h:28
*GoogleRestClient::GoogleRestClient rest
The REST client object for API calls.
Definition: GoogleDataProviderBase.qc.dox.h:33
const ConstructorOptions
Constructor options.
Definition: GoogleDataProvider.qc.dox.h:40
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26