~rodrigo-moya/ubuntuone-client/fix-657850

561.3.5 by Alejandro J. Cura
cleaning up
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2
 *
3
 * Authors: Alejandro J. Cura <alecu@canonical.com>
4
 *
5
 * Copyright (C) 2010 Canonical Ltd.
6
 *
7
 * This program is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License version 3,
9
 * as published by the Free Software Foundation.
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, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
 *
20
 */
21
561.3.1 by Alejandro J. Cura
starting from scratch
22
#ifndef __GSD_UBUNTUONE_H__
23
#define __GSD_UBUNTUONE_H__
24
25
#include <glib.h>
26
#include <glib-object.h>
27
#include <gmodule.h>
28
29
#include "gnome-settings-daemon/gnome-settings-plugin.h"
727.1.2 by Rodrigo Moya
Only add the U1 folder to Places when we have credentials, and only do it once
30
#include <libsyncdaemon/libsyncdaemon.h>
561.3.1 by Alejandro J. Cura
starting from scratch
31
32
G_BEGIN_DECLS
33
34
#define GSD_TYPE_UBUNTUONE                (gsd_ubuntuone_get_type ())
35
#define GSD_UBUNTUONE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_TYPE_UBUNTUONE, GsdUbuntuOne))
36
#define GSD_UBUNTUONE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST((klass), GSD_TYPE_UBUNTUONE, GsdUbuntuOneClass))
37
#define GSD_IS_UBUNTUONE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_TYPE_UBUNTUONE))
38
#define GSD_IS_UBUNTUONE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), GSD_TYPE_UBUNTUONE))
39
#define GSD_UBUNTUONE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), GSD_TYPE_UBUNTUONE, GsdUbuntuOneClass))
40
41
typedef struct _GsdUbuntuOne GsdUbuntuOne;
42
typedef struct _GsdUbuntuOneClass GsdUbuntuOneClass;
43
44
struct _GsdUbuntuOne
45
{
46
	GnomeSettingsPlugin parent_instance;
47
48
	/*< private >*/
49
	SyncdaemonDaemon *syncdaemon;
561.3.2 by Alejandro J. Cura
removed .ui and xml2h step
50
	GtkWidget *out_of_space_dialog;
561.3.1 by Alejandro J. Cura
starting from scratch
51
};
52
53
struct _GsdUbuntuOneClass
54
{
55
	GnomeSettingsPluginClass parent_class;
56
};
57
58
GType gsd_ubuntuone_get_type (void);
59
G_MODULE_EXPORT GType register_gnome_settings_plugin (GTypeModule *module);
60
61
void gsd_ubuntuone_activate (GnomeSettingsPlugin *gsp_object);
62
63
G_END_DECLS
64
65
#endif