MailTransport

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 "dispatchmodeattribute.h"
8 #include "errorattribute.h"
9 #include "sentactionattribute.h"
10 #include "sentbehaviourattribute.h"
11 #include "transportattribute.h"
12 
13 #include <Akonadi/AttributeFactory>
14 
15 namespace
16 {
17 // Anonymous namespace; function is invisible outside this file.
18 bool dummy()
19 {
20  using namespace Akonadi;
21  using namespace MailTransport;
22  AttributeFactory::registerAttribute<DispatchModeAttribute>();
23  AttributeFactory::registerAttribute<ErrorAttribute>();
24  AttributeFactory::registerAttribute<SentActionAttribute>();
25  AttributeFactory::registerAttribute<SentBehaviourAttribute>();
26  AttributeFactory::registerAttribute<TransportAttribute>();
27  return true;
28 }
29 
30 // Called when this library is loaded.
31 const bool registered = dummy();
32 } // namespace
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Mar 23 2023 04:19:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.