File indexing completed on 2024-10-13 04:29:58
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "libruqolacore_export.h" 0009 #include <QString> 0010 0011 namespace LocalDatabaseUtils 0012 { 0013 enum class DatabasePath { 0014 Messages, 0015 Rooms, 0016 Account, 0017 Global, 0018 }; 0019 0020 [[nodiscard]] LIBRUQOLACORE_EXPORT QString fixRoomName(QString roomName); 0021 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localMessageLoggerPath(); 0022 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localDatabasePath(); 0023 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localMessagesDatabasePath(); 0024 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localRoomsDatabasePath(); 0025 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localAccountDatabasePath(); 0026 [[nodiscard]] LIBRUQOLACORE_EXPORT QString localGlobalDatabasePath(); 0027 [[nodiscard]] LIBRUQOLACORE_EXPORT QString databasePath(LocalDatabaseUtils::DatabasePath pathType); 0028 [[nodiscard]] LIBRUQOLACORE_EXPORT QString deleteMessage(); 0029 [[nodiscard]] LIBRUQOLACORE_EXPORT QString insertReplaceMessages(); 0030 [[nodiscard]] LIBRUQOLACORE_EXPORT QString deleteRooms(); 0031 [[nodiscard]] LIBRUQOLACORE_EXPORT QString insertReplaceRoom(); 0032 [[nodiscard]] LIBRUQOLACORE_EXPORT QString deleteAccount(); 0033 [[nodiscard]] LIBRUQOLACORE_EXPORT QString updateAccount(); 0034 [[nodiscard]] LIBRUQOLACORE_EXPORT QString insertReplaceGlobal(); 0035 [[nodiscard]] LIBRUQOLACORE_EXPORT QString deleteMessageFromLogs(); 0036 [[nodiscard]] LIBRUQOLACORE_EXPORT QString insertReplaceMessageFromLogs(); 0037 [[nodiscard]] LIBRUQOLACORE_EXPORT qint64 currentTimeStamp(); 0038 };