X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Foidentdconfiggenerator.h;h=81ee21c496637bb085f9a7705f61e8d74b5151da;hp=bc2e25a7b38354b192370173ebf9a63307343ef8;hb=da885f3c8e152e9bdf573290adcf53bed58d95d1;hpb=a72e2b4a90ce18c58b54e111161691ba008dc47d diff --git a/src/core/oidentdconfiggenerator.h b/src/core/oidentdconfiggenerator.h index bc2e25a7..81ee21c4 100644 --- a/src/core/oidentdconfiggenerator.h +++ b/src/core/oidentdconfiggenerator.h @@ -30,13 +30,13 @@ #include "quassel.h" #include "coreidentity.h" -#include class OidentdConfigGenerator : public QObject { Q_OBJECT public: explicit OidentdConfigGenerator(QObject *parent = 0); + ~OidentdConfigGenerator(); signals: @@ -47,20 +47,23 @@ public slots: private: bool init(); bool writeConfig(); - bool parseConfig(bool keepQuasselStanzas = true); + bool parseConfig(bool readQuasselStanzas = false); bool lineByUs(const QByteArray &line); bool _initialized; QDateTime _lastSync; QFile *_configFile; - QByteArray _config; + 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 QMutex _mutex; QDir configDir; QString configFileName; QString configPath; QString configTag; - QRegExp quasselStanza; + QRegExp quasselStanzaRx; + QString quasselStanzaTemplate; }; #endif // OIDENTDCONFIGGENERATOR_H