$darkmode
Qore GoogleDataProvider Module Reference 1.0
GoogleCalendarEventsDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace GoogleDataProvider {
29 
30 public:
32  const ProviderInfo = <DataProviderInfo>{
33  "name": "events",
34  "desc": "Google calendar events data provider; parent provider for APIs related to calendar events",
35  "type": "GoogleCalendarEventsDataProvider",
36  "constructor_options": GoogleDataProvider::ConstructorOptions + {
37  "id": <DataProviderOptionInfo>{
38  "type": AbstractDataProviderTypeMap."string",
39  "desc": "The calendar ID",
40  },
41  },
42  "supports_children": True,
43  "children_can_support_apis": True,
44  };
45 
47  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
48  AbstractDataProvider::DataProviderSummaryInfoKeys
49  });
50 
51 protected:
53  string id;
54 
56  *hash<auto> cal;
57 
58  const ChildMap = {
59  "delete": Class::forName("GoogleDataProvider::GoogleCalendarEventsDeleteDataProvider"),
60  "get": Class::forName("GoogleDataProvider::GoogleCalendarEventsGetDataProvider"),
61  "insert": Class::forName("GoogleDataProvider::GoogleCalendarEventsInsertDataProvider"),
62  "instances": Class::forName("GoogleDataProvider::GoogleCalendarEventsInstancesDataProvider"),
63  "list": Class::forName("GoogleDataProvider::GoogleCalendarEventsListDataProvider"),
64  "patch": Class::forName("GoogleDataProvider::GoogleCalendarEventsPatchDataProvider"),
65  "quickAdd": Class::forName("GoogleDataProvider::GoogleCalendarEventsQuickAddDataProvider"),
66  "update": Class::forName("GoogleDataProvider::GoogleCalendarEventsUpdateDataProvider"),
67  };
68 
69 public:
70 
72  constructor(*hash<auto> options);
73 
74 
76  constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash<auto> cal) ;
77 
78 
80  string getName();
81 
82 
84  *string getDesc();
85 
86 
88  *list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
89 
90 
92 
94 protected:
95  *list<string> getChildProviderNamesImpl();
96 public:
97 
98 
100 
104 protected:
106 public:
107 
108 
110  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
111 
112 };
113 };
The parent class for APIs related to Google calendar events.
Definition: GoogleCalendarEventsDataProvider.qc.dox.h:28
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
const ProviderInfo
Provider info.
Definition: GoogleCalendarEventsDataProvider.qc.dox.h:32
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarEventsDataProvider.qc.dox.h:47
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string getName()
Returns the data provider name.
*string getDesc()
Returns the data provider description.
string id
The calendar's ID.
Definition: GoogleCalendarEventsDataProvider.qc.dox.h:53
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
*hash< auto > cal
The calendar's metadata.
Definition: GoogleCalendarEventsDataProvider.qc.dox.h:56
*GoogleDataProviderBase getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
constructor(GoogleRestClient::GoogleRestClient rest, string id, *hash< auto > cal)
Creates the object from a REST connection.
constructor(*hash< auto > options)
Creates the object from constructor options.
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
const True
Qore GoogleDataProvider module definition.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:26