$darkmode
Qore GoogleDataProvider Module Reference 1.0
GoogleCalendarBaseDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace GoogleDataProvider {
29 
30 public:
32  const ProviderInfo = <DataProviderInfo>{
33  "name": "calendar",
34  "desc": "Google calendar base data provider; parent provider for APIs related to calendars",
35  "type": "GoogleCalendarBaseDataProvider",
36  "constructor_options": GoogleDataProvider::ConstructorOptions,
37  "supports_children": True,
38  "children_can_support_apis": True,
39  };
40 
42  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
43  AbstractDataProvider::DataProviderSummaryInfoKeys
44  });
45 
46 protected:
47  const ChildMap = {
48  "calendarList": Class::forName("GoogleDataProvider::GoogleCalendarListDataProvider"),
49  "calendars": Class::forName("GoogleDataProvider::GoogleCalendarsDataProvider"),
50  "insert": Class::forName("GoogleDataProvider::GoogleCalendarInsertDataProvider"),
51  };
52 
53 public:
54 
56  constructor(*hash<auto> options);
57 
58 
60  constructor(GoogleRestClient::GoogleRestClient rest) ;
61 
62 
64  string getName();
65 
66 
68  *string getDesc();
69 
70 
72  *list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
73 
74 
76 
78 protected:
79  *list<string> getChildProviderNamesImpl();
80 public:
81 
82 
84 
88 protected:
90 public:
91 
92 
94  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
95 
96 };
97 };
The parent class for Google calendar REST APIs.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:28
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
*string getDesc()
Returns the data provider description.
*GoogleDataProviderBase getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
const ProviderInfo
Provider info.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:32
const ProviderSummaryInfo
Provider summary info.
Definition: GoogleCalendarBaseDataProvider.qc.dox.h:42
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
constructor(GoogleRestClient::GoogleRestClient rest)
Creates the object from a REST connection.
string getName()
Returns the data provider name.
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