equal
deleted
inserted
replaced
24 |
24 |
25 HOMESCREEN_TEST_CLASS(HomeScreenStatePluginTest) |
25 HOMESCREEN_TEST_CLASS(HomeScreenStatePluginTest) |
26 |
26 |
27 class QImage; |
27 class QImage; |
28 class HbView; |
28 class HbView; |
|
29 #ifdef Q_OS_SYMBIAN |
|
30 class HsImageFetcherClient; |
|
31 #else |
29 class XQAIWGetImageClient; |
32 class XQAIWGetImageClient; |
|
33 #endif |
30 |
34 |
31 class HsSelectBackgroundState : public QState |
35 class HsSelectBackgroundState : public QState |
32 { |
36 { |
33 Q_OBJECT |
37 Q_OBJECT |
34 |
38 |
39 signals: |
43 signals: |
40 void event_waitInput(); |
44 void event_waitInput(); |
41 |
45 |
42 private: |
46 private: |
43 Q_DISABLE_COPY(HsSelectBackgroundState) |
47 Q_DISABLE_COPY(HsSelectBackgroundState) |
44 bool saveImage(QImage &image, const QString &path, Qt::Orientation orientation); |
|
45 |
48 |
46 private slots: |
49 private slots: |
47 void action_selectWallpaper(); |
50 void action_selectWallpaper(); |
48 void action_disconnectImageFetcher(); |
51 void action_disconnectImageFetcher(); |
49 |
52 |
50 void onFetchComplete(QStringList imageStringList); |
53 void onFetchComplete(QStringList imageStringList); |
51 void onFetchFailed(int error); |
54 void onFetchFailed(int error); |
52 |
55 |
|
56 // for S60 API |
|
57 #ifdef Q_OS_SYMBIAN |
|
58 void fetchCompleted(const QString&); |
|
59 void fetchFailed(int, const QString&); |
|
60 #endif |
|
61 |
53 private: |
62 private: |
|
63 |
|
64 #ifdef Q_OS_SYMBIAN |
|
65 HsImageFetcherClient *mImageFetcher; |
|
66 #else |
54 XQAIWGetImageClient *mImageFetcher; |
67 XQAIWGetImageClient *mImageFetcher; |
|
68 #endif |
|
69 |
55 HbView *mSourceView; |
70 HbView *mSourceView; |
56 |
71 |
57 HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest) |
72 HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest) |
58 }; |
73 }; |
59 |
74 |