• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • pim API Reference
  • KDE Home
  • Contact Us
 

kmailtransport

  • kde-4.x
  • pim
  • kmailtransport
  • src
  • kmailtransportakonadi
  • autotests
testattribute.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2008 Volker Krause <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef TESTATTRIBUTE_H
21 #define TESTATTRIBUTE_H
22 
23 #include <attribute.h>
24 
25 /* Attribute used for testing by various unit tests. */
26 class TestAttribute : public Akonadi::Attribute
27 {
28 public:
29  TestAttribute()
30  {
31  }
32 
33  QByteArray type() const
34  {
35  return "EXTRA";
36  }
37 
38  QByteArray serialized() const
39  {
40  return data;
41  }
42 
43  void deserialize(const QByteArray &ba)
44  {
45  data = ba;
46  }
47 
48  TestAttribute *clone() const
49  {
50  TestAttribute *a = new TestAttribute;
51  a->data = data;
52  return a;
53  }
54 
55  QByteArray data;
56 };
57 
58 #endif
TestAttribute::clone
TestAttribute * clone() const
Definition: testattribute.h:48
QByteArray
TestAttribute::data
QByteArray data
Definition: testattribute.h:55
TestAttribute::type
QByteArray type() const
Definition: testattribute.h:33
TestAttribute::TestAttribute
TestAttribute()
Definition: testattribute.h:29
TestAttribute
Definition: testattribute.h:26
TestAttribute::deserialize
void deserialize(const QByteArray &ba)
Definition: testattribute.h:43
TestAttribute::serialized
QByteArray serialized() const
Definition: testattribute.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 03:22:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmailtransport

Skip menu "kmailtransport"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

pim API Reference

Skip menu "pim API Reference"
  • akonadi-calendar-tools
  •   konsolekalendar
  • akregator
  •   src
  • kalarmcal
  •   src
  •     lib
  • kdepim-runtime
  •   agents
  •   src
  • kleopatra
  •   src
  • kmailtransport
  • knotes
  • kontact
  • kontactinterface
  • kpimtextedit
  • ksmtp
  • ktnef
  • libkgapi
  • libkleo
  •   src
  •     src
  •     src

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal