equal
deleted
inserted
replaced
18 #ifndef NMATTACHMENTPICKER_H_ |
18 #ifndef NMATTACHMENTPICKER_H_ |
19 #define NMATTACHMENTPICKER_H_ |
19 #define NMATTACHMENTPICKER_H_ |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 |
22 |
23 #define IMAGE_FETCHER_INTERFACE "Image" |
|
24 #define AUDIO_FETCHER_INTERFACE "com.nokia.services.media.Music" |
|
25 |
|
26 #define IMAGE_FETCHER_OPERATION "fetch(QVariantMap,QVariant)" |
|
27 #define AUDIO_FETCHER_OPERATION "fetch(QString)" |
|
28 |
|
29 class XQAiwRequest; |
23 class XQAiwRequest; |
30 |
24 |
31 /** |
25 /** |
32 * This class manages launching of different attachment pickers |
26 * This class manages launching of different attachment pickers |
33 * |
27 * |
42 |
36 |
43 public slots: |
37 public slots: |
44 void fetchImage(); |
38 void fetchImage(); |
45 void fetchAudio(); |
39 void fetchAudio(); |
46 void fetchVideo(); |
40 void fetchVideo(); |
47 void fetchOther(); |
41 void fetchOther(); |
|
42 void fetchCameraStill(); |
|
43 void fetchCameraVideo(); |
48 |
44 |
49 signals: |
45 signals: |
50 void attachmentsFetchOk(const QVariant& fileNames); |
46 void attachmentsFetchOk(const QVariant& fileNames); |
51 void attachmentsFetchError(int errorCode, const QString& errorMessage); |
47 void attachmentsFetchError(int errorCode, const QString& errorMessage); |
52 |
48 |
53 private: |
49 private: |
54 void fetch(const QString& interface, const QString& operation); |
50 void fetch(const QString& interface, const QString& operation, |
|
51 const QList<QVariant>* args = 0); |
|
52 void fetchFromCamera(int mode); |
55 |
53 |
56 private: |
54 private: |
57 XQAiwRequest *mRequest; |
55 XQAiwRequest *mRequest; |
58 }; |
56 }; |
59 |
57 |