equal
deleted
inserted
replaced
20 |
20 |
21 #include <QtCore/QVariant> |
21 #include <QtCore/QVariant> |
22 #include <QtCore/QProcess> |
22 #include <QtCore/QProcess> |
23 #include <hbindicatorplugininterface.h> |
23 #include <hbindicatorplugininterface.h> |
24 #include <hbindicatorinterface.h> |
24 #include <hbindicatorinterface.h> |
|
25 #include <QSharedPointer> |
|
26 |
|
27 // Forward declarations |
|
28 class HbTranslator; |
25 |
29 |
26 const int wlanNotConnected = 0; |
30 const int wlanNotConnected = 0; |
27 const int wlanConnected = 1; |
31 const int wlanConnected = 1; |
28 |
32 |
29 class WlanIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface |
33 class WlanIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface |
49 public: |
53 public: |
50 //from HbIndicatorInterface |
54 //from HbIndicatorInterface |
51 bool handleClientRequest (RequestType type, const QVariant ¶meter); |
55 bool handleClientRequest (RequestType type, const QVariant ¶meter); |
52 bool handleInteraction (InteractionType type); |
56 bool handleInteraction (InteractionType type); |
53 QVariant indicatorData(int role) const; |
57 QVariant indicatorData(int role) const; |
54 |
58 |
55 private: |
59 private: |
56 |
60 |
57 Q_DISABLE_COPY(WlanIndicatorPlugin) |
61 Q_DISABLE_COPY(WlanIndicatorPlugin) |
58 QStringList mIndicatorTypes; // Type of indicator |
62 QStringList mIndicatorTypes; // Type of indicator |
59 int mError; // Indicator error |
63 int mError; // Indicator error |
60 QVariant mParameter; // Used to contain the status of wlan |
64 QVariant mParameter; // Used to contain the status of wlan |
61 QProcess process; // Process to start external programs |
65 QProcess process; // Process to start external programs |
|
66 QSharedPointer<HbTranslator> mTranslator; // Translator for the localisation Text Id's |
62 }; |
67 }; |
63 #endif //WLANINDICATORPLUGIN_H |
68 #endif //WLANINDICATORPLUGIN_H |