2
* Authors: Rodney Dawes <dobey@ximian.com>
4
* Copyright 2003-2006 Novell, Inc. (www.novell.com)
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of version 2 of the GNU General Public License
8
* as published by the Free Software Foundation
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef _CC_APPEARANCE_XML_H_
21
#define _CC_APPEARANCE_XML_H_
23
#include <libgnome-desktop/gnome-desktop-thumbnail.h>
29
#define CC_TYPE_APPEARANCE_XML (cc_appearance_xml_get_type ())
30
#define CC_APPEARANCE_XML(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CC_TYPE_APPEARANCE_XML, CcAppearanceXml))
31
#define CC_APPEARANCE_XML_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CC_TYPE_APPEARANCE_XML, CcAppearanceXmlClass))
32
#define CC_IS_APPEARANCE_XML(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CC_TYPE_APPEARANCE_XML))
33
#define CC_IS_APPEARANCE_XML_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CC_TYPE_APPEARANCE_XML))
34
#define CC_APPEARANCE_XML_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CC_TYPE_APPEARANCE_XML, CcAppearanceXmlClass))
36
typedef struct CcAppearanceXmlPrivate CcAppearanceXmlPrivate;
41
CcAppearanceXmlPrivate *priv;
46
GObjectClass parent_class;
47
void (*added) (CcAppearanceXml *xml, GObject *item);
48
} CcAppearanceXmlClass;
50
GType cc_appearance_xml_get_type (void);
52
CcAppearanceXml *cc_appearance_xml_new (void);
54
void cc_appearance_xml_save (CcAppearanceItem *item,
55
const char *filename);
57
CcAppearanceItem *cc_appearance_xml_get_item (const char *filename);
58
gboolean cc_appearance_xml_load_xml (CcAppearanceXml *data,
59
const char *filename);
60
void cc_appearance_xml_load_list_async (CcAppearanceXml *data,
61
GCancellable *cancellable,
62
GAsyncReadyCallback callback,
64
const GHashTable *cc_appearance_xml_load_list_finish (GAsyncResult *async_result);