|
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: |
|
15 */ |
|
16 // HTI service functions |
|
17 //gsoap ns1 service name: HtiAudio |
|
18 //gsoap ns1 service namespace: urn:hti |
|
19 //gsoap ns1 service style: rpc |
|
20 //gsoap ns1 service encoding: literal |
|
21 //gsoap ns1 service location: http://localhost:2000 |
|
22 |
|
23 typedef char* xsd__string; |
|
24 typedef wchar_t* xsd__string_; |
|
25 typedef int xsd__int; |
|
26 typedef unsigned char xsd__unsignedByte; |
|
27 typedef unsigned short xsd__unsignedShort; |
|
28 |
|
29 |
|
30 struct ArrayOfAudioFiles |
|
31 { |
|
32 xsd__string *__ptr; |
|
33 xsd__int __size; |
|
34 }; |
|
35 //gsoap ns1 service method-action: listAudioFiles "HtiAudio" |
|
36 int ns1__listAudioFiles( |
|
37 xsd__string directory, |
|
38 struct ArrayOfAudioFiles *audiofiles |
|
39 ); |
|
40 |
|
41 //enum ns__audioSettings {Default, GeneralMusic, RingTonePreview}; |
|
42 |
|
43 // synchronous service |
|
44 //gsoap ns1 service method-action: playAudioFile "HtiAudio" |
|
45 int ns1__playAudioFile( |
|
46 xsd__string fileName, |
|
47 xsd__unsignedByte volume, |
|
48 xsd__int startPosition, |
|
49 xsd__int stopPosition, |
|
50 xsd__unsignedByte nrOfRepeats, |
|
51 xsd__int silenceBetweenRepeats, |
|
52 xsd__string audioSettings, |
|
53 xsd__int timeout, // we cannot calculate timeout from file/parameters in all cases |
|
54 struct ns1__playAudioFileResponse{} *out // empty response |
|
55 ); |
|
56 // asynchronous service |
|
57 //gsoap ns1 service method-action: startPlayAudioFile "HtiAudio" |
|
58 int ns1__startPlayAudioFile( |
|
59 xsd__string fileName, |
|
60 xsd__unsignedByte volume, |
|
61 xsd__int startPosition, |
|
62 xsd__int stopPosition, |
|
63 xsd__unsignedByte nrOfRepeats, |
|
64 xsd__int silenceBetweenRepeats, |
|
65 xsd__string audioSettings, |
|
66 struct ns1__startPlayAudioFileResponse{} *out // empty response |
|
67 ); |
|
68 |
|
69 // synchronous service |
|
70 //gsoap ns1 service method-action: playTone "HtiAudio" |
|
71 int ns1__playTone( |
|
72 xsd__unsignedShort frequency, |
|
73 xsd__int duration, |
|
74 xsd__unsignedByte volume, |
|
75 xsd__unsignedByte nrOfRepeats, |
|
76 xsd__int silenceBetweenRepeats, |
|
77 struct ns1__playToneResponse{} *out // empty response |
|
78 ); |
|
79 // asynchronous service |
|
80 //gsoap ns1 service method-action: startPlayTone "HtiAudio" |
|
81 int ns1__startPlayTone( |
|
82 xsd__unsignedShort frequency, |
|
83 xsd__int duration, |
|
84 xsd__unsignedByte volume, |
|
85 xsd__unsignedByte nrOfRepeats, |
|
86 xsd__int silenceBetweenRepeats, |
|
87 struct ns1__startPlayToneResponse{} *out // empty response |
|
88 ); |
|
89 |
|
90 // synchronous service |
|
91 //gsoap ns1 service method-action: playDtmf "HtiAudio" |
|
92 int ns1__playDtmf( |
|
93 xsd__string dtmfString, |
|
94 xsd__int toneLength, |
|
95 xsd__int gapLength, |
|
96 xsd__unsignedByte volume, |
|
97 xsd__unsignedByte nrOfRepeats, |
|
98 xsd__int silenceBetweenRepeats, |
|
99 struct ns1__playDtmfResponse{} *out // empty response |
|
100 ); |
|
101 // asynchronous service |
|
102 //gsoap ns1 service method-action: startPlayDtmf "HtiAudio" |
|
103 int ns1__startPlayDtmf( |
|
104 xsd__string dtmfString, |
|
105 xsd__int toneLength, |
|
106 xsd__int gapLength, |
|
107 xsd__unsignedByte volume, |
|
108 xsd__unsignedByte nrOfRepeats, |
|
109 xsd__int silenceBetweenRepeats, |
|
110 struct ns1__startPlayDtmfResponse{} *out // empty response |
|
111 ); |
|
112 //gsoap ns1 service method-action: getPlayStatus "HtiAudio" |
|
113 int ns1__getPlayStatus( |
|
114 xsd__string type, |
|
115 xsd__string &status |
|
116 ); |
|
117 //gsoap ns1 service method-action: stopPlayback "HtiAudio" |
|
118 int ns1__stopPlayback( |
|
119 void *_, // no parameters |
|
120 struct ns1__stopPlaybackResponse{} *out // empty response |
|
121 ); |
|
122 //gsoap ns1 service method-action: getDuration "HtiAudio" |
|
123 int ns1__getDuration( |
|
124 xsd__string fileName, |
|
125 xsd__int &duration |
|
126 ); |
|
127 //gsoap ns1 service method-action: getMaxVolume "HtiAudio" |
|
128 int ns1__getMaxVolume( |
|
129 xsd__string fileName, |
|
130 xsd__unsignedByte &volume |
|
131 ); |
|
132 //gsoap ns1 service method-action: setVolume "HtiAudio" |
|
133 int ns1__setVolume( |
|
134 xsd__unsignedByte volume, |
|
135 xsd__unsignedByte &volumeSet |
|
136 ); |
|
137 |