1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
/***************************************************************************
reccfg_interfaces.h - description
-------------------
begin : Sun May 01 2005
copyright : (C) 2005 by Martin Witte
email : witte@kawo1.rwth-aachen.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KRADIO_RECCFG_INTERFACES_H
#define KRADIO_RECCFG_INTERFACES_H
#include "../../src/include/interfaces.h"
#include "recording-config.h"
INTERFACE(IRecCfg, IRecCfgClient)
{
public:
IF_CON_DESTRUCTOR(IRecCfg, -1)
RECEIVERS:
IF_RECEIVER( setEncoderBuffer (size_t BufferSize, size_t BufferCount) )
IF_RECEIVER( setSoundFormat (const SoundFormat &sf) )
IF_RECEIVER( setMP3Quality (int q) )
IF_RECEIVER( setOggQuality (float q) )
IF_RECEIVER( setRecordingDirectory(const QString &dir) )
IF_RECEIVER( setOutputFormat (RecordingConfig::OutputFormat of) )
IF_RECEIVER( setPreRecording (bool enable, int seconds) )
IF_RECEIVER( setRecordingConfig (const RecordingConfig &cfg) )
SENDERS:
IF_SENDER ( notifyEncoderBufferChanged (size_t BufferSize, size_t BufferCount) )
IF_SENDER ( notifySoundFormatChanged (const SoundFormat &sf) )
IF_SENDER ( notifyMP3QualityChanged (int q) )
IF_SENDER ( notifyOggQualityChanged (float q) )
IF_SENDER ( notifyRecordingDirectoryChanged(const QString &dir) )
IF_SENDER ( notifyOutputFormatChanged (RecordingConfig::OutputFormat of) )
IF_SENDER ( notifyPreRecordingChanged (bool enable, int seconds) )
IF_SENDER ( notifyRecordingConfigChanged (const RecordingConfig &cfg) )
ANSWERS:
IF_ANSWER ( void getEncoderBuffer(size_t &BufferSize, size_t &BufferCount) const )
IF_ANSWER ( const SoundFormat &getSoundFormat () const )
IF_ANSWER ( int getMP3Quality () const )
IF_ANSWER ( float getOggQuality () const )
IF_ANSWER ( const QString &getRecordingDirectory() const )
IF_ANSWER ( RecordingConfig::OutputFormat getOutputFormat() const )
IF_ANSWER ( bool getPreRecording(int &seconds) const )
IF_ANSWER ( const RecordingConfig &getRecordingConfig() const )
};
INTERFACE(IRecCfgClient, IRecCfg)
{
public:
IF_CON_DESTRUCTOR(IRecCfgClient, 1)
SENDERS:
IF_SENDER ( sendEncoderBuffer (size_t BufferSize, size_t BufferCount) )
IF_SENDER ( sendSoundFormat (const SoundFormat &sf) )
IF_SENDER ( sendMP3Quality (int q) )
IF_SENDER ( sendOggQuality (float q) )
IF_SENDER ( sendRecordingDirectory(const QString &dir) )
IF_SENDER ( sendOutputFormat (RecordingConfig::OutputFormat of) )
IF_SENDER ( sendPreRecording (bool enable, int seconds) )
IF_SENDER ( sendRecordingConfig (const RecordingConfig &cfg) )
RECEIVERS:
IF_RECEIVER( noticeEncoderBufferChanged (size_t BufferSize, size_t BufferCount) )
IF_RECEIVER( noticeSoundFormatChanged (const SoundFormat &sf) )
IF_RECEIVER( noticeMP3QualityChanged (int q) )
IF_RECEIVER( noticeOggQualityChanged (float q) )
IF_RECEIVER( noticeRecordingDirectoryChanged(const QString &dir) )
IF_RECEIVER( noticeOutputFormatChanged (RecordingConfig::OutputFormat of) )
IF_RECEIVER( noticePreRecordingChanged (bool enable, int seconds) )
IF_RECEIVER( noticeRecordingConfigChanged (const RecordingConfig &cfg) )
QUERIES:
IF_QUERY ( void queryEncoderBuffer(size_t &BufferSize, size_t &BufferCount) )
IF_QUERY ( const SoundFormat &querySoundFormat () )
IF_QUERY ( int queryMP3Quality () )
IF_QUERY ( float queryOggQuality () )
IF_QUERY ( const QString &queryRecordingDirectory() )
IF_QUERY ( RecordingConfig::OutputFormat queryOutputFormat() )
IF_QUERY ( bool queryPreRecording(int &seconds) )
IF_QUERY ( const RecordingConfig &queryRecordingConfig() )
RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);
virtual void noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/);
};
#endif
|