qtinternetradio/ui/inc/irsearchchannelsview.h
changeset 17 38bbf2dcd608
parent 15 065198191975
equal deleted inserted replaced
16:5723da102db1 17:38bbf2dcd608
    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;
    24 class HbListView;
    25 class HbListView;
    25 class HbSearchPanel;
    26 class HbSearchPanel;
    26 class HbAction;
    27 class HbAction;
    27 class IrChannelModel; 
    28 class IrChannelModel; 
    28 class IRQPreset;
    29 class IRQPreset;
    29 class QTimer;
       
    30 
    30 
    31 class IRSearchChannelsView : public IRBaseView
    31 class IRSearchChannelsView : public IRBaseView
    32 {
    32 {
    33     Q_OBJECT
    33     Q_OBJECT
    34     
    34     
    51     void switch2LoadingState();
    51     void switch2LoadingState();
    52     void switch2InitState();  
    52     void switch2InitState();  
    53     void loadLayout();
    53     void loadLayout();
    54     void handleItemSelected();    
    54     void handleItemSelected();    
    55     void initMenu();
    55     void initMenu();
    56     void startConvert(int aIndex);   
    56     void resetHeadingText();
    57     void initTimer();
    57     
    58     bool eventFilter(QObject *object, QEvent *event);
    58     bool eventFilter(QObject *object, QEvent *event);
    59     
    59     
    60 private slots: //slots
    60 private slots: //slots
    61      
    61      
    62     void cancelRequest();
    62     void cancelRequest();
    65     void dataChanged();     
    65     void dataChanged();     
    66     void operationException(IRQError aError);    
    66     void operationException(IRQError aError);    
    67     void clickItem(const QModelIndex&);    
    67     void clickItem(const QModelIndex&);    
    68     //for playing a channel in the search result list
    68     //for playing a channel in the search result list
    69     void presetResponse(IRQPreset *aPreset);  
    69     void presetResponse(IRQPreset *aPreset);  
    70     //to start the convertion 
       
    71     void convertAnother();
       
    72     void presetLogoDownload(IRQPreset* aPreset);
       
    73     void presetLogoDownloadError();
       
    74     void hideVkb();
    70     void hideVkb();
    75     void showVkb();
    71     void showVkb();
    76 
    72 
    77 public slots:    
    73 public slots:    
    78     //this slot is used to back to previouse view or minimize the search widget
    74     //this slot is used to back to previouse view or minimize the search widget
    84     {
    80     {
    85         ESearch_init = 0,
    81         ESearch_init = 0,
    86         ESearch_Loading //loading means searching or buffering.
    82         ESearch_Loading //loading means searching or buffering.
    87     };    
    83     };    
    88     
    84     
       
    85     HbGroupBox          *iHeadingLabel;
    89     HbListView          *iListView;
    86     HbListView          *iListView;
    90     QString              iKeyText;
    87     QString              iKeyText;
    91     
    88     
    92     //default searchpanel is not progressive
    89     //default searchpanel is not progressive
    93     HbSearchPanel       *iSearchPanelWidget;
    90     HbSearchPanel       *iSearchPanelWidget;
    94     IRQSearchState       iSearchState;
    91     IRQSearchState       iSearchState;
    95     IrChannelModel      *iChannelModel;
    92     IrChannelModel      *iChannelModel;
    96     //the object is created by IsdsClient, but application is responsible for free
    93     //the object is created by IsdsClient, but application is responsible for free
    97     IRQPreset           *iPreset;
    94     IRQPreset           *iPreset;
    98     IRQPreset           *iLogoPreset;     
    95     IRQSettings         *iIRSettings;
    99     QTimer              *iConvertTimer;
    96     bool                 iFirstTime;
   100     QList<int>           iIconIndexArray;
       
   101     IRQSettings          *iSettings;    
       
   102     friend class IRViewManager;
    97     friend class IRViewManager;
   103 };
    98 };
   104 #endif //IRSEARCHCHANNELSVIEW_H
    99 #endif //IRSEARCHCHANNELSVIEW_H