QXmppGlobal.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2008-2012 The QXmpp developers
  3. *
  4. * Author:
  5. * Manjeet Dahiya
  6. *
  7. * Source:
  8. * http://code.google.com/p/qxmpp
  9. *
  10. * This file is a part of QXmpp library.
  11. *
  12. * This library is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU Lesser General Public
  14. * License as published by the Free Software Foundation; either
  15. * version 2.1 of the License, or (at your option) any later version.
  16. *
  17. * This library is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. * Lesser General Public License for more details.
  21. *
  22. */
  23. #ifndef QXMPPGLOBAL_H
  24. #define QXMPPGLOBAL_H
  25. #include <QString>
  26. #if defined(QXMPP_STATIC)
  27. # define QXMPP_EXPORT
  28. #else
  29. # if defined(QXMPP_BUILD)
  30. # define QXMPP_EXPORT Q_DECL_EXPORT
  31. # else
  32. # define QXMPP_EXPORT Q_DECL_IMPORT
  33. # endif
  34. #endif
  35. #if defined(QXMPP_AUTOTEST_INTERNAL)
  36. # define QXMPP_AUTOTEST_EXPORT QXMPP_EXPORT
  37. #else
  38. # define QXMPP_AUTOTEST_EXPORT
  39. #endif
  40. /// This macro expands a numeric value of the form 0xMMNNPP (MM =
  41. /// major, NN = minor, PP = patch) that specifies QXmpp's version
  42. /// number. For example, if you compile your application against
  43. /// QXmpp 1.2.3, the QXMPP_VERSION macro will expand to 0x010203.
  44. ///
  45. /// You can use QXMPP_VERSION to use the latest QXmpp features where
  46. /// available.
  47. ///
  48. #define QXMPP_VERSION 0x000704
  49. QXMPP_EXPORT QString QXmppVersion();
  50. #endif //QXMPPGLOBAL_H