27 #include <QObject> |
27 #include <QObject> |
28 #include <QVariant> |
28 #include <QVariant> |
29 #include <QPointer> |
29 #include <QPointer> |
30 #include <QStringList> |
30 #include <QStringList> |
31 #include "hsutils_global.h" |
31 #include "hsutils_global.h" |
32 #include "xqaiwcommon.h" |
|
33 |
|
34 |
32 |
35 class HbAction; |
33 class HbAction; |
36 class HsImageGridWidget; |
34 class HsImageGridWidget; |
|
35 class HbView; |
37 |
36 |
38 class HSUTILS_EXPORT XQAIWGetImageClient : public QObject |
37 class HSUTILS_EXPORT XQAIWGetImageClient : public QObject |
39 { |
38 { |
40 Q_OBJECT |
39 Q_OBJECT |
41 public: |
40 public: |
42 XQAIWGetImageClient(); |
41 XQAIWGetImageClient(); |
43 ~XQAIWGetImageClient(); |
42 ~XQAIWGetImageClient(); |
44 |
43 |
45 public slots: |
44 public slots: |
46 void fetch( QVariantMap filter, XQAIWMultimediaFlags flag); |
45 void fetch(); |
47 |
46 |
48 private slots: |
47 private slots: |
49 void imageSelected(const QString&); |
48 void imageSelected(const QString&); |
50 void requestCompleted(const QVariant& val); |
49 void requestCompleted(const QVariant& val); |
51 void imageSelectionCancelled(); |
50 void imageSelectionCancelled(); |
52 |
51 |
53 signals: |
52 signals: |
54 void fetchComplete( QStringList filesList); |
53 void fetchCompleted(const QString&); |
55 void fetchFailed( int errorCode ); |
54 void fetchFailed(int, const QString&); |
56 |
55 |
57 private: |
56 private: |
58 void findImages(const QString &aDir, const QStringList &aFilters, QStringList &aFoundImages); |
57 void findImages(const QString &aDir, const QStringList &aFilters, QStringList &aFoundImages); |
59 private: |
58 private: |
60 QPointer<HsImageGridWidget> mImageGrid;//added |
59 QPointer<HsImageGridWidget> mImageGrid;//added |
61 HbAction *mBackAction;//added |
60 HbAction *mBackAction;//added |
|
61 HbView * mCurrentView; |
62 |
62 |
63 }; |
63 }; |
64 |
64 |
65 #endif /* XQAIWGETIMAGECLIENT_H_ */ |
65 #endif /* XQAIWGETIMAGECLIENT_H_ */ |