akonadi/contact
22 #include "recentcontactscollections_p.h"
24 #include "recentcontactscollectionssettings.h"
28 #include "akonadi/agentinstance.h"
29 #include "akonadi/servermanager.h"
31 using namespace Akonadi;
33 class Akonadi::RecentContactsCollectionsPrivate
36 RecentContactsCollectionsPrivate();
37 ~RecentContactsCollectionsPrivate();
42 typedef RecentContactsCollectionsSettings Settings;
44 K_GLOBAL_STATIC( RecentContactsCollectionsPrivate, sInstance )
46 static const QByteArray sRecentContactsType = "recent-contacts";
48 RecentContactsCollectionsPrivate::RecentContactsCollectionsPrivate()
53 RecentContactsCollectionsPrivate::~RecentContactsCollectionsPrivate()
58 static KCoreConfigSkeleton *getConfig(
const QString &filename)
60 Settings::instance( ServerManager::addNamespace( filename ) );
61 return Settings::self();
64 RecentContactsCollections::RecentContactsCollections( RecentContactsCollectionsPrivate *dd )
65 : SpecialCollections( getConfig(QLatin1String(
"recentcontactscollectionsrc")) ),
72 return sInstance->mInstance;
77 return SpecialCollections::hasCollection( sRecentContactsType, instance );
82 return SpecialCollections::collection( sRecentContactsType, instance );
87 return SpecialCollections::registerCollection( sRecentContactsType, collection );
92 return SpecialCollections::hasDefaultCollection( sRecentContactsType );
97 return SpecialCollections::defaultCollection( sRecentContactsType );
100 #include "moc_recentcontactscollections_p.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:28:43 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.