Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-05-02 | Reworked room name calculation to get rid of do {} while (false) | Kitsune Ral | |
(as requested at PR review) | |||
2016-05-02 | Calculate room displayname according to CS spec, with a new signal fired on ↵ | Kitsune Ral | |
a displayname update. This changes the way displayname is supplied to a client application - instead of calculating immediately, displayname becomes a separate stored value that is refreshed with every change of the list of members, or the name, or the canonical alias. displaynameChanged signal is supplied to subscribe to these updates: in case of displaying a room in the roomlist a client should use this new signal instead of Room::namesChanged. The displaname calculation algorithm is described in section 11.2.2.5 of the CS spec: https://matrix.org/docs/spec/r0.0.1/client_server.html#calculating-the-display-name-for-a-room | |||
2016-05-02 | Introduced Room::roomMemberName(User*) that follows CS spec section 11.2.2.3 | Kitsune Ral | |
2016-05-02 | Mark read-only accessors in Room::Private as const. | Kitsune Ral | |
2016-05-02 | Change the way room members are stored to the one recommended by the CS spec. | Kitsune Ral | |
According to section 11.2.2.3 of the CS spec, clients SHOULD follow a certain algorithm of making a non-ambiguous display name of a user in the room context. This algorithm implies checking whether other room members have the same display name. This commit prepares for implementation of the algorithm: 1. Use a hash map instead of a list to store room members. The external Room::users() API is kept intact. 2. Convenience CRUD methods are implemented to deal with the hash map. 3. An additional slot for user renaming is introduced (because renaming affects the hash map). Binding of actual signals is left for the next commit. 4. nullptr is the recommended representation of a null pointer since C++11. Use that and mandate compiler support of that. | |||
2016-05-02 | Deduplicated room check-and-creation code. | Kitsune Ral | |
2016-05-02 | Store left room members as well. | Kitsune Ral | |
In particular, this will be needed to render room names according to the CS spec. | |||
2016-05-02 | Supply more information with User::nameChanged signal | Kitsune Ral | |
2016-05-01 | Merge pull request #3 from davidar/master | Felix Rohrbach | |
Resolve Matrix SRV records. | |||
2016-04-23 | Room: Q_INVOKABLE | David A Roberts | |
2016-04-22 | Allow login with token. | David A Roberts | |
2016-04-12 | Merge remote-tracking branch 'upstream/master' | David A Roberts | |
2016-04-12 | Resolve Matrix SRV records. | David A Roberts | |
2016-04-11 | Merge pull request #2 from KitsuneRal/code-maintenance | Felix Rohrbach | |
Code maintenance | |||
2016-04-11 | Rename package.pri | David A Roberts | |
2016-04-11 | Add QMake project include file. | David A Roberts | |
2016-04-11 | Add more target_compile_features supported by CMake 3.1 and already used in ↵ | Kitsune Ral | |
the code. See https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html#prop_gbl:CMAKE_CXX_KNOWN_FEATURES for the full list. All the newly added features are already implied by C++11 standard so for older CMakes -std=c++11 should cover all bases anyway. | |||
2016-04-11 | Factor out the code that searches an insertion point in a timeline. | Kitsune Ral | |
This is used once in the library and, I guess, twice more in the Quaternion. Implemented as a template function that is equally suitable for Event and Message, and any container that supports STL-style iterators (QList and other Qt containers do). | |||
2016-04-11 | Drop unneeded check and debug message | Kitsune Ral | |
2016-04-11 | Use a more telling log line than !!!! | Kitsune Ral | |
2016-04-11 | Don't put excess whitespaces in log lines before QStrings - Qt inserts them ↵ | Kitsune Ral | |
automatically. | |||
2016-04-11 | Minor fixes and cleanup | Kitsune Ral | |
1. Remove accidental trailing \ 2. Show the contents of NetworkError in logs | |||
2016-04-11 | Missing method in the last commit | Felix Rohrbach | |
2016-04-09 | Implement different types of messages | Felix Rohrbach | |
2016-04-09 | Merge pull request #1 from davidar/master | Felix Rohrbach | |
Make Connection parent of Room. | |||
2016-04-09 | Make Connection parent of Room. | David A Roberts | |
2016-04-08 | Merge pull request #1 from davidar/master | KitsuneRal | |
Allow Connections to be used in QML. | |||
2016-04-08 | Rename Room::messages to Room::messageEvents | Kitsune Ral | |
Originally by Felx Rohrbach (kde@fxrh.de) | |||
2016-04-08 | Use class instead of struct to remove warning | Kitsune Ral | |
Originally by Felix Rohrbach (kde@fxrh.de) | |||
2016-04-07 | Allow Connections to be used in QML. | David A Roberts | |
2016-04-05 | CMakeLists to build a (so far only static) library. | Kitsune Ral | |
2016-04-05 | KCoreAddons imported. | Kitsune Ral | |
2016-04-05 | Took README.md from Quaternion, with minor redactions. | Kitsune Ral | |
2016-04-05 | Added .gitignore | Kitsune Ral | |
2016-04-05 | Imported the current source tree from Quaternion/lib. | Kitsune Ral | |