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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • collectionpage
attributeregistrar.cpp
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
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 #include "collectionpage/collectionannotationsattribute.h"
21 #include "collectionpage/expirecollectionattribute.h"
22 #include "collectionpage/newmailnotifierattribute.h"
23 
24 #include <akonadi/attributefactory.h>
25 
26 
27 #ifndef KDELIBS_STATIC_LIBS
28 namespace {
29 
30 // Anonymous namespace; function is invisible outside this file.
31 bool dummy()
32 {
33  Akonadi::AttributeFactory::registerAttribute<MailCommon::CollectionAnnotationsAttribute>();
34  Akonadi::AttributeFactory::registerAttribute<MailCommon::ExpireCollectionAttribute>();
35  Akonadi::AttributeFactory::registerAttribute<MailCommon::NewMailNotifierAttribute>();
36  return true;
37 }
38 
39 // Called when this library is loaded.
40 const bool registered = dummy();
41 
42 } // namespace
43 
44 #else
45 
46 extern bool ___MailCommon____INIT()
47 {
48  Akonadi::AttributeFactory::registerAttribute<MailCommon::CollectionAnnotationsAttribute>();
49  Akonadi::AttributeFactory::registerAttribute<MailCommon::ExpirationCollectionAttribute>();
50  Akonadi::AttributeFactory::registerAttribute<MailCommon::NewMailNotifierAttribute>();
51 
52  return true;
53 }
54 
55 #endif
expirecollectionattribute.h
registered
const bool registered
Definition: attributeregistrar.cpp:40
newmailnotifierattribute.h
collectionannotationsattribute.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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