X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Foidentdconfiggenerator.h;h=8a71b53dfbed44a083abdfe35c81396e6a4ac6aa;hp=ee3e53c3196622cc3a4a72d67134ffb6a38cf06a;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/core/oidentdconfiggenerator.h b/src/core/oidentdconfiggenerator.h index ee3e53c3..8a71b53d 100644 --- a/src/core/oidentdconfiggenerator.h +++ b/src/core/oidentdconfiggenerator.h @@ -21,17 +21,17 @@ #ifndef OIDENTDCONFIGGENERATOR_H #define OIDENTDCONFIGGENERATOR_H -#include -#include +#include +#include #include #include -#include #include #include -#include +#include +#include -#include "quassel.h" #include "coreidentity.h" +#include "quassel.h" //! Produces oidentd configuration files /*! @@ -54,28 +54,34 @@ class OidentdConfigGenerator : public QObject { Q_OBJECT public: - explicit OidentdConfigGenerator(QObject *parent = nullptr); + explicit OidentdConfigGenerator(QObject* parent = nullptr); ~OidentdConfigGenerator() override; public slots: - bool addSocket(const CoreIdentity *identity, const QHostAddress &localAddress, - quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort, + bool addSocket(const CoreIdentity* identity, + const QHostAddress& localAddress, + quint16 localPort, + const QHostAddress& peerAddress, + quint16 peerPort, qint64 socketId); - bool removeSocket(const CoreIdentity *identity, const QHostAddress &localAddress, - quint16 localPort, const QHostAddress &peerAddress, quint16 peerPort, + bool removeSocket(const CoreIdentity* identity, + const QHostAddress& localAddress, + quint16 localPort, + const QHostAddress& peerAddress, + quint16 peerPort, qint64 socketId); private: - QString sysIdentForIdentity(const CoreIdentity *identity) const; + QString sysIdentForIdentity(const CoreIdentity* identity) const; bool init(); bool writeConfig(); bool parseConfig(bool readQuasselStanzas = false); - bool lineByUs(const QByteArray &line); + bool lineByUs(const QByteArray& line); bool _initialized{false}; bool _strict; QDateTime _lastSync; - QFile *_configFile; + QFile* _configFile; QByteArray _parsedConfig; QByteArray _quasselConfig; // Mutex isn't strictly necessary at the moment, since with the current invocation in Core only one instance at a time exists @@ -89,5 +95,4 @@ private: QString _quasselStanzaTemplate; }; - -#endif // OIDENTDCONFIGGENERATOR_H +#endif // OIDENTDCONFIGGENERATOR_H