• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • filter
itemcontext.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  */
19 
20 #ifndef MAILCOMMON_ITEMCONTEXT_H
21 #define MAILCOMMON_ITEMCONTEXT_H
22 
23 #include "../mailcommon_export.h"
24 #include "../search/searchpattern.h"
25 
26 #include <Akonadi/Collection>
27 #include <Akonadi/Item>
28 
29 namespace MailCommon {
30 
39 class MAILCOMMON_EXPORT ItemContext
40 {
41 public:
46  ItemContext( const Akonadi::Item &item, bool needsFullPayload );
47 
51  Akonadi::Item &item();
52 
56  void setMoveTargetCollection( const Akonadi::Collection &collection );
57 
62  Akonadi::Collection moveTargetCollection() const;
63 
67  void setNeedsPayloadStore();
68 
72  bool needsPayloadStore() const;
73 
77  void setNeedsFlagStore();
78 
82  bool needsFlagStore() const;
83 
86  bool needsFullPayload() const;
87 
88  void setDeleteItem();
89  bool deleteItem() const;
90 
91 private:
92  Akonadi::Item mItem;
93  Akonadi::Collection mMoveTargetCollection;
94  bool mNeedsPayloadStore;
95  bool mNeedsFlagStore;
96  bool mDeleteItem;
97  bool mNeedsFullPayload;
98 };
99 
100 }
101 
102 #endif
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::ItemContext
A helper class for the filtering process.
Definition: itemcontext.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal