• 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
  • configuredialog
configureaccountpage.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 CONFIGUREACCOUNTPAGE_H
19 #define CONFIGUREACCOUNTPAGE_H
20 
21 #include "kmail_export.h"
22 #include "configuredialog_p.h"
23 #include "ui_accountspagereceivingtab.h"
24 
25 class QCheckBox;
26 class KComboBox;
27 class OrgFreedesktopAkonadiNewMailNotifierInterface;
28 
29 
30 // subclasses: one class per tab:
31 class AccountsPageSendingTab : public ConfigModuleTab {
32  Q_OBJECT
33 public:
34  explicit AccountsPageSendingTab( QWidget * parent=0 );
35  virtual ~AccountsPageSendingTab();
36  QString helpAnchor() const;
37  void save();
38 
39 private:
40  void doLoadFromGlobalSettings();
41  void doLoadOther();
42  //FIXME virtual void doResetToDefaultsOther();
43 
44 private:
45  QCheckBox *mConfirmSendCheck;
46  QCheckBox *mCheckSpellingBeforeSending;
47  KComboBox *mSendOnCheckCombo;
48  KComboBox *mSendMethodCombo;
49 };
50 
51 
52 class AccountsPageReceivingTab : public ConfigModuleTab {
53  Q_OBJECT
54 public:
55  explicit AccountsPageReceivingTab( QWidget * parent=0 );
56  ~AccountsPageReceivingTab();
57  QString helpAnchor() const;
58  void save();
59 
60 signals:
61  void accountListChanged( const QStringList & );
62 
63 private slots:
64  void slotEditNotifications();
65  void slotShowMailCheckMenu( const QString &, const QPoint & );
66  void slotCustomizeAccountOrder();
67  void slotIncludeInCheckChanged( bool checked );
68  void slotOfflineOnShutdownChanged( bool checked );
69  void slotCheckOnStatupChanged( bool checked );
70 
71 private:
72  void doLoadFromGlobalSettings();
73  void doLoadOther();
74 
75  struct RetrievalOptions {
76  RetrievalOptions( bool manualCheck, bool offline, bool checkOnStartup )
77  : IncludeInManualChecks( manualCheck )
78  , OfflineOnShutdown( offline )
79  ,CheckOnStartup( checkOnStartup ) {}
80  bool IncludeInManualChecks;
81  bool OfflineOnShutdown;
82  bool CheckOnStartup;
83  };
84 
85  QHash<QString, QSharedPointer<RetrievalOptions> > mRetrievalHash;
86  //FIXME virtual void doResetToDefaultsOther();
87 
88 private:
89  Ui_AccountsPageReceivingTab mAccountsReceiving;
90  OrgFreedesktopAkonadiNewMailNotifierInterface *mNewMailNotifierInterface;
91 };
92 
93 class KMAIL_EXPORT AccountsPage : public ConfigModuleWithTabs {
94  Q_OBJECT
95 public:
96  explicit AccountsPage( const KComponentData &instance, QWidget *parent=0 );
97  QString helpAnchor() const;
98 
99 
100  // hrmpf. moc doesn't like nested classes with slots/signals...:
101  typedef AccountsPageSendingTab SendingTab;
102  typedef AccountsPageReceivingTab ReceivingTab;
103 
104 signals:
105  void accountListChanged( const QStringList & );
106 
107 private:
108  SendingTab *mSendingTab;
109  ReceivingTab *mReceivingTab;
110 };
111 
112 
113 #endif // CONFIGUREACCOUNTPAGE_H
QWidget
ConfigModule::helpAnchor
virtual QString helpAnchor() const =0
Should return the help anchor for this page or tab.
AccountsPageReceivingTab::accountListChanged
void accountListChanged(const QStringList &)
ConfigModuleTab
Definition: configuredialog_p.h:19
kmail_export.h
AccountsPage
Definition: configureaccountpage.h:93
AccountsPageReceivingTab
Definition: configureaccountpage.h:52
QPoint
AccountsPageSendingTab::AccountsPageSendingTab
AccountsPageSendingTab(QWidget *parent=0)
Definition: configureaccountpage.cpp:86
AccountsPageReceivingTab::save
void save()
Definition: configureaccountpage.cpp:347
QHash
AccountsPageSendingTab
Definition: configureaccountpage.h:31
QCheckBox
AccountsPageSendingTab::~AccountsPageSendingTab
virtual ~AccountsPageSendingTab()
Definition: configureaccountpage.cpp:77
configuredialog_p.h
QString
AccountsPageReceivingTab::~AccountsPageReceivingTab
~AccountsPageReceivingTab()
Definition: configureaccountpage.cpp:218
AccountsPageReceivingTab::AccountsPageReceivingTab
AccountsPageReceivingTab(QWidget *parent=0)
Definition: configureaccountpage.cpp:180
QStringList
KMAIL_EXPORT
#define KMAIL_EXPORT
Definition: kmail_export.h:35
AccountsPageSendingTab::save
void save()
Definition: configureaccountpage.cpp:167
AccountsPageSendingTab::helpAnchor
QString helpAnchor() const
Definition: configureaccountpage.cpp:81
KComboBox
ConfigModuleWithTabs
Definition: configuredialog_p.h:54
AccountsPage::ReceivingTab
AccountsPageReceivingTab ReceivingTab
Definition: configureaccountpage.h:102
AccountsPageReceivingTab::helpAnchor
QString helpAnchor() const
Definition: configureaccountpage.cpp:175
QObject::parent
QObject * parent() const
AccountsPage::SendingTab
AccountsPageSendingTab SendingTab
Definition: configureaccountpage.h:101
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