Changeset View
Changeset View
Standalone View
Standalone View
plasmoid/declarativeplugin/kdeconnectdeclarativeplugin.h
Show All 20 Lines | |||||
21 | #ifndef KDECONNECTDECLARATIVEPLUGIN_H | 21 | #ifndef KDECONNECTDECLARATIVEPLUGIN_H | ||
22 | #define KDECONNECTDECLARATIVEPLUGIN_H | 22 | #define KDECONNECTDECLARATIVEPLUGIN_H | ||
23 | 23 | | |||
24 | #include <QQmlExtensionPlugin> | 24 | #include <QQmlExtensionPlugin> | ||
25 | 25 | | |||
26 | class KdeConnectDeclarativePlugin : public QQmlExtensionPlugin | 26 | class KdeConnectDeclarativePlugin : public QQmlExtensionPlugin | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | 29 | #if SAILFISHOS | |||
30 | public: | ||||
31 | #endif | ||||
nicolasfella: Can we remove the condition? | |||||
Because i cant use the plugin/infrastructure from kde, for the sailfish app, i just compile this code directly into the app to make it available. for this to happen, the methods need to be public. They can be generally public, but I guess its not needed on the main platform? Your choice. piggz: Because i cant use the plugin/infrastructure from kde, for the sailfish app, i just compile… | |||||
30 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | 32 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
31 | 33 | | |||
32 | void registerTypes(const char* uri) override; | 34 | void registerTypes(const char* uri) override; | ||
33 | void initializeEngine(QQmlEngine* engine, const char* uri) override; | 35 | void initializeEngine(QQmlEngine* engine, const char* uri) override; | ||
34 | }; | 36 | }; | ||
35 | 37 | | |||
36 | #endif // KDECONNECTDECLARATIVEPLUGIN_H | 38 | #endif // KDECONNECTDECLARATIVEPLUGIN_H |
Can we remove the condition?