a045faffcd268b99c402b88bad3439617b1c3a21
[iot2.git] / localconfig / iotpolicy / development / testclasspolicy_callbacks.pol
1 public interface TestClassInterface {
2
3         public short getShort(short in);
4         public void registerCallback(CallBackInterface _cb);
5         public int callBack();
6         public List<Enum> handleEnumList(List<Enum> en);
7         public Struct[] handleStructArray(Struct str[]);
8         public void registerCallbackArray(CallBackInterface _cb[]);
9         public void registerCallbackList(List<CallBackInterface> _cb);
10
11         capability Callbacks {
12                 description = "All the set-and-get methods";
13                 method = "getShort(short in)";
14                 method = "registerCallback(CallBackInterface _cb)";
15                 method = "callBack()";
16                 method = "handleEnumList(List<Enum> en)";
17                 method = "handleStructArray(Struct str[])";
18                 method = "registerCallbackArray(CallBackInterface _cb[])";
19                 method = "registerCallbackList(List<CallBackInterface> _cb)";
20         }
21         
22         enum Enum {
23
24                 APPLE,
25                 ORANGE,
26                 GRAPE
27         }
28
29         struct Struct {
30
31                 string  name;
32                 float   value;
33                 int     year;
34         }
35 }
36
37