parley
audiowidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef AUDIOWIDGET_H
00017 #define AUDIOWIDGET_H
00018
00019
00020 #include "ui_audiowidget.h"
00021
00022 namespace Phonon
00023 {
00024 class MediaObject;
00025 }
00026
00027 class KEduVocExpression;
00028
00029 class AudioWidget : public QWidget, public Ui::AudioWidget
00030 {
00031 Q_OBJECT
00032 public:
00033 explicit AudioWidget(QWidget* parent = 0);
00034
00035 public slots:
00041 void setTranslation(KEduVocExpression* entry, int translation);
00042
00043 private slots:
00044 void slotAudioFileChanged(const QString & url);
00045 void playAudio();
00046
00047 void slotPlaybackFinished();
00048
00049 private:
00051 int m_currentTranslation;
00053 KEduVocExpression* m_entry;
00054
00055 Phonon::MediaObject* m_player;
00056 };
00057 #endif