qtinternetradio/ui/inc/irplaycontroller.h
changeset 5 0930554dc389
parent 3 ee64f059b8e1
child 8 3b03c28289e6
equal deleted inserted replaced
3:ee64f059b8e1 5:0930554dc389
    20 #include <QObject>
    20 #include <QObject>
    21 #include <hbglobal.h>
    21 #include <hbglobal.h>
    22 
    22 
    23 #include "irqenums.h"
    23 #include "irqenums.h"
    24 
    24 
    25 class HbProgressDialog;
       
    26 class IRApplication;
    25 class IRApplication;
    27 class IRQMediaPlayer;
    26 class IRQMediaPlayer;
    28 class IRQPreset;
    27 class IRQPreset;
    29 class IRQMetaData;
    28 class IRQMetaData;
    30 class IRQSongHistoryEngine;
    29 class IRQSongHistoryEngine;
    43     ~IRPlayController();
    42     ~IRPlayController();
    44 
    43 
    45     // Play a station
    44     // Play a station
    46     void connectToChannel(IRQPreset *aPreset, IRQConnectedFrom aConnectedFrom);
    45     void connectToChannel(IRQPreset *aPreset, IRQConnectedFrom aConnectedFrom);
    47 
    46 
    48     // Create a buffering dialog
       
    49     void createBufferingDialog(const QObject *aReceiver, const char *aFunc);
       
    50 
       
    51     // Close the buffering dialog
       
    52     void closeBufferingDialog();
       
    53 
       
    54     // Play control methods
    47     // Play control methods
    55     void resume();
    48     void resume();
    56     void stop(IRQTerminatedType aStopReason);
    49     void stop(IRQTerminatedType aStopReason);
    57     int getVolume() const;
    50     int getVolume() const;
    58     void setVolume(int aVolume);
    51     void setVolume(int aVolume);
    59     void enableStereo();
       
    60     void disableStereo();
       
    61 
    52 
    62     // Check the playing status
    53     // Check the playing status
    63     bool isPlaying() const;
    54     bool isPlaying() const;
    64 
    55 
    65     // Check the playing status
    56     // Check the stopped status
    66     bool isStopped() const;
    57     bool isStopped() const;
    67 
    58 
       
    59     // Check the idle status
       
    60     bool isIdle() const;
       
    61     
    68     // Get the preset of now playing
    62     // Get the preset of now playing
    69     IRQPreset * getNowPlayingPreset() const;
    63     IRQPreset * getNowPlayingPreset() const;
    70     
    64     
    71     QString getNowPlayingUrl() const;
    65     QString getNowPlayingUrl() const;
    72     int getNowPlayingBitRate() const;
    66     int getNowPlayingBitRate() const;
   123     
   117     
   124     IRQStatisticsReporter *iStatisticsReporter;
   118     IRQStatisticsReporter *iStatisticsReporter;
   125     IRQConnectedFrom iConnectedFrom;
   119     IRQConnectedFrom iConnectedFrom;
   126     bool iGetServerResult;
   120     bool iGetServerResult;
   127     
   121     
   128     HbProgressDialog *iBufferingDialog;
       
   129     IRQPreset *iNowPlayingPreset;
   122     IRQPreset *iNowPlayingPreset;
   130     // reference of IRQMediaPlayer meta data
   123     // reference of IRQMediaPlayer meta data
   131     IRQMetaData *iMetaData;
   124     IRQMetaData *iMetaData;
   132     IRQSongHistoryEngine *iSongHistoryEngine;
   125     IRQSongHistoryEngine *iSongHistoryEngine;
   133 
   126