Fitting the SyncableObjects to the new Style
[quassel.git] / src / core / coreidentity.cpp
index a82ef95..fb836e1 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -22,6 +22,7 @@
 
 #include "signalproxy.h"
 
+INIT_SYNCABLE_OBJECT(CoreIdentity)
 CoreIdentity::CoreIdentity(IdentityId id, QObject *parent)
   : Identity(id, parent)
 #ifdef HAVE_SSL
@@ -30,6 +31,7 @@ CoreIdentity::CoreIdentity(IdentityId id, QObject *parent)
 {
 #ifdef HAVE_SSL
   connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
+  connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
 #endif
 }
 
@@ -41,6 +43,7 @@ CoreIdentity::CoreIdentity(const Identity &other, QObject *parent)
 {
 #ifdef HAVE_SSL
   connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
+  connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
 #endif
 }
 
@@ -54,6 +57,7 @@ CoreIdentity::CoreIdentity(const CoreIdentity &other, QObject *parent)
 {
 #ifdef HAVE_SSL
   connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
+  connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
 #endif
 }
 
@@ -90,6 +94,7 @@ CoreIdentity &CoreIdentity::operator=(const CoreIdentity &identity) {
 // ========================================
 //  CoreCertManager
 // ========================================
+INIT_SYNCABLE_OBJECT(CoreCertManager)
 CoreCertManager::CoreCertManager(CoreIdentity &identity)
   : CertManager(identity.id()),
     identity(identity)