}
void Network::setUseSasl(bool use) {
- _useSasl = use;
- SYNC(ARG(use))
- emit configChanged();
+ _useSasl = use;
+ SYNC(ARG(use))
+ emit configChanged();
}
void Network::setSaslAccount(const QString &account) {
- _saslAccount = account;
- SYNC(ARG(account))
- emit configChanged();
+ _saslAccount = account;
+ SYNC(ARG(account))
+ emit configChanged();
}
void Network::setSaslPassword(const QString &password) {
- _saslPassword = password;
- SYNC(ARG(password))
- emit configChanged();
+ _saslPassword = password;
+ SYNC(ARG(password))
+ emit configChanged();
}
void Network::setUseAutoReconnect(bool use) {
SELECT networkid, userid, networkname, identityid, encodingcodec, decodingcodec, servercodec,
userandomserver, perform, useautoidentify, autoidentifyservice, autoidentifypassword,
useautoreconnect, autoreconnectinterval, autoreconnectretries, unlimitedconnectretries,
- rejoinchannels, connected, usermode, awaymessage, attachperform, detachperform
+ rejoinchannels, connected, usermode, awaymessage, attachperform, detachperform,
+ usesasl, saslaccount, saslpassword
FROM network
QString awaymessage;
QString attachperform;
QString detachperform;
+ bool usesasl;
+ QString saslaccount;
+ QString saslpassword;
};
struct BufferMO {
bindValue(19, network.awaymessage);
bindValue(20, network.attachperform);
bindValue(21, network.detachperform);
+ bindValue(22, network.usesasl);
+ bindValue(23, network.saslaccount);
+ bindValue(24, network.saslpassword);
return exec();
}
network.awaymessage = value(19).toString();
network.attachperform = value(20).toString();
network.detachperform = value(21).toString();
+ network.usesasl = value(22).toInt() == 1 ? true : false;
+ network.saslaccount = value(23).toString();
+ network.saslpassword = value(24).toString();
return true;
}