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

mailcommon

  • sources
  • kde-4.14
  • kdepim
  • mailcommon
  • folder
foldercollectionmonitor.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef MAILCOMMON_FOLDERCOLLECTIONMONITOR_H
19 #define MAILCOMMON_FOLDERCOLLECTIONMONITOR_H
20 
21 #include "mailcommon_export.h"
22 
23 #include <KSharedConfig>
24 #include <KIO/Job>
25 
26 #include <QModelIndex>
27 #include <QObject>
28 
29 class QAbstractItemModel;
30 
31 namespace Akonadi {
32 class ChangeRecorder;
33 class Collection;
34 class Session;
35 }
36 
37 namespace MailCommon {
38 
39 class MAILCOMMON_EXPORT FolderCollectionMonitor : public QObject
40 {
41  Q_OBJECT
42 
43 public:
44  explicit FolderCollectionMonitor(Akonadi::Session *session, QObject *parent = 0 );
45  ~FolderCollectionMonitor();
46 
47  Akonadi::ChangeRecorder * monitor() const;
48  void expireAllFolders( bool immediate, QAbstractItemModel *collectionModel );
49  void expunge( const Akonadi::Collection &, bool sync = false );
50 
51 private slots:
52  void slotDeleteJob( KJob *job );
53 
54 protected:
55  void expireAllCollection( const QAbstractItemModel *model, bool immediate,
56  const QModelIndex &parentIndex = QModelIndex() );
57 
58 private:
59  Akonadi::ChangeRecorder *mMonitor;
60 };
61 
62 }
63 
64 #endif
QModelIndex
MailCommon::FolderCollectionMonitor
Definition: foldercollectionmonitor.h:39
QObject
mailcommon_export.h
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
QAbstractItemModel
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 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
  • pimprint

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