summaryrefslogtreecommitdiff
path: root/core/applets/volumeapplet/volume.h
Side-by-side diff
Diffstat (limited to 'core/applets/volumeapplet/volume.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/volume.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/core/applets/volumeapplet/volume.h b/core/applets/volumeapplet/volume.h
index 5704cad..cb0be72 100644
--- a/core/applets/volumeapplet/volume.h
+++ b/core/applets/volumeapplet/volume.h
@@ -27,2 +27,3 @@
#include <qguardedptr.h>
+#include <qtimer.h>
@@ -35,3 +36,3 @@ class VolumeControl : public QFrame
public:
- VolumeControl( QWidget *parent=0, const char *name=0 );
+ VolumeControl( bool showMic=FALSE, QWidget *parent=0, const char *name=0 );
@@ -39,2 +40,3 @@ public:
QSlider *slider;
+ QSlider *mic;
QCheckBox *muteBox;
@@ -43,2 +45,3 @@ private:
void keyPressEvent( QKeyEvent * );
+ void createView(bool showMic = FALSE);
};
@@ -56,10 +59,24 @@ public slots:
void volumeChanged( bool muted );
+ void micChanged( bool muted );
+
void setVolume( int percent );
+ void setMic( int percent );
+
void sliderMoved( int percent );
+ void micMoved( int percent );
void mute( bool );
+ void showVolControl(bool showMic = FALSE);
+ void advVolControl();
+
private:
void readSystemVolume();
+ void readSystemMic();
+
void writeSystemVolume();
+ void writeSystemMic();
+
+ void keyPressEvent ( QKeyEvent * e );
void mousePressEvent( QMouseEvent * );
+ void mouseReleaseEvent( QMouseEvent *);
void paintEvent( QPaintEvent* );
@@ -67,5 +84,6 @@ private:
private:
- int volumePercent;
- bool muted;
+ int volumePercent, micPercent;
+ bool muted, micMuted;
QPixmap volumePixmap;
+ QTimer *advancedTimer;
};