soundwidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef SOUNDWIDGET_H
00025 #define SOUNDWIDGET_H
00026
00027 #include <qwidget.h>
00028
00029 #include <kabc/sound.h>
00030
00031 class KURLRequester;
00032
00033 class QCheckBox;
00034 class QPushButton;
00035
00036 class SoundWidget : public QWidget
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 SoundWidget( QWidget *parent, const char *name = 0 );
00042 ~SoundWidget();
00043
00047 void setSound( const KABC::Sound &sound );
00048
00052 KABC::Sound sound() const;
00053
00054 void setReadOnly( bool readOnly );
00055
00056 signals:
00057 void changed();
00058
00059 private slots:
00060 void playSound();
00061 void loadSound();
00062 void updateGUI();
00063 void urlChanged( const QString& );
00064
00065 private:
00066 KURLRequester *mSoundUrl;
00067
00068 QCheckBox *mUseSoundUrl;
00069 QPushButton *mPlayButton;
00070
00071 KABC::Sound mSound;
00072 bool mReadOnly;
00073 };
00074
00075 #endif
This file is part of the documentation for kaddressbook Library Version 3.2.2.