Akonadi

entityhiddenattribute.cpp
1 /******************************************************************************
2  *
3  * Copyright (c) 2009 Szymon Stefanek <s.stefanek at gmail dot com>
4  *
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Library General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  * License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18  * MA, 02110-1301, USA.
19  *
20  *****************************************************************************/
21 
22 #include "entityhiddenattribute.h"
23 
24 #include <QByteArray>
25 
26 using namespace Akonadi;
27 
29  : d(nullptr)
30 {
31 }
32 
34 {
35 }
36 
38 {
39  static const QByteArray sType("HIDDEN");
40  return sType;
41 }
42 
44 {
45  return new EntityHiddenAttribute();
46 }
47 
49 {
50  return QByteArray();
51 }
52 
54 {
55  Q_ASSERT(data.isEmpty());
56  Q_UNUSED(data);
57 }
void deserialize(const QByteArray &data) override
Reimplemented from Attribute.
bool isEmpty() const const
QByteArray serialized() const override
Reimplemented from Attribute.
QByteArray type() const override
Reimplemented from Attribute.
EntityHiddenAttribute * clone() const override
Reimplemented from Attribute.
~EntityHiddenAttribute() override
Destroys the entity hidden attribute.
An Attribute that marks that an entity should be hidden in the UI.
Helper integration between Akonadi and Qt.
EntityHiddenAttribute()
Creates a new entity hidden attribute.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 23:08:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.