--- a/searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h Wed Jun 23 18:13:49 2010 +0300
+++ b/searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h Tue Jul 06 14:17:22 2010 +0300
@@ -18,7 +18,6 @@
#ifndef PROGRESSIVE_SEARCH_STATE_H
#define PROGRESSIVE_SEARCH_STATE_H
-#include <qabstractitemmodel.h>
#include <qstate.h>
#include <qstringlist.h>
#include <qdatetime.h>
@@ -30,10 +29,7 @@
#include "search_global.h"
#include <f32file.h>
-
-
#ifdef OST_TRACE_COMPILER_IN_USE //defined in Search_global.h
-
#define PERF_CAT_API_TIME_RESTART m_categorySearchApiTime.restart();
#define PERF_CAT_UI_TIME_RESTART m_categorySearchUiTime.restart();
#define PERF_CAT_TOTAL_TIME_RESTART m_totalSearchUiTime.restart();
@@ -67,15 +63,15 @@
#endif //OST_TRACE_COMPILER_IN_USE
class HbMainWindow;
class HbView;
-class HbListView;
class HbDocumentLoader;
-class QStandardItemModel;
class HbSearchPanel;
class CFbsBitmap;
class InDeviceHandler;
class QCPixDocument;
class NotesEditorInterface;
class EventViewerPluginInterface;
+class HbListWidget;
+class HbListWidgetItem;
class QPluginLoader;
SEARCH_CLASS( SearchStateProviderTest)
/** @ingroup group_searchstateprovider
@@ -176,7 +172,7 @@
* @since S60 ?S60_version.
* @param aIndex index of the activated item.
*/
- void openResultitem(QModelIndex aIndex);
+ void openResultitem(HbListWidgetItem * item);
/**
* slot connects to settings state to get the selected category information
@@ -200,12 +196,6 @@
void startNewSearch(const QString &aKeyword);
/**
- * slot connects to search state for internet search
- * @since S60 ?S60_version.
- */
- void _customizeGoButton(bool avalue);
-
- /**
* slot implemented to avoid repeated search for the same category
* selection when user search for mutiple times
* @since S60 ?S60_version.
@@ -232,11 +222,13 @@
*/
void _viewingCompleted();
-
void viewReady();
+
+ void slotOnlineQuery(QString);
+
+ void slotISProvidersIcon(int, HbIcon);
-
private:
/**
@@ -264,7 +256,7 @@
*
* @param aKeyword search keyword.
*/
- void createSuggestionLink(bool aFlag);
+ void createSuggestionLink();
/**
* Function to include corrrect Qimage format to be taken from bitmap
@@ -319,8 +311,11 @@
* Signalled when user selects an to switch the settings state
* setting state will be activated.
*/
- void settingsState();
+ void switchProToSettingsState();
+
+ void inDeviceSearchQuery(QString);
+ void launchLink(int,QString);
private:
HbMainWindow* mMainWindow;
@@ -335,7 +330,7 @@
* The List View widget.
* Own.
*/
- HbListView* mListView;
+ HbListWidget* mListView;
/**
* Document handler to load .docml.
@@ -349,11 +344,7 @@
*/
HbSearchPanel* mSearchPanel;
- /**
- * model for list view
- * Own.
- */
- QStandardItemModel* mModel;
+
/**
* qt interface for CPix engine
@@ -453,6 +444,10 @@
*
*/
QPluginLoader *mNotespluginLoader;
+
+ QMap<int, HbIcon> mISprovidersIcon;
+
+ bool mOnlineQueryAvailable;
private:
/**
@@ -479,10 +474,10 @@
QTime m_categoryGetDocumentApiTime;
QTime m_resultItemLaunchTime;
//use long to safeguard overflow from long running operations.
- long m_getDocumentCatergoryTimeAccumulator;
+ long m_getDocumentCatergoryTimeAccumulator;
#endif
-SEARCH_FRIEND_CLASS (SearchStateProviderTest)
+ SEARCH_FRIEND_CLASS (SearchStateProviderTest)
};