|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 /* |
|
18 * xqaiwgetimageclient.h |
|
19 * |
|
20 * Created on: 2009-07-23 |
|
21 * Author: przemysl |
|
22 */ |
|
23 |
|
24 #ifndef XQAIWGETIMAGECLIENT_H_ |
|
25 #define XQAIWGETIMAGECLIENT_H_ |
|
26 |
|
27 #include <QObject> |
|
28 #include <QVariant> |
|
29 #include <QPointer> |
|
30 #include <QStringList> |
|
31 #include "hsutils_global.h" |
|
32 #include "xqaiwcommon.h" |
|
33 |
|
34 |
|
35 class HbAction; |
|
36 class HsImageGridWidget; |
|
37 |
|
38 class HSUTILS_EXPORT XQAIWGetImageClient : public QObject |
|
39 { |
|
40 Q_OBJECT |
|
41 public: |
|
42 XQAIWGetImageClient(); |
|
43 ~XQAIWGetImageClient(); |
|
44 |
|
45 public slots: |
|
46 void fetch( QVariantMap filter, XQAIWMultimediaFlags flag); |
|
47 |
|
48 private slots: |
|
49 void imageSelected(const QString&); |
|
50 void requestCompleted(const QVariant& val); |
|
51 void imageSelectionCancelled(); |
|
52 |
|
53 signals: |
|
54 void fetchComplete( QStringList filesList); |
|
55 void fetchFailed( int errorCode ); |
|
56 |
|
57 private: |
|
58 void findImages(const QString &aDir, const QStringList &aFilters, QStringList &aFoundImages); |
|
59 private: |
|
60 QPointer<HsImageGridWidget> mImageGrid;//added |
|
61 HbAction *mBackAction;//added |
|
62 |
|
63 }; |
|
64 |
|
65 #endif /* XQAIWGETIMAGECLIENT_H_ */ |