_certManager = new ClientCertManager(id(), this);
if(isValid()) { // this means we are not a newly created Identity but have a proper Id
Client::signalProxy()->synchronize(_certManager);
- connect(_certManager, SIGNAL(updated(const QVariantMap &)), this, SLOT(markClean()));
+ connect(_certManager, SIGNAL(updated()), this, SLOT(markClean()));
connect(_certManager, SIGNAL(initDone()), this, SLOT(markClean()));
}
}
_temporarilyRemovedBuffers.remove(bufferId);
_buffers.insert(pos, bufferId);
+ SYNC(ARG(bufferId), ARG(pos))
emit bufferAdded(bufferId, pos);
emit configChanged();
}
pos = _buffers.count() - 1;
_buffers.move(_buffers.indexOf(bufferId), pos);
+ SYNC(ARG(bufferId), ARG(pos))
emit bufferMoved(bufferId, pos);
emit configChanged();
}
_removedBuffers.remove(bufferId);
_temporarilyRemovedBuffers << bufferId;
-
+ SYNC(ARG(bufferId))
emit bufferRemoved(bufferId);
emit configChanged();
}
_removedBuffers << bufferId;
+ SYNC(ARG(bufferId))
emit bufferPermanentlyRemoved(bufferId);
emit configChanged();
}
if(receiverId != -1) {
receiveMap[i] = receiverId;
- qDebug() << requestSlot.signature() << _meta->method(receiverId).signature() << "---" << i << receiverId;
}
}
_receiveMap = receiveMap;
void SyncableObject::update(const QVariantMap &properties) {
fromVariantMap(properties);
- emit updated(properties);
+ SYNC(ARG(properties))
+ emit updated();
}
void SyncableObject::requestUpdate(const QVariantMap &properties) {
if(allowClientUpdates()) {
update(properties);
}
- emit updateRequested(properties);
+ REQUEST(ARG(properties))
}
void SyncableObject::sync_call__(SignalProxy::ProxyMode modeType, const char *funcname, ...) const {
signals:
void initDone();
void updatedRemotely();
- void updated(const QVariantMap &properties);
- void updateRequested(const QVariantMap &properties);
+ void updated();
private:
void synchronize(SignalProxy *proxy);
{
#ifdef HAVE_SSL
connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
- connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
+ connect(&_certManager, SIGNAL(updated()), this, SIGNAL(updated()));
#endif
}
{
#ifdef HAVE_SSL
connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
- connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
+ connect(&_certManager, SIGNAL(updated()), this, SIGNAL(updated()));
#endif
}
{
#ifdef HAVE_SSL
connect(this, SIGNAL(idSet(IdentityId)), &_certManager, SLOT(setId(IdentityId)));
- connect(&_certManager, SIGNAL(updated(const QVariantMap &)), this, SIGNAL(updated(const QVariantMap &)));
+ connect(&_certManager, SIGNAL(updated()), this, SIGNAL(updated()));
#endif
}
_identities[identity.id()] = coreIdentity;
// CoreIdentity has it's own synchronize method since it's "private" sslManager needs to be synced aswell
coreIdentity->synchronize(signalProxy());
- connect(coreIdentity, SIGNAL(updated(const QVariantMap &)), this, SLOT(updateIdentityBySender()));
+ connect(coreIdentity, SIGNAL(updated()), this, SLOT(updateIdentityBySender()));
emit identityCreated(*coreIdentity);
}
}
void AliasesModel::clientConnected() {
- connect(Client::aliasManager(), SIGNAL(updated(QVariantMap)), SLOT(revert()));
+ connect(Client::aliasManager(), SIGNAL(updated()), SLOT(revert()));
if(Client::aliasManager()->isInitialized())
initDone();
else