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 = RemoteActionGroupT
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  * 	- TStruct
38  * extend  = 
39  * implements:
40  * prefixes:
41  * 	- g_remote_action_group_
42  * omit structs:
43  * omit prefixes:
44  * omit code:
45  * omit signals:
46  * imports:
47  * 	- glib.Str
48  * 	- glib.Variant
49  * structWrap:
50  * 	- GVariant* -> Variant
51  * module aliases:
52  * local aliases:
53  * overrides:
54  */
55 
56 module gio.RemoteActionGroupT;
57 
58 public  import gtkc.giotypes;
59 
60 public import gtkc.gio;
61 public import glib.ConstructionException;
62 public import gobject.ObjectG;
63 
64 
65 public import glib.Str;
66 public import glib.Variant;
67 
68 
69 
70 
71 /**
72  * The GRemoteActionGroup interface is implemented by GActionGroup
73  * instances that either transmit action invocations to other processes
74  * or receive action invocations in the local process from other
75  * processes.
76  *
77  * The interface has _full variants of the two
78  * methods on GActionGroup used to activate actions:
79  * g_action_group_activate_action() and
80  * g_action_group_change_action_state(). These variants allow a
81  * "platform data" GVariant to be specified: a dictionary providing
82  * context for the action invocation (for example: timestamps, startup
83  * notification IDs, etc).
84  *
85  * GDBusActionGroup implements GRemoteActionGroup. This provides a
86  * mechanism to send platform data for action invocations over D-Bus.
87  *
88  * Additionally, g_dbus_connection_export_action_group() will check if
89  * the exported GActionGroup implements GRemoteActionGroup and use the
90  * _full variants of the calls if available. This
91  * provides a mechanism by which to receive platform data for action
92  * invocations that arrive by way of D-Bus.
93  */
94 public template RemoteActionGroupT(TStruct)
95 {
96 	
97 	/** the main Gtk struct */
98 	protected GRemoteActionGroup* gRemoteActionGroup;
99 	
100 	
101 	public GRemoteActionGroup* getRemoteActionGroupTStruct()
102 	{
103 		return cast(GRemoteActionGroup*)getStruct();
104 	}
105 	
106 	
107 	/**
108 	 */
109 	
110 	/**
111 	 * Activates the remote action.
112 	 * This is the same as g_action_group_activate_action() except that it
113 	 * allows for provision of "platform data" to be sent along with the
114 	 * activation request. This typically contains details such as the user
115 	 * interaction timestamp or startup notification information.
116 	 * platform_data must be non-NULL and must have the type
117 	 * G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
118 	 * Since 2.32
119 	 * Params:
120 	 * actionName = the name of the action to activate
121 	 * parameter = the optional parameter to the activation. [allow-none]
122 	 * platformData = the platform data to send
123 	 */
124 	public void activateActionFull(string actionName, Variant parameter, Variant platformData)
125 	{
126 		// void g_remote_action_group_activate_action_full  (GRemoteActionGroup *remote,  const gchar *action_name,  GVariant *parameter,  GVariant *platform_data);
127 		g_remote_action_group_activate_action_full(getRemoteActionGroupTStruct(), Str.toStringz(actionName), (parameter is null) ? null : parameter.getVariantStruct(), (platformData is null) ? null : platformData.getVariantStruct());
128 	}
129 	
130 	/**
131 	 * Changes the state of a remote action.
132 	 * This is the same as g_action_group_change_action_state() except that
133 	 * it allows for provision of "platform data" to be sent along with the
134 	 * state change request. This typically contains details such as the
135 	 * user interaction timestamp or startup notification information.
136 	 * platform_data must be non-NULL and must have the type
137 	 * G_VARIANT_TYPE_VARDICT. If it is floating, it will be consumed.
138 	 * Since 2.32
139 	 * Params:
140 	 * actionName = the name of the action to change the state of
141 	 * value = the new requested value for the state
142 	 * platformData = the platform data to send
143 	 */
144 	public void changeActionStateFull(string actionName, Variant value, Variant platformData)
145 	{
146 		// void g_remote_action_group_change_action_state_full  (GRemoteActionGroup *remote,  const gchar *action_name,  GVariant *value,  GVariant *platform_data);
147 		g_remote_action_group_change_action_state_full(getRemoteActionGroupTStruct(), Str.toStringz(actionName), (value is null) ? null : value.getVariantStruct(), (platformData is null) ? null : platformData.getVariantStruct());
148 	}
149 }