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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • collectionpage
collectiongeneralpage.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  Copyright (c) 2009-2013 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_COLLECTIONGENERALPAGE_H
19 #define MAILCOMMON_COLLECTIONGENERALPAGE_H
20 
21 #include "mailcommon_export.h"
22 
23 #include <Akonadi/CollectionPropertiesPage>
24 
25 class KComboBox;
26 class KLineEdit;
27 
28 class QCheckBox;
29 
30 template <typename T> class QSharedPointer;
31 
32 namespace KPIMIdentities {
33  class IdentityCombo;
34 }
35 
36 namespace MailCommon {
37 
38 class FolderCollection;
39 
40 class MAILCOMMON_EXPORT CollectionGeneralPage : public Akonadi::CollectionPropertiesPage
41 {
42  Q_OBJECT
43 
44  public:
45  explicit CollectionGeneralPage( QWidget *parent = 0 );
46  ~CollectionGeneralPage();
47 
48  void load( const Akonadi::Collection &collection );
49  void save( Akonadi::Collection &collection );
50 
51  enum FolderContentsType {
52  ContentsTypeMail = 0,
53  ContentsTypeCalendar,
54  ContentsTypeContact,
55  ContentsTypeNote,
56  ContentsTypeTask,
57  ContentsTypeJournal,
58  ContentsTypeConfiguration,
59  ContentsTypeFreebusy,
60  ContentsTypeFile,
61  ContentsTypeLast = ContentsTypeFile
62  };
63 
64  enum IncidencesFor {
65  IncForNobody,
66  IncForAdmins,
67  IncForReaders
68  };
69 
70  protected:
71  void init( const Akonadi::Collection & );
72 
73  private Q_SLOTS:
74  void slotIdentityCheckboxChanged();
75  void slotFolderContentsSelectionChanged( int );
76  void slotNameChanged( const QString &name );
77 
78  private:
79  QString mColorName;
80  KComboBox *mContentsComboBox;
81  KComboBox *mIncidencesForComboBox;
82  QCheckBox *mSharedSeenFlagsCheckBox;
83  QCheckBox *mNotifyOnNewMailCheckBox;
84  QCheckBox *mKeepRepliesInSameFolderCheckBox;
85  QCheckBox *mHideInSelectionDialogCheckBox;
86  QCheckBox *mUseDefaultIdentityCheckBox;
87  KLineEdit *mNameEdit;
88  KPIMIdentities::IdentityCombo *mIdentityComboBox;
89  QSharedPointer<MailCommon::FolderCollection> mFolderCollection;
90  bool mIsLocalSystemFolder;
91  bool mIsResourceFolder;
92 };
93 
94 AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY( CollectionGeneralPageFactory, CollectionGeneralPage )
95 
96 }
97 
98 #endif
QSharedPointer
Definition: collectiongeneralpage.h:30
MailCommon::CollectionGeneralPage::ContentsTypeCalendar
Definition: collectiongeneralpage.h:53
QWidget
MailCommon::CollectionGeneralPage::ContentsTypeJournal
Definition: collectiongeneralpage.h:57
MailCommon::CollectionGeneralPage::ContentsTypeFile
Definition: collectiongeneralpage.h:60
MailCommon::CollectionGeneralPage::ContentsTypeNote
Definition: collectiongeneralpage.h:55
MailCommon::CollectionGeneralPage::ContentsTypeContact
Definition: collectiongeneralpage.h:54
MailCommon::CollectionGeneralPage::IncForNobody
Definition: collectiongeneralpage.h:65
mailcommon_export.h
MailCommon::CollectionGeneralPage::FolderContentsType
FolderContentsType
Definition: collectiongeneralpage.h:51
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::CollectionGeneralPage::ContentsTypeFreebusy
Definition: collectiongeneralpage.h:59
MailCommon::CollectionGeneralPage::IncidencesFor
IncidencesFor
Definition: collectiongeneralpage.h:64
MailCommon::CollectionGeneralPage
Definition: collectiongeneralpage.h:40
MailCommon::CollectionGeneralPage::IncForAdmins
Definition: collectiongeneralpage.h:66
MailCommon::CollectionGeneralPage::ContentsTypeConfiguration
Definition: collectiongeneralpage.h:58
MailCommon::CollectionGeneralPage::ContentsTypeTask
Definition: collectiongeneralpage.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 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

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