• 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
  • collectionpage
collectiontypeutil.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014-2015 Montel Laurent <montel@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 
19 */
20 
21 
22 #ifndef COLLECTIONTYPEUTIL_H
23 #define COLLECTIONTYPEUTIL_H
24 #include "mailcommon_export.h"
25 #include <QByteArray>
26 #include <QString>
27 
28 namespace MailCommon {
29 class MAILCOMMON_EXPORT CollectionTypeUtil
30 {
31 public:
32  CollectionTypeUtil();
33  ~CollectionTypeUtil();
34 
35  static QByteArray kolabFolderType();
36  static QByteArray kolabIncidencesFor();
37  static QByteArray kolabSharedSeen();
38 
39 
40  enum FolderContentsType {
41  ContentsTypeMail = 0,
42  ContentsTypeCalendar,
43  ContentsTypeContact,
44  ContentsTypeNote,
45  ContentsTypeTask,
46  ContentsTypeJournal,
47  ContentsTypeConfiguration,
48  ContentsTypeFreebusy,
49  ContentsTypeFile,
50  ContentsTypeLast = ContentsTypeFile
51  };
52 
53  enum IncidencesFor {
54  IncForNobody,
55  IncForAdmins,
56  IncForReaders
57  };
58 
59  CollectionTypeUtil::IncidencesFor incidencesForFromString(const QString &string);
60  CollectionTypeUtil::FolderContentsType typeFromKolabName(const QByteArray &name);
61  QString folderContentDescription(CollectionTypeUtil::FolderContentsType type);
62  QByteArray kolabNameFromType(CollectionTypeUtil::FolderContentsType type);
63  QString incidencesForToString(CollectionTypeUtil::IncidencesFor type);
64  CollectionTypeUtil::FolderContentsType contentsTypeFromString(const QString &type);
65  QString typeNameFromKolabType(const QByteArray &type);
66  QString iconNameFromContentsType(CollectionTypeUtil::FolderContentsType type);
67 };
68 }
69 #endif // COLLECTIONTYPEUTIL_H
QByteArray
MailCommon::CollectionTypeUtil::ContentsTypeJournal
Definition: collectiontypeutil.h:46
MailCommon::CollectionTypeUtil::ContentsTypeNote
Definition: collectiontypeutil.h:44
MailCommon::CollectionTypeUtil::ContentsTypeContact
Definition: collectiontypeutil.h:43
mailcommon_export.h
MailCommon::CollectionTypeUtil::IncForAdmins
Definition: collectiontypeutil.h:55
MailCommon::CollectionTypeUtil::ContentsTypeFreebusy
Definition: collectiontypeutil.h:48
QString
MailCommon::CollectionTypeUtil::ContentsTypeFile
Definition: collectiontypeutil.h:49
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::CollectionTypeUtil::ContentsTypeTask
Definition: collectiontypeutil.h:45
MailCommon::CollectionTypeUtil
Definition: collectiontypeutil.h:29
MailCommon::CollectionTypeUtil::ContentsTypeConfiguration
Definition: collectiontypeutil.h:47
MailCommon::CollectionTypeUtil::FolderContentsType
FolderContentsType
Definition: collectiontypeutil.h:40
MailCommon::CollectionTypeUtil::ContentsTypeCalendar
Definition: collectiontypeutil.h:42
MailCommon::CollectionTypeUtil::IncidencesFor
IncidencesFor
Definition: collectiontypeutil.h:53
MailCommon::CollectionTypeUtil::IncForNobody
Definition: collectiontypeutil.h:54
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