45 UI_ON_EVENT, //send the signal when user tap on screen ( on the UI ) |
46 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) |
47 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 |
48 EMPTY_DATA_EVENT, //send the signal when model have no data |
48 EFFECT_STARTED // sends the signal when effect is started. |
49 EFFECT_STARTED // sends the signal when effect is started. |
49 } GlxSlideShowEvent; |
50 } GlxSlideShowEvent; |
50 |
|
51 typedef enum |
|
52 { |
|
53 MOVE_FORWARD, |
|
54 MOVE_BACKWARD, |
|
55 } GlxSlideShowMoveDir; |
|
56 |
51 |
57 class GlxSlideShowWidget : public HbWidget |
52 class GlxSlideShowWidget : public HbWidget |
58 { |
53 { |
59 Q_OBJECT |
54 Q_OBJECT |
60 |
55 |
106 //clear all the model connection |
101 //clear all the model connection |
107 void clearCurrentModel(); |
102 void clearCurrentModel(); |
108 //add the connection to the model |
103 //add the connection to the model |
109 void initializeNewModel(); |
104 void initializeNewModel(); |
110 void resetSlideShow(); |
105 void resetSlideShow(); |
111 void setIconItems( 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 ); |
113 void addConnections(); |
107 void addConnections(); |
114 void removeConnections(); |
108 void removeConnections(); |
|
109 |
|
110 /* |
|
111 * To get the focus index |
|
112 */ |
|
113 int getFocusIndex( ); |
|
114 |
|
115 /* |
|
116 * To get the full screen icon of the image |
|
117 */ |
|
118 HbIcon getIcon( int index ); |
|
119 |
|
120 /* |
|
121 * To check the itemis corrupted or not |
|
122 */ |
|
123 bool isCorrupt( int index ); |
|
124 |
|
125 /* |
|
126 * To set the current ( focus ) item icon |
|
127 */ |
|
128 bool setFocusItemIcon(); |
|
129 |
|
130 /* |
|
131 * To set the next itme icon in the list |
|
132 */ |
|
133 bool setNextItemIcon(); |
|
134 |
|
135 /* |
|
136 * To set the previous icon in the list |
|
137 */ |
|
138 bool setPreItemIcon(); |
|
139 |
|
140 /* |
|
141 * In the case of all the image are corrupted then show the error notes |
|
142 */ |
|
143 void showErrorNote(); |
|
144 |
|
145 /* |
|
146 * It will hide the corrupted images note |
|
147 */ |
|
148 void hideErrorNote(); |
115 |
149 |
116 private: |
150 private: |
117 GlxEffectEngine *mEffectEngine; |
151 GlxEffectEngine *mEffectEngine; |
118 GlxSettingInterface *mSettings; //no ownership |
152 GlxSettingInterface *mSettings; //no ownership |
119 HbIconItem *mIconItems[NBR_ITEM]; |
153 HbIconItem *mIconItems[ NBR_ITEM ]; |
120 HbPushButton *mContinueButton; |
154 HbPushButton *mContinueButton; |
|
155 HbLabel *mErrorNote ; //when all the image are corrupted then show the no image label |
121 int mItemIndex; |
156 int mItemIndex; |
122 int mSelIndex; |
157 int mSelIndex[ NBR_ITEM ]; |
123 QTimer *mSlideTimer; |
158 QTimer *mSlideTimer; |
124 QAbstractItemModel *mModel; |
159 QAbstractItemModel *mModel; |
125 QRect mScreenRect; |
160 QRect mScreenRect; |
126 QList <QGraphicsItem *> mItemList; |
161 QList <QGraphicsItem *> mItemList; |
127 bool mIsPause; |
162 bool mIsPause; |
|
163 int mSlideShowItemCount; |
128 }; |
164 }; |
129 |
165 |
130 #endif /* GLXSLIDESHOWWIDGET_H */ |
166 #endif /* GLXSLIDESHOWWIDGET_H */ |