gremoteactiongroup.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Copyright © 2011 Canonical Limited
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation; either version 2 of the licence or (at
  7. * your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General
  15. * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  16. *
  17. * Authors: Ryan Lortie <[email protected]>
  18. */
  19. #ifndef __G_REMOTE_ACTION_GROUP_H__
  20. #define __G_REMOTE_ACTION_GROUP_H__
  21. #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
  22. #error "Only <gio/gio.h> can be included directly."
  23. #endif
  24. #include <gio/giotypes.h>
  25. G_BEGIN_DECLS
  26. #define G_TYPE_REMOTE_ACTION_GROUP (g_remote_action_group_get_type ())
  27. #define G_REMOTE_ACTION_GROUP(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
  28. G_TYPE_REMOTE_ACTION_GROUP, GRemoteActionGroup))
  29. #define G_IS_REMOTE_ACTION_GROUP(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
  30. G_TYPE_REMOTE_ACTION_GROUP))
  31. #define G_REMOTE_ACTION_GROUP_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
  32. G_TYPE_REMOTE_ACTION_GROUP, \
  33. GRemoteActionGroupInterface))
  34. typedef struct _GRemoteActionGroupInterface GRemoteActionGroupInterface;
  35. struct _GRemoteActionGroupInterface
  36. {
  37. GTypeInterface g_iface;
  38. void (* activate_action_full) (GRemoteActionGroup *remote,
  39. const gchar *action_name,
  40. GVariant *parameter,
  41. GVariant *platform_data);
  42. void (* change_action_state_full) (GRemoteActionGroup *remote,
  43. const gchar *action_name,
  44. GVariant *value,
  45. GVariant *platform_data);
  46. };
  47. GLIB_AVAILABLE_IN_2_32
  48. GType g_remote_action_group_get_type (void) G_GNUC_CONST;
  49. GLIB_AVAILABLE_IN_2_32
  50. void g_remote_action_group_activate_action_full (GRemoteActionGroup *remote,
  51. const gchar *action_name,
  52. GVariant *parameter,
  53. GVariant *platform_data);
  54. GLIB_AVAILABLE_IN_2_32
  55. void g_remote_action_group_change_action_state_full (GRemoteActionGroup *remote,
  56. const gchar *action_name,
  57. GVariant *value,
  58. GVariant *platform_data);
  59. G_END_DECLS
  60. #endif /* __G_REMOTE_ACTION_GROUP_H__ */