Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix for
Issue 23: QXmppBind compilation error on macosx starting from r23 Issue 26: examples fail to link on macosx and linux Issue 24: all text files should have the svn property eol-style set Contributed by: Marco Molteni
- Loading branch information
Showing
with
5,883 additions
and 5,857 deletions.
- +504 −504 LICENSE.LGPL
- +4 −4 QXmppClient.pro
- +60 −60 README
- +5 −5 example/example.pro
- +5 −5 example/example_0_connected/README
- +19 −19 example/example_0_connected/example_0_connected.pro
- +47 −47 example/example_0_connected/main.cpp
- +5 −5 example/example_1_echoClient/README
- +47 −47 example/example_1_echoClient/echoClient.cpp
- +42 −42 example/example_1_echoClient/echoClient.h
- +21 −21 example/example_1_echoClient/example_1_echoClient.pro
- +38 −38 example/example_1_echoClient/main.cpp
- +76 −76 source/QXmppBind.cpp
- +48 −48 source/QXmppBind.h
- +339 −339 source/QXmppClient.cpp
- +160 −160 source/QXmppClient.h
- +217 −217 source/QXmppConfiguration.cpp
- +137 −137 source/QXmppConfiguration.h
- +39 −39 source/QXmppConstants.cpp
- +42 −42 source/QXmppConstants.h
- +20 −20 source/QXmppInformationRequestResult.cpp
- +13 −13 source/QXmppInformationRequestResult.h
- +126 −126 source/QXmppIq.cpp
- +63 −58 source/QXmppIq.h
- +96 −96 source/QXmppLogger.cpp
- +56 −56 source/QXmppLogger.h
- +156 −156 source/QXmppMessage.cpp
- +68 −68 source/QXmppMessage.h
- +70 −70 source/QXmppNonSASLAuth.cpp
- +35 −35 source/QXmppNonSASLAuth.h
- +40 −40 source/QXmppPacket.cpp
- +49 −44 source/QXmppPacket.h
- +298 −298 source/QXmppPresence.cpp
- +100 −100 source/QXmppPresence.h
- +86 −86 source/QXmppReconnectionManager.cpp
- +60 −60 source/QXmppReconnectionManager.h
- +203 −203 source/QXmppRoster.cpp
- +108 −108 source/QXmppRoster.h
- +172 −172 source/QXmppRosterIq.cpp
- +84 −84 source/QXmppRosterIq.h
- +50 −50 source/QXmppSession.cpp
- +42 −42 source/QXmppSession.h
- +322 −322 source/QXmppStanza.cpp
- +126 −122 source/QXmppStanza.h
- +931 −931 source/QXmppStream.cpp
- +141 −141 source/QXmppStream.h
- +136 −136 source/QXmppUtils.cpp
- +59 −54 source/QXmppUtils.h
- +108 −108 source/QXmppVCard.cpp
- +58 −58 source/QXmppVCard.h
- +43 −43 source/QXmppVCardManager.cpp
- +51 −51 source/QXmppVCardManager.h
- +58 −51 source/source.pro
@@ -1,4 +1,4 @@ | ||
TEMPLATE = subdirs | ||
|
||
SUBDIRS = source \ | ||
example | ||
TEMPLATE = subdirs | ||
|
||
SUBDIRS = source \ | ||
example |
@@ -1,60 +1,60 @@ | ||
ABOUT | ||
This is QXmpp version 0.1. | ||
QXmpp is cross-platform C++ client library for XMPP. It is based on Qt. | ||
BUILDING QXmpp | ||
You need to have Qt 4.5 or higher to build the QXmpp. | ||
The project uses qmake build system of Qt. | ||
Commands to build QXmpp: | ||
cd <where QXmppClient.pro is lying> | ||
qmake | ||
<respective-make-cmd = gmake, make, mingw32-make, nmake> | ||
Using Qt Creator: | ||
Open the QXmppClient.pro file in Qt Creator and hit Buil All to build all the examples and library. | ||
EXAMPLES | ||
Have a look the available examples to start using this library. | ||
* example_0_connected | ||
This example just connects to the xmpp server. And start receiving presences (updates) from the server. | ||
After running this example, you can see this user online, if it's added in your roster (friends list). | ||
Logging type has been set to stdout. You can see the progress on the command line. | ||
* example_1_echoClient | ||
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. | ||
This example shows how to receive and send messages. | ||
REFERENCE DOCUMENTATION | ||
http://code.google.com/p/qxmpp | ||
SUPPORTED PLATFORMS | ||
For this release, the following platforms have been tested: | ||
win32-g++ (mingw) | ||
win32-msvc2005 | ||
linux-g++ | ||
linux-g++-64 | ||
It should work on all the plaforms supported by Qt. | ||
For a complete list of supported platforms, see | ||
http://www.qtsoftware.com/developer/supported-platforms/supported-platforms/ | ||
HOW TO REPORT A BUG | ||
If you think you have found a bug in QXmpp, we would like to hear about | ||
it so that we can fix it. Before reporting a bug, please check | ||
http://code.google.com/p/qxmpp/issues/ | ||
to see if the issue is already known. | ||
ABOUT | ||
|
||
This is QXmpp version 0.1. | ||
QXmpp is cross-platform C++ client library for XMPP. It is based on Qt. | ||
|
||
|
||
BUILDING QXmpp | ||
|
||
You need to have Qt 4.5 or higher to build the QXmpp. | ||
The project uses qmake build system of Qt. | ||
|
||
Commands to build QXmpp: | ||
cd <where QXmppClient.pro is lying> | ||
qmake | ||
<respective-make-cmd = gmake, make, mingw32-make, nmake> | ||
|
||
Using Qt Creator: | ||
Open the QXmppClient.pro file in Qt Creator and hit Buil All to build all the examples and library. | ||
|
||
EXAMPLES | ||
|
||
Have a look the available examples to start using this library. | ||
|
||
* example_0_connected | ||
This example just connects to the xmpp server. And start receiving presences (updates) from the server. | ||
After running this example, you can see this user online, if it's added in your roster (friends list). | ||
Logging type has been set to stdout. You can see the progress on the command line. | ||
|
||
* example_1_echoClient | ||
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. | ||
This example shows how to receive and send messages. | ||
|
||
REFERENCE DOCUMENTATION | ||
|
||
http://code.google.com/p/qxmpp | ||
|
||
|
||
SUPPORTED PLATFORMS | ||
|
||
For this release, the following platforms have been tested: | ||
|
||
win32-g++ (mingw) | ||
win32-msvc2005 | ||
|
||
linux-g++ | ||
linux-g++-64 | ||
|
||
It should work on all the plaforms supported by Qt. | ||
For a complete list of supported platforms, see | ||
http://www.qtsoftware.com/developer/supported-platforms/supported-platforms/ | ||
|
||
|
||
HOW TO REPORT A BUG | ||
|
||
If you think you have found a bug in QXmpp, we would like to hear about | ||
it so that we can fix it. Before reporting a bug, please check | ||
http://code.google.com/p/qxmpp/issues/ | ||
to see if the issue is already known. | ||
|
@@ -1,5 +1,5 @@ | ||
TEMPLATE = subdirs | ||
|
||
SUBDIRS = example_0_connected\ | ||
example_1_echoClient | ||
|
||
TEMPLATE = subdirs | ||
|
||
SUBDIRS = example_0_connected\ | ||
example_1_echoClient | ||
|
@@ -1,5 +1,5 @@ | ||
This example just connects to the xmpp server. And start receiving presences (updates) from the server. | ||
After running this example, you can see this user online, if it's added in your roster (friends list). | ||
Logging type has been set to stdout. You can see the progress on the command line. | ||
This example just connects to the xmpp server. And start receiving presences (updates) from the server. | ||
|
||
After running this example, you can see this user online, if it's added in your roster (friends list). | ||
|
||
Logging type has been set to stdout. You can see the progress on the command line. |
@@ -1,19 +1,19 @@ | ||
TEMPLATE = app | ||
|
||
TARGET = example_0_connected | ||
|
||
SOURCES += main.cpp | ||
|
||
INCLUDEPATH += ../../source | ||
|
||
QT += network xml | ||
|
||
CONFIG += console debug_and_release | ||
|
||
CONFIG(debug, debug|release) { | ||
LIBS += -L../../source/debug -lQXmppClient_d | ||
} else { | ||
LIBS += -L../../source/release -lQXmppClient | ||
} | ||
|
||
OTHER_FILES += README | ||
TEMPLATE = app | ||
|
||
TARGET = example_0_connected | ||
|
||
SOURCES += main.cpp | ||
|
||
INCLUDEPATH += ../../source | ||
|
||
QT += network xml | ||
|
||
CONFIG += console debug_and_release | ||
|
||
CONFIG(debug, debug|release) { | ||
LIBS += -L../../source/debug -lQXmppClient_d | ||
} else { | ||
LIBS += -L../../source/release -lQXmppClient | ||
} | ||
|
||
OTHER_FILES += README |
@@ -1,47 +1,47 @@ | ||
/* | ||
* Copyright (C) 2008-2009 Manjeet Dahiya | ||
* | ||
* Author: | ||
* Manjeet Dahiya | ||
* | ||
* Source: | ||
* http://code.google.com/p/qxmpp | ||
* | ||
* This file is a part of QXmpp library. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
*/ | ||
|
||
|
||
#include <QtCore/QCoreApplication> | ||
|
||
#include "QXmppClient.h" | ||
#include "QXmppLogger.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QCoreApplication a(argc, argv); | ||
|
||
QXmppLogger::getLogger()->setLoggingType(QXmppLogger::STDOUT); | ||
|
||
QXmppClient client; | ||
|
||
// For google talk | ||
// client.connectToServer("talk.google.com", "usernamewithoutdomain", "passwd", "gmail.com"); | ||
|
||
// For jabber | ||
// client.connectToServer("jabber.org", "usernamewithoutdomain", "passwd", "jabber.org"); | ||
|
||
client.connectToServer("talk.google.com", "qxmpp.test1", "qxmpp123", "gmail.com"); | ||
|
||
return a.exec(); | ||
} | ||
/* | ||
* Copyright (C) 2008-2009 Manjeet Dahiya | ||
* | ||
* Author: | ||
* Manjeet Dahiya | ||
* | ||
* Source: | ||
* http://code.google.com/p/qxmpp | ||
* | ||
* This file is a part of QXmpp library. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
*/ | ||
|
||
|
||
#include <QtCore/QCoreApplication> | ||
|
||
#include "QXmppClient.h" | ||
#include "QXmppLogger.h" | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
QCoreApplication a(argc, argv); | ||
|
||
QXmppLogger::getLogger()->setLoggingType(QXmppLogger::STDOUT); | ||
|
||
QXmppClient client; | ||
|
||
// For google talk | ||
// client.connectToServer("talk.google.com", "usernamewithoutdomain", "passwd", "gmail.com"); | ||
|
||
// For jabber | ||
// client.connectToServer("jabber.org", "usernamewithoutdomain", "passwd", "jabber.org"); | ||
|
||
client.connectToServer("talk.google.com", "qxmpp.test1", "qxmpp123", "gmail.com"); | ||
|
||
return a.exec(); | ||
} |
@@ -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. | ||
This example shows how to receive and send messages. | ||
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. | ||
|
||
This example shows how to receive and send messages. |
@@ -1,47 +1,47 @@ | ||
/* | ||
* Copyright (C) 2008-2009 Manjeet Dahiya | ||
* | ||
* Author: | ||
* Manjeet Dahiya | ||
* | ||
* Source: | ||
* http://code.google.com/p/qxmpp | ||
* | ||
* This file is a part of QXmpp library. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
*/ | ||
|
||
|
||
#include "echoClient.h" | ||
#include "QXmppMessage.h" | ||
|
||
echoClient::echoClient(QObject *parent) | ||
: QXmppClient(parent) | ||
{ | ||
bool check = connect(this, SIGNAL(messageReceived(const QXmppMessage&)), | ||
SLOT(messageReceived(const QXmppMessage&))); | ||
Q_ASSERT(check); | ||
} | ||
|
||
echoClient::~echoClient() | ||
{ | ||
|
||
} | ||
|
||
void echoClient::messageReceived(const QXmppMessage& message) | ||
{ | ||
QString from = message.getFrom(); | ||
QString msg = message.getBody(); | ||
|
||
sendPacket(QXmppMessage("", from, "Your message: " + msg)); | ||
} | ||
/* | ||
* Copyright (C) 2008-2009 Manjeet Dahiya | ||
* | ||
* Author: | ||
* Manjeet Dahiya | ||
* | ||
* Source: | ||
* http://code.google.com/p/qxmpp | ||
* | ||
* This file is a part of QXmpp library. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
*/ | ||
|
||
|
||
#include "echoClient.h" | ||
#include "QXmppMessage.h" | ||
|
||
echoClient::echoClient(QObject *parent) | ||
: QXmppClient(parent) | ||
{ | ||
bool check = connect(this, SIGNAL(messageReceived(const QXmppMessage&)), | ||
SLOT(messageReceived(const QXmppMessage&))); | ||
Q_ASSERT(check); | ||
} | ||
|
||
echoClient::~echoClient() | ||
{ | ||
|
||
} | ||
|
||
void echoClient::messageReceived(const QXmppMessage& message) | ||
{ | ||
QString from = message.getFrom(); | ||
QString msg = message.getBody(); | ||
|
||
sendPacket(QXmppMessage("", from, "Your message: " + msg)); | ||
} |
Oops, something went wrong.