return info;
}
+QByteArray Network::bufferKey(const QString &recipient) const {
+ return _keyHash[recipient.toLower()];
+}
+
+void Network::setBufferKey(const QString &recipient, const QByteArray &key) {
+ _keyHash[recipient.toLower()] = key;
+}
// ====================
// Public Slots:
#include <QVariantMap>
#include <QPointer>
#include <QMutex>
+#include <QByteArray>
#include "types.h"
#include "util.h"
static QStringList presetDefaultChannels(const QString &networkName);
static NetworkInfo networkInfoFromPreset(const QString &networkName);
+ // Blowfish stuff
+ QByteArray bufferKey(const QString &recipient) const;
+ void setBufferKey(const QString &recipient, const QByteArray &key);
+
public slots:
void setNetworkName(const QString &networkName);
void setCurrentServer(const QString ¤tServer);
QHash<QString, IrcChannel *> _ircChannels; // stores all known channels
QHash<QString, QString> _supports; // stores results from RPL_ISUPPORT
+ // Blowfish key map
+ QHash<QString, QByteArray> _keyHash;
+
ServerList _serverList;
bool _useRandomServer;
QStringList _perform;