~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/core/backgroundstreams.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
#include "engines/engine_fwd.h"
10
10
 
 
11
class QAction;
 
12
 
11
13
class BackgroundStreams : public QObject {
12
14
  Q_OBJECT
13
15
 public:
22
24
  void EnableStream(const QString& name, bool enable);
23
25
  void SetStreamVolume(const QString& name, int volume);
24
26
 
25
 
  int GetStreamVolume(const QString& name);
26
 
  bool IsPlaying(const QString& name);
 
27
  int GetStreamVolume(const QString& name) const;
 
28
  bool IsPlaying(const QString& name) const;
27
29
 
28
 
 public slots:
29
 
  void MakeItRain(bool enable);
30
 
  void AllGloryToTheHypnotoad(bool enable);
 
30
  void AddAction(const QString& name, QAction* action);
31
31
 
32
32
 signals:
33
33
  void StreamStarted(const QString& name);
34
34
  void StreamStopped(const QString& name);
35
35
 
 
36
 private slots:
 
37
  void StreamActionToggled(bool checked);
 
38
  void StreamActionDestroyed();
 
39
 
36
40
 private:
37
41
  struct Stream {
 
42
    Stream() : volume(0), id(0), action(NULL) {}
 
43
 
38
44
    QString name;
39
45
    QUrl url;
40
46
    int volume;
41
47
    int id;
 
48
 
 
49
    QAction* action;
42
50
  };
43
51
 
44
52
  void AddStream(