equal
deleted
inserted
replaced
24 #include <QTranslator> |
24 #include <QTranslator> |
25 |
25 |
26 #include <hbindicatorplugininterface.h> |
26 #include <hbindicatorplugininterface.h> |
27 #include <hbindicatorinterface.h> |
27 #include <hbindicatorinterface.h> |
28 |
28 |
|
29 class NmIndicator; |
|
30 |
29 class NmIndicatorPlugin : public QObject, public HbIndicatorPluginInterface |
31 class NmIndicatorPlugin : public QObject, public HbIndicatorPluginInterface |
30 { |
32 { |
31 Q_OBJECT |
33 Q_OBJECT |
32 Q_INTERFACES(HbIndicatorPluginInterface) |
34 Q_INTERFACES(HbIndicatorPluginInterface) |
33 |
35 |
42 bool accessAllowed(const QString &indicatorType, |
44 bool accessAllowed(const QString &indicatorType, |
43 const HbSecurityInfo *securityInfo) const; |
45 const HbSecurityInfo *securityInfo) const; |
44 HbIndicatorInterface* createIndicator(const QString &indicatorType); |
46 HbIndicatorInterface* createIndicator(const QString &indicatorType); |
45 int error() const; |
47 int error() const; |
46 |
48 |
|
49 public slots: |
|
50 |
|
51 bool indicatorIconLost(); |
|
52 bool showMailbox(quint64 mailboxId); |
|
53 void indicatorDeactivated(QObject *indicator); |
|
54 void globalStatusChanged(bool sending); |
|
55 |
47 private: |
56 private: |
48 Q_DISABLE_COPY(NmIndicatorPlugin) |
57 Q_DISABLE_COPY(NmIndicatorPlugin) |
49 |
58 |
50 int mError; |
59 int mError; |
51 QStringList mIndicatorTypes; |
60 QStringList mIndicatorTypes; |
52 QTranslator *mTranslator; // owned |
61 QTranslator *mTranslator; // owned |
|
62 QList<NmIndicator*> mIndicators; |
|
63 NmIndicator *mStatusBarIndicator; |
|
64 bool mSending; |
53 }; |
65 }; |
54 |
66 |
55 #endif // NMINDICATORPLUGIN_H |
67 #endif // NMINDICATORPLUGIN_H |
56 |
68 |