akonadi
itemfetchjob.h
00001 /* 00002 Copyright (c) 2006 - 2007 Volker Krause <vkrause@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_ITEMFETCHJOB_H 00021 #define AKONADI_ITEMFETCHJOB_H 00022 00023 #include <akonadi/item.h> 00024 #include <akonadi/job.h> 00025 00026 namespace Akonadi { 00027 00028 class Collection; 00029 class ItemFetchJobPrivate; 00030 class ItemFetchScope; 00031 00082 class AKONADI_EXPORT ItemFetchJob : public Job 00083 { 00084 Q_OBJECT 00085 public: 00092 explicit ItemFetchJob( const Collection &collection, QObject *parent = 0 ); 00093 00105 explicit ItemFetchJob( const Item &item, QObject *parent = 0 ); 00106 00119 explicit ItemFetchJob( const Item::List &items, QObject *parent = 0 ); 00120 00125 explicit ItemFetchJob( const QList<Item::Id> &items, QObject *parent = 0 ); 00126 00130 virtual ~ItemFetchJob(); 00131 00138 Item::List items() const; 00139 00151 void setFetchScope( ItemFetchScope &fetchScope ); // KDE5: remove 00152 00165 void setFetchScope( const ItemFetchScope &fetchScope ); 00166 00179 ItemFetchScope &fetchScope(); 00180 00188 void setCollection( const Collection &collection ); 00189 00190 Q_SIGNALS: 00200 void itemsReceived( const Akonadi::Item::List &items ); 00201 00202 protected: 00203 virtual void doStart(); 00204 virtual void doHandleResponse( const QByteArray &tag, const QByteArray &data ); 00205 00206 private: 00207 Q_DECLARE_PRIVATE( ItemFetchJob ) 00208 00209 //@cond PRIVATE 00210 Q_PRIVATE_SLOT( d_func(), void selectDone( KJob* ) ) 00211 Q_PRIVATE_SLOT( d_func(), void timeout() ) 00212 //@endcond 00213 }; 00214 00215 } 00216 00217 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:18 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu Aug 2 2012 15:25:18 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.