equal
deleted
inserted
replaced
16 */ |
16 */ |
17 #ifndef TSDEVICEDIALOGCONTAINER_H |
17 #ifndef TSDEVICEDIALOGCONTAINER_H |
18 #define TSDEVICEDIALOGCONTAINER_H |
18 #define TSDEVICEDIALOGCONTAINER_H |
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 |
|
22 #include <HbDeviceDialogInterface> |
21 #include <HbDeviceDialogInterface> |
23 |
|
24 #include <qvaluespacepublisher.h> |
22 #include <qvaluespacepublisher.h> |
25 |
23 |
26 #include "tsdocumentloader.h" |
24 #include "tsdocumentloader.h" |
27 |
25 |
28 QTM_USE_NAMESPACE |
26 QTM_USE_NAMESPACE |
29 |
27 |
30 class QAbstractListModel; |
28 class QAbstractListModel; |
31 |
29 |
32 class TsDeviceDialogContainer : public QObject, public HbDeviceDialogInterface |
30 class TsDeviceDialogContainer : public QObject, |
|
31 public HbDeviceDialogInterface |
33 { |
32 { |
34 Q_OBJECT |
33 Q_OBJECT |
35 public: |
34 public: |
36 explicit TsDeviceDialogContainer(QAbstractListModel *model, QObject *parent = 0); |
35 explicit TsDeviceDialogContainer(QAbstractListModel *model, |
|
36 QObject *parent = 0); |
37 ~TsDeviceDialogContainer(); |
37 ~TsDeviceDialogContainer(); |
38 |
38 |
39 public: |
39 public: |
40 virtual bool setDeviceDialogParameters(const QVariantMap ¶meters); |
40 virtual bool setDeviceDialogParameters(const QVariantMap ¶meters); |
41 virtual int deviceDialogError() const; |
41 virtual int deviceDialogError() const; |
49 public slots: |
49 public slots: |
50 void changeOrientation(Qt::Orientation orientation); |
50 void changeOrientation(Qt::Orientation orientation); |
51 |
51 |
52 private slots: |
52 private slots: |
53 void notifyDialogClosed(); |
53 void notifyDialogClosed(); |
|
54 void switchViewOnModelChange(); |
54 |
55 |
55 private: |
56 private: |
56 TsDocumentLoader mLoader; |
57 TsDocumentLoader mLoader; |
57 QValueSpacePublisher mVisibilityPublisher; |
58 QValueSpacePublisher mVisibilityPublisher; |
58 |
59 |
|
60 Q_DISABLE_COPY(TsDeviceDialogContainer) |
59 }; |
61 }; |
60 |
62 |
61 #endif // TSDEVICEDIALOGCONTAINER_H |
63 #endif // TSDEVICEDIALOGCONTAINER_H |