99 |
99 |
100 /** |
100 /** |
101 * To update the tool bar enable and disable icon |
101 * To update the tool bar enable and disable icon |
102 * id = This should be selected toolbar tab id |
102 * id = This should be selected toolbar tab id |
103 */ |
103 */ |
104 void updateToolBarIcon(int id); |
104 void updateToolBarIcon( int id ); |
105 |
105 |
106 /** |
106 /** |
107 * Enable the marking mode of the view to select multiple item |
107 * Enable the marking mode of the view to select multiple item |
108 */ |
108 */ |
109 void enterMarkingMode(qint32 viewId); |
109 void enterMarkingMode( qint32 viewId, qint32 commandId ); |
110 |
110 |
111 /** |
111 /** |
112 * Enable the normal mode of the view |
112 * Enable the normal mode of the view |
113 */ |
113 */ |
114 void exitMarkingMode(qint32 viewId); |
114 void exitMarkingMode( qint32 viewId ); |
115 |
115 |
116 /** |
116 /** |
117 * Pass the user action to the view |
117 * Pass the user action to the view |
118 */ |
118 */ |
119 void handleUserAction(qint32 viewId, qint32 commandId); |
119 void handleUserAction( qint32 viewId, qint32 commandId ); |
120 |
120 |
121 /** |
121 /** |
122 * Return the selection model to the user |
122 * Return the selection model to the user |
123 */ |
123 */ |
124 QItemSelectionModel * getSelectionModel(qint32 viewId); |
124 QItemSelectionModel * getSelectionModel( qint32 viewId ); |
125 |
125 |
126 /** |
126 /** |
127 * To set the model of current view |
127 * To set the model of current view |
128 */ |
128 */ |
129 void setModel( QAbstractItemModel *model ); |
129 void setModel( QAbstractItemModel *model ); |
130 |
130 |
131 signals : |
131 signals : |
132 /** |
132 /** |
133 * emit the user action |
133 * emit the user action |
134 */ |
134 */ |
135 void actionTriggered(qint32 id); |
135 void actionTriggered( qint32 id ); |
136 void externalCommand(int cmdId); |
136 void externalCommand( int cmdId ); |
137 |
137 |
138 public slots: |
138 public slots: |
139 /** |
139 /** |
140 * This public slot is used to launch the view |
140 * This public slot is used to launch the view |
141 */ |
141 */ |
142 void launchView (qint32 id, QAbstractItemModel *model); |
142 void launchView ( qint32 id, QAbstractItemModel *model ); |
143 |
143 |
144 /** |
144 /** |
145 * It is over load slot and used to run the animation for view transition and launch the view |
145 * It is over load slot and used to run the animation for view transition and launch the view |
146 */ |
146 */ |
147 void launchView (qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect); |
147 void launchView ( qint32 id, QAbstractItemModel *model, GlxEffect effect, GlxViewEffect viewEffect ); |
148 |
148 |
149 void launchProgressDialog( int maxValue ); |
149 void launchProgressDialog( int maxValue ); |
150 void updateProgressDialog( int currentValue); |
150 void updateProgressDialog( int currentValue ); |
151 |
151 |
152 /** |
152 /** |
153 * It will removed and deleted the view. |
153 * It will removed and deleted the view. |
154 * Currently It is not used so may be in future, It will be removed. |
154 * Currently It is not used so may be in future, It will be removed. |
155 */ |
155 */ |
156 void destroyView (qint32 id); |
156 void destroyView ( qint32 id ); |
157 |
157 |
158 /** |
158 /** |
159 * It will pass the user action to the state manager |
159 * It will pass the user action to the state manager |
160 */ |
160 */ |
161 void actionProcess(qint32 id); |
161 void actionProcess( qint32 id ); |
162 |
162 |
163 /** |
163 /** |
164 * It will pass the user selected menu action to state manager |
164 * It will pass the user selected menu action to state manager |
165 * check for depricated with actionProcess api |
165 * check for depricated with actionProcess api |
166 */ |
166 */ |
167 void handleMenuAction(qint32 commandId); |
167 void handleMenuAction( qint32 commandId ); |
168 |
168 |
169 /** |
169 /** |
170 * It will pass the user action ( tool bar + back ) to state manager |
170 * It will pass the user action ( tool bar + back ) to state manager |
171 */ |
171 */ |
172 void handleAction(); |
172 void handleAction(); |