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

kmail

  • sources
  • kde-4.14
  • kdepim
  • kmail
  • folderarchive
folderarchivemanager.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-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 FOLDERARCHIVEMANAGER_H
19 #define FOLDERARCHIVEMANAGER_H
20 
21 #include <QObject>
22 #include <QQueue>
23 namespace Akonadi {
24 class AgentInstance;
25 class Collection;
26 class Item;
27 }
28 
29 class FolderArchiveAccountInfo;
30 class FolderArchiveAgentJob;
31 class FolderArchiveCache;
32 class KJob;
33 class FolderArchiveManager : public QObject
34 {
35  Q_OBJECT
36 public:
37  explicit FolderArchiveManager(QObject *parent=0);
38  ~FolderArchiveManager();
39 
40  void load();
41  void setArchiveItems(const QList<Akonadi::Item> &items, const QString &instanceName);
42  void setArchiveItem(qlonglong itemId);
43 
44  void moveFailed(const QString &msg);
45  void moveDone();
46 
47  void collectionRemoved(const Akonadi::Collection &collection);
48 
49  FolderArchiveCache *folderArchiveCache() const;
50  void reloadConfig();
51 
52 public Q_SLOTS:
53  void slotCollectionRemoved(const Akonadi::Collection &collection);
54  void slotInstanceRemoved(const Akonadi::AgentInstance &instance);
55 
56 private Q_SLOTS:
57  void slotFetchParentCollection(KJob* job);
58  void slotFetchCollection(KJob *job);
59 
60 private:
61  FolderArchiveAccountInfo *infoFromInstanceName(const QString &instanceName) const;
62  void nextJob();
63  void removeInfo(const QString &instanceName);
64  QQueue<FolderArchiveAgentJob*> mJobQueue;
65  FolderArchiveAgentJob *mCurrentJob;
66  QList<FolderArchiveAccountInfo*> mListAccountInfo;
67  FolderArchiveCache *mFolderArchiveCache;
68 };
69 
70 #endif // FOLDERARCHIVEMANAGER_H
FolderArchiveManager::~FolderArchiveManager
~FolderArchiveManager()
Definition: folderarchivemanager.cpp:44
QQueue< FolderArchiveAgentJob * >
FolderArchiveManager::moveFailed
void moveFailed(const QString &msg)
Definition: folderarchivemanager.cpp:189
FolderArchiveManager::collectionRemoved
void collectionRemoved(const Akonadi::Collection &collection)
FolderArchiveManager::setArchiveItems
void setArchiveItems(const QList< Akonadi::Item > &items, const QString &instanceName)
Definition: folderarchivemanager.cpp:122
FolderArchiveManager::folderArchiveCache
FolderArchiveCache * folderArchiveCache() const
Definition: folderarchivemanager.cpp:213
QObject
QString
QList< Akonadi::Item >
FolderArchiveAccountInfo
Definition: folderarchiveaccountinfo.h:24
FolderArchiveManager
Definition: folderarchivemanager.h:33
FolderArchiveManager::reloadConfig
void reloadConfig()
Definition: folderarchivemanager.cpp:218
FolderArchiveManager::moveDone
void moveDone()
Definition: folderarchivemanager.cpp:176
FolderArchiveManager::FolderArchiveManager
FolderArchiveManager(QObject *parent=0)
Definition: folderarchivemanager.cpp:36
FolderArchiveManager::setArchiveItem
void setArchiveItem(qlonglong itemId)
Definition: folderarchivemanager.cpp:76
FolderArchiveManager::load
void load()
Definition: folderarchivemanager.cpp:156
QObject::parent
QObject * parent() const
FolderArchiveCache
Definition: folderarchivecache.h:40
FolderArchiveManager::slotCollectionRemoved
void slotCollectionRemoved(const Akonadi::Collection &collection)
Definition: folderarchivemanager.cpp:52
KJob
FolderArchiveManager::slotInstanceRemoved
void slotInstanceRemoved(const Akonadi::AgentInstance &instance)
Definition: folderarchivemanager.cpp:136
FolderArchiveAgentJob
Definition: folderarchiveagentjob.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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