itemmonitor.h

00001 /*
00002     Copyright (c) 2007-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_ITEMMONITOR_H
00021 #define AKONADI_ITEMMONITOR_H
00022 
00023 #include "akonadi_export.h"
00024 
00025 class QStringList;
00026 
00027 namespace Akonadi {
00028 
00029 class Item;
00030 class ItemFetchScope;
00031 
00081 class AKONADI_EXPORT ItemMonitor
00082 {
00083   public:
00087     ItemMonitor();
00088 
00092     virtual ~ItemMonitor();
00093 
00097     void setItem( const Item &item );
00098 
00102      Item item() const;
00103 
00104   protected:
00110     virtual void itemChanged( const Item &item );
00111 
00115     virtual void itemRemoved();
00116 
00127     void setFetchScope( const ItemFetchScope &fetchScope );
00128 
00141     ItemFetchScope &fetchScope();
00142 
00143   private:
00144     //@cond PRIVATE
00145     class Private;
00146     Private* const d;
00147     //@endcond
00148 
00149     Q_DISABLE_COPY( ItemMonitor )
00150 };
00151 
00152 }
00153 
00154 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys