Adding config file for sharing.
[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         public Enum[] handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb);
11         public Enum[] handleCallbackEnum(Enum en[], char c, List<CallBackInterface> _cb);
12         public Enum[] handleAllTwo(Enum en1[], Enum en2[], List<Struct> str1, List<Struct> str2, char c, List<CallBackInterface> _cb1, List<CallBackInterface> _cb2);
13
14         capability Callbacks {
15                 description = "All the set-and-get methods";
16                 method = "getShort(short in)";
17                 method = "registerCallback(CallBackInterface _cb)";
18                 method = "callBack()";
19                 method = "handleEnumList(List<Enum> en)";
20                 method = "handleStructArray(Struct str[])";
21                 method = "registerCallbackArray(CallBackInterface _cb[])";
22                 method = "registerCallbackList(List<CallBackInterface> _cb)";
23                 method = "handleAll(Enum en[], List<Struct> str, char c, List<CallBackInterface> _cb)";
24                 method = "handleCallbackEnum(Enum en[], char c, List<CallBackInterface> _cb)";
25                 method = "handleAllTwo(Enum en1[], Enum en2[], List<Struct> str1, List<Struct> str2, char c, List<CallBackInterface> _cb1, List<CallBackInterface> _cb2)";
26         }
27         
28         enum Enum {
29
30                 APPLE,
31                 ORANGE,
32                 GRAPE
33         }
34
35         struct Struct {
36
37                 string  name;
38                 float   value;
39                 int     year;
40         }
41 }
42
43