searchui/stateproviders/searchstateprovider/inc/searchstateprovider.h
changeset 2 208a4ba3894c
parent 0 ccd0fd43f247
--- a/searchui/stateproviders/searchstateprovider/inc/searchstateprovider.h	Mon Apr 19 14:40:05 2010 +0300
+++ b/searchui/stateproviders/searchstateprovider/inc/searchstateprovider.h	Mon May 03 12:32:15 2010 +0300
@@ -18,11 +18,15 @@
 #ifndef SEARCH_STATEPROVIDERS_STATEPROVIDER_H
 #define SEARCH_STATEPROVIDERS_STATEPROVIDER_H
 
-#include "Search_global.h"
+#include "search_global.h"
+
+SEARCH_CLASS( SearchStateProviderTest)
 
-#include "hsistateprovider.h"
-
-class SearchStateProviderTest;
+#ifdef BUILD_SEARCHSTATEPROVIDER
+#define SEARCH_STATEPROVIDER Q_DECL_EXPORT
+#else
+#define SEARCH_STATEPROVIDER Q_DECL_IMPORT
+#endif
 
 class QState;
 
@@ -36,11 +40,10 @@
  * @lib Searchstateprovider
  * @since S60 ?S60_version.
  */
-class SearchStateProvider : public QObject, public IHsStateProvider
+class SEARCH_STATEPROVIDER SearchStateProvider : public QObject
     {
 
 Q_OBJECT
-Q_INTERFACES(IHsStateProvider)
 
 public:
 
@@ -49,24 +52,10 @@
      *
      * @since S60 ?S60_version.
      */
-    SearchStateProvider();
-
-    /**
-     * Destructor.
-     *
-     * @since S60 ?S60_version.
-     */
-    virtual ~SearchStateProvider();
+    SearchStateProvider(QObject *parent=NULL);    
+    
 
-public:
-
-    /**
-     * Returns contained states as a list of tokens.
-     *
-     * @return Contained states as a list of tokens.
-     * @since S60 ?S60_version.
-     */
-    QList<HsStateToken> states();
+public:   
 
     /**
      * Creates a state based on the given token.
@@ -74,20 +63,11 @@
      * @param aToken Identifies the state to be created.
      * @since S60 ?S60_version.
      */
-    QState* createState(const HsStateToken& aToken);
-
-private:
+    QState* createState(const QString& uri);
 
-    /**
-     * Token that describes the wizard menu state.
-     */
-    HsStateToken mInitStateToken;
+private:   
 
-    HsStateToken mWizardMenuStateToken;
-
-    HsStateToken mWizardActivatedStateToken;
-
-    friend class SearchStateProviderTest;
+    SEARCH_FRIEND_CLASS    ( SearchStateProviderTest)
     };
 
 #endif //SEARCH_STATEPROVIDERS_STATEPROVIDER_H