Qmmp
volume.h
1 /***************************************************************************
2  * Copyright (C) 2012-2019 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef VOLUME_H
22 #define VOLUME_H
23 
24 #include <QObject>
25 #include "qmmp_export.h"
26 
31 {
36  {
37  left = 0;
38  right = 0;
39  }
40  int left ;
41  int right ;
42 };
43 
44 
48 class QMMP_EXPORT Volume : public QObject
49 {
50  Q_OBJECT
51 public:
55  virtual ~Volume(){}
61  virtual void setVolume(const VolumeSettings &volume) = 0;
65  virtual VolumeSettings volume() const = 0;
70  virtual bool hasNotifySignal() const;
71 
72 signals:
76  void changed();
77 };
78 
79 #endif // VOLUME_H
The VolumeSettings structure stores volume levels.
Definition: volume.h:30
The Volume class provides asbtract volume interface.
Definition: volume.h:48
int right
Definition: volume.h:41
VolumeSettings()
Definition: volume.h:35
virtual ~Volume()
Definition: volume.h:55
int left
Definition: volume.h:40