File indexing completed on 2024-12-15 04:51:47

0001 /*
0002     SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
0003     SPDX-FileContributor: Stephen Kelly <stephen@kdab.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #include "notelockattribute.h"
0009 
0010 #include <QByteArray>
0011 using namespace NoteShared;
0012 NoteLockAttribute::NoteLockAttribute()
0013     : Akonadi::Attribute()
0014 {
0015 }
0016 
0017 NoteLockAttribute::~NoteLockAttribute() = default;
0018 
0019 NoteLockAttribute *NoteLockAttribute::clone() const
0020 {
0021     return new NoteLockAttribute();
0022 }
0023 
0024 void NoteLockAttribute::deserialize(const QByteArray &data)
0025 {
0026     Q_UNUSED(data)
0027 }
0028 
0029 QByteArray NoteLockAttribute::serialized() const
0030 {
0031     return QByteArrayLiteral("-");
0032 }
0033 
0034 QByteArray NoteLockAttribute::type() const
0035 {
0036     // We can't change this name!
0037     static const QByteArray sType("KJotsLockAttribute");
0038     return sType;
0039 }