Initial revision
[platform/core/uifw/at-spi2-atk.git] / idl / Application.idl
1 #ifndef __ACCESSIBILITY_APPLICATION_DEFINED__
2 #define __ACCESSIBILITY_APPLICATION_DEFINED__
3
4 #include <Bonobo.idl>
5 #include <Accessible.idl>
6
7 #if !defined(__ACCESSIBILITY_APPLICATION_COMPILATION) && defined(__ORBIT_IDL__)
8 %{
9 #pragma include_defs Application.h
10 %}
11 #pragma inhibit push
12 #endif
13
14 #pragma inhibit push
15 #include "Accessible.idl"
16 #pragma inhibit pop
17
18 module Accessibility {
19   interface Application : Accessible {
20
21     /**
22      * Get a string indicating the type of user interface toolkit
23      * which is used by the application.
24      * Ordinarily clients of @AccessibleApplication should be
25      * toolkit-agnostic, dependencies on this method probably
26      * should be reconsidered!
27      **/
28     readonly attribute string toolkitName;
29
30     /**
31      * Get a string indicating the version number of the application's
32      * accessibility bridge implementation.
33      **/
34     readonly attribute string version;
35
36     /**
37      * Get the application's process ID in the operating system's 
38      * process table.
39      *
40      **/
41     readonly attribute string id;
42
43     /**
44      * pause:
45      * Returns: %true if the request succeeded, %false otherwise.
46      *
47      * Request that the application temporarily stop sending events.
48      * In most cases this should pause the application's main event loop.
49      *
50      **/
51     boolean       pause ();
52
53     /**
54      * resume:
55      * Returns: %true if the request succeeded, %false otherwise.
56      *
57      * Request that the application resume sending events.
58      *
59      **/
60     boolean       resume ();
61   };
62 };
63
64 #if !defined(__ACCESSIBILITY_APPLICATION_COMPILATION) && defined(__ORBIT_IDL__)
65 #pragma inhibit pop
66 #endif
67
68 #endif