1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = GRemoteActionGroup.html
27  * outPack = gio
28  * outFile = RemoteActionGroupIF
29  * strct   = GRemoteActionGroup
30  * realStrct=
31  * ctorStrct=
32  * clss    = RemoteActionGroupT
33  * interf  = RemoteActionGroupIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- g_remote_action_group_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- glib.Str
47  * 	- glib.Variant
48  * structWrap:
49  * 	- GVariant* -> Variant
50  * module aliases:
51  * local aliases:
52  * overrides:
53  */
54 
55 module gio.RemoteActionGroupIF;
56 
57 public  import gtkc.giotypes;
58 
59 private import gtkc.gio;
60 private import glib.ConstructionException;
61 private import gobject.ObjectG;
62 
63 
64 private import glib.Str;
65 private import glib.Variant;
66 
67 
68 
69 
70 /**
71  * The GRemoteActionGroup interface is implemented by GActionGroup
72  * instances that either transmit action invocations to other processes
73  * or receive action invocations in the local process from other
74  * processes.
75  *
76  * The interface has _full variants of the two
77  * methods on GActionGroup used to activate actions:
78  * g_action_group_activate_action() and
79  * g_action_group_change_action_state(). These variants allow a
80  * "platform data" GVariant to be specified: a dictionary providing
81  * context for the action invocation (for example: timestamps, startup
82  * notification IDs, etc).
83  *
84  * GDBusActionGroup implements GRemoteActionGroup. This provides a
85  * mechanism to send platform data for action invocations over D-Bus.
86  *
87  * Additionally, g_dbus_connection_export_action_group() will check if
88  * the exported GActionGroup implements GRemoteActionGroup and use the
89  * _full variants of the calls if available. This
90  * provides a mechanism by which to receive platform data for action
91  * invocations that arrive by way of D-Bus.
92  */
93 public interface RemoteActionGroupIF
94 {
95 	
96 	
97 	public GRemoteActionGroup* getRemoteActionGroupTStruct();
98 	
99 	/** the main Gtk struct as a void* */
100 	protected void* getStruct();
101 	
102 	
103 	/**
104 	 */
105 	
106 	/**
107 	 * Activates the remote action.
108 	 * This is the same as g_action_group_activate_action() except that it
109 	 * allows for provision of "platform data" to be sent along with the
110 	 * activation request. This typically contains details such as the user
111 	 * interaction timestamp or startup notification information.
112 	 * platform_data must be non-NULL and must have the type
113 	 * G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
114 	 * Since 2.32
115 	 * Params:
116 	 * actionName = the name of the action to activate
117 	 * parameter = the optional parameter to the activation. [allow-none]
118 	 * platformData = the platform data to send
119 	 */
120 	public void activateActionFull(string actionName, Variant parameter, Variant platformData);
121 	
122 	/**
123 	 * Changes the state of a remote action.
124 	 * This is the same as g_action_group_change_action_state() except that
125 	 * it allows for provision of "platform data" to be sent along with the
126 	 * state change request. This typically contains details such as the
127 	 * user interaction timestamp or startup notification information.
128 	 * platform_data must be non-NULL and must have the type
129 	 * G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
130 	 * Since 2.32
131 	 * Params:
132 	 * actionName = the name of the action to change the state of
133 	 * value = the new requested value for the state
134 	 * platformData = the platform data to send
135 	 */
136 	public void changeActionStateFull(string actionName, Variant value, Variant platformData);
137 }