qtinternetradio/ui/inc/irsearchchannelsview.h
changeset 12 608f67c22514
parent 11 f683e24efca3
child 14 896e9dbc5f19
equal deleted inserted replaced
11:f683e24efca3 12:608f67c22514
    18 #define IRSEARCHCHANNELSVIEW_H
    18 #define IRSEARCHCHANNELSVIEW_H
    19 
    19 
    20 #include "irqevent.h"
    20 #include "irqevent.h"
    21 #include "irbaseview.h"
    21 #include "irbaseview.h"
    22 #include "irqenums.h"
    22 #include "irqenums.h"
    23 
    23  
    24 class HbGroupBox;
       
    25 class HbListView;
    24 class HbListView;
    26 class HbSearchPanel;
    25 class HbSearchPanel;
    27 class HbAction;
    26 class HbAction;
    28 class IrChannelModel;
    27 class IrChannelModel; 
    29 class HbProgressDialog;
       
    30 class IRQPreset;
    28 class IRQPreset;
    31 class QTimer;
    29 class QTimer;
    32 
    30 
    33 class IRSearchChannelsView : public IRBaseView
    31 class IRSearchChannelsView : public IRBaseView
    34 {
    32 {
    57     void normalInit();
    55     void normalInit();
    58     void initMenu();
    56     void initMenu();
    59     void lazyInit();
    57     void lazyInit();
    60     void startConvert(int aIndex);   
    58     void startConvert(int aIndex);   
    61     void initTimer();
    59     void initTimer();
    62     //set the subtitle and counter;
    60     
    63     void setHeadingText(const QString &aText);
       
    64 private slots: //slots
    61 private slots: //slots
    65      
    62      
    66     void cancelRequest();
    63     void cancelRequest();
    67     void networkRequestNotified(IRQNetworkEvent aEvent); 
    64     void networkRequestNotified(IRQNetworkEvent aEvent); 
    68     void searchTextAlready(const QString& aSearchCriteria);
    65     void searchTextAlready(const QString& aSearchCriteria);
    73     void presetResponse(IRQPreset *aPreset);  
    70     void presetResponse(IRQPreset *aPreset);  
    74     //to start the convertion 
    71     //to start the convertion 
    75     void convertAnother();
    72     void convertAnother();
    76     void presetLogoDownload(IRQPreset* aPreset);
    73     void presetLogoDownload(IRQPreset* aPreset);
    77     void presetLogoDownloadError();
    74     void presetLogoDownloadError();
       
    75     
       
    76 public slots:    
    78     //this slot is used to back to previouse view or minimize the search widget
    77     //this slot is used to back to previouse view or minimize the search widget
    79     void minimizeSearchPanel();   
    78     void minimizeSearchPanel();   
    80     
    79     
    81 private: // members       
    80 private: // members       
    82     
    81     
    83     enum IRQSearchState
    82     enum IRQSearchState
    84     {
    83     {
    85         ESearch_init = 0,
    84         ESearch_init = 0,
    86         ESearch_Loading //loading means searching or buffering.
    85         ESearch_Loading //loading means searching or buffering.
    87     };    
    86     };    
    88     HbGroupBox          *iHeadingLabel;
    87     
    89     HbListView          *iListView;
    88     HbListView          *iListView;
    90     QString              iKeyText;
    89     QString              iKeyText;
    91     
    90     
    92     //default searchpanel is not progressive
    91     //default searchpanel is not progressive
    93     HbSearchPanel       *iSearchPanelWidget;
    92     HbSearchPanel       *iSearchPanelWidget;