Changeset View
Changeset View
Standalone View
Standalone View
src/knotificationmanager.cpp
Context not available. | |||||
40 | #include "notifybylogfile.h" | 40 | #include "notifybylogfile.h" | ||
---|---|---|---|---|---|
41 | #include "notifybytaskbar.h" | 41 | #include "notifybytaskbar.h" | ||
42 | #include "notifybyexecute.h" | 42 | #include "notifybyexecute.h" | ||
43 | #ifndef Q_OS_ANDROID | 43 | #ifdef Q_OS_ANDROID | ||
44 | #include "notifybyandroid.h" | ||||
45 | #elif defined(Q_OS_MAC) | ||||
46 | #include "notifybymacosnotificationcenter.h" | ||||
47 | #else | ||||
44 | #include "notifybypopup.h" | 48 | #include "notifybypopup.h" | ||
45 | #include "notifybyportal.h" | 49 | #include "notifybyportal.h" | ||
46 | #else | | |||
47 | #include "notifybyandroid.h" | | |||
48 | #endif | 50 | #endif | ||
49 | #include "debug_p.h" | 51 | #include "debug_p.h" | ||
50 | 52 | | |||
Context not available. | |||||
133 | // We have a series of built-ins up first, and fall back to trying | 135 | // We have a series of built-ins up first, and fall back to trying | ||
134 | // to instantiate an externally supplied plugin. | 136 | // to instantiate an externally supplied plugin. | ||
135 | if (action == QLatin1String("Popup")) { | 137 | if (action == QLatin1String("Popup")) { | ||
136 | #ifndef Q_OS_ANDROID | 138 | #ifdef Q_OS_ANDROID | ||
137 | if (d->portalDBusServiceExists) { | | |||
138 | plugin = new NotifyByPortal(this); | | |||
139 | } else { | | |||
140 | plugin = new NotifyByPopup(this); | | |||
141 | } | | |||
142 | #else | | |||
143 | plugin = new NotifyByAndroid(this); | 139 | plugin = new NotifyByAndroid(this); | ||
140 | #elif defined(Q_OS_MAC) | ||||
141 | plugin = new NotifyByMacOSNotificationCenter(this); | ||||
142 | #else | ||||
143 | if (d->portalDBusServiceExists) { | ||||
144 | plugin = new NotifyByPortal(this); | ||||
145 | } else { | ||||
146 | plugin = new NotifyByPopup(this); | ||||
147 | } | ||||
144 | #endif | 148 | #endif | ||
145 | 149 | | |||
146 | addPlugin(plugin); | 150 | addPlugin(plugin); | ||
Context not available. |