Mailcommon

attributeregistrar.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "collectionpage/attributes/expirecollectionattribute.h"
8 #include <Akonadi/NewMailNotifierAttribute>
9 
10 #include <Akonadi/AttributeFactory>
11 
12 namespace
13 {
14 // Anonymous namespace; function is invisible outside this file.
15 bool dummy()
16 {
17  Akonadi::AttributeFactory::registerAttribute<MailCommon::ExpireCollectionAttribute>();
18  Akonadi::AttributeFactory::registerAttribute<Akonadi::NewMailNotifierAttribute>();
19  return true;
20 }
21 
22 // Called when this library is loaded.
23 const bool registered = dummy();
24 } // namespace
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:55:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.