diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-05-17 09:58:18 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-05-17 09:58:18 +0000 |
| commit | 7f0bbb6e3816526f14b9d7097fa07332dc49561e (patch) | |
| tree | 8980bd18224e53dec5305d11bae3c70d2f9a21d8 /source | |
| parent | 40a319f604499b99626d0653b06ea114e59862c2 (diff) | |
| download | qxmpp-7f0bbb6e3816526f14b9d7097fa07332dc49561e.tar.gz | |
fix typo (Precence => Presence)
Diffstat (limited to 'source')
| -rw-r--r-- | source/QXmppClient.cpp | 32 | ||||
| -rw-r--r-- | source/QXmppClient.h | 2 |
2 files changed, 17 insertions, 17 deletions
diff --git a/source/QXmppClient.cpp b/source/QXmppClient.cpp index f69eec5c..12ce545a 100644 --- a/source/QXmppClient.cpp +++ b/source/QXmppClient.cpp @@ -38,7 +38,7 @@ /// The default value is 0. QXmppClient::QXmppClient(QObject *parent) - : QObject(parent), m_logger(0), m_stream(0), m_clientPrecence(QXmppPresence::Available), + : QObject(parent), m_logger(0), m_stream(0), m_clientPresence(QXmppPresence::Available), m_reconnectionManager(0) { m_logger = QXmppLogger::getLogger(); @@ -123,7 +123,7 @@ void QXmppClient::connectToServer(const QXmppConfiguration& config, m_reconnectionManager = 0; } - m_clientPrecence = initialPresence; + m_clientPresence = initialPresence; m_stream->connect(); } @@ -153,7 +153,7 @@ void QXmppClient::connectToServer(const QString& host, const QString& user, m_config.setDomain(domain); m_config.setPort(port); - m_clientPrecence = initialPresence; + m_clientPresence = initialPresence; m_stream->connect(); } @@ -224,10 +224,10 @@ void QXmppClient::sendPacket(const QXmppPacket& packet) void QXmppClient::disconnect() { - m_clientPrecence.setType(QXmppPresence::Unavailable); - m_clientPrecence.getStatus().setType(QXmppPresence::Status::Online); - m_clientPrecence.getStatus().setStatusText("Logged out"); - sendPacket(m_clientPrecence); + m_clientPresence.setType(QXmppPresence::Unavailable); + m_clientPresence.getStatus().setType(QXmppPresence::Status::Online); + m_clientPresence.getStatus().setStatusText("Logged out"); + sendPacket(m_clientPresence); if(m_stream) m_stream->disconnect(); } @@ -264,8 +264,8 @@ void QXmppClient::sendMessage(const QString& bareJid, const QString& message) void QXmppClient::setClientPresence(const QXmppPresence& presence) { - m_clientPrecence = presence; - sendPacket(m_clientPrecence); + m_clientPresence = presence; + sendPacket(m_clientPresence); } /// Overloaded function. @@ -277,8 +277,8 @@ void QXmppClient::setClientPresence(const QXmppPresence& presence) void QXmppClient::setClientPresence(const QString& statusText) { - m_clientPrecence.getStatus().setStatusText(statusText); - sendPacket(m_clientPrecence); + m_clientPresence.getStatus().setStatusText(statusText); + sendPacket(m_clientPresence); } /// Overloaded function. @@ -296,8 +296,8 @@ void QXmppClient::setClientPresence(QXmppPresence::Type presenceType) } else { - m_clientPrecence.setType(presenceType); - sendPacket(m_clientPrecence); + m_clientPresence.setType(presenceType); + sendPacket(m_clientPresence); } } @@ -310,8 +310,8 @@ void QXmppClient::setClientPresence(QXmppPresence::Type presenceType) void QXmppClient::setClientPresence(QXmppPresence::Status::Type statusType) { - m_clientPrecence.getStatus().setType(statusType); - sendPacket(m_clientPrecence); + m_clientPresence.getStatus().setType(statusType); + sendPacket(m_clientPresence); } /// Function to get the client's current presence. @@ -321,7 +321,7 @@ void QXmppClient::setClientPresence(QXmppPresence::Status::Type statusType) const QXmppPresence& QXmppClient::getClientPresence() const { - return m_clientPrecence; + return m_clientPresence; } /// Function to get reconnection manager. By default there exists a reconnection diff --git a/source/QXmppClient.h b/source/QXmppClient.h index e1fb8513..9275cbb8 100644 --- a/source/QXmppClient.h +++ b/source/QXmppClient.h @@ -208,7 +208,7 @@ private: ///< TCP socket and XMPP protocol QXmppConfiguration m_config; ///< This object provides the configuration ///< required for connecting to the XMPP server. - QXmppPresence m_clientPrecence; ///< Stores the current presence of the connected client + QXmppPresence m_clientPresence; ///< Stores the current presence of the connected client QXmppReconnectionManager* m_reconnectionManager; ///< Pointer to the reconnection manager QHash<QString,QXmppInvokable *> m_interfaces; }; |
