X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=8ddacb910c2c1d8250af0b663941171b2554b2c5;hp=906684c7d393da40343eeb5d0f984d27ce5f792b;hb=db00831bca59a012242d1ad5fac52a20c6cd2956;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650 diff --git a/src/client/client.cpp b/src/client/client.cpp index 906684c7..8ddacb91 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -89,34 +89,28 @@ Client::Client(std::unique_ptr ui, QObject* parent) SignalProxy* p = signalProxy(); - p->attachSlot(SIGNAL(displayMsg(const Message&)), this, SLOT(recvMessage(const Message&))); - p->attachSlot(SIGNAL(displayStatusMsg(QString, QString)), this, SLOT(recvStatusMsg(QString, QString))); - - p->attachSlot(SIGNAL(bufferInfoUpdated(BufferInfo)), _networkModel, SLOT(bufferUpdated(BufferInfo))); - p->attachSignal(inputHandler(), SIGNAL(sendInput(BufferInfo, QString))); - p->attachSignal(this, SIGNAL(requestNetworkStates())); - - p->attachSignal(this, - SIGNAL(requestCreateIdentity(const Identity&, const QVariantMap&)), - SIGNAL(createIdentity(const Identity&, const QVariantMap&))); - p->attachSignal(this, SIGNAL(requestRemoveIdentity(IdentityId)), SIGNAL(removeIdentity(IdentityId))); - p->attachSlot(SIGNAL(identityCreated(const Identity&)), this, SLOT(coreIdentityCreated(const Identity&))); - p->attachSlot(SIGNAL(identityRemoved(IdentityId)), this, SLOT(coreIdentityRemoved(IdentityId))); - - p->attachSignal(this, - SIGNAL(requestCreateNetwork(const NetworkInfo&, const QStringList&)), - SIGNAL(createNetwork(const NetworkInfo&, const QStringList&))); - p->attachSignal(this, SIGNAL(requestRemoveNetwork(NetworkId)), SIGNAL(removeNetwork(NetworkId))); - p->attachSlot(SIGNAL(networkCreated(NetworkId)), this, SLOT(coreNetworkCreated(NetworkId))); - p->attachSlot(SIGNAL(networkRemoved(NetworkId)), this, SLOT(coreNetworkRemoved(NetworkId))); - - p->attachSignal(this, - SIGNAL(requestPasswordChange(PeerPtr, QString, QString, QString)), - SIGNAL(changePassword(PeerPtr, QString, QString, QString))); - p->attachSlot(SIGNAL(passwordChanged(PeerPtr, bool)), this, SLOT(corePasswordChanged(PeerPtr, bool))); - - p->attachSignal(this, SIGNAL(requestKickClient(int)), SIGNAL(kickClient(int))); - p->attachSlot(SIGNAL(disconnectFromCore()), this, SLOT(disconnectFromCore())); + p->attachSlot(SIGNAL(displayMsg(Message)), this, &Client::recvMessage); + p->attachSlot(SIGNAL(displayStatusMsg(QString,QString)), this, &Client::recvStatusMsg); + + p->attachSlot(SIGNAL(bufferInfoUpdated(BufferInfo)), _networkModel, &NetworkModel::bufferUpdated); + p->attachSignal(inputHandler(), &ClientUserInputHandler::sendInput); + p->attachSignal(this, &Client::requestNetworkStates); + + p->attachSignal(this, &Client::requestCreateIdentity, SIGNAL(createIdentity(Identity,QVariantMap))); + p->attachSignal(this, &Client::requestRemoveIdentity, SIGNAL(removeIdentity(IdentityId))); + p->attachSlot(SIGNAL(identityCreated(Identity)), this, &Client::coreIdentityCreated); + p->attachSlot(SIGNAL(identityRemoved(IdentityId)), this, &Client::coreIdentityRemoved); + + p->attachSignal(this, &Client::requestCreateNetwork, SIGNAL(createNetwork(NetworkInfo,QStringList))); + p->attachSignal(this, &Client::requestRemoveNetwork, SIGNAL(removeNetwork(NetworkId))); + p->attachSlot(SIGNAL(networkCreated(NetworkId)), this, &Client::coreNetworkCreated); + p->attachSlot(SIGNAL(networkRemoved(NetworkId)), this, &Client::coreNetworkRemoved); + + p->attachSignal(this, &Client::requestPasswordChange, SIGNAL(changePassword(PeerPtr,QString,QString,QString))); + p->attachSlot(SIGNAL(passwordChanged(PeerPtr,bool)), this, &Client::corePasswordChanged); + + p->attachSignal(this, &Client::requestKickClient, SIGNAL(kickClient(int))); + p->attachSlot(SIGNAL(disconnectFromCore()), this, &Client::disconnectFromCore); p->synchronize(backlogManager()); p->synchronize(coreInfo());