aboutsummaryrefslogtreecommitdiff
path: root/src/base
Commit message (Collapse)AuthorAgeFilesLines
* QXmppStreamFeatures: Fix wrong \param commandLinus Jahn2020-02-061-3/+3
|
* Fix undocumented Q_PROPERTiesLinus Jahn2020-02-044-14/+20
|
* Fix missing documentation for for QXmppStanza::ErrorLinus Jahn2020-02-042-34/+70
|
* Fix doxygen warnings about missing titles for \defgroupLinus Jahn2020-02-041-2/+8
|
* Refactor QXmppRegisterIq: Replace registerType by two separate attr.Linus Jahn2020-02-042-51/+66
| | | | | This can be done without any concerns, because the registerType was not part of any release yet.
* QXmppStreamFeatures: Fix documentation is not generatedLinus Jahn2020-02-031-0/+4
|
* QXmppStreamFeatures: Fix register feature is enabled by defaultLinus Jahn2020-02-031-1/+2
|
* Run clang-format also on all cpp filesLinus Jahn2020-02-0341-1282/+992
|
* clang-format: Enable regrouping and sorting of includesLinus Jahn2020-02-0377-181/+208
|
* QXmppRegisterIq: Add utility methods to create common requestsLinus Jahn2020-02-032-1/+40
| | | | | This adds utility methods to create an unregistration or a change password request in one line.
* Fix that no documentation is generated for QXmppStanza::ErrorLinus Jahn2020-02-021-0/+3
|
* Replace manual xmlns writing by writeDefaultNamespace()Linus Jahn2020-01-2933-87/+87
| | | | | | | This is the result of: sed -i 's/writeAttribute("xmlns", /writeDefaultNamespace(/g' \ $(find . -iname "*.cpp" -or -iname "*.h")
* Update copyright notice in missing filesLinus Jahn2020-01-282-2/+2
|
* Add QXmppStartTlsPacket to replace hard-coded XML in TLS codeLinus Jahn2020-01-202-0/+165
|
* Port majority of old-style connects (#237)JBB2020-01-205-94/+55
| | | This provides more type safety and is future-proof.
* QXmppRegisterIq: Do not pass registerType by const-refLinus Jahn2020-01-192-2/+2
|
* QXmppRegisterIq: Add missing '\since' tags to new methodsLinus Jahn2020-01-192-0/+8
| | | | I forgot them in #240.
* QXmppRegisterIq: Add registerType for registered/removeLinus Jahn2020-01-132-2/+57
|
* Bump copyright year to 2020Linus Jahn2020-01-0699-99/+99
|
* Add a .clang-format somewhat close to the current style0xd34df00d2019-12-2340-397/+376
|
* QXmppGlobal: Use QT_VERSION_CHECK() to generate QXMPP_VERSIONLinus Jahn2019-12-181-1/+1
| | | | | | | | | QT_VERSION_CHECK() returns the same format as is currently used, it is easier to read and fixes a problem that could occur with the previous marco. The macro was unenclosed causing comparison to fail. This also happened in Kaidan [1]. [1]: https://invent.kde.org/kde/kaidan/commit/5a3e5e8a748488f4d55302b4beacce880dde381a
* Refactor QXmppPresence, Add missing testsLinus Jahn2019-12-102-256/+238
|
* Refactor QXmppPubSubIq and add missing testsLinus Jahn2019-12-083-25/+28
|
* Split up QXmppPubSubItem from QXmppPubSubIq.hLinus Jahn2019-12-084-95/+162
|
* QXmppPubSubIq/QXmppPubSubItem: Use d-pointer to maintain binary compat in futureLinus Jahn2019-12-082-51/+95
|
* Replace emails in copyright headers by entries in the AUTHORS fileLinus Jahn2019-12-088-8/+8
| | | | Mostly this was a mistake by me in earlier contributions.
* Implement XEP-0231: Bits of Binary: register IQ extensionLinus Jahn2019-12-062-0/+44
| | | | | This adds support for XEP-0231: Bits of Binary attachments in registration forms.
* Implement XEP-0231: Bits of Binary: message extensionLinus Jahn2019-12-062-0/+50
| | | | This adds support for XEP-0231: Bits of Binary attachments in messages.
* Implement XEP-0231: Bits of Binary: stanza extensionLinus Jahn2019-12-062-0/+109
| | | | | | This adds a type that may be used as a stanza extension. It is useful, when a stanza contains (possibly multiple) XEP-0231: Bits of Binary data elements.
* Implement XEP-0231: Bits of Binary: IQLinus Jahn2019-12-064-0/+364
| | | | | This implements parsing and serialization of the BoB IQ from XEP-0231: Bits of Binary in version 1.0.
* Implement XEP-0231: Bits of Binary: content identifiersLinus Jahn2019-12-062-0/+302
| | | | | This implements parsing and serialization of content identifiers from XEP-0231: Bits of Binary in version 1.0.
* QXmppRegisterIq: Use d-pointer to maintain binary compat in futureLinus Jahn2019-12-062-33/+57
|
* Replace deprecated Q_ENUMS with Q_ENUMLinus Jahn2019-10-274-7/+5
| | | | | Q_ENUM exists since Qt 5.5, more details can be found here: https://woboq.com/blog/q_enum.html
* Replace Q_FOREACH (foreach) by C++11 ranged for-loopsLinus Jahn2019-10-2321-121/+102
| | | | | | | Q_FOREACH is bad and will be deprecated in the future: https://www.kdab.com/goodbye-q_foreach/ This also disables Q_FOREACH by defining QT_NO_FOREACH.
* Add \since QXmpp 1.1 to all new methods and classesLinus Jahn2019-10-238-2/+78
| | | | Methods of new classes have no \since tag.
* Refactor data form media elementLinus Jahn2019-10-232-45/+313
| | | | | | | | | | | * Add QXmppDataForm::MediaSource instead of using a QPair<QString, QString> to save the URIs and content types. * Deprecate QXmppDataForm::Media: The extra class was useless: Each Field has exactly one media element and the media element has only two attributes (size and media sources) * Add mediaSources and mediaSize attributes to the QXmppDataForm::Field * Deprecate getters/setters for the Media element of QXmppDataForm::Field (they are still working and tested)
* Use raw literals, range based loops and autoJonah Brüchert2019-10-227-33/+31
|
* Revert "Implement MIX-PAM XEP-0405: Roster IQ extension"Linus Jahn2019-10-212-93/+6
| | | | | | | | | | This reverts commit 740a085ef7ac707e2cc2217edf02e296c3f7692e. There were talks on the standards mailing list that the XEP will be changed and a private PEP node is used for distributing joined channels. Also no server (that I am aware of) supports the MIX roster extension, so I think it is the best we remove before the next release, so we do not have problems with deprecations and ABI compatibility.
* Implement XEP-0363: HTTP File Upload: Error casesLinus Jahn2019-10-202-17/+102
| | | | | This extends the QXmppStanza::Error by the error cases defined in XEP-0363: HTTP File Upload in version 0.9.0.
* QXmppStanza::Error: Use d-pointer to maintain binary compat in futureLinus Jahn2019-10-202-34/+58
|
* QXmppMessage: Add back QDateTime include to keep source compatibility (#221)JBB2019-10-201-0/+3
| | | Introduced by 98f2fd04b0a95840584320858ff54cd5caff8f70 (#213).
* Refactor & clean up QXmppMessageLinus Jahn2019-10-194-312/+270
| | | | | | | | | | | | | | | This simplifies parsing and fixes a possible bug: The bug case looks like this: - We have one element we want to parse (e,g, "attachment" with namespace xyz) - There is another element called "attachment" in the stanza and it's located before the other element. - QXmppMessage tries to parse the attachment element using firstChildElement("attachment") and checks the namespace - The namespace (of the first) element doesn't match - The actual "attachment" element is not parsed This also fixes the "constructor does not initialize these fields: […]" warnings for QXmppMessagePrivate.
* Use QSharedData for QXmppHttpUploadIq private classesLinus Jahn2019-10-152-15/+26
|
* Use QSharedData for QXmppMixIqPrivateLinus Jahn2019-10-152-9/+25
|
* Use QSharedData for QXmppMixItem private classesLinus Jahn2019-10-152-5/+29
|
* Use QSharedData for QXmppRosterIqPrivate and ItemPrivateLinus Jahn2019-10-152-14/+16
|
* Add deprecation system similiar to Qt'sLinus Jahn2019-10-141-0/+10
| | | | | | | | | | | | This adds the QXMPP_DISABLE_DEPRECATED_BEFORE option and a QXMPP_DEPRECATED_SINCE(major, minor) macro. They work like their Qt equivalent: - QXMPP_DISABLE_DEPRECATED_BEFORE defines the version number of source compatibility to be kept with. By default this is the major version (e.g. QXmpp 1.0.0) - QXMPP_DEPRECATED_SINCE(major, minor) returns true, if functions that got deprecated at this version should still be included.
* Modernize codebase using clang-tidyJonah Brüchert2019-09-0841-212/+212
| | | | | | | | Using the following checks: * modernize-use-nullptr * modernize-use-override * modernize-use-using * modernize-use-bool-literals
* Implement XEP-0334: Message Processing HintsLinus Jahn2019-09-084-0/+74
| | | | | | | | | | This implements parsing and serialization of XEP-0334: Message Processing Hints in version 0.3.0. https://xmpp.org/extensions/xep-0334.html Co-authored-by: Juan Aragon <jaaragont@gmail.com> Co-authored-by: Sam Truscott <sam@wumpus.co.uk>
* Implement XEP-0380: Explicit Message EncryptionLinus Jahn2019-09-064-1/+145
| | | | | | | This adds parsing and serialization for XEP-0380: Explicit Message Encryption in version 0.3.0. https://xmpp.org/extensions/xep-0380.html