Create new rooms module

This commit is contained in:
James Graham
2025-04-13 16:21:23 +01:00
parent 380a52d981
commit 0380de698c
36 changed files with 217 additions and 152 deletions

View File

@@ -0,0 +1,31 @@
// SPDX-FileCopyrightText: 2025 James Graham <james.h.graham@protonmail.com>
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#pragma once
#include <QObject>
#include <QQmlEngine>
/**
* @class RoomSortOrder
*
* This class is designed to define the RoomSortOrder enumeration.
*/
class RoomSortOrder : public QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
public:
/**
* @brief The types of messages that can be shown.
*/
enum Order {
Alphabetical = 0, /**< The room should be sorted alphabetically. */
Activity, /**< The room should be sorted by important activity. */
LastMessage, /**< The room should be sorted by last message in the room. */
Custom, /**< Use a custom sort order. */
};
Q_ENUM(Order);
};