2
* Copyright (C) 2010-2011 Robert Ancell.
3
* Author: Robert Ancell <robert.ancell@canonical.com>
5
* This program is free software: you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License as published by the Free Software
7
* Foundation, either version 3 of the License, or (at your option) any later
8
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
12
#include "guest-manager.h"
14
struct GuestManagerPrivate
20
G_DEFINE_TYPE (GuestManager, guest_manager, G_TYPE_OBJECT);
23
guest_manager_new (GKeyFile *config)
25
GuestManager *self = g_object_new (GUEST_MANAGER_TYPE, NULL);
27
self->priv->config = config;
33
guest_manager_get_is_enabled (GuestManager *manager)
39
guest_manager_add_account (GuestManager *manager)
45
guest_manager_remove_account (GuestManager *manager, const gchar *username)
50
guest_manager_init (GuestManager *manager)
52
manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager, GUEST_MANAGER_TYPE, GuestManagerPrivate);
56
guest_manager_finalize (GObject *object)
58
GuestManager *self = GUEST_MANAGER (object);
60
G_OBJECT_CLASS (guest_manager_parent_class)->finalize (object);
64
guest_manager_class_init (GuestManagerClass *klass)
66
GObjectClass *object_class = G_OBJECT_CLASS (klass);
68
object_class->finalize = guest_manager_finalize;
70
g_type_class_add_private (klass, sizeof (GuestManagerPrivate));