summaryrefslogtreecommitdiff
path: root/src/mcd-account.h
diff options
context:
space:
mode:
authorAlberto Mardegan <alberto.mardegan@nokia.com>2008-12-08 16:33:18 +0200
committerAlberto Mardegan <alberto.mardegan@nokia.com>2008-12-08 16:33:18 +0200
commit0955d733e7fbc68ca5648c3bf6a43d8a0b620a56 (patch)
tree2332d97ac14dd279a0e9d270826ba7c0a307ef5c /src/mcd-account.h
parent7b7bef73c927c00b7c223777d102aa475d306c90 (diff)
Let the McdAccount reference the McdAccountManager
This gives a better API, and the mcd_account_new() function doesn't need the TpDBusDaemon and the GKeyFile anymore. For these, add getter methods to the McdAccountManager.
Diffstat (limited to 'src/mcd-account.h')
-rw-r--r--src/mcd-account.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mcd-account.h b/src/mcd-account.h
index ac80d9e5..c84f75ff 100644
--- a/src/mcd-account.h
+++ b/src/mcd-account.h
@@ -43,6 +43,7 @@ typedef struct _McdAccountPrivate McdAccountPrivate;
typedef struct _McdAccountClass McdAccountClass;
#include "mcd-connection.h"
+#include "mcd-account-manager.h"
struct _McdAccount
{
@@ -68,9 +69,11 @@ struct _McdAccountClass
#define MC_ACCOUNT_DBUS_OBJECT_BASE "/org/freedesktop/Telepathy/Account/"
GType mcd_account_get_type (void);
-McdAccount *mcd_account_new (TpDBusDaemon *dbus_daemon, GKeyFile *keyfile,
+McdAccount *mcd_account_new (McdAccountManager *account_manager,
const gchar *name);
+McdAccountManager *mcd_account_get_account_manager (McdAccount *account);
+
gboolean mcd_account_delete (McdAccount *account, GError **error);
const gchar *mcd_account_get_unique_name (McdAccount *account);