~ubuntu-branches/ubuntu/maverick/kdemultimedia/maverick-proposed

« back to all changes in this revision

Viewing changes to kmix/mixdevice.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 08:30:50 UTC
  • mfrom: (1.2.43 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525083050-8o3otjqjwsnzjb6h
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Bump kde-sc-dev-latest to 4.4.80
  - Update various .install files
  - Refresh all patches
  - Add build-depends on libswscale-dev, libavcodec-dev, and libavformat-dev
    for new video thumbnailer backends
  - Add a new ffmpegthumbs package for the new video thumbnailer
* Switch to source format 3.0 (quilt):
  - Bump debhelper build-depend version to 7.3.16 or greater

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
//KMix
25
25
class Mixer;
 
26
class MixSet;
26
27
#include "volume.h"
27
28
 
28
29
// KDE
99
100
    *  @par name is the readable name. This one is presented to the user in the GUI
100
101
    *  @par type The control type. It is only used to find an appropriate icon
101
102
    */
102
 
   MixDevice( Mixer* mixer, const QString& id, const QString& name, ChannelType type = UNKNOWN );
 
103
   MixDevice( Mixer* mixer, const QString& id, const QString& name, ChannelType type );
 
104
   MixDevice( Mixer* mixer, const QString& id, const QString& name, const QString& iconName = "", bool doNotRestore = false, MixSet* moveDestinationMixSet = 0 );
103
105
   ~MixDevice();
104
106
 
 
107
   const QString& iconName() const { return _iconName; }
 
108
 
105
109
   void addPlaybackVolume(Volume &playbackVol);
106
110
   void addCaptureVolume (Volume &captureVol);
107
111
   void addEnums (QList<QString*>& ref_enumList);
134
138
 
135
139
   bool isEnum()                   { return ( ! _enumValues.empty() ); }
136
140
 
 
141
   bool isMovable()                { return (0 != _moveDestinationMixSet); }
 
142
   MixSet *getMoveDestinationMixSet() { return _moveDestinationMixSet; }
137
143
 
138
144
   Volume& playbackVolume();
139
145
   Volume& captureVolume();
145
151
   virtual void read( KConfig *config, const QString& grp );
146
152
   virtual void write( KConfig *config, const QString& grp );
147
153
 
148
 
   ChannelType type() { return _type; }
149
 
 
150
154
private:
151
155
   Mixer *_mixer;
152
156
   Volume _playbackVolume;
154
158
   int _enumCurrentId;
155
159
   QList<QString> _enumValues; // A MixDevice, that is an ENUM, has these _enumValues
156
160
 
157
 
   ChannelType _type;
 
161
   bool _doNotRestore;
 
162
   MixSet *_moveDestinationMixSet;
 
163
   QString _iconName;
158
164
 
159
165
   QString _name;   // Channel name
160
166
   QString _id;     // Primary key, used as part in config file keys
161
167
 
162
 
   void readPlaybackOrCapture(const KConfigGroup& config, const char* nameLeftVolume, const char* nameRightVolume, bool capture);
163
 
   void writePlaybackOrCapture(KConfigGroup& config, const char* nameLeftVolume, const char* nameRightVolume, bool capture);
 
168
   void init( Mixer* mixer, const QString& id, const QString& name, const QString& iconName, bool doNotRestore, MixSet* moveDestinationMixSet );
 
169
   void readPlaybackOrCapture(const KConfigGroup& config, bool capture);
 
170
   void writePlaybackOrCapture(KConfigGroup& config, bool capture);
164
171
 
165
172
};
166
173