theme-loader.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_LOADER_H
00027 #define PURPLE_THEME_LOADER_H
00028 
00029 #include <glib.h>
00030 #include <glib-object.h>
00031 #include "theme.h"
00032 
00040 typedef struct _PurpleThemeLoader        PurpleThemeLoader;
00041 typedef struct _PurpleThemeLoaderClass   PurpleThemeLoaderClass;
00042 
00043 #define PURPLE_TYPE_THEME_LOADER            (purple_theme_loader_get_type())
00044 #define PURPLE_THEME_LOADER(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoader))
00045 #define PURPLE_THEME_LOADER_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass))
00046 #define PURPLE_IS_THEME_LOADER(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_THEME_LOADER))
00047 #define PURPLE_IS_THEME_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_THEME_LOADER))
00048 #define PURPLE_THEME_LOADER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_THEME_LOADER, PurpleThemeLoaderClass))
00049 
00050 struct _PurpleThemeLoader
00051 {
00052     GObject parent;
00053     gpointer priv;
00054 };
00055 
00056 struct _PurpleThemeLoaderClass
00057 {
00058     GObjectClass parent_class;
00059     PurpleTheme *((*purple_theme_loader_build)(const gchar*));
00060 };
00061 
00062 /**************************************************************************/
00064 /**************************************************************************/
00065 G_BEGIN_DECLS
00066 
00071 GType purple_theme_loader_get_type(void);
00072 
00080 const gchar *purple_theme_loader_get_type_string(PurpleThemeLoader *self);
00081 
00090 PurpleTheme *purple_theme_loader_build(PurpleThemeLoader *loader, const gchar *dir);
00091 
00092 G_END_DECLS
00093 #endif /* PURPLE_THEME_LOADER_H */