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 
00058 class AKONADI_EXPORT ResourceSynchronizationJob : public KJob
00059 {
00060   Q_OBJECT
00061 
00062   public:
00068     explicit ResourceSynchronizationJob( const AgentInstance &instance, QObject *parent = 0 );
00069 
00073     ~ResourceSynchronizationJob();
00074 
00078     AgentInstance resource() const;
00079 
00080     /* reimpl */
00081     void start();
00082 
00083   private:
00084     //@cond PRIVATE
00085     ResourceSynchronizationJobPrivate* const d;
00086     friend class ResourceSynchronizationJobPrivate;
00087 
00088     Q_PRIVATE_SLOT( d, void slotSynchronized() )
00089     Q_PRIVATE_SLOT( d, void slotTimeout() )
00090     //@endcond
00091 };
00092 
00093 }
00094 
00095 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys