32 class GlxMediaModel; |
32 class GlxMediaModel; |
33 class QModelIndex; |
33 class QModelIndex; |
34 class GlxImageViewerService; |
34 class GlxImageViewerService; |
35 class GlxStateManager; |
35 class GlxStateManager; |
36 class CGlxImageViewerManager; |
36 class CGlxImageViewerManager; |
|
37 class GlxGetImageServiceNSDI; |
|
38 class GlxGetImageServiceDSDI; |
|
39 |
37 /** |
40 /** |
38 * GlxAiwServiceHandler |
41 * GlxAiwServiceHandler |
39 * |
42 * |
40 */ |
43 */ |
41 class GlxAiwServiceHandler: public HbMainWindow |
44 class GlxAiwServiceHandler: public HbMainWindow |
62 void closeContextMenu(); |
65 void closeContextMenu(); |
63 |
66 |
64 private: |
67 private: |
65 GlxMediaModel *mModel; |
68 GlxMediaModel *mModel; |
66 GlxView* mView; |
69 GlxView* mView; |
67 GlxGetImageService* mService; |
|
68 GlxImageViewerService* mImageViewerService; |
|
69 GlxStateManager *mStateMgr; |
70 GlxStateManager *mStateMgr; |
70 GlxView* mFSView; |
71 GlxView* mFSView; |
71 HbMenu *mFetcherContextMenu; |
72 HbMenu *mFetcherContextMenu; |
|
73 |
|
74 GlxGetImageService* mFetcherService; |
|
75 GlxGetImageServiceNSDI* mNSDIService; |
|
76 GlxGetImageServiceDSDI* mDSDIService; |
|
77 GlxImageViewerService* mImageViewerService; |
72 }; |
78 }; |
73 |
79 |
74 /** |
80 /** |
75 * GlxGetImageService |
81 * GlxGetImageService |
76 * |
82 * |
79 { |
85 { |
80 Q_OBJECT |
86 Q_OBJECT |
81 public: |
87 public: |
82 GlxGetImageService( GlxAiwServiceHandler *parent = 0 ); |
88 GlxGetImageService( GlxAiwServiceHandler *parent = 0 ); |
83 ~GlxGetImageService(); |
89 ~GlxGetImageService(); |
|
90 bool isActive(); |
|
91 void complete( QStringList filesList); |
|
92 |
|
93 public slots://for QTHighway to notify provider about request |
|
94 void fetch(); |
|
95 |
|
96 public slots://for provider to notify client |
|
97 void fetchFailed( int errorCode ); |
|
98 |
|
99 private: |
|
100 void doComplete( QStringList filesList); |
|
101 |
|
102 private: |
|
103 int mImageRequestIndex; |
|
104 GlxAiwServiceHandler* mServiceApp; |
|
105 }; |
|
106 |
|
107 /** |
|
108 * GlxGetImageServiceDSDI |
|
109 * Service provide for new service and depricated interface |
|
110 */ |
|
111 class GlxGetImageServiceNSDI : public XQServiceProvider |
|
112 { |
|
113 Q_OBJECT |
|
114 public: |
|
115 GlxGetImageServiceNSDI( GlxAiwServiceHandler *parent = 0 ); |
|
116 ~GlxGetImageServiceNSDI(); |
|
117 bool isActive(); |
|
118 void complete( QStringList filesList); |
|
119 |
|
120 public slots://for QTHighway to notify provider about request |
|
121 void fetch( QVariantMap filter , QVariant flag ); |
|
122 void fetch(); |
|
123 |
|
124 public slots://for provider to notify client |
|
125 void fetchFailed( int errorCode ); |
|
126 |
|
127 private: |
|
128 void doComplete( QStringList filesList); |
|
129 |
|
130 private: |
|
131 int mImageRequestIndex; |
|
132 GlxAiwServiceHandler* mServiceApp; |
|
133 }; |
|
134 |
|
135 /** |
|
136 * GlxGetImageServiceDSDI |
|
137 * Service provide for depricated service and depricated interface |
|
138 */ |
|
139 class GlxGetImageServiceDSDI : public XQServiceProvider |
|
140 { |
|
141 Q_OBJECT |
|
142 public: |
|
143 GlxGetImageServiceDSDI( GlxAiwServiceHandler *parent = 0 ); |
|
144 ~GlxGetImageServiceDSDI(); |
84 bool isActive(); |
145 bool isActive(); |
85 void complete( QStringList filesList); |
146 void complete( QStringList filesList); |
86 |
147 |
87 public slots://for QTHighway to notify provider about request |
148 public slots://for QTHighway to notify provider about request |
88 void fetch( QVariantMap filter, QVariant flag); |
149 void fetch( QVariantMap filter, QVariant flag); |