From 505cabbd3036081f26586cabc64c26e7769c0ec9 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 1 Dec 2011 23:53:21 -0300 Subject: moving from https://github.com/perberos/mate-desktop-environment --- mate-settings-daemon/mate-settings-plugin-info.h | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 mate-settings-daemon/mate-settings-plugin-info.h (limited to 'mate-settings-daemon/mate-settings-plugin-info.h') diff --git a/mate-settings-daemon/mate-settings-plugin-info.h b/mate-settings-daemon/mate-settings-plugin-info.h new file mode 100644 index 0000000..b99036a --- /dev/null +++ b/mate-settings-daemon/mate-settings-plugin-info.h @@ -0,0 +1,81 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * Copyright (C) 2008 Red Hat, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __MATE_SETTINGS_PLUGIN_INFO_H__ +#define __MATE_SETTINGS_PLUGIN_INFO_H__ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif +#define MATE_TYPE_SETTINGS_PLUGIN_INFO (mate_settings_plugin_info_get_type()) +#define MATE_SETTINGS_PLUGIN_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), MATE_TYPE_SETTINGS_PLUGIN_INFO, MateSettingsPluginInfo)) +#define MATE_SETTINGS_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), MATE_TYPE_SETTINGS_PLUGIN_INFO, MateSettingsPluginInfoClass)) +#define MATE_IS_SETTINGS_PLUGIN_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), MATE_TYPE_SETTINGS_PLUGIN_INFO)) +#define MATE_IS_SETTINGS_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_SETTINGS_PLUGIN_INFO)) +#define MATE_SETTINGS_PLUGIN_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MATE_TYPE_SETTINGS_PLUGIN_INFO, MateSettingsPluginInfoClass)) + +typedef struct MateSettingsPluginInfoPrivate MateSettingsPluginInfoPrivate; + +typedef struct +{ + GObject parent; + MateSettingsPluginInfoPrivate *priv; +} MateSettingsPluginInfo; + +typedef struct +{ + GObjectClass parent_class; + + void (* activated) (MateSettingsPluginInfo *info); + void (* deactivated) (MateSettingsPluginInfo *info); +} MateSettingsPluginInfoClass; + +GType mate_settings_plugin_info_get_type (void) G_GNUC_CONST; + +MateSettingsPluginInfo *mate_settings_plugin_info_new_from_file (const char *filename); + +void mate_settings_plugin_info_set_enabled_key_name (MateSettingsPluginInfo *info, + const char *key_name); +gboolean mate_settings_plugin_info_activate (MateSettingsPluginInfo *info); +gboolean mate_settings_plugin_info_deactivate (MateSettingsPluginInfo *info); + +gboolean mate_settings_plugin_info_is_active (MateSettingsPluginInfo *info); +gboolean mate_settings_plugin_info_get_enabled (MateSettingsPluginInfo *info); +gboolean mate_settings_plugin_info_is_available (MateSettingsPluginInfo *info); + +const char *mate_settings_plugin_info_get_name (MateSettingsPluginInfo *info); +const char *mate_settings_plugin_info_get_description (MateSettingsPluginInfo *info); +const char **mate_settings_plugin_info_get_authors (MateSettingsPluginInfo *info); +const char *mate_settings_plugin_info_get_website (MateSettingsPluginInfo *info); +const char *mate_settings_plugin_info_get_copyright (MateSettingsPluginInfo *info); +const char *mate_settings_plugin_info_get_location (MateSettingsPluginInfo *info); +int mate_settings_plugin_info_get_priority (MateSettingsPluginInfo *info); + +void mate_settings_plugin_info_set_priority (MateSettingsPluginInfo *info, + int priority); + +#ifdef __cplusplus +} +#endif + +#endif /* __MATE_SETTINGS_PLUGIN_INFO_H__ */ -- cgit v1.2.1