akonadi
resourcesynchronizationjob.h
00001 /* 00002 * Copyright (c) 2009 Volker Krause <vkrause@kde.org> 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef AKONADI_RESOURCESYNCHRONIZATIONJOB_H 00019 #define AKONADI_RESOURCESYNCHRONIZATIONJOB_H 00020 00021 #include "akonadi_export.h" 00022 00023 #include <kjob.h> 00024 00025 namespace Akonadi { 00026 00027 class AgentInstance; 00028 class ResourceSynchronizationJobPrivate; 00029 00059 class AKONADI_EXPORT ResourceSynchronizationJob : public KJob 00060 { 00061 Q_OBJECT 00062 00063 public: 00069 explicit ResourceSynchronizationJob( const AgentInstance &instance, QObject *parent = 0 ); 00070 00074 ~ResourceSynchronizationJob(); 00075 00082 bool collectionTreeOnly() const; 00083 00090 void setCollectionTreeOnly( bool collectionTreeOnly ); 00091 00095 AgentInstance resource() const; 00096 00097 /* reimpl */ 00098 void start(); 00099 00100 private: 00101 //@cond PRIVATE 00102 ResourceSynchronizationJobPrivate* const d; 00103 friend class ResourceSynchronizationJobPrivate; 00104 00105 Q_PRIVATE_SLOT( d, void slotSynchronized() ) 00106 Q_PRIVATE_SLOT( d, void slotTimeout() ) 00107 //@endcond 00108 }; 00109 00110 } 00111 00112 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:45 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:45 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.