/*
 * This file is generated by gdbus-codegen, do not modify it.
 *
 * The license of this code is the same as for the D-Bus interface description
 * it was derived from. Note that it links to GLib, so must comply with the
 * LGPL linking clauses.
 */

#ifndef __THUNAR_TPA_BINDINGS_H__
#define __THUNAR_TPA_BINDINGS_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.xfce.Trash */

#define THUNAR_TPA_TYPE_TRASH (thunar_tpa_trash_get_type ())
#define THUNAR_TPA_TRASH(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), THUNAR_TPA_TYPE_TRASH, thunarTPATrash))
#define THUNAR_TPA_IS_TRASH(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), THUNAR_TPA_TYPE_TRASH))
#define THUNAR_TPA_TRASH_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), THUNAR_TPA_TYPE_TRASH, thunarTPATrashIface))

struct _thunarTPATrash;
typedef struct _thunarTPATrash thunarTPATrash;
typedef struct _thunarTPATrashIface thunarTPATrashIface;

struct _thunarTPATrashIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_display_trash) (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_display,
    const gchar *arg_startup_id);

  gboolean (*handle_empty_trash) (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_display,
    const gchar *arg_startup_id);

  gboolean (*handle_move_to_trash) (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_filenames,
    const gchar *arg_display,
    const gchar *arg_startup_id);

  gboolean (*handle_query_trash) (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation);

  void (*trash_changed) (
    thunarTPATrash *object);

};

GType thunar_tpa_trash_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *thunar_tpa_trash_interface_info (void);
guint thunar_tpa_trash_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void thunar_tpa_trash_complete_display_trash (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation);

void thunar_tpa_trash_complete_empty_trash (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation);

void thunar_tpa_trash_complete_move_to_trash (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation);

void thunar_tpa_trash_complete_query_trash (
    thunarTPATrash *object,
    GDBusMethodInvocation *invocation,
    gboolean full);



/* D-Bus signal emissions functions: */
void thunar_tpa_trash_emit_trash_changed (
    thunarTPATrash *object);



/* D-Bus method calls: */
void thunar_tpa_trash_call_display_trash (
    thunarTPATrash *proxy,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean thunar_tpa_trash_call_display_trash_finish (
    thunarTPATrash *proxy,
    GAsyncResult *res,
    GError **error);

gboolean thunar_tpa_trash_call_display_trash_sync (
    thunarTPATrash *proxy,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GError **error);

void thunar_tpa_trash_call_empty_trash (
    thunarTPATrash *proxy,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean thunar_tpa_trash_call_empty_trash_finish (
    thunarTPATrash *proxy,
    GAsyncResult *res,
    GError **error);

gboolean thunar_tpa_trash_call_empty_trash_sync (
    thunarTPATrash *proxy,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GError **error);

void thunar_tpa_trash_call_move_to_trash (
    thunarTPATrash *proxy,
    const gchar *const *arg_filenames,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean thunar_tpa_trash_call_move_to_trash_finish (
    thunarTPATrash *proxy,
    GAsyncResult *res,
    GError **error);

gboolean thunar_tpa_trash_call_move_to_trash_sync (
    thunarTPATrash *proxy,
    const gchar *const *arg_filenames,
    const gchar *arg_display,
    const gchar *arg_startup_id,
    GCancellable *cancellable,
    GError **error);

void thunar_tpa_trash_call_query_trash (
    thunarTPATrash *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean thunar_tpa_trash_call_query_trash_finish (
    thunarTPATrash *proxy,
    gboolean *out_full,
    GAsyncResult *res,
    GError **error);

gboolean thunar_tpa_trash_call_query_trash_sync (
    thunarTPATrash *proxy,
    gboolean *out_full,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define THUNAR_TPA_TYPE_TRASH_PROXY (thunar_tpa_trash_proxy_get_type ())
#define THUNAR_TPA_TRASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), THUNAR_TPA_TYPE_TRASH_PROXY, thunarTPATrashProxy))
#define THUNAR_TPA_TRASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), THUNAR_TPA_TYPE_TRASH_PROXY, thunarTPATrashProxyClass))
#define THUNAR_TPA_TRASH_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), THUNAR_TPA_TYPE_TRASH_PROXY, thunarTPATrashProxyClass))
#define THUNAR_TPA_IS_TRASH_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), THUNAR_TPA_TYPE_TRASH_PROXY))
#define THUNAR_TPA_IS_TRASH_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), THUNAR_TPA_TYPE_TRASH_PROXY))

typedef struct _thunarTPATrashProxy thunarTPATrashProxy;
typedef struct _thunarTPATrashProxyClass thunarTPATrashProxyClass;
typedef struct _thunarTPATrashProxyPrivate thunarTPATrashProxyPrivate;

struct _thunarTPATrashProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  thunarTPATrashProxyPrivate *priv;
};

struct _thunarTPATrashProxyClass
{
  GDBusProxyClass parent_class;
};

GType thunar_tpa_trash_proxy_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (thunarTPATrashProxy, g_object_unref)
#endif

void thunar_tpa_trash_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
thunarTPATrash *thunar_tpa_trash_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
thunarTPATrash *thunar_tpa_trash_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void thunar_tpa_trash_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
thunarTPATrash *thunar_tpa_trash_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
thunarTPATrash *thunar_tpa_trash_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define THUNAR_TPA_TYPE_TRASH_SKELETON (thunar_tpa_trash_skeleton_get_type ())
#define THUNAR_TPA_TRASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), THUNAR_TPA_TYPE_TRASH_SKELETON, thunarTPATrashSkeleton))
#define THUNAR_TPA_TRASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), THUNAR_TPA_TYPE_TRASH_SKELETON, thunarTPATrashSkeletonClass))
#define THUNAR_TPA_TRASH_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), THUNAR_TPA_TYPE_TRASH_SKELETON, thunarTPATrashSkeletonClass))
#define THUNAR_TPA_IS_TRASH_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), THUNAR_TPA_TYPE_TRASH_SKELETON))
#define THUNAR_TPA_IS_TRASH_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), THUNAR_TPA_TYPE_TRASH_SKELETON))

typedef struct _thunarTPATrashSkeleton thunarTPATrashSkeleton;
typedef struct _thunarTPATrashSkeletonClass thunarTPATrashSkeletonClass;
typedef struct _thunarTPATrashSkeletonPrivate thunarTPATrashSkeletonPrivate;

struct _thunarTPATrashSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  thunarTPATrashSkeletonPrivate *priv;
};

struct _thunarTPATrashSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType thunar_tpa_trash_skeleton_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (thunarTPATrashSkeleton, g_object_unref)
#endif

thunarTPATrash *thunar_tpa_trash_skeleton_new (void);


G_END_DECLS

#endif /* __THUNAR_TPA_BINDINGS_H__ */
