34 class QGraphicsItem; |
34 class QGraphicsItem; |
35 class HbDocumentLoader; |
35 class HbDocumentLoader; |
36 class HbAbstractDataModel; |
36 class HbAbstractDataModel; |
37 |
37 |
38 //User Forward Declarations |
38 //User Forward Declarations |
39 class GlxSlideShowEffectEngine; |
39 class GlxEffectEngine; |
40 |
40 class GlxSettingInterface; |
41 |
41 |
42 #define NBR_ITEM 3 |
42 #define NBR_ITEM 3 |
43 typedef enum |
43 typedef enum |
44 { |
44 { |
45 UI_ON_EVENT, //send the signal when user tap on screen ( on the UI ) |
45 UI_ON_EVENT, //send the signal when user tap on screen ( on the UI ) |
46 UI_OFF_EVENT, //send the signal when user press continous button ( off the UI) |
46 UI_OFF_EVENT, //send the signal when user press continous button ( off the UI) |
47 EMPTY_DATA_EVENT //send the signal when model have no data |
47 EMPTY_DATA_EVENT, //send the signal when model have no data |
|
48 EFFECT_STARTED // sends the signal when effect is started. |
48 } GlxSlideShowEvent; |
49 } GlxSlideShowEvent; |
|
50 |
|
51 typedef enum |
|
52 { |
|
53 MOVE_FORWARD, |
|
54 MOVE_BACKWARD, |
|
55 } GlxSlideShowMoveDir; |
49 |
56 |
50 class GlxSlideShowWidget : public HbWidget |
57 class GlxSlideShowWidget : public HbWidget |
51 { |
58 { |
52 Q_OBJECT |
59 Q_OBJECT |
53 |
60 |
99 //clear all the model connection |
106 //clear all the model connection |
100 void clearCurrentModel(); |
107 void clearCurrentModel(); |
101 //add the connection to the model |
108 //add the connection to the model |
102 void initializeNewModel(); |
109 void initializeNewModel(); |
103 void resetSlideShow(); |
110 void resetSlideShow(); |
104 void setIconItems(int moveDir); |
111 void setIconItems( int moveDir ); |
105 void setItemPos(int moveDir); |
112 void moveImage( int nextIndex, int posX, const QString & move, char * callBack ); |
106 void moveImage(int nextIndex, int posX, const QString & move, char * callBack); |
|
107 void addConnections(); |
113 void addConnections(); |
108 void removeConnections(); |
114 void removeConnections(); |
109 |
115 |
110 private: |
116 private: |
111 GlxSlideShowEffectEngine *mEffectEngine; |
117 GlxEffectEngine *mEffectEngine; |
|
118 GlxSettingInterface *mSettings; //no ownership |
112 HbIconItem *mIconItems[NBR_ITEM]; |
119 HbIconItem *mIconItems[NBR_ITEM]; |
113 HbPushButton *mContinueButton; |
120 HbPushButton *mContinueButton; |
114 int mItemIndex; |
121 int mItemIndex; |
115 int mSelIndex; |
122 int mSelIndex; |
116 QTimer *mSlideTimer; |
123 QTimer *mSlideTimer; |