qtinternetradio/ui/inc/irstationsview.h
changeset 15 065198191975
parent 12 608f67c22514
equal deleted inserted replaced
14:896e9dbc5f19 15:065198191975
    20  
    20  
    21 #include "irabstractlistviewbase.h"
    21 #include "irabstractlistviewbase.h"
    22 #include "irqevent.h"
    22 #include "irqevent.h"
    23  
    23  
    24 class IRQPreset;
    24 class IRQPreset;
    25 class IrChannelModel;
    25 class IRChannelDataProvider;
    26 class QTimer;
    26 class QTimer;
    27 
    27 
    28 class IRStationsView : public IrAbstractListViewBase
    28 class IRStationsView : public IrAbstractListViewBase
    29 {
    29 {
    30     Q_OBJECT
    30     Q_OBJECT
    44     void itemAboutToBeSelected(bool &aNeedNetwork);
    44     void itemAboutToBeSelected(bool &aNeedNetwork);
    45 #endif
    45 #endif
    46     
    46     
    47 private slots:  
    47 private slots:  
    48     void presetResponse(IRQPreset *aPreset);
    48     void presetResponse(IRQPreset *aPreset);
    49     
    49    
    50     void presetLogoDownload(IRQPreset* aPreset);
       
    51     
       
    52     void presetLogoDownloadError();
       
    53     
       
    54     void networkRequestNotified(IRQNetworkEvent aEvent);
    50     void networkRequestNotified(IRQNetworkEvent aEvent);
    55     
    51     
    56     void dataChanged();
    52     void dataChanged();
    57     
    53     
    58     //used for connect signal from isds client
    54     //used for connect signal from isds client
    59     void operationException(IRQError aError);
    55     void operationException(IRQError aError);
    60     
       
    61     //to start the convertion 
       
    62     void convertAnother();
       
    63     
    56     
    64     void connectTimeOut(); 
    57     void connectTimeOut(); 
    65   
    58   
    66     void cancelRequest();
    59     void cancelRequest();
    67     
    60     
    68 private:
    61 private:
    69     void resetCurrentItem();
    62     void resetCurrentItem();
    70     void storeCurrentItem();
    63     void storeCurrentItem();
    71     void handleItemSelected();
    64     void handleItemSelected();
    72     
    65     
    73     void startConvert(int aIndex); 
       
    74     
       
    75     void cleanupResource();   
       
    76     
       
    77     void connectToIsdsClient();
    66     void connectToIsdsClient();
    78     
    67     
    79     void disconnectIsdsClient();
    68     void disconnectIsdsClient();
    80     
    69     
    81 private:
    70 private:
    82     IRQPreset *iLogoPreset;
       
    83     IRQPreset *iPreset; //the object is created by IsdsClient, but application is responsible for free
    71     IRQPreset *iPreset; //the object is created by IsdsClient, but application is responsible for free
    84     int iLastSelectitem;
    72     int iLastSelectitem;
    85     
    73     
    86     //the following are used to support the img
    74     IRChannelDataProvider *iDataProvider;
    87     QList<int> iIconIndexArray;
       
    88     IrChannelModel *iChannelModel;
       
    89     QTimer *iConnectTimer;
    75     QTimer *iConnectTimer;
    90     
    76     
    91     friend class IRViewManager;
    77     friend class IRViewManager;
    92 };
    78 };
    93 
    79