blob: c50a4c8d3daebdf9e56974d8d0e1837193c9d2e7 (
plain)
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
|
module com.pelagicore.ivi.tuner 1.0;
/** Service Tuner */
@service: true
@interface: true
@config: {private: true, b: B, c: C}
@data: [1,2,3]
interface Tuner {
/** property currentStation */
readonly Station currentStation;
/** operation nextStation */
void nextStation();
/** operation previousStation */
void previousStation();
/** operation updateCurrentStation */
void updateCurrentStation(int stationId);
list<int> primitiveList;
list<Station> complexList;
model<int> primitiveModel;
model<Station> complexModel;
signal scanFinished();
signal broadcastMessage(string message);
}
/** enum State */
enum State {
/** value State.Null */
Null=0,
/** value State.Loading */
Loading=1,
/** value State.Ready */
Ready=2,
/** value State.Error */
Error=3
}
/** enum Waveband */
@default: {value: FM}
enum Waveband {
/** value Waveband.FM */
FM=0,
/** value Waveband.AM */
AM=1
}
flag Features {
Mono = 0x1,
Stereo = 0x2,
}
/** struct Station */
struct Station {
/** member stationId */
int stationId;
/** member name */
string name;
}
|