Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Authors: Rodney Dawes <dobey@ximian.com> |
3 |
|
|
* |
4 |
|
|
* Copyright 2003-2012 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 the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
18 |
|
|
*/ |
19 |
|
|
|
20 |
|
|
#pragma once |
21 |
|
|
|
22 |
|
|
#include <gtk/gtk.h> |
23 |
|
|
#include <gio/gio.h> |
24 |
|
|
|
25 |
|
|
G_BEGIN_DECLS |
26 |
|
|
|
27 |
|
|
#define CC_TYPE_BACKGROUND_XML (cc_background_xml_get_type ()) |
28 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcBackgroundXml, cc_background_xml, CC, BACKGROUND_XML, GObject) |
29 |
|
|
|
30 |
|
|
CcBackgroundXml *cc_background_xml_new (void); |
31 |
|
|
|
32 |
|
|
void cc_background_xml_save (CcBackgroundItem *item, |
33 |
|
|
const char *filename); |
34 |
|
|
|
35 |
|
|
CcBackgroundItem *cc_background_xml_get_item (const char *filename); |
36 |
|
|
gboolean cc_background_xml_load_xml (CcBackgroundXml *data, |
37 |
|
|
const char *filename); |
38 |
|
|
void cc_background_xml_load_list_async (CcBackgroundXml *xml, |
39 |
|
|
GCancellable *cancellable, |
40 |
|
|
GAsyncReadyCallback callback, |
41 |
|
|
gpointer user_data); |
42 |
|
|
gboolean cc_background_xml_load_list_finish (CcBackgroundXml *xml, |
43 |
|
|
GAsyncResult *result, |
44 |
|
|
GError **error); |
45 |
|
|
|
46 |
|
|
G_END_DECLS |
47 |
|
|
|