+
+//! not yet implemented
+bool OidentdConfigGenerator::removeSocket(const CoreIdentity *identity,
+ const QHostAddress &localAddress, quint16 localPort,
+ const QHostAddress &peerAddress, quint16 peerPort,
+ qint64 socketId)
+{
+ Q_UNUSED(identity)
+ Q_UNUSED(localAddress)
+ Q_UNUSED(localPort)
+ Q_UNUSED(peerAddress)
+ Q_UNUSED(peerPort)
+ Q_UNUSED(socketId)
+
+ return true;
+}
+
+
+bool OidentdConfigGenerator::parseConfig(bool readQuasselStanzas)
+{
+ if (!_configFile->exists())
+ return true;
+
+ if (!_configFile->isOpen() && !_configFile->open(QIODevice::ReadOnly))
+ return false;
+ _mutex.lock();
+
+ _parsedConfig.clear();
+ _configFile->seek(0);
+ while (!_configFile->atEnd()) {
+ QByteArray line = _configFile->readLine();
+
+ if (!lineByUs(line))
+ _parsedConfig.append(line);
+ else if (readQuasselStanzas)
+ _quasselConfig.append(line);
+ }
+
+ _configFile->close();
+ _mutex.unlock();
+ return true;