theme.h

Go to the documentation of this file.
00001 
00005 /* purple
00006  *
00007  * Purple is the legal property of its developers, whose names are too numerous
00008  * to list here.  Please refer to the COPYRIGHT file distributed with this
00009  * source distribution.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00024  */
00025 
00026 #ifndef PURPLE_THEME_H
00027 #define PURPLE_THEME_H
00028 
00029 #include <glib.h>
00030 #include <glib-object.h>
00031 #include "imgstore.h"
00032 
00039 typedef struct _PurpleTheme        PurpleTheme;
00040 typedef struct _PurpleThemeClass   PurpleThemeClass;
00041 
00042 #define PURPLE_TYPE_THEME            (purple_theme_get_type ())
00043 #define PURPLE_THEME(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PURPLE_TYPE_THEME, PurpleTheme))
00044 #define PURPLE_THEME_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_THEME, PurpleThemeClass))
00045 #define PURPLE_IS_THEME(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PURPLE_TYPE_THEME))
00046 #define PURPLE_IS_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_THEME))
00047 #define PURPLE_THEME_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_THEME, PurpleThemeClass))
00048 
00049 struct _PurpleTheme
00050 {
00051     GObject parent;
00052     gpointer priv;
00053 };
00054 
00055 struct _PurpleThemeClass
00056 {
00057     GObjectClass parent_class;
00058 };
00059 
00060 /**************************************************************************/
00062 /**************************************************************************/
00063 G_BEGIN_DECLS
00064 
00069 GType purple_theme_get_type(void);
00070 
00078 const gchar *purple_theme_get_name(PurpleTheme *theme);
00079 
00086 void purple_theme_set_name(PurpleTheme *theme, const gchar *name);
00087 
00095 const gchar *purple_theme_get_description(PurpleTheme *theme);
00096 
00103 void purple_theme_set_description(PurpleTheme *theme, const gchar *description);
00104 
00112 const gchar *purple_theme_get_author(PurpleTheme *theme);
00113 
00120 void purple_theme_set_author(PurpleTheme *theme, const gchar *author);
00121 
00129 const gchar *purple_theme_get_type_string(PurpleTheme *theme);
00130 
00138 const gchar *purple_theme_get_dir(PurpleTheme *theme);
00139 
00146 void purple_theme_set_dir(PurpleTheme *theme, const gchar *dir);
00147 
00155 const gchar *purple_theme_get_image(PurpleTheme *theme);
00156 
00164 gchar *purple_theme_get_image_full(PurpleTheme *theme);
00165 
00172 void purple_theme_set_image(PurpleTheme *theme, const gchar *img);
00173 
00174 G_END_DECLS
00175 #endif /* PURPLE_THEME_H */