--- a/searchui/stateproviders/searchstateprovider/inc/settingswidget.h Wed Jun 23 17:22:18 2010 +0100
+++ b/searchui/stateproviders/searchstateprovider/inc/settingswidget.h Mon Jun 28 11:03:15 2010 +0530
@@ -21,6 +21,8 @@
#include <qlist.h>
#include <hbgridview.h>
#include <search_global.h>
+#include <hbicon.h>
+class OnlineHandler;
class HbCheckBox;
class HbDialog;
class QSignalMapper;
@@ -73,7 +75,7 @@
*
*/
void loadDeviceSettings();
-
+
/**
* Load default settings for search categories to ini file
*
@@ -91,27 +93,30 @@
*
*/
void storeDefaultSettings();
-
+
/**
* setting up gui for the settings widget
*/
void createGui();
-
+
/**
* Filter out categories from the sql database provided by the engine
* for only those categories that have been successfully harvested
*/
void preparecategories();
-
-
+
/**
- * initilize the settings wizard while entering to the setting state
- */
+ * initilize the settings wizard while entering to the setting state
+ */
void initialize();
-
+
+ void setSettingsFilePath();
+
+ void loadIS();
+
public slots:
/**
* will be called when settings OK is clicked
@@ -126,10 +131,16 @@
*/
void itemChecked(int);
/**
- * slot called while clicking items added to the combobox
- */
+ * slot called while clicking items added to the combobox
+ */
void q_currentIndexChanged(int);
+
+ void slotproviderDetails(QString, HbIcon, int);
+
+ void slotdefaultProvider(const int);
+
+ void slotitemSelected(int);
signals:
/**
* Emitted when setting closed
@@ -146,6 +157,8 @@
*
*/
void selectedItemCategory(int, bool);
+
+ void ISProvidersIcon(HbIcon,int);
private:
/**
@@ -177,30 +190,30 @@
QStringList mDeviceListDisplay;
/**
- * list of hardcoded device categories:cretaed to
- * set up default category values to the ini file
- */
+ * list of hardcoded device categories:cretaed to
+ * set up default category values to the ini file
+ */
QStringList mDeviceCategoryRefList;
/**
- * intermediate variable to store selected category values
- */
+ * intermediate variable to store selected category values
+ */
QList<bool> mDeviceMapping;
/**
* list of hardcoded service providers
*/
- QStringList internetCategoryList;
+ //QStringList internetCategoryList;
/**
* for unit testing
*/
QStringList mCategoryList;
/**
- * DocumentLoader variable for the setting widget
- */
+ * DocumentLoader variable for the setting widget
+ */
HbDocumentLoader* mDocumentLoader;
-
+
/**
* Dataform for the settingwidget
*/
@@ -208,12 +221,12 @@
HbDataForm* dataform;
/**
- * Dataform model
- */
+ * Dataform model
+ */
HbDataFormModel* mModel;
/**
- * variable for customizing each item the in the dataform
- */
+ * variable for customizing each item the in the dataform
+ */
QList<HbDataFormModelItem*> mModelItemList;
@@ -223,18 +236,24 @@
int mSelectedProvider;
/**
- * Radio buttion list for internet search categories
- */
+ * Radio buttion list for internet search categories
+ */
HbRadioButtonList* mradiolist;
-
+
/**
* combobox items
- */
- HbComboBox *comboBox ;
+ */
+ HbComboBox *comboBox;
bool mInstialize;
bool mchangestate;
+
+ OnlineHandler *mInternetHandler;
+ // QStringList mServiceProviders;
+ QMap<int, QString> mServiceProviders;
+
+ QString mSettingFileName;
SEARCH_FRIEND_CLASS (SearchStateProviderTest)
};
#endif