diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-02-20 14:10:15 -0500 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-02-20 14:10:15 -0500 |
commit | dcb9aaf817387feda52f5cad54cf20b40017f6a0 (patch) | |
tree | 3255e6e84c0be04786bf8c9bff1e3986929eb3ac /gio/src/remoteactiongroup.hg | |
parent | 109101611a989a32d0ddc769dbfe799f08d0696c (diff) | |
download | glibmm-dcb9aaf817387feda52f5cad54cf20b40017f6a0.tar.gz |
giomm: Add the RemoteActionGroup interface.
* gio/src/remoteactiongroup.{ccg,hg}:
* gio/src/filelist.am: Add the sources, wrapping the methods and
virtual functions, and include them in the list of files to be built.
* gio/src/gio_vfuncs.defs: Add the GRemoteActionGroup virtual
functions.
* gio/src/applicationcommandline.hg: Add the class documentation
block.
Diffstat (limited to 'gio/src/remoteactiongroup.hg')
-rw-r--r-- | gio/src/remoteactiongroup.hg | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gio/src/remoteactiongroup.hg b/gio/src/remoteactiongroup.hg new file mode 100644 index 00000000..13a3b733 --- /dev/null +++ b/gio/src/remoteactiongroup.hg @@ -0,0 +1,49 @@ +// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*- + +/* Copyright (C) 2012 The giomm Development Team + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#include <glibmm/interface.h> + +_DEFS(giomm,gio) +_PINCLUDE(glibmm/private/interface_p.h) +_PINCLUDE(gio/gio.h) + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +typedef struct _GRemoteActionGroupInterface GRemoteActionGroupInterface; +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + +namespace Gio +{ + +/** TODO (When the C API docs is available). + */ +class RemoteActionGroup : public Glib::Interface +{ + _CLASS_INTERFACE(RemoteActionGroup, GRemoteActionGroup, G_REMOTE_ACTION_GROUP, GRemoteActionGroupInterface) + +public: + _WRAP_METHOD(void activate_action(const Glib::ustring& action_name, const Glib::VariantBase& parameter, const Glib::VariantBase& platform_data), g_remote_action_group_activate_action_full) + _WRAP_METHOD(void change_action_state(const Glib::ustring& action_name, const Glib::VariantBase& value, const Glib::VariantBase& platform_data), g_remote_action_group_change_action_state_full) + +#m4 _CONVERSION(`GVariant*',`const Glib::VariantBase&',`Glib::wrap($3, true)') + + _WRAP_VFUNC(void activate_action(const Glib::ustring& action_name, const Glib::VariantBase& parameter, const Glib::VariantBase& platform_data), "activate_action_full") + _WRAP_VFUNC(void change_action_state(const Glib::ustring& action_name, const Glib::VariantBase& value, const Glib::VariantBase& platform_data), "change_action_state_full") +}; + +} // namespace Gio |