aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-09-01 06:46:16 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-09-01 06:46:16 +0000
commit8947d5167fbcfe50627ff194f83a22d087693df7 (patch)
tree653e68c26e8592e4d0b4343e0c0f2055167498bf /src
parenteab5e966ef4d3ec21863b67765851105ddb15763 (diff)
downloadqxmpp-8947d5167fbcfe50627ff194f83a22d087693df7.tar.gz
replace calls to setPasswd() by setPassword()
Diffstat (limited to 'src')
-rw-r--r--src/QXmppClient.cpp18
-rw-r--r--src/QXmppClient.h6
-rw-r--r--src/QXmppOutgoingClient.cpp8
3 files changed, 16 insertions, 16 deletions
diff --git a/src/QXmppClient.cpp b/src/QXmppClient.cpp
index 350f5692..f868d8f2 100644
--- a/src/QXmppClient.cpp
+++ b/src/QXmppClient.cpp
@@ -203,7 +203,7 @@ QXmppConfiguration& QXmppClient::configuration()
/// are specified using the config parameter. Use signals connected(), error(QXmppClient::Error)
/// and disconnected() to know the status of the connection.
/// \param config Specifies the configuration object for connecting the XMPP server.
-/// This contains the host name, user, passwd etc. See QXmppConfiguration for details.
+/// This contains the host name, user, password etc. See QXmppConfiguration for details.
/// \param initialPresence The initial presence which will be set for this user
/// after establishing the session. The default value is QXmppPresence::Available
@@ -228,12 +228,12 @@ void QXmppClient::connectToServer(const QXmppConfiguration& config,
/// \param jid JID for the account.
/// \param password Password for the account.
-void QXmppClient::connectToServer(const QString &jid, const QString &passwd)
+void QXmppClient::connectToServer(const QString &jid, const QString &password)
{
QXmppConfiguration config;
config.setUser(jidToUser(jid));
config.setDomain(jidToDomain(jid));
- config.setPasswd(passwd);
+ config.setPassword(password);
connectToServer(config);
}
@@ -244,7 +244,7 @@ void QXmppClient::connectToServer(const QString &jid, const QString &passwd)
/// \param user Username of the account at the specified XMPP server. It should
/// be the name without the domain name. E.g. "qxmpp.test1" and not
/// "qxmpp.test1@gmail.com"
-/// \param passwd Password for the specified username
+/// \param password Password for the specified username
/// \param domain Domain name e.g. "gmail.com" and "jabber.org".
/// \param port Port number at which the XMPP server is listening. The default
/// value is 5222.
@@ -252,14 +252,14 @@ void QXmppClient::connectToServer(const QString &jid, const QString &passwd)
/// after establishing the session. The default value is QXmppPresence::Available
void QXmppClient::connectToServer(const QString& host, const QString& user,
- const QString& passwd, const QString& domain,
+ const QString& password, const QString& domain,
int port,
const QXmppPresence& initialPresence)
{
QXmppConfiguration &config = d->stream->configuration();
config.setHost(host);
config.setUser(user);
- config.setPasswd(passwd);
+ config.setPassword(password);
config.setDomain(domain);
config.setPort(port);
connectToServer(config, initialPresence);
@@ -271,7 +271,7 @@ void QXmppClient::connectToServer(const QString& host, const QString& user,
/// the form of a string (e.g. "192.168.1.25").
/// \param bareJid BareJid of the account at the specified XMPP server.
/// (e.g. "qxmpp.test1@gmail.com" or qxmpptest@jabber.org.)
-/// \param passwd Password for the specified username
+/// \param password Password for the specified username
/// \param port Port number at which the XMPP server is listening. The default
/// value is 5222.
/// \param initialPresence The initial presence which will be set for this user
@@ -279,7 +279,7 @@ void QXmppClient::connectToServer(const QString& host, const QString& user,
void QXmppClient::connectToServer(const QString& host,
const QString& bareJid,
- const QString& passwd,
+ const QString& password,
int port,
const QXmppPresence& initialPresence)
{
@@ -287,7 +287,7 @@ void QXmppClient::connectToServer(const QString& host,
config.setHost(host);
config.setUser(jidToUser(bareJid));
config.setDomain(jidToDomain(bareJid));
- config.setPasswd(passwd);
+ config.setPassword(password);
config.setPort(port);
connectToServer(config, initialPresence);
}
diff --git a/src/QXmppClient.h b/src/QXmppClient.h
index be87cb93..f3c43c04 100644
--- a/src/QXmppClient.h
+++ b/src/QXmppClient.h
@@ -99,7 +99,7 @@ public:
const QXmppPresence& initialPresence =
QXmppPresence());
void connectToServer(const QString &jid,
- const QString &passwd);
+ const QString &password);
void disconnectFromServer();
bool isConnected() const;
@@ -144,14 +144,14 @@ public:
// If you need this level of customisation, work directly with QXmppConfiguration.
void Q_DECL_DEPRECATED connectToServer(const QString& host,
const QString& user,
- const QString& passwd,
+ const QString& password,
const QString& domain,
int port = 5222,
const QXmppPresence& initialPresence =
QXmppPresence());
void Q_DECL_DEPRECATED connectToServer(const QString& host,
const QString& bareJid,
- const QString& passwd,
+ const QString& password,
int port = 5222,
const QXmppPresence& initialPresence =
QXmppPresence());
diff --git a/src/QXmppOutgoingClient.cpp b/src/QXmppOutgoingClient.cpp
index 3f9bedde..6cf78d64 100644
--- a/src/QXmppOutgoingClient.cpp
+++ b/src/QXmppOutgoingClient.cpp
@@ -316,7 +316,7 @@ void QXmppOutgoingClient::handleStanza(const QDomElement &nodeRecv)
case QXmppConfiguration::SASLPlain:
{
QString userPass('\0' + configuration().user() +
- '\0' + configuration().passwd());
+ '\0' + configuration().password());
QByteArray data = "<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>";
data += userPass.toUtf8().toBase64();
data += "</auth>";
@@ -755,7 +755,7 @@ void QXmppOutgoingClient::sendAuthDigestMD5ResponseStep1(const QString& challeng
d->saslDigest.setNonce(map.value("nonce"));
d->saslDigest.setRealm(map.value("realm"));
d->saslDigest.setUsername(configuration().user().toUtf8());
- d->saslDigest.setPassword(configuration().passwd().toUtf8());
+ d->saslDigest.setPassword(configuration().password().toUtf8());
// Build response
QMap<QByteArray, QByteArray> response;
@@ -810,9 +810,9 @@ void QXmppOutgoingClient::sendNonSASLAuth(bool plainText)
authQuery.setType(QXmppIq::Set);
authQuery.setUsername(configuration().user());
if (plainText)
- authQuery.setPassword(configuration().passwd());
+ authQuery.setPassword(configuration().password());
else
- authQuery.setDigest(d->streamId, configuration().passwd());
+ authQuery.setDigest(d->streamId, configuration().password());
authQuery.setResource(configuration().resource());
d->nonSASLAuthId = authQuery.id();
sendPacket(authQuery);