kwave  18.07.70
RecordController.h
Go to the documentation of this file.
1 /*************************************************************************
2  RecordController.h - controller/state matching for the audio recorder
3  -------------------
4  begin : Sat Oct 04 2003
5  copyright : (C) 2003 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef RECORD_CONTROLLER_H
19 #define RECORD_CONTROLLER_H
20 
21 #include "config.h"
22 
23 #include <QObject>
24 
25 #include "RecordState.h"
26 
27 namespace Kwave
28 {
29  class RecordController: public QObject
30  {
31  Q_OBJECT
32  public:
33 
36 
38  virtual ~RecordController();
39 
41  const char *stateName(const Kwave::RecordState state);
42 
43  public slots:
44 
50  void setInitialized(bool initialized);
51 
56  void setEmpty(bool empty);
57 
64  void enablePrerecording(bool enable);
65 
67  void actionReset();
68 
70  void actionStop();
71 
73  void actionPause();
74 
76  void actionStart();
77 
79  void deviceRecordStarted();
80 
82  void deviceBufferFull();
83 
85  void deviceTriggerReached();
86 
88  void deviceRecordStopped(int);
89 
91  void enableTrigger(bool enable);
92 
93  signals:
94 
96  void stateChanged(Kwave::RecordState state);
97 
99  void sigReset(bool &accepted);
100 
102  void sigStartRecord();
103 
105  void sigStopRecord(int errorcode);
106 
107  private:
108 
111 
117 
120 
123 
125  bool m_empty;
126 
127  };
128 }
129 
130 #endif /* RECORD_CONTROLLER_H */
131 
132 //***************************************************************************
133 //***************************************************************************
void enablePrerecording(bool enable)
Definition: App.h:33
const char * stateName(const Kwave::RecordState state)
void sigStopRecord(int errorcode)
void sigReset(bool &accepted)
void stateChanged(Kwave::RecordState state)
void enableTrigger(bool enable)
Kwave::RecordState m_state
Kwave::RecordState m_next_state
void setInitialized(bool initialized)
RecordState
Definition: RecordState.h:25