• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

specialcollections.h

00001 /*
00002     Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef AKONADI_SPECIALCOLLECTIONS_H
00021 #define AKONADI_SPECIALCOLLECTIONS_H
00022 
00023 #include "akonadi_export.h"
00024 
00025 #include <QtCore/QObject>
00026 
00027 #include "akonadi/collection.h"
00028 
00029 class KCoreConfigSkeleton;
00030 class KJob;
00031 
00032 namespace Akonadi {
00033 
00034 class AgentInstance;
00035 class SpecialCollectionsPrivate;
00036 
00064 class AKONADI_EXPORT SpecialCollections : public QObject
00065 {
00066   Q_OBJECT
00067 
00068   public:
00072     ~SpecialCollections();
00073 
00078     bool hasCollection( const QByteArray &type, const AgentInstance &instance ) const;
00079 
00084     Akonadi::Collection collection( const QByteArray &type, const AgentInstance &instance ) const;
00085 
00094     bool registerCollection( const QByteArray &type, const Akonadi::Collection &collection );
00095 
00100     bool hasDefaultCollection( const QByteArray &type ) const;
00101 
00106     Akonadi::Collection defaultCollection( const QByteArray &type ) const;
00107 
00108   Q_SIGNALS:
00115     void collectionsChanged( const Akonadi::AgentInstance &instance );
00116 
00121     void defaultCollectionsChanged();
00122 
00123   protected:
00130     explicit SpecialCollections( KCoreConfigSkeleton *config, QObject *parent = 0 );
00131 
00132   private:
00133     //@cond PRIVATE
00134     friend class SpecialCollectionsRequestJob;
00135     friend class SpecialCollectionsRequestJobPrivate;
00136     friend class SpecialCollectionsPrivate;
00137 
00138 #if 1 // TODO do this only if building tests:
00139     friend class SpecialMailCollectionsTesting;
00140     friend class LocalFoldersTest;
00141 #endif
00142 
00143     SpecialCollectionsPrivate *const d;
00144 
00145     Q_PRIVATE_SLOT( d, void collectionRemoved( Akonadi::Collection ) )
00146     //@endcond
00147 };
00148 
00149 } // namespace Akonadi
00150 
00151 #endif // AKONADI_SPECIALCOLLECTIONS_H

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal