X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsynchronizer.h;fp=src%2Fcommon%2Fsynchronizer.h;h=0000000000000000000000000000000000000000;hb=a7f5d6a23f7214b11f6db85346a67fd7d02767da;hp=fe407f8bc910e74bf50ca8435a0f4c1a1f11e460;hpb=1956aab57bf98ce072ed86f34785e5d7abba35a0;p=quassel.git diff --git a/src/common/synchronizer.h b/src/common/synchronizer.h deleted file mode 100644 index fe407f8b..00000000 --- a/src/common/synchronizer.h +++ /dev/null @@ -1,79 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * - * devel@quassel-irc.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef _SYNCHRONIZER_H_ -#define _SYNCHRONIZER_H_ - -class SignalProxy; - -#include -#include -#include -#include -#include -#include - -class Synchronizer : public QObject { - Q_OBJECT - -public: - Synchronizer(QObject *parent, SignalProxy *signalproxy); - - bool initialized() const; - SignalProxy *proxy() const; - - QVariantMap initData() const; - void setInitData(const QVariantMap &properties); - -public slots: - void synchronizeClients() const; - void recvInitData(QVariantMap properties); - void parentChangedName(); - -signals: - void requestSync() const; - void sendInitData(QVariantMap properties) const; - void initDone(); - -private: - bool _initialized; - QPointer _signalproxy; - - QString signalPrefix() const; - QString initSignal() const; - QString requestSyncSignal() const; - - QString methodBaseName(const QMetaMethod &method) const; - bool methodsMatch(const QMetaMethod &signal, const QMetaMethod &slot) const; - - QList parentProperties() const; - QList parentSlots() const; - QList parentSignals() const; - - QList getMethodByName(const QString &methodname); - - void attach(); - void attachAsSlave(); - void attachAsMaster(); - - bool setInitValue(const QString &property, const QVariant &value); -}; - -#endif