File indexing completed on 2024-11-24 04:44:30
0001 /* 0002 This file is part of oxaccess. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QDateTime> 0012 #include <QString> 0013 0014 namespace OXA 0015 { 0016 namespace OXUtils 0017 { 0018 [[nodiscard]] QString writeBoolean(bool value); 0019 [[nodiscard]] QString writeNumber(qlonglong value); 0020 [[nodiscard]] QString writeString(const QString &value); 0021 [[nodiscard]] QString writeName(const QString &value); 0022 [[nodiscard]] QString writeDateTime(const QDateTime &value); 0023 [[nodiscard]] QString writeDate(QDate value); 0024 0025 [[nodiscard]] bool readBoolean(const QString &text); 0026 [[nodiscard]] qlonglong readNumber(const QString &text); 0027 [[nodiscard]] QString readString(const QString &text); 0028 [[nodiscard]] QString readName(const QString &text); 0029 [[nodiscard]] QDateTime readDateTime(const QString &text); 0030 [[nodiscard]] QDate readDate(const QString &text); 0031 } 0032 }