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

akonadi/kmime

  • sources
  • kde-4.12
  • kdepimlibs
  • akonadi
  • kmime
markascommand_p.h
1 /*
2  Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
3  Copyright (c) 2010 Andras Mantia <andras@kdab.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #ifndef MARKASCOMMAND_H
21 #define MARKASCOMMAND_H
22 
23 #include "commandbase_p.h"
24 
25 #include <akonadi/collection.h>
26 #include <akonadi/item.h>
27 #include <akonadi/kmime/messagestatus.h>
28 
29 #include <QList>
30 
31 class KJob;
32 class MarkAsCommand : public CommandBase
33 {
34  Q_OBJECT
35 public:
36  MarkAsCommand( const Akonadi::MessageStatus& targetStatus, const Akonadi::Item::List & msgList, bool invert = false, QObject* parent = 0 );
37  MarkAsCommand( const Akonadi::MessageStatus& targetStatus, const Akonadi::Collection::List& folders, bool invert = false, QObject* parent = 0 );
38  void execute();
39 
40 private Q_SLOTS:
41  void slotFetchDone( KJob* job );
42  void slotModifyItemDone( KJob * job );
43 
44 private:
45  void markMessages();
46 
47  Akonadi::Collection::List mFolders;
48  QList<Akonadi::Item> mMessages;
49  Akonadi::MessageStatus mTargetStatus;
50  int mMarkJobCount;
51  int mFolderListJobCount;
52  int mInvertMark;
53 };
54 
55 #endif // MARKASCOMMAND_H
Akonadi::MessageStatus
Akonadi KMime Message Status.
Definition: messagestatus.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/kmime

Skip menu "akonadi/kmime"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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