Permalink
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...
manjeetdahiya committed Oct 26, 2009
1 parent f988517 commit 239b2b15c3cfd9e4d7cc085ed31645d6ae6942ee
Showing with 5,883 additions and 5,857 deletions.
  1. +504 −504 LICENSE.LGPL
  2. +4 −4 QXmppClient.pro
  3. +60 −60 README
  4. +5 −5 example/example.pro
  5. +5 −5 example/example_0_connected/README
  6. +19 −19 example/example_0_connected/example_0_connected.pro
  7. +47 −47 example/example_0_connected/main.cpp
  8. +5 −5 example/example_1_echoClient/README
  9. +47 −47 example/example_1_echoClient/echoClient.cpp
  10. +42 −42 example/example_1_echoClient/echoClient.h
  11. +21 −21 example/example_1_echoClient/example_1_echoClient.pro
  12. +38 −38 example/example_1_echoClient/main.cpp
  13. +76 −76 source/QXmppBind.cpp
  14. +48 −48 source/QXmppBind.h
  15. +339 −339 source/QXmppClient.cpp
  16. +160 −160 source/QXmppClient.h
  17. +217 −217 source/QXmppConfiguration.cpp
  18. +137 −137 source/QXmppConfiguration.h
  19. +39 −39 source/QXmppConstants.cpp
  20. +42 −42 source/QXmppConstants.h
  21. +20 −20 source/QXmppInformationRequestResult.cpp
  22. +13 −13 source/QXmppInformationRequestResult.h
  23. +126 −126 source/QXmppIq.cpp
  24. +63 −58 source/QXmppIq.h
  25. +96 −96 source/QXmppLogger.cpp
  26. +56 −56 source/QXmppLogger.h
  27. +156 −156 source/QXmppMessage.cpp
  28. +68 −68 source/QXmppMessage.h
  29. +70 −70 source/QXmppNonSASLAuth.cpp
  30. +35 −35 source/QXmppNonSASLAuth.h
  31. +40 −40 source/QXmppPacket.cpp
  32. +49 −44 source/QXmppPacket.h
  33. +298 −298 source/QXmppPresence.cpp
  34. +100 −100 source/QXmppPresence.h
  35. +86 −86 source/QXmppReconnectionManager.cpp
  36. +60 −60 source/QXmppReconnectionManager.h
  37. +203 −203 source/QXmppRoster.cpp
  38. +108 −108 source/QXmppRoster.h
  39. +172 −172 source/QXmppRosterIq.cpp
  40. +84 −84 source/QXmppRosterIq.h
  41. +50 −50 source/QXmppSession.cpp
  42. +42 −42 source/QXmppSession.h
  43. +322 −322 source/QXmppStanza.cpp
  44. +126 −122 source/QXmppStanza.h
  45. +931 −931 source/QXmppStream.cpp
  46. +141 −141 source/QXmppStream.h
  47. +136 −136 source/QXmppUtils.cpp
  48. +59 −54 source/QXmppUtils.h
  49. +108 −108 source/QXmppVCard.cpp
  50. +58 −58 source/QXmppVCard.h
  51. +43 −43 source/QXmppVCardManager.cpp
  52. +51 −51 source/QXmppVCardManager.h
  53. +58 −51 source/source.pro
View
1,008 LICENSE.LGPL

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
TEMPLATE = subdirs
SUBDIRS = source \
example
TEMPLATE = subdirs
SUBDIRS = source \
example
View
120 README
@@ -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.
View
@@ -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.

0 comments on commit 239b2b1

Please sign in to comment.