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

kmail/src

  • kde-4.x
  • pim
  • kmail
  • src
  • identity
identitydialog.h
Go to the documentation of this file.
1 /*
2  identitydialog.h
3 
4  This file is part of KMail, the KDE mail client.
5  Copyright (c) 2002 Marc Mutz <[email protected]>
6 
7  KMail is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License, version 2, as
9  published by the Free Software Foundation.
10 
11  KMail is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 
20  In addition, as a special exception, the copyright holders give
21  permission to link the code of this program with any edition of
22  the Qt library by Trolltech AS, Norway (or with modified versions
23  of Qt that use the same license as Qt), and distribute linked
24  combinations including the two. You must obey the GNU General
25  Public License in all respects for all of the code used other than
26  Qt. If you modify this file, you may extend this exception to
27  your version of the file, but you are not obligated to do so. If
28  you do not wish to do so, delete this exception statement from
29  your version.
30 */
31 
32 #ifndef KMAIL_IDENTITYDIALOG_H
33 #define KMAIL_IDENTITYDIALOG_H
34 
35 #include <QDialog>
36 class QCheckBox;
37 
38 class KEditListWidget;
39 class QComboBox;
40 class KJob;
41 class KLineEdit;
42 class QPushButton;
43 class QTabWidget;
44 
45 namespace GpgME {
46 class Key;
47 }
48 namespace KIdentityManagement {
49 class Identity;
50 class SignatureConfigurator;
51 }
52 namespace KMail {
53 class XFaceConfigurator;
54 }
55 
56 namespace MailCommon {
57 class FolderRequester;
58 }
59 namespace Sonnet {
60 class DictionaryComboBox;
61 }
62 
63 namespace MailTransport {
64 class TransportComboBox;
65 }
66 
67 namespace TemplateParser {
68 class TemplatesConfiguration;
69 }
70 
71 namespace PimCommon {
72 class AutoCorrectionLanguage;
73 }
74 
75 namespace KMail {
76 class IdentityFolderRequester;
77 class IdentityInvalidFolder;
78 class KeySelectionCombo;
79 
80 class IdentityDialog : public QDialog
81 {
82  Q_OBJECT
83 public:
84  explicit IdentityDialog(QWidget *parent = nullptr);
85  ~IdentityDialog();
86 
87  void setIdentity(/*_not_ const*/ KIdentityManagement::Identity &ident);
88 
89  void updateIdentity(KIdentityManagement::Identity &ident);
90 
91 private:
92  void slotAboutToShow(int);
93  // copy default templates to identity templates
94  void slotCopyGlobal();
95  void slotAccepted();
96  void slotDelayedButtonClicked(KJob *);
97  void slotEditVcard();
98  void slotRefreshDefaultDomainName();
99  void slotVCardRemoved();
100  void slotHelp();
101 
102  Q_REQUIRED_RESULT bool keyMatchesEmailAddress(const GpgME::Key &key, const QString &email);
103  Q_REQUIRED_RESULT bool checkFolderExists(const QString &folder);
104  Q_REQUIRED_RESULT bool validateAddresses(const QString &addresses);
105  void updateVcardButton();
106  void editVcard(const QString &filename);
107  void unregisterSpecialCollection(qint64 id);
108 
109  QString mVcardFilename;
110 
111  // "general" tab:
112  KLineEdit *mNameEdit = nullptr;
113  KLineEdit *mOrganizationEdit = nullptr;
114  KLineEdit *mEmailEdit = nullptr;
115  KEditListWidget *mAliasEdit = nullptr;
116  // "cryptography" tab:
117  QWidget *mCryptographyTab = nullptr;
118  KeySelectionCombo *mPGPSigningKeyRequester = nullptr;
119  KeySelectionCombo *mPGPEncryptionKeyRequester = nullptr;
120  KeySelectionCombo *mSMIMESigningKeyRequester = nullptr;
121  KeySelectionCombo *mSMIMEEncryptionKeyRequester = nullptr;
122  QComboBox *mPreferredCryptoMessageFormat = nullptr;
123  QCheckBox *mAutoSign = nullptr;
124  QCheckBox *mAutoEncrypt = nullptr;
125  // "advanced" tab:
126  KLineEdit *mReplyToEdit = nullptr;
127  KLineEdit *mBccEdit = nullptr;
128  KLineEdit *mCcEdit = nullptr;
129  Sonnet::DictionaryComboBox *mDictionaryCombo = nullptr;
130  IdentityFolderRequester *mFccFolderRequester = nullptr;
131  QCheckBox *mSentMailFolderCheck = nullptr;
132  IdentityFolderRequester *mDraftsFolderRequester = nullptr;
133  IdentityFolderRequester *mTemplatesFolderRequester = nullptr;
134  QCheckBox *mTransportCheck = nullptr;
135  MailTransport::TransportComboBox *mTransportCombo = nullptr;
136  QCheckBox *mAttachMyVCard = nullptr;
137  QPushButton *mEditVCard = nullptr;
138  PimCommon::AutoCorrectionLanguage *mAutoCorrectionLanguage = nullptr;
139  KLineEdit *mDefaultDomainEdit = nullptr;
140 
141  // "templates" tab:
142  TemplateParser::TemplatesConfiguration *mWidget = nullptr;
143  QCheckBox *mCustom = nullptr;
144  QPushButton *mCopyGlobal = nullptr;
145  // "signature" tab:
146  KIdentityManagement::SignatureConfigurator *mSignatureConfigurator = nullptr;
147  // "X-Face" tab:
148  KMail::XFaceConfigurator *mXFaceConfigurator = nullptr;
149  QTabWidget *mTabWidget = nullptr;
150  IdentityInvalidFolder *mIdentityInvalidFolder = nullptr;
151 };
152 } // namespace KMail
153 
154 #endif // KMAIL_IDENTITYDIALOG_H
QWidget
KMail::IdentityDialog::IdentityDialog
IdentityDialog(QWidget *parent=nullptr)
Definition: identitydialog.cpp:271
KMail::IdentityInvalidFolder
Definition: identityinvalidfolder.h:23
KMail::IdentityDialog::~IdentityDialog
~IdentityDialog()
Definition: identitydialog.cpp:706
QTabWidget
QCheckBox
QString
KMail::IdentityDialog
Definition: identitydialog.h:80
QDialog
QPushButton
KMail::IdentityDialog::updateIdentity
void updateIdentity(KIdentityManagement::Identity &ident)
Definition: identitydialog.cpp:984
KMail::XFaceConfigurator
Definition: xfaceconfigurator.h:31
QObject::parent
QObject * parent() const
KMail::IdentityDialog::setIdentity
void setIdentity(KIdentityManagement::Identity &ident)
Definition: identitydialog.cpp:872
KJob
KMail::IdentityFolderRequester
Definition: identityfolderrequester.h:28
QComboBox
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 03:57:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail/src

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

pim API Reference

Skip menu "pim API Reference"
  • akonadi-calendar-tools
  •   konsolekalendar
  • akregator
  •   src
  • kalarmcal
  •   src
  •     lib
  • kdepim-runtime
  •   agents
  •   src
  • kleopatra
  •   src
  • kmailtransport
  • knotes
  • kontact
  • kontactinterface
  • kpimtextedit
  • ksmtp
  • ktnef
  • libkgapi
  • libkleo
  •   src
  •     src
  •     src

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