• 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.14
  • kdepimlibs
  • akonadi
  • kmime
emptytrashcommand_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 EMPTYTRASHCOMMAND_P_H
21 #define EMPTYTRASHCOMMAND_P_H
22 
23 #include <commandbase_p.h>
24 
25 #include "akonadi/agentinstance.h"
26 #include "akonadi/collection.h"
27 
28 class QAbstractItemModel;
29 class KJob;
30 
31 class EmptyTrashCommand : public CommandBase
32 {
33  Q_OBJECT
34 
35 public:
36  EmptyTrashCommand(const QAbstractItemModel *model, QObject *parent);
37  EmptyTrashCommand(const Akonadi::Collection &folder, QObject *parent);
38  /*reimp*/ void execute();
39 
40 private Q_SLOTS:
41  void slotExpungeJob(KJob *job);
42  void slotDeleteJob(KJob *job);
43 
44 protected Q_SLOTS:
45  void emitResult(Result result);
46 
47 private:
48  void expunge(const Akonadi::Collection &col);
49  Akonadi::AgentInstance::List agentInstances();
50  Akonadi::Collection trashCollectionFolder();
51  Akonadi::Collection collectionFromId(const Akonadi::Collection::Id &id) const;
52  bool folderIsTrash(const Akonadi::Collection &col);
53 
54  const QAbstractItemModel *mModel;
55  Akonadi::Collection::Id the_trashCollectionFolder;
56  Akonadi::Collection mFolder;
57  int mNumberOfTrashToEmpty;
58 };
59 
60 #endif // EMPTYTRASHCOMMAND_P_H
QObject
QAbstractItemModel
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:24 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 Hierarchy
  • 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
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

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