CNotificationKodi::CNotificationKodi() : CNotificationBase(std::string("kodi"), OPTIONS_NONE) { SetupConfig(std::string("KodiEnabled"), &m_IsEnabled); SetupConfig(std::string("KodiIPAddress"), _IPAddress); SetupConfig(std::string("KodiPort"), &_Port); SetupConfig(std::string("KodiTimeToLive"), &_TTL); }
CNotificationHTTP::CNotificationHTTP() : CNotificationBase(std::string("http"), OPTIONS_NONE) { SetupConfig(std::string("HTTPEnabled"), &m_IsEnabled); SetupConfigBase64(std::string("HTTPField1"), _HTTPField1); SetupConfigBase64(std::string("HTTPField2"), _HTTPField2); SetupConfigBase64(std::string("HTTPField3"), _HTTPField3); SetupConfigBase64(std::string("HTTPField4"), _HTTPField4); SetupConfigBase64(std::string("HTTPTo"), _HTTPTo); SetupConfigBase64(std::string("HTTPURL"), _HTTPURL); }
CNotificationHTTP::CNotificationHTTP() : CNotificationBase(std::string("http"), OPTIONS_NONE) { SetupConfig(std::string("HTTPEnabled"), &m_IsEnabled); SetupConfigBase64(std::string("HTTPField1"), _HTTPField1); SetupConfigBase64(std::string("HTTPField2"), _HTTPField2); SetupConfigBase64(std::string("HTTPField3"), _HTTPField3); SetupConfigBase64(std::string("HTTPField4"), _HTTPField4); SetupConfigBase64(std::string("HTTPTo"), _HTTPTo); SetupConfigBase64(std::string("HTTPURL"), _HTTPURL); SetupConfigBase64(std::string("HTTPPostData"), _HTTPPostData); SetupConfigBase64(std::string("HTTPPostHeaders"), _HTTPPostHeaders); SetupConfigBase64(std::string("HTTPPostContentType"), _HTTPPostContentType); }
CNotificationEmail::CNotificationEmail() : CNotificationBase(std::string("email"), OPTIONS_HTML_BODY) { SetupConfig(std::string("EmailFrom"), _EmailFrom); SetupConfig(std::string("EmailTo"), _EmailTo); SetupConfig(std::string("EmailServer"), _EmailServer); SetupConfig(std::string("EmailPort"), &_EmailPort); SetupConfigBase64(std::string("EmailUsername"), _EmailUsername); SetupConfigBase64(std::string("EmailPassword"), _EmailPassword); SetupConfig(std::string("UseEmailInNotifications"), &_UseEmailInNotifications); SetupConfig(std::string("EmailAsAttachment"), &_EmailAsAttachment); }
bool MyApp::OnInit() { m_frame = NULL; wxLogDebug(_T("Starting App")); SetReturnCode(0); m_isTimerRunning = false; // Seed random number generator (for grid scrambling) srand( time(NULL) ); SetupConfig(); SetupPrinting(); return ReadCommandLine(); }
CNotificationPushover::CNotificationPushover() : CNotificationBase(std::string("pushover"), OPTIONS_URL_SUBJECT | OPTIONS_URL_BODY | OPTIONS_URL_PARAMS) { SetupConfig(std::string("PushoverEnabled"), &m_IsEnabled); SetupConfig(std::string("PushoverAPI"), _apikey); SetupConfig(std::string("PushoverUser"), _apiuser); }
CNotificationProwl::CNotificationProwl() : CNotificationBase(std::string("prowl"), OPTIONS_URL_SUBJECT | OPTIONS_URL_BODY | OPTIONS_URL_PARAMS) { SetupConfig(std::string("ProwlEnabled"), &m_IsEnabled); SetupConfig(std::string("ProwlAPI"), _apikey); }
CNotificationPushbullet::CNotificationPushbullet() : CNotificationBase(std::string("pushbullet"), OPTIONS_URL_SUBJECT | OPTIONS_URL_BODY | OPTIONS_URL_PARAMS) { SetupConfig(std::string("PushbulletEnabled"), &m_IsEnabled); SetupConfig(std::string("PushbulletAPI"), _apikey); }
CNotificationLogitechMediaServer::CNotificationLogitechMediaServer() : CNotificationBase(std::string("lms"), OPTIONS_NONE) { SetupConfig(std::string("LmsEnabled"), &m_IsEnabled); SetupConfig(std::string("LmsPlayerMac"), _PlayerMac); SetupConfig(std::string("LmsDuration"), &_Duration); }
CNotificationNma::CNotificationNma() : CNotificationBase(std::string("nma"), OPTIONS_URL_SUBJECT | OPTIONS_URL_BODY | OPTIONS_URL_PARAMS) { SetupConfig(std::string("NMAEnabled"), &m_IsEnabled); SetupConfig(std::string("NMAAPI"), _apikey); }
CNotificationGCM::CNotificationGCM() : CNotificationBase(std::string("gcm"), OPTIONS_URL_SUBJECT | OPTIONS_URL_BODY | OPTIONS_URL_PARAMS) { SetupConfig(std::string("GCMEnabled"), &m_IsEnabled); }