~ubuntu-branches/ubuntu/trusty/unity-control-center/trusty

« back to all changes in this revision

Viewing changes to panels/appearance/cc-appearance-xml.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-01-08 16:29:18 UTC
  • Revision ID: package-import@ubuntu.com-20140108162918-g29dd08tr913y2qh
Tags: upstream-14.04.0
ImportĀ upstreamĀ versionĀ 14.04.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Authors: Rodney Dawes <dobey@ximian.com>
 
3
 *
 
4
 *  Copyright 2003-2006 Novell, Inc. (www.novell.com)
 
5
 *
 
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
 
9
 *
 
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.
 
14
 *
 
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/>.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef _CC_APPEARANCE_XML_H_
 
21
#define _CC_APPEARANCE_XML_H_
 
22
 
 
23
#include <libgnome-desktop/gnome-desktop-thumbnail.h>
 
24
#include <gtk/gtk.h>
 
25
#include <gio/gio.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
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))
 
35
 
 
36
typedef struct CcAppearanceXmlPrivate CcAppearanceXmlPrivate;
 
37
 
 
38
typedef struct
 
39
{
 
40
  GObject parent;
 
41
  CcAppearanceXmlPrivate *priv;
 
42
} CcAppearanceXml;
 
43
 
 
44
typedef struct
 
45
{
 
46
  GObjectClass parent_class;
 
47
  void (*added) (CcAppearanceXml *xml, GObject *item);
 
48
} CcAppearanceXmlClass;
 
49
 
 
50
GType              cc_appearance_xml_get_type (void);
 
51
 
 
52
CcAppearanceXml *cc_appearance_xml_new (void);
 
53
 
 
54
void cc_appearance_xml_save                          (CcAppearanceItem *item,
 
55
                                                      const char       *filename);
 
56
 
 
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,
 
63
                                                      gpointer user_data);
 
64
const GHashTable *cc_appearance_xml_load_list_finish (GAsyncResult  *async_result);
 
65
 
 
66
G_END_DECLS
 
67
 
 
68
#endif
 
69