• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
  • calendar
blockalarmsattribute.cpp
1 /*
2  Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
3 
4  Copyright (C) 2010 Klarälvdalens Datakonsult AB,
5  a KDAB Group company, info@kdab.net,
6  author Tobias Koenig <tokoe@kdab.com>
7 
8  This library is free software; you can redistribute it and/or modify it
9  under the terms of the GNU Library General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or (at your
11  option) any later version.
12 
13  This library is distributed in the hope that it will be useful, but WITHOUT
14  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
16  License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to the
20  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  02110-1301, USA.
22 */
23 
24 #include "blockalarmsattribute.h"
25 #include <akonadi/attributefactory.h>
26 #include <QtCore/QByteArray>
27 
28 using namespace Akonadi;
29 
30 BlockAlarmsAttribute::BlockAlarmsAttribute()
31 {
32 }
33 
34 BlockAlarmsAttribute::~BlockAlarmsAttribute()
35 {
36 }
37 
38 QByteArray BlockAlarmsAttribute::type() const
39 {
40  return "BlockAlarmsAttribute";
41 }
42 
43 BlockAlarmsAttribute *BlockAlarmsAttribute::clone() const
44 {
45  return new BlockAlarmsAttribute();
46 }
47 
48 QByteArray BlockAlarmsAttribute::serialized() const
49 {
50  return QByteArray();
51 }
52 
53 void BlockAlarmsAttribute::deserialize( const QByteArray &data )
54 {
55  Q_ASSERT( data.isEmpty() );
56  Q_UNUSED( data );
57 }
58 
59 
60 #ifndef KDELIBS_STATIC_LIBS
61 namespace {
62 
63 // Anonymous namespace; function is invisible outside this file.
64 bool dummy()
65 {
66  Akonadi::AttributeFactory::registerAttribute<Akonadi::BlockAlarmsAttribute>();
67 
68  return true;
69 }
70 
71 // Called when this library is loaded.
72 const bool registered = dummy();
73 
74 } // namespace
75 
76 #else
77 
78 extern bool ___Akonadi____INIT()
79 {
80  Akonadi::AttributeFactory::registerAttribute<Akonadi::BlockAlarmsAttribute>();
81 
82  return true;
83 }
84 
85 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:32 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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