|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Telephony Multimedia Service - TestApp |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef QTTMSTESTAPP_H |
|
19 #define QTTMSTESTAPP_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QWidget> |
|
23 #include <QtGui/QMainWindow> |
|
24 #include <QtCore> |
|
25 #include <QtGui> |
|
26 #include <QTextEdit> |
|
27 #include <QAction> |
|
28 #include <QMenu> |
|
29 #include <QMenubar> |
|
30 //#include "mtmstestengine.h" |
|
31 |
|
32 // Forward declaration |
|
33 class MTmsTestEngine; |
|
34 // |
|
35 // Class declaration |
|
36 // |
|
37 class TmsTestApp : public QMainWindow |
|
38 { |
|
39 Q_OBJECT |
|
40 public: |
|
41 TmsTestApp(QWidget *parent = 0); |
|
42 |
|
43 ~TmsTestApp(); |
|
44 |
|
45 protected: |
|
46 |
|
47 private slots: |
|
48 |
|
49 void qtmsengineslot(); |
|
50 void tmsengineslot(); |
|
51 |
|
52 void cscallslot(); |
|
53 void ipcallslot(); |
|
54 |
|
55 void strmdnstartslot(); |
|
56 void strmdnstopslot(); |
|
57 void strmdncloseslot(); |
|
58 void strmupstartslot(); |
|
59 void strmupstopslot(); |
|
60 void strmupcloseslot(); |
|
61 |
|
62 |
|
63 void globalvolslot(); |
|
64 void globalmaxvolslot(); |
|
65 void globalsetvolslot(); |
|
66 |
|
67 void globalgainslot(); |
|
68 void globalmaxgainslot(); |
|
69 void globalsetgainslot(); |
|
70 |
|
71 void stmgainslot(); |
|
72 void stmmaxgainslot(); |
|
73 void stmsetgainslot(); |
|
74 void stmmutegainslot(); |
|
75 |
|
76 void stmvolslot(); |
|
77 void stmmaxvolslot(); |
|
78 void stmsetvolslot(); |
|
79 void stmmutevolslot(); |
|
80 |
|
81 void handsetslot(); |
|
82 void loudspkrslot(); |
|
83 void wiredslot(); |
|
84 void btslot(); |
|
85 void ttyslot(); |
|
86 void currentoutputslot(); |
|
87 void availoutputslot(); |
|
88 |
|
89 void dtmfdninitslot(); |
|
90 void dtmfdnplayslot(); |
|
91 void dtmfdnstopslot(); |
|
92 void dtmfupinitslot(); |
|
93 void dtmfupplayslot(); |
|
94 void dtmfupstopslot(); |
|
95 |
|
96 void inbandbusyslot(); |
|
97 void inbandpathnotavilslot(); |
|
98 void inbandcongestionslot(); |
|
99 void inbandspecialinfoslot(); |
|
100 void inbandremotealertslot(); |
|
101 void inbanddatacallslot(); |
|
102 void inbandcallwaitslot(); |
|
103 void inbandreorderslot(); |
|
104 void inbandnoseqslot(); |
|
105 void inbandbeepseqslot(); |
|
106 void inbandstopslot(); |
|
107 |
|
108 void downlinkformatsslot(); |
|
109 void pcmdecslot(); |
|
110 void amrdecslot(); |
|
111 void g711decslot(); |
|
112 void g729decslot(); |
|
113 void ilbcdecslot(); |
|
114 |
|
115 void uplinkformatsslot(); |
|
116 void pcmencslot(); |
|
117 void amrencslot(); |
|
118 void g711encslot(); |
|
119 void g729encslot(); |
|
120 void ilbcencslot(); |
|
121 |
|
122 |
|
123 void togglecngslot(); |
|
124 void getcngslot(); |
|
125 void toggleplcslot(); |
|
126 void getplcslot(); |
|
127 void setalawdecg711slot(); |
|
128 void setulawdecg711slot(); |
|
129 void getmodegdec711slot(); |
|
130 void set20msdecilbcslot(); |
|
131 void set30msdecilbcslot(); |
|
132 void getmodedecilbcslot(); |
|
133 |
|
134 //Encoder settings |
|
135 |
|
136 void getsupportedbrslot(); |
|
137 void setminbrslot(); |
|
138 void setmaxbrslot(); |
|
139 void getbrslot(); |
|
140 void togglevadslot(); |
|
141 void getvadslot(); |
|
142 void setalawencg711slot(); |
|
143 void setulawencg711slot(); |
|
144 void getmodeencg711slot(); |
|
145 void set20msencilbcslot(); |
|
146 void set30msencilbcslot(); |
|
147 void getmodeencilbcslot(); |
|
148 |
|
149 |
|
150 void rtplayslot(); |
|
151 void rtpauseslot(); |
|
152 void rtmuteslot(); |
|
153 void rtstopslot(); |
|
154 void rtdeinitslot(); |
|
155 void rtprofileslot(); |
|
156 void rtttsslot(); |
|
157 void rtfileslot(); |
|
158 void rtbeepslot(); |
|
159 void rtsequenceslot(); |
|
160 void rtsilentslot(); |
|
161 |
|
162 void onetouchslot(); |
|
163 |
|
164 private: |
|
165 void createActions(); |
|
166 void createMenus(); |
|
167 |
|
168 private: |
|
169 QWidget *mainContainer; |
|
170 QMenu *audioMenu; |
|
171 |
|
172 QAction *qtmsengine; |
|
173 QAction *tmsengine; |
|
174 QMenu* enginemenu; |
|
175 |
|
176 QAction *cscall; |
|
177 QAction *ipcall; |
|
178 QAction *exitAction; |
|
179 |
|
180 QAction *dtmfdninit; |
|
181 QAction *dtmfdnplay; |
|
182 QAction *dtmfdnstop; |
|
183 |
|
184 QAction *dtmfupinit; |
|
185 QAction *dtmfupplay; |
|
186 QAction *dtmfupstop; |
|
187 |
|
188 QAction *inbandbusy; |
|
189 QAction *inbandpathnotaval; |
|
190 QAction *inbandcongestion; |
|
191 QAction *inbandspecialinfo; |
|
192 QAction *inbandreorder; |
|
193 QAction *inbandremotealert; |
|
194 QAction *inbandcallwait; |
|
195 QAction *inbanddatacall; |
|
196 QAction *inbandnoseq; |
|
197 QAction *inbandbeepseq; |
|
198 QAction *inbandstop; |
|
199 |
|
200 QAction *downlinkformats; |
|
201 QAction *initdecoder; |
|
202 QAction *strmdnstart; |
|
203 QAction *strmdnstop; |
|
204 QAction *strmdnclose; |
|
205 QAction *pcmdec; |
|
206 QAction *amrdec; |
|
207 QAction *g711dec; |
|
208 QAction *g729dec; |
|
209 QAction *ilbcdec; |
|
210 |
|
211 QAction *uplinkformats; |
|
212 QAction *initencoder; |
|
213 QAction *strmupstart; |
|
214 QAction *strmupstop; |
|
215 QAction *strmupclose; |
|
216 |
|
217 QAction *pcmenc; |
|
218 QAction *amrenc; |
|
219 QAction *g711enc; |
|
220 QAction *g729enc; |
|
221 QAction *ilbcenc; |
|
222 |
|
223 QAction *availoutputact; |
|
224 QAction *currentoutputact; |
|
225 QAction *handsetact; |
|
226 QAction *loudspkract; |
|
227 QAction *wiredact; |
|
228 QAction *btact; |
|
229 QAction *ttyact; |
|
230 |
|
231 QAction *globalvolact; |
|
232 QAction *globalmaxvolact; |
|
233 QAction *globalsetvolact; |
|
234 |
|
235 QAction *globalgainact; |
|
236 QAction *globalmaxgainact; |
|
237 QAction *globalsetgainact; |
|
238 |
|
239 QAction *stmgainact; |
|
240 QAction *stmmaxgainact; |
|
241 QAction *stmsetgainact; |
|
242 QAction *stmmutegainact; |
|
243 |
|
244 QAction *stmvolact; |
|
245 QAction *stmmaxvolact; |
|
246 QAction *stmsetvolact; |
|
247 QAction *stmmutevolact; |
|
248 |
|
249 QAction *togglecng; |
|
250 QAction *getcng; |
|
251 QAction *toggleplc; |
|
252 QAction *getplc; |
|
253 QAction *setalawdecg711; |
|
254 QAction *setulawdecg711; |
|
255 QAction *getmodedecg711; |
|
256 QAction *set20msdecilbc; |
|
257 QAction *set30msdecilbc; |
|
258 QAction *getmodedecilbc; |
|
259 |
|
260 QAction *getsupportedbr; |
|
261 QAction *setminbr; |
|
262 QAction *setmaxbr; |
|
263 QAction *getbr; |
|
264 QAction *togglevad; |
|
265 QAction *getvad; |
|
266 QAction *setalawencg711; |
|
267 QAction *setulawencg711; |
|
268 QAction *getmodeencg711; |
|
269 QAction *set20msencilbc; |
|
270 QAction *set30msencilbc; |
|
271 QAction * getmodeencilbc; |
|
272 |
|
273 QAction *rtplay; |
|
274 QAction *rtpause; |
|
275 QAction *rtmute; |
|
276 QAction *rtstop; |
|
277 QAction *rtdeinit; |
|
278 QAction *rtprofile; |
|
279 QAction *rttts; |
|
280 QAction *rtaudiofile; |
|
281 QAction *rtbeep; |
|
282 QAction *rtsequence; |
|
283 QAction *rtsilent; |
|
284 |
|
285 QAction *onetouch; |
|
286 |
|
287 QTextEdit *statusDisplay; |
|
288 |
|
289 //TMS members |
|
290 MTmsTestEngine *iTmsEngine; |
|
291 |
|
292 }; |
|
293 #endif |