Permalink
Browse files

Fix spelling errors

  • Loading branch information...
tehnick committed Jan 7, 2019
1 parent e24ed7b commit bcb778ec981486d37aef409a6d4edc2732069e48
@@ -85,7 +85,7 @@ http://doc.qxmpp.org/
SUPPORTED PLATFORMS
===================

It should work on all the plaforms supported by Qt. For a complete list of
It should work on all the platforms supported by Qt. For a complete list of
platforms support by Qt, see:

https://doc.qt.io/qt-5/supported-platforms.html
@@ -40,7 +40,7 @@ This example is also available with the source code in the example directory.

\code
// subclass the QXmppClient and create a new class echoClient
// in the contructor the signal QXmppClient::messageReceived(const QXmppMessage&)
// in the constructor the signal QXmppClient::messageReceived(const QXmppMessage&)
// is connected to the slot echoClient::messageReceived(const QXmppMessage&)
// in the slot one can process the message received

@@ -1,5 +1,5 @@
This is a very simple bot which echoes the message sent to it.

Run this example, send it a message from a friend of this bot. You will recieve the message back.
Run this example, send it a message from a friend of this bot. You will receive the message back.

This example shows how to receive and send messages.
@@ -530,7 +530,7 @@ int QXmppOpusCodec::readWindow(int bufferSize)
// Get the number of frames in the buffer.
int samples = bufferSize / nChannels / 2;

// Find an appropiate number of samples to read, according to Opus specs.
// Find an appropriate number of samples to read, according to Opus specs.
for (int i = validFrameSize.size() - 1; i >= 0; i--)
if (validFrameSize[i] <= samples)
return validFrameSize[i];
@@ -1207,7 +1207,7 @@ QList<QXmppVideoFrame> QXmppVpxDecoder::handlePacket(const QXmppRtpPacket &packe
QXmppVideoFrame frame;
static quint16 sequence = 0;

// If the incomming packet sequence is wrong discard all packets until a
// If the incoming packet sequence is wrong discard all packets until a
// complete keyframe arrives.
// If a partition of a keyframe is missing, discard it until a next
// keyframe.
@@ -91,7 +91,7 @@ void QXmppIq::setType(QXmppIq::Type type)
d->type = type;
}

/// Indicates if the QXmppStanza is a stanza in the XMPP sence (i. e. a message,
/// Indicates if the QXmppStanza is a stanza in the XMPP sense (i. e. a message,
/// iq or presence)

bool QXmppIq::isXmppStanza() const
@@ -474,7 +474,7 @@ void QXmppMessage::setPrivate(const bool priv)
d->privatemsg = priv;
}

/// Indicates if the QXmppStanza is a stanza in the XMPP sence (i. e. a message,
/// Indicates if the QXmppStanza is a stanza in the XMPP sense (i. e. a message,
/// iq or presence)

bool QXmppMessage::isXmppStanza() const
@@ -522,7 +522,7 @@ void QXmppPresence::setLastUserInteraction(const QDateTime& lastUserInteraction)
d->lastUserInteraction = lastUserInteraction;
}

/// Indicates if the QXmppStanza is a stanza in the XMPP sence (i. e. a message,
/// Indicates if the QXmppStanza is a stanza in the XMPP sense (i. e. a message,
/// iq or presence)

bool QXmppPresence::isXmppStanza() const
@@ -486,7 +486,7 @@ void QXmppStanza::setExtendedAddresses(const QList<QXmppExtendedAddress> &addres
d->extendedAddresses = addresses;
}

/// Indicates if the QXmppStanza is a stanza in the XMPP sence (i. e. a message,
/// Indicates if the QXmppStanza is a stanza in the XMPP sense (i. e. a message,
/// iq or presence)

bool QXmppStanza::isXmppStanza() const
@@ -290,7 +290,7 @@ void QXmppStream::_q_socketReadyRead()

/// Enables Stream Management acks / reqs (XEP-0198).
///
/// \param resetSequenceNumber Indicates if the sequence numbers should be resetted.
/// \param resetSequenceNumber Indicates if the sequence numbers should be reset.
/// This must be done iff the stream is not resumed.
void QXmppStream::enableStreamManagement(bool resetSequenceNumber)
{
@@ -76,7 +76,7 @@ class QXMPP_EXPORT QXmppStream : public QXmppLoggable

/// Enables Stream Management acks / reqs (XEP-0198).
///
/// \param resetSeqno Indicates if the sequence numbers should be resetted.
/// \param resetSeqno Indicates if the sequence numbers should be reset.
/// This must be done iff the stream is not resumed.
void enableStreamManagement(bool resetSequenceNumber);

@@ -64,7 +64,7 @@ class QXmppVersionManager;
/// QXmppConfiguration::setAutoReconnectionEnabled().
///
/// Not all the managers or extensions have been enabled by default. One can
/// enable/disable the managers using the funtions addExtension() and
/// enable/disable the managers using the functions addExtension() and
/// removeExtension(). findExtension() can be used to find reference/pointer to
/// particular instansiated and enabled manager.
///
@@ -339,7 +339,7 @@ void QXmppOutgoingClient::socketError(QAbstractSocket::SocketError socketError)
if ( !d->sessionStarted &&
(d->dns.serviceRecords().count() > d->nextSrvRecordIdx) )
{
// some network error occured during startup -> try next available SRV record server
// some network error occurred during startup -> try next available SRV record server
d->connectToNextDNSHost();
}
else
@@ -931,7 +931,7 @@ void QXmppOutgoingClientPrivate::sendStreamManagementEnable()
q->sendData(data);
}

/// Returns the type of the last XMPP stream error that occured.
/// Returns the type of the last XMPP stream error that occurred.

QXmppStanza::Error::Condition QXmppOutgoingClient::xmppStreamError()
{
@@ -44,7 +44,7 @@ QXmppRemoteMethodResult QXmppRemoteMethod::call( )
// us to lose incoming packets
QEventLoop loop(this);
connect( this, SIGNAL(callDone()), &loop, SLOT(quit()));
QTimer::singleShot(30000,&loop, SLOT(quit())); // Timeout incase the other end hangs...
QTimer::singleShot(30000,&loop, SLOT(quit())); // Timeout in case the other end hangs...

m_client->sendPacket( m_payload );

@@ -346,7 +346,7 @@ QStringList QXmppRosterManager::getRosterBareJids() const
QXmppRosterIq::Item QXmppRosterManager::getRosterEntry(
const QString& bareJid) const
{
// will return blank entry if bareJid does'nt exist
// will return blank entry if bareJid doesn't exist
if(d->entries.contains(bareJid))
return d->entries.value(bareJid);
else
@@ -1156,7 +1156,7 @@ void QXmppTransferManager::_q_iqReceived(const QXmppIq &iq)
job->terminate(QXmppTransferJob::ProtocolError);
}
} else {
// we could not get host/port from proxy, procede without a proxy
// we could not get host/port from proxy, proceed without a proxy
if (iq.type() == QXmppIq::Error)
socksServerSendOffer(job);
}
@@ -909,7 +909,7 @@ void QXmppSslServer::incomingConnection(qintptr socketDescriptor)
}

/// Adds the given certificates to the CA certificate database to be used
/// for incoming connnections.
/// for incoming connections.
///
/// \param certificates

0 comments on commit bcb778e

Please sign in to comment.