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

akonadi

agentmanager.h

00001 /*
00002     Copyright (c) 2006-2008 Tobias Koenig <tokoe@kde.org>
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_AGENTMANAGER_H
00021 #define AKONADI_AGENTMANAGER_H
00022 
00023 #include "akonadi_export.h"
00024 
00025 #include <akonadi/agenttype.h>
00026 #include <akonadi/agentinstance.h>
00027 
00028 #include <QtCore/QObject>
00029 
00030 namespace Akonadi {
00031 
00032 class AgentManagerPrivate;
00033 class Collection;
00034 
00055 class AKONADI_EXPORT AgentManager : public QObject
00056 {
00057   friend class AgentInstance;
00058   friend class AgentInstanceCreateJob;
00059   friend class AgentManagerPrivate;
00060 
00061   Q_OBJECT
00062 
00063   public:
00067     static AgentManager *self();
00068 
00072     ~AgentManager();
00073 
00077     AgentType::List types() const;
00078 
00083     AgentType type( const QString &identifier ) const;
00084 
00088     AgentInstance::List instances() const;
00089 
00094     AgentInstance instance( const QString &identifier ) const;
00095 
00099     void removeInstance( const AgentInstance &instance );
00100 
00106     void synchronizeCollection( const Collection &collection );
00107 
00108   Q_SIGNALS:
00114     void typeAdded( const Akonadi::AgentType &type );
00115 
00121     void typeRemoved( const Akonadi::AgentType &type );
00122 
00128     void instanceAdded( const Akonadi::AgentInstance &instance );
00129 
00135     void instanceRemoved( const Akonadi::AgentInstance &instance );
00136 
00143     void instanceStatusChanged( const Akonadi::AgentInstance &instance );
00144 
00151     void instanceProgressChanged( const Akonadi::AgentInstance &instance );
00152 
00158     void instanceNameChanged( const Akonadi::AgentInstance &instance );
00159 
00166     void instanceError( const Akonadi::AgentInstance &instance, const QString &message );
00167 
00174     void instanceWarning( const Akonadi::AgentInstance &instance, const QString &message );
00175 
00183     void instanceOnline( const Akonadi::AgentInstance &instance, bool online );
00184 
00185   private:
00186     //@cond PRIVATE
00187     AgentManager();
00188 
00189     AgentManagerPrivate* const d;
00190 
00191     Q_PRIVATE_SLOT( d, void agentTypeAdded( const QString& ) )
00192     Q_PRIVATE_SLOT( d, void agentTypeRemoved( const QString& ) )
00193     Q_PRIVATE_SLOT( d, void agentInstanceAdded( const QString& ) )
00194     Q_PRIVATE_SLOT( d, void agentInstanceRemoved( const QString& ) )
00195     Q_PRIVATE_SLOT( d, void agentInstanceStatusChanged( const QString&, int, const QString& ) )
00196     Q_PRIVATE_SLOT( d, void agentInstanceProgressChanged( const QString&, uint, const QString& ) )
00197     Q_PRIVATE_SLOT( d, void agentInstanceNameChanged( const QString&, const QString& ) )
00198     Q_PRIVATE_SLOT( d, void agentInstanceWarning( const QString&, const QString& ) )
00199     Q_PRIVATE_SLOT( d, void agentInstanceError( const QString&, const QString& ) )
00200     Q_PRIVATE_SLOT( d, void agentInstanceOnlineChanged( const QString&, bool ) )
00201     Q_PRIVATE_SLOT( d, void serviceOwnerChanged( QString, QString, QString ) )
00202     //@endcond
00203 };
00204 
00205 }
00206 
00207 #endif

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.1
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