1
/****************************************************************************
5
Copyright (C) 2005 Olivier Goffgart <ogoffart @ kde.org>
7
Distributed under the terms of the GNU General Public License version 2.
9
****************************************************************************/
11
#ifndef VOICE_RECORDER_H
12
#define VOICE_RECORDER_H
14
#include <QtGui/QFrame>
15
#include "voice_input_widget_ui.h"
19
class KAudioRecordStream ;
28
class VoiceRecorder : public Voice_input_widget_ui
33
VoiceRecorder(const Sound& sound_P, const QString &voiceId, QWidget *parent, const char *name);
38
enum State { sNotModified , sIncorrect, sModified };
40
inline State state() const
45
static bool init( KLibrary* lib );
46
typedef void (*arts_play_fun)( const QString& file );
49
void slotStopPressed();
50
void slotRecordPressed();
51
void slotPlayPressed();
56
void slotSoundRecorded(const Sound& sound);
60
SoundRecorder *_recorder;
63
KTemporaryFile *_tempFile;
65
static arts_play_fun arts_play;
68
} // namespace KHotKeys