~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/Radio.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2007-12-31 09:49:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071231094954-ix1amvcsj9pk61ya
Tags: 1:1.4.1.57486.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #180254), remaining changes:
  - debian/rules;
    - Added dh_icons
  - Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *   You should have received a copy of the GNU General Public License     *
16
16
 *   along with this program; if not, write to the                         *
17
17
 *   Free Software Foundation, Inc.,                                       *
18
 
 *   51 Franklin Steet, Fifth Floor, Boston, MA  02111-1307, USA.          *
 
18
 *   51 Franklin Steet, Fifth Floor, Boston, MA  02110-1301, USA.          *
19
19
 ***************************************************************************/
20
20
 
21
21
#ifndef RADIO_H
24
24
#include "RadioPlaylist.h"
25
25
#include "AudioController.h"
26
26
#include "RadioEnums.h"
27
 
#include "stopwatch.h"
28
 
#include "lastfm_common.h"
 
27
#include "StopWatch.h"
 
28
#include "MooseCommon.h"
29
29
#include "StationUrl.h"
30
30
 
31
31
/*************************************************************************/ /**
54
54
    action depending on the current state.
55
55
    
56
56
******************************************************************************/
 
57
namespace The
 
58
{
 
59
    AudioController &audioController();
 
60
}
 
61
 
 
62
 
57
63
class Radio : public QObject
58
64
{
59
65
    Q_OBJECT
60
66
 
 
67
    friend AudioController &The::audioController();
 
68
 
61
69
public:
62
70
 
63
71
    Radio( QObject* parent );
131
139
 
132
140
    void
133
141
    setVolume( int vol ) { m_audioController.setVolume( vol ); }
134
 
    
135
 
    #ifdef MONITOR_STREAMING
136
 
        void
137
 
        activateStreamMonitor() { m_audioController.activateStreamMonitor(); }
138
 
    #endif
139
142
 
140
143
signals:
141
144
 
143
146
    stateChanged( RadioState newState );
144
147
 
145
148
    void
146
 
    error( RadioError errorCode,
147
 
           const QString& message );
 
149
    error( RadioError errorCode, const QString& message );
148
150
 
149
151
    /*********************************************************************/ /**
150
152
        See HttpInput header.
151
153
    **************************************************************************/
152
154
    void
153
 
    buffering( int size,
154
 
               int total );    
155
 
 
156
 
protected:
 
155
    buffering( int size, int total );
157
156
 
158
157
private:
159
 
 
160
158
    void
161
159
    handshake();
162
160
 
254
252
 
255
253
};
256
254
 
257
 
 
258
255
namespace The
259
256
{
260
257
    Radio &radio(); /// defined in Container.cpp
261
258
}
262
259
 
263
 
 
264
260
#endif // RADIO_H