/*
 * Generated by gdbus-codegen 2.50.2. DO NOT EDIT.
 *
 * The license of this code is the same as for the source it was derived from.
 */

#ifndef __GR_SHELL_SEARCH_PROVIDER_DBUS_H__
#define __GR_SHELL_SEARCH_PROVIDER_DBUS_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.Shell.SearchProvider2 */

#define GR_TYPE_SHELL_SEARCH_PROVIDER2 (gr_shell_search_provider2_get_type ())
#define GR_SHELL_SEARCH_PROVIDER2(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2, GrShellSearchProvider2))
#define GR_IS_SHELL_SEARCH_PROVIDER2(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2))
#define GR_SHELL_SEARCH_PROVIDER2_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2, GrShellSearchProvider2Iface))

struct _GrShellSearchProvider2;
typedef struct _GrShellSearchProvider2 GrShellSearchProvider2;
typedef struct _GrShellSearchProvider2Iface GrShellSearchProvider2Iface;

struct _GrShellSearchProvider2Iface
{
  GTypeInterface parent_iface;

  gboolean (*handle_activate_result) (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_Result,
    const gchar *const *arg_Terms,
    guint arg_Timestamp);

  gboolean (*handle_get_initial_result_set) (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_Terms);

  gboolean (*handle_get_result_metas) (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_Results);

  gboolean (*handle_get_subsearch_result_set) (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_PreviousResults,
    const gchar *const *arg_Terms);

  gboolean (*handle_launch_search) (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *arg_Terms,
    guint arg_Timestamp);

};

GType gr_shell_search_provider2_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gr_shell_search_provider2_interface_info (void);
guint gr_shell_search_provider2_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void gr_shell_search_provider2_complete_get_initial_result_set (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *Results);

void gr_shell_search_provider2_complete_get_subsearch_result_set (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *Results);

void gr_shell_search_provider2_complete_get_result_metas (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation,
    GVariant *Metas);

void gr_shell_search_provider2_complete_activate_result (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation);

void gr_shell_search_provider2_complete_launch_search (
    GrShellSearchProvider2 *object,
    GDBusMethodInvocation *invocation);



/* D-Bus method calls: */
void gr_shell_search_provider2_call_get_initial_result_set (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Terms,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gr_shell_search_provider2_call_get_initial_result_set_finish (
    GrShellSearchProvider2 *proxy,
    gchar ***out_Results,
    GAsyncResult *res,
    GError **error);

gboolean gr_shell_search_provider2_call_get_initial_result_set_sync (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Terms,
    gchar ***out_Results,
    GCancellable *cancellable,
    GError **error);

void gr_shell_search_provider2_call_get_subsearch_result_set (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_PreviousResults,
    const gchar *const *arg_Terms,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gr_shell_search_provider2_call_get_subsearch_result_set_finish (
    GrShellSearchProvider2 *proxy,
    gchar ***out_Results,
    GAsyncResult *res,
    GError **error);

gboolean gr_shell_search_provider2_call_get_subsearch_result_set_sync (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_PreviousResults,
    const gchar *const *arg_Terms,
    gchar ***out_Results,
    GCancellable *cancellable,
    GError **error);

void gr_shell_search_provider2_call_get_result_metas (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Results,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gr_shell_search_provider2_call_get_result_metas_finish (
    GrShellSearchProvider2 *proxy,
    GVariant **out_Metas,
    GAsyncResult *res,
    GError **error);

gboolean gr_shell_search_provider2_call_get_result_metas_sync (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Results,
    GVariant **out_Metas,
    GCancellable *cancellable,
    GError **error);

void gr_shell_search_provider2_call_activate_result (
    GrShellSearchProvider2 *proxy,
    const gchar *arg_Result,
    const gchar *const *arg_Terms,
    guint arg_Timestamp,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gr_shell_search_provider2_call_activate_result_finish (
    GrShellSearchProvider2 *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gr_shell_search_provider2_call_activate_result_sync (
    GrShellSearchProvider2 *proxy,
    const gchar *arg_Result,
    const gchar *const *arg_Terms,
    guint arg_Timestamp,
    GCancellable *cancellable,
    GError **error);

void gr_shell_search_provider2_call_launch_search (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Terms,
    guint arg_Timestamp,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gr_shell_search_provider2_call_launch_search_finish (
    GrShellSearchProvider2 *proxy,
    GAsyncResult *res,
    GError **error);

gboolean gr_shell_search_provider2_call_launch_search_sync (
    GrShellSearchProvider2 *proxy,
    const gchar *const *arg_Terms,
    guint arg_Timestamp,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY (gr_shell_search_provider2_proxy_get_type ())
#define GR_SHELL_SEARCH_PROVIDER2_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, GrShellSearchProvider2Proxy))
#define GR_SHELL_SEARCH_PROVIDER2_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, GrShellSearchProvider2ProxyClass))
#define GR_SHELL_SEARCH_PROVIDER2_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, GrShellSearchProvider2ProxyClass))
#define GR_IS_SHELL_SEARCH_PROVIDER2_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY))
#define GR_IS_SHELL_SEARCH_PROVIDER2_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GR_TYPE_SHELL_SEARCH_PROVIDER2_PROXY))

typedef struct _GrShellSearchProvider2Proxy GrShellSearchProvider2Proxy;
typedef struct _GrShellSearchProvider2ProxyClass GrShellSearchProvider2ProxyClass;
typedef struct _GrShellSearchProvider2ProxyPrivate GrShellSearchProvider2ProxyPrivate;

struct _GrShellSearchProvider2Proxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GrShellSearchProvider2ProxyPrivate *priv;
};

struct _GrShellSearchProvider2ProxyClass
{
  GDBusProxyClass parent_class;
};

GType gr_shell_search_provider2_proxy_get_type (void) G_GNUC_CONST;

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

void gr_shell_search_provider2_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GrShellSearchProvider2 *gr_shell_search_provider2_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GrShellSearchProvider2 *gr_shell_search_provider2_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gr_shell_search_provider2_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GrShellSearchProvider2 *gr_shell_search_provider2_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GrShellSearchProvider2 *gr_shell_search_provider2_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON (gr_shell_search_provider2_skeleton_get_type ())
#define GR_SHELL_SEARCH_PROVIDER2_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON, GrShellSearchProvider2Skeleton))
#define GR_SHELL_SEARCH_PROVIDER2_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON, GrShellSearchProvider2SkeletonClass))
#define GR_SHELL_SEARCH_PROVIDER2_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON, GrShellSearchProvider2SkeletonClass))
#define GR_IS_SHELL_SEARCH_PROVIDER2_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON))
#define GR_IS_SHELL_SEARCH_PROVIDER2_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GR_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON))

typedef struct _GrShellSearchProvider2Skeleton GrShellSearchProvider2Skeleton;
typedef struct _GrShellSearchProvider2SkeletonClass GrShellSearchProvider2SkeletonClass;
typedef struct _GrShellSearchProvider2SkeletonPrivate GrShellSearchProvider2SkeletonPrivate;

struct _GrShellSearchProvider2Skeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GrShellSearchProvider2SkeletonPrivate *priv;
};

struct _GrShellSearchProvider2SkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gr_shell_search_provider2_skeleton_get_type (void) G_GNUC_CONST;

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

GrShellSearchProvider2 *gr_shell_search_provider2_skeleton_new (void);


G_END_DECLS

#endif /* __GR_SHELL_SEARCH_PROVIDER_DBUS_H__ */
