equal
deleted
inserted
replaced
25 #include <QSharedPointer> |
25 #include <QSharedPointer> |
26 #include <qabstractitemmodel.h> |
26 #include <qabstractitemmodel.h> |
27 |
27 |
28 #include "tsdocumentloader.h" |
28 #include "tsdocumentloader.h" |
29 |
29 |
30 class CaService; |
30 class TsTaskMonitor; |
31 class TsDeviceDialogPlugin : public HbDeviceDialogPlugin |
31 class TsDeviceDialogPlugin : public HbDeviceDialogPlugin |
32 { |
32 { |
33 Q_OBJECT |
33 Q_OBJECT |
34 |
34 |
35 public: |
35 public: |
41 bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const; |
41 bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const; |
42 QStringList deviceDialogTypes() const; |
42 QStringList deviceDialogTypes() const; |
43 PluginFlags pluginFlags() const; |
43 PluginFlags pluginFlags() const; |
44 int error() const; |
44 int error() const; |
45 |
45 |
46 private slots: |
|
47 void activated(QModelIndex index); |
|
48 void pressed(); |
|
49 void longPressed(); |
|
50 |
|
51 signals: |
|
52 void activate(QModelIndex); |
|
53 |
|
54 private: |
46 private: |
55 int mError; |
47 int mError; |
56 TsDocumentLoader mLoader; |
48 TsDocumentLoader mLoader; |
57 QAbstractListModel *mModel; |
49 QAbstractListModel *mModel; |
58 QSharedPointer<CaService> mStorage; |
50 TsTaskMonitor *mStorage; |
59 bool mLongPressed; |
|
60 |
51 |
61 Q_DISABLE_COPY(TsDeviceDialogPlugin) |
52 Q_DISABLE_COPY(TsDeviceDialogPlugin) |
62 }; |
53 }; |
63 |
54 |
64 #endif // TSDEVICEDIALOGPLUGIN_H |
55 #endif // TSDEVICEDIALOGPLUGIN_H |