• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

itemfetchscope.h

00001 /*
00002     Copyright (c) 2008 Kevin Krammer <kevin.krammer@gmx.at>
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 ITEMFETCHSCOPE_H
00021 #define ITEMFETCHSCOPE_H
00022 
00023 #include "akonadi_export.h"
00024 
00025 #include <QtCore/QSharedDataPointer>
00026 
00027 class QStringList;
00028 template <typename T> class QSet;
00029 
00030 namespace Akonadi {
00031 
00032 class ItemFetchScopePrivate;
00033 
00067 class AKONADI_EXPORT ItemFetchScope
00068 {
00069   public:
00076     ItemFetchScope();
00077 
00081     ItemFetchScope( const ItemFetchScope &other );
00082 
00086     ~ItemFetchScope();
00087 
00091     ItemFetchScope &operator=( const ItemFetchScope &other );
00092 
00098     QSet<QByteArray> payloadParts() const;
00099 
00107     void fetchPayloadPart( const QByteArray &part, bool fetch = true );
00108 
00114     bool fullPayload() const;
00115 
00121     void fetchFullPayload( bool fetch = true );
00122 
00130     QSet<QByteArray> attributes() const;
00131 
00138     void fetchAttribute( const QByteArray &type, bool fetch = true );
00139 
00145     template <typename T> inline void fetchAttribute( bool fetch = true )
00146     {
00147       T dummy;
00148       fetchAttribute( dummy.type(), fetch );
00149     }
00150 
00156     bool allAttributes() const;
00157 
00163     void fetchAllAttributes( bool fetch = true );
00164 
00171     bool cacheOnly() const;
00172 
00180     void setCacheOnly( bool cacheOnly );
00181 
00185     bool isEmpty() const;
00186 
00187   private:
00188     //@cond PRIVATE
00189     QSharedDataPointer<ItemFetchScopePrivate> d;
00190     //@endcond
00191 };
00192 
00193 }
00194 
00195 #endif

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal