Renamed SpiAccessibleEventListener to (just) SpiEventListener.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi_action.c
1 /**
2  * AccessibleAction_ref:
3  * @obj: a pointer to the #AccessibleAction on which to operate.
4  *
5  * Increment the reference count for an #AccessibleAction.
6  *
7  * Returns: 0 (no return code implemented yet).
8  *
9  **/
10 int
11 AccessibleAction_ref (
12                       AccessibleAction *obj)
13 {
14   Accessibility_Action_ref (*obj, &ev);
15   return 0;
16 }
17
18 /**
19  * AccessibleAction_unref:
20  * @obj: a pointer to the #AccessibleAction on which to operate.
21  *
22  * Decrement the reference count for an #AccessibleAction.
23  *
24  * Returns: 0 (no return code implemented yet).
25  *
26  **/
27 int
28 AccessibleAction_unref (AccessibleAction *obj)
29 {
30   Accessibility_Action_unref (*obj, &ev);
31   return 0;
32 }
33
34
35
36 /**
37  * AccessibleAction_getNActions:
38  * @obj: a pointer to the #AccessibleAction to query.
39  *
40  * Get the number of actions invokable on an #AccessibleAction implementor.
41  *
42  * Returns: a #long integer indicatin the number of invokable actions.
43  *
44  **/
45 long
46 AccessibleAction_getNActions (AccessibleAction *obj)
47 {
48   return (long)
49     Accessibility_Action__get_nActions (*obj, &ev);
50 }
51
52
53 /**
54  * AccessibleAction_getDescription:
55  * @obj: a pointer to the #AccessibleAction implementor to query.
56  * @i: a long integer indicating which action to query.
57  *
58  * Get the description of '@i-th' action invokable on an
59  *      object implementing #AccessibleAction.
60  *
61  * Returns: a UTF-8 string describing the '@i-th' invokable action.
62  *
63  **/
64 char *
65 AccessibleAction_getDescription (AccessibleAction *obj,
66                                  long int i)
67 {
68   return (char *)
69     Accessibility_Action_getDescription (*obj,
70                                          (CORBA_long) i,
71                                          &ev);
72 }
73
74 /**
75  * AccessibleAction_getKeyBinding:
76  * @obj: a pointer to the #AccessibleAction implementor to query.
77  * @i: a long integer indicating which action to query.
78  *
79  * Get the keybindings for the @i-th action invokable on an
80  *      object implementing #AccessibleAction, if any are defined.
81  *
82  * Returns: a UTF-8 string which can be parsed to determine the @i-th
83  *       invokable action's keybindings.
84  *
85  **/
86 char *
87 AccessibleAction_getKeyBinding (AccessibleAction *obj,
88                                 long int i)
89 {
90   return (char *) 
91     Accessibility_Action_getKeyBinding (*obj,
92        (CORBA_long) i,
93        &ev);
94 }
95
96
97
98 /**
99  * AccessibleAction_getName:
100  * @obj: a pointer to the #AccessibleAction implementor to query.
101  * @i: a long integer indicating which action to query.
102  *
103  * Get the name of the '@i-th' action invokable on an
104  *      object implementing #AccessibleAction.
105  *
106  * Returns: the 'event type' name of the action, as a UTF-8 string.
107  *
108  **/
109 char *
110 AccessibleAction_getName (AccessibleAction *obj,
111                           long int i)
112 {
113   return (char *)
114    Accessibility_Action_getName (*obj,
115                                  (CORBA_long) i,
116                                  &ev);
117 }
118
119
120 /**
121  * AccessibleAction_doAction:
122  * @obj: a pointer to the #AccessibleAction to query.
123  * @i: an integer specifying which action to invoke.
124  *
125  * Invoke the action indicated by #index.
126  *
127  * Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
128  *
129  **/
130 boolean
131 AccessibleAction_doAction (AccessibleAction *obj,
132                            long int i)
133 {
134   return (boolean)
135     Accessibility_Action_doAction (*obj,
136                                    (CORBA_long) i,
137                                    &ev);
138 }
139
140