summaryrefslogtreecommitdiff
path: root/idl/action.didl
blob: 48e89aa1ca7712a6d26095e35c661f33dd05ac3a (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

/*
  An interface through which a user-actionable UI component can be manipulated.
  
  Typical actions include "click", "press", "release" or "open".
*/
interface org.freestandards.atspi.Action {
	/*
	  Represents a single action.
	*/
	struct Action {
		/* String containing short description of action. */
		string name;
		/* The description of an action may provide information about the result. */
		string description;
		/* A string containing the key-binding or "" if none exists */
		string key_binding;
	}

	property read int32 NActions;

	/* Get the description for the specified action. */
	method GetDescription {
		int32 index;
	} reply {
		string description
	}

	/* Get the name of the specified action */
	method GetName {
		int32 index;
	} reply {
		string name;
	}

	method GetLocalizedName {
		int32 index;
	} reply {
		string name;
	}

	/* Get the key-binding for the specified action. */
	method GetKeyBinding {
		int32 index;
	} reply {
		string key_binding;
	}

	/* Retrieves the actions associated with the object. */
	method GetActions reply {
		Action actions [];
	}

	/* Causes the object to perform the specified action. */
	method GetActions {
		int32 index;
	} reply {
		boolean success;
	}	
}