• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
agentmanager.h
1 /*
2  Copyright (c) 2006-2008 Tobias Koenig <tokoe@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_AGENTMANAGER_H
21 #define AKONADI_AGENTMANAGER_H
22 
23 #include "akonadi_export.h"
24 
25 #include <akonadi/agenttype.h>
26 #include <akonadi/agentinstance.h>
27 
28 #include <QtCore/QObject>
29 
30 namespace Akonadi {
31 
32 class AgentManagerPrivate;
33 class Collection;
34 
55 class AKONADI_EXPORT AgentManager : public QObject
56 {
57  friend class AgentInstance;
58  friend class AgentInstanceCreateJobPrivate;
59  friend class AgentManagerPrivate;
60 
61  Q_OBJECT
62 
63  public:
67  static AgentManager *self();
68 
72  ~AgentManager();
73 
77  AgentType::List types() const;
78 
83  AgentType type( const QString &identifier ) const;
84 
88  AgentInstance::List instances() const;
89 
97  AgentInstance instance( const QString &identifier ) const;
98 
102  void removeInstance( const AgentInstance &instance );
103 
109  void synchronizeCollection( const Collection &collection );
110 
119  void synchronizeCollection( const Collection &collection, bool recursive );
120 
121 Q_SIGNALS:
127  void typeAdded( const Akonadi::AgentType &type );
128 
134  void typeRemoved( const Akonadi::AgentType &type );
135 
141  void instanceAdded( const Akonadi::AgentInstance &instance );
142 
148  void instanceRemoved( const Akonadi::AgentInstance &instance );
149 
156  void instanceStatusChanged( const Akonadi::AgentInstance &instance );
157 
164  void instanceProgressChanged( const Akonadi::AgentInstance &instance );
165 
171  void instanceNameChanged( const Akonadi::AgentInstance &instance );
172 
179  void instanceError( const Akonadi::AgentInstance &instance, const QString &message );
180 
187  void instanceWarning( const Akonadi::AgentInstance &instance, const QString &message );
188 
196  void instanceOnline( const Akonadi::AgentInstance &instance, bool online );
197 
198  private:
199  //@cond PRIVATE
200  AgentManager();
201 
202  AgentManagerPrivate* const d;
203 
204  Q_PRIVATE_SLOT( d, void agentTypeAdded( const QString& ) )
205  Q_PRIVATE_SLOT( d, void agentTypeRemoved( const QString& ) )
206  Q_PRIVATE_SLOT( d, void agentInstanceAdded( const QString& ) )
207  Q_PRIVATE_SLOT( d, void agentInstanceRemoved( const QString& ) )
208  Q_PRIVATE_SLOT( d, void agentInstanceStatusChanged( const QString&, int, const QString& ) )
209  Q_PRIVATE_SLOT( d, void agentInstanceProgressChanged( const QString&, uint, const QString& ) )
210  Q_PRIVATE_SLOT( d, void agentInstanceNameChanged( const QString&, const QString& ) )
211  Q_PRIVATE_SLOT( d, void agentInstanceWarning( const QString&, const QString& ) )
212  Q_PRIVATE_SLOT( d, void agentInstanceError( const QString&, const QString& ) )
213  Q_PRIVATE_SLOT( d, void agentInstanceOnlineChanged( const QString&, bool ) )
214  Q_PRIVATE_SLOT( d, void serviceOwnerChanged( const QString&, const QString&, const QString& ) )
215  //@endcond
216 };
217 
218 }
219 
220 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:31 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal