qtinternetradio/ui/inc/irplaycontroller.h
changeset 3 ee64f059b8e1
parent 2 2e1adbfc62af
child 5 0930554dc389
equal deleted inserted replaced
2:2e1adbfc62af 3:ee64f059b8e1
    65     // Check the playing status
    65     // Check the playing status
    66     bool isStopped() const;
    66     bool isStopped() const;
    67 
    67 
    68     // Get the preset of now playing
    68     // Get the preset of now playing
    69     IRQPreset * getNowPlayingPreset() const;
    69     IRQPreset * getNowPlayingPreset() const;
       
    70     
       
    71     QString getNowPlayingUrl() const;
       
    72     int getNowPlayingBitRate() const;
    70 
    73 
    71     // Get the meta data
    74     // Get the meta data
    72     IRQMetaData * getMetaData() const;
    75     IRQMetaData * getMetaData() const;
    73     
    76     
    74     IRQTerminatedType getStopReason() const;
    77     IRQTerminatedType getStopReason() const;
   118     IRApplication *iApplication;
   121     IRApplication *iApplication;
   119     IRQMediaPlayer *iMediaPlayer;
   122     IRQMediaPlayer *iMediaPlayer;
   120     
   123     
   121     IRQStatisticsReporter *iStatisticsReporter;
   124     IRQStatisticsReporter *iStatisticsReporter;
   122     IRQConnectedFrom iConnectedFrom;
   125     IRQConnectedFrom iConnectedFrom;
   123     bool iSessionStarted;
       
   124     bool iGetServerResult;
   126     bool iGetServerResult;
   125     
   127     
   126     HbProgressDialog *iBufferingDialog;
   128     HbProgressDialog *iBufferingDialog;
   127     IRQPreset *iNowPlayingPreset;
   129     IRQPreset *iNowPlayingPreset;
   128     // reference of IRQMediaPlayer meta data
   130     // reference of IRQMediaPlayer meta data
   130     IRQSongHistoryEngine *iSongHistoryEngine;
   132     IRQSongHistoryEngine *iSongHistoryEngine;
   131 
   133 
   132     enum EPlayState
   134     enum EPlayState
   133     {
   135     {
   134         //initial state
   136         //initial state
   135         EStopped = 0,
   137         EIdle = 0,
       
   138         //a station has been stopped
       
   139         EStopped,
   136         //connecting station and buffering
   140         //connecting station and buffering
   137         EBuffering,
   141         EBuffering,
   138         //playing
   142         //playing
   139         EPlaying
   143         EPlaying
   140     };
   144     };