/* switchboard.h generated by valac 0.54.7, the Vala compiler, do not modify */

#ifndef __LIB_SWITCHBOARD_H__
#define __LIB_SWITCHBOARD_H__

#include <glib-object.h>
#include <glib.h>
#include <gee.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>

G_BEGIN_DECLS

#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif
#define SWITCHBOARD_PLUG_SEP "<sep>"

#define SWITCHBOARD_TYPE_PLUGS_MANAGER (switchboard_plugs_manager_get_type ())
#define SWITCHBOARD_PLUGS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWITCHBOARD_TYPE_PLUGS_MANAGER, SwitchboardPlugsManager))
#define SWITCHBOARD_PLUGS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWITCHBOARD_TYPE_PLUGS_MANAGER, SwitchboardPlugsManagerClass))
#define SWITCHBOARD_IS_PLUGS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWITCHBOARD_TYPE_PLUGS_MANAGER))
#define SWITCHBOARD_IS_PLUGS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWITCHBOARD_TYPE_PLUGS_MANAGER))
#define SWITCHBOARD_PLUGS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWITCHBOARD_TYPE_PLUGS_MANAGER, SwitchboardPlugsManagerClass))

typedef struct _SwitchboardPlugsManager SwitchboardPlugsManager;
typedef struct _SwitchboardPlugsManagerClass SwitchboardPlugsManagerClass;
typedef struct _SwitchboardPlugsManagerPrivate SwitchboardPlugsManagerPrivate;

#define SWITCHBOARD_TYPE_PLUG (switchboard_plug_get_type ())
#define SWITCHBOARD_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWITCHBOARD_TYPE_PLUG, SwitchboardPlug))
#define SWITCHBOARD_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWITCHBOARD_TYPE_PLUG, SwitchboardPlugClass))
#define SWITCHBOARD_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWITCHBOARD_TYPE_PLUG))
#define SWITCHBOARD_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWITCHBOARD_TYPE_PLUG))
#define SWITCHBOARD_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWITCHBOARD_TYPE_PLUG, SwitchboardPlugClass))

typedef struct _SwitchboardPlug SwitchboardPlug;
typedef struct _SwitchboardPlugClass SwitchboardPlugClass;
typedef struct _SwitchboardPlugPrivate SwitchboardPlugPrivate;
typedef enum  {
	SWITCHBOARD_PLUG_CATEGORY_PERSONAL = 0,
	SWITCHBOARD_PLUG_CATEGORY_HARDWARE = 1,
	SWITCHBOARD_PLUG_CATEGORY_NETWORK = 2,
	SWITCHBOARD_PLUG_CATEGORY_SYSTEM = 3,
	SWITCHBOARD_PLUG_CATEGORY_OTHER = 4
} SwitchboardPlugCategory;

#define SWITCHBOARD_PLUG_TYPE_CATEGORY (switchboard_plug_category_get_type ())

struct _SwitchboardPlugsManager {
	GObject parent_instance;
	SwitchboardPlugsManagerPrivate * priv;
};

struct _SwitchboardPlugsManagerClass {
	GObjectClass parent_class;
};

struct _SwitchboardPlug {
	GObject parent_instance;
	SwitchboardPlugPrivate * priv;
};

struct _SwitchboardPlugClass {
	GObjectClass parent_class;
	GtkWidget* (*get_widget) (SwitchboardPlug* self);
	void (*shown) (SwitchboardPlug* self);
	void (*hidden) (SwitchboardPlug* self);
	void (*search) (SwitchboardPlug* self, const gchar* search, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GeeTreeMap* (*search_finish) (SwitchboardPlug* self, GAsyncResult* _res_);
	void (*search_callback) (SwitchboardPlug* self, const gchar* location);
};

VALA_EXTERN GType switchboard_plugs_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwitchboardPlugsManager, g_object_unref)
VALA_EXTERN SwitchboardPlugsManager* switchboard_plugs_manager_get_default (void);
VALA_EXTERN gboolean switchboard_plugs_manager_has_plugs (SwitchboardPlugsManager* self);
VALA_EXTERN GType switchboard_plug_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwitchboardPlug, g_object_unref)
VALA_EXTERN GeeCollection* switchboard_plugs_manager_get_plugs (SwitchboardPlugsManager* self);
VALA_EXTERN GType switchboard_plug_category_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GtkWidget* switchboard_plug_get_widget (SwitchboardPlug* self);
VALA_EXTERN void switchboard_plug_shown (SwitchboardPlug* self);
VALA_EXTERN void switchboard_plug_hidden (SwitchboardPlug* self);
VALA_EXTERN void switchboard_plug_search (SwitchboardPlug* self,
                              const gchar* search,
                              GAsyncReadyCallback _callback_,
                              gpointer _user_data_);
VALA_EXTERN GeeTreeMap* switchboard_plug_search_finish (SwitchboardPlug* self,
                                            GAsyncResult* _res_);
VALA_EXTERN void switchboard_plug_search_callback (SwitchboardPlug* self,
                                       const gchar* location);
VALA_EXTERN SwitchboardPlug* switchboard_plug_construct (GType object_type);
VALA_EXTERN SwitchboardPlugCategory switchboard_plug_get_category (SwitchboardPlug* self);
VALA_EXTERN const gchar* switchboard_plug_get_code_name (SwitchboardPlug* self);
VALA_EXTERN const gchar* switchboard_plug_get_display_name (SwitchboardPlug* self);
VALA_EXTERN const gchar* switchboard_plug_get_description (SwitchboardPlug* self);
VALA_EXTERN const gchar* switchboard_plug_get_icon (SwitchboardPlug* self);
VALA_EXTERN GeeTreeMap* switchboard_plug_get_supported_settings (SwitchboardPlug* self);
VALA_EXTERN gboolean switchboard_plug_get_can_show (SwitchboardPlug* self);
VALA_EXTERN void switchboard_plug_set_can_show (SwitchboardPlug* self,
                                    gboolean value);

G_END_DECLS

#endif
