searchui/stateproviders/searchstateprovider/inc/searchsettingsstate.h
changeset 9 4a2987baf8f7
parent 2 208a4ba3894c
child 26 367228f82b66
equal deleted inserted replaced
8:2f67eb14d003 9:4a2987baf8f7
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:  
    14  * Description:  
    15  *
    15  *
    16  */
    16  */
    17 
       
    18 #ifndef SEARCH_STATES_SETTINGS_H
    17 #ifndef SEARCH_STATES_SETTINGS_H
    19 #define SEARCH_STATES_SETTINGS_H
    18 #define SEARCH_STATES_SETTINGS_H
    20 
       
    21 #include <qstate.h>
    19 #include <qstate.h>
    22 #include <qabstractitemmodel.h>
    20 #include <qabstractitemmodel.h>
    23 #include "search_global.h"
    21 #include "search_global.h"
    24 
    22 #include <hbicon.h>
    25 SEARCH_CLASS( SearchStateProviderTest)
    23 SEARCH_CLASS( SearchStateProviderTest)
    26 
    24 
    27 class QGraphicsWidget;
    25 class QGraphicsWidget;
    28 class HbMainWindow;
    26 class HbMainWindow;
    29 class HbLabel;
    27 class HbLabel;
    83      */
    81      */
    84     void onExit(QEvent *event);
    82     void onExit(QEvent *event);
    85 
    83 
    86 private:
    84 private:
    87 
    85 
    88    
       
    89     /**
    86     /**
    90      * checking whether internet search is selected 
    87      * checking whether internet search is selected 
    91      * @since S60 ?S60_version.
    88      * @since S60 ?S60_version.
    92      */
    89      */
    93 
    90 
    94     void isInternetOn();
    91     void isInternetOn();
    95 public slots:
    92 public slots:
    96    /**
    93     /**
    97     * Called when it receive the selected category information from the settingwidget class
    94      * Called when it receive the selected category information from the settingwidget class
    98     * @since S60 ?S60_version.
    95      * @since S60 ?S60_version.
    99     */
    96      */
   100 
    97 
   101     void getItemCategory(int, bool);
    98     void getItemCategory(int, bool);
   102 
    99 
   103     /**
   100     /**
   104      * Signalled when back action is triggerd from toolbaar.
   101      * Signalled when back action is triggerd from toolbaar.
   105      * @since S60 ?S60_version.
   102      * @since S60 ?S60_version.
   106      */
   103      */
   107     void handleBackEvent(bool);
   104     void handleBackEvent(bool);
   108 
   105 
       
   106     void slotISProvidersIcon(HbIcon icon, int id);
       
   107 
   109 signals:
   108 signals:
   110 
   109 
   111     /**
   110     /**
   112      * Emitted when the menu state is to be activated.
   111      * Emitted when the menu state is to be activated.
   113      * @since S60 ?S60_version.
   112      * @since S60 ?S60_version.
   114      */
   113      */
   115     void backEventTriggered();
   114 
   116     
   115     void switchToProState();
       
   116 
       
   117     void settingslaunched();
       
   118 
   117     /**
   119     /**
   118      * Emitted when ok/cancel clicked on settings page
   120      * Emitted when ok/cancel clicked on settings page
   119      * @since S60 ?S60_version.
   121      * @since S60 ?S60_version.
   120      */
   122      */
   121     void clickstatus(bool);
   123     void clickstatus(bool);
   128 
   130 
   129     /**
   131     /**
   130      * Emitted when internet search is selectead 
   132      * Emitted when internet search is selectead 
   131      * @since S60 ?S60_version.
   133      * @since S60 ?S60_version.
   132      */
   134      */
   133     void customizeGoButton(bool);
   135     void switchToOnlineState();
       
   136 
       
   137     void publishISProviderIcon(int, HbIcon);
   134 
   138 
   135 private:
   139 private:
   136 
   140 
   137     /**
   141     /**
   138      * HbMainWindow instance.
   142      * HbMainWindow instance.
   152 
   156 
   153     bool minitialCount;
   157     bool minitialCount;
   154     /**
   158     /**
   155      * friend class for unit testing
   159      * friend class for unit testing
   156      */
   160      */
   157 SEARCH_FRIEND_CLASS    (SearchStateProviderTest)
   161     SEARCH_FRIEND_CLASS (SearchStateProviderTest)
   158     };
   162     };
   159 
   163 
   160 #endif //SEARCH_STATES_SETTINGS_H
   164 #endif //SEARCH_STATES_SETTINGS_H