• 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
folderarchiveaccountinfo.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 FOLDERARCHIVEACCOUNTINFO_H
19 #define FOLDERARCHIVEACCOUNTINFO_H
20 
21 #include <KConfigGroup>
22 #include <Akonadi/Collection>
23 
24 class FolderArchiveAccountInfo
25 {
26 public:
27  FolderArchiveAccountInfo();
28  FolderArchiveAccountInfo(const KConfigGroup &config);
29  ~FolderArchiveAccountInfo();
30 
31  enum FolderArchiveType {
32  UniqueFolder,
33  FolderByMonths,
34  FolderByYears
35  };
36 
37  bool isValid() const;
38 
39  QString instanceName() const;
40  void setInstanceName(const QString &instance);
41 
42  void setArchiveTopLevel(Akonadi::Collection::Id id);
43  Akonadi::Collection::Id archiveTopLevel() const;
44 
45  void setFolderArchiveType(FolderArchiveType type);
46  FolderArchiveType folderArchiveType() const;
47 
48  void setEnabled(bool enabled);
49  bool enabled() const;
50 
51  void setKeepExistingStructure(bool b);
52  bool keepExistingStructure() const;
53 
54  void writeConfig(KConfigGroup &config );
55  void readConfig(const KConfigGroup &config);
56 
57  bool operator==( const FolderArchiveAccountInfo& other ) const;
58 
59 private:
60  Akonadi::Collection::Id mArchiveTopLevelCollectionId;
61  QString mInstanceName;
62  FolderArchiveAccountInfo::FolderArchiveType mArchiveType;
63  bool mEnabled;
64  bool mKeepExistingStructure;
65 };
66 
67 #endif // FOLDERARCHIVEACCOUNTINFO_H
FolderArchiveAccountInfo::folderArchiveType
FolderArchiveType folderArchiveType() const
Definition: folderarchiveaccountinfo.cpp:53
FolderArchiveAccountInfo::setEnabled
void setEnabled(bool enabled)
Definition: folderarchiveaccountinfo.cpp:78
FolderArchiveAccountInfo::FolderByMonths
Definition: folderarchiveaccountinfo.h:33
FolderArchiveAccountInfo::setKeepExistingStructure
void setKeepExistingStructure(bool b)
Definition: folderarchiveaccountinfo.cpp:88
FolderArchiveAccountInfo::setInstanceName
void setInstanceName(const QString &instance)
Definition: folderarchiveaccountinfo.cpp:73
FolderArchiveAccountInfo::instanceName
QString instanceName() const
Definition: folderarchiveaccountinfo.cpp:68
FolderArchiveAccountInfo::FolderByYears
Definition: folderarchiveaccountinfo.h:34
FolderArchiveAccountInfo::readConfig
void readConfig(const KConfigGroup &config)
Definition: folderarchiveaccountinfo.cpp:98
FolderArchiveAccountInfo::~FolderArchiveAccountInfo
~FolderArchiveAccountInfo()
Definition: folderarchiveaccountinfo.cpp:39
FolderArchiveAccountInfo::isValid
bool isValid() const
Definition: folderarchiveaccountinfo.cpp:43
FolderArchiveAccountInfo::setArchiveTopLevel
void setArchiveTopLevel(Akonadi::Collection::Id id)
Definition: folderarchiveaccountinfo.cpp:58
FolderArchiveAccountInfo::setFolderArchiveType
void setFolderArchiveType(FolderArchiveType type)
Definition: folderarchiveaccountinfo.cpp:48
FolderArchiveAccountInfo::FolderArchiveAccountInfo
FolderArchiveAccountInfo()
Definition: folderarchiveaccountinfo.cpp:22
FolderArchiveAccountInfo::writeConfig
void writeConfig(KConfigGroup &config)
Definition: folderarchiveaccountinfo.cpp:107
FolderArchiveAccountInfo::archiveTopLevel
Akonadi::Collection::Id archiveTopLevel() const
Definition: folderarchiveaccountinfo.cpp:63
QString
FolderArchiveAccountInfo
Definition: folderarchiveaccountinfo.h:24
FolderArchiveAccountInfo::enabled
bool enabled() const
Definition: folderarchiveaccountinfo.cpp:83
FolderArchiveAccountInfo::UniqueFolder
Definition: folderarchiveaccountinfo.h:32
FolderArchiveAccountInfo::keepExistingStructure
bool keepExistingStructure() const
Definition: folderarchiveaccountinfo.cpp:93
FolderArchiveAccountInfo::operator==
bool operator==(const FolderArchiveAccountInfo &other) const
Definition: folderarchiveaccountinfo.cpp:120
FolderArchiveAccountInfo::FolderArchiveType
FolderArchiveType
Definition: folderarchiveaccountinfo.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 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