File indexing completed on 2024-12-15 04:51:46
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include "noteshared_export.h" 0009 #include <Akonadi/Attribute> 0010 0011 #include <QDateTime> 0012 namespace NoteShared 0013 { 0014 class NOTESHARED_EXPORT NoteAlarmAttribute : public Akonadi::Attribute 0015 { 0016 public: 0017 NoteAlarmAttribute(); 0018 ~NoteAlarmAttribute() override; 0019 0020 [[nodiscard]] QByteArray type() const override; 0021 0022 NoteAlarmAttribute *clone() const override; 0023 0024 [[nodiscard]] QByteArray serialized() const override; 0025 0026 void deserialize(const QByteArray &data) override; 0027 0028 void setDateTime(const QDateTime &dateTime); 0029 [[nodiscard]] QDateTime dateTime() const; 0030 0031 [[nodiscard]] bool operator==(const NoteAlarmAttribute &other) const; 0032 0033 private: 0034 QDateTime mDateTime; 0035 }; 0036 }