• 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
  • identity
identitydialog.h
Go to the documentation of this file.
1 /* -*- mode: C++; c-file-style: "gnu" -*-
2  identitydialog.h
3 
4  This file is part of KMail, the KDE mail client.
5  Copyright (c) 2002 Marc Mutz <mutz@kde.org>
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 <kdialog.h>
36 
37 class QCheckBox;
38 
39 namespace PimCommon {
40 class SimpleStringListEditor;
41 }
42 
43 class KComboBox;
44 class KJob;
45 class KLineEdit;
46 class KPushButton;
47 class KTabWidget;
48 
49 namespace Kleo {
50 class EncryptionKeyRequester;
51 class SigningKeyRequester;
52 }
53 namespace KPIMIdentities {
54 class Identity;
55 class SignatureConfigurator;
56 }
57 namespace KMail {
58 class XFaceConfigurator;
59 }
60 
61 namespace MailCommon {
62 class FolderRequester;
63 }
64 namespace Sonnet {
65 class DictionaryComboBox;
66 }
67 
68 namespace MailTransport {
69 class TransportComboBox;
70 }
71 
72 namespace TemplateParser {
73 class TemplatesConfiguration;
74 }
75 
76 namespace PimCommon {
77 class AutoCorrectionLanguage;
78 }
79 
80 
81 namespace KMail {
82 
83 class IdentityDialog : public KDialog {
84  Q_OBJECT
85 public:
86  explicit IdentityDialog( QWidget * parent=0 );
87  ~IdentityDialog();
88 
89  void setIdentity( /*_not_ const*/ KPIMIdentities::Identity & ident );
90 
91  void updateIdentity( KPIMIdentities::Identity & ident );
92 
93 protected slots:
94  void slotAboutToShow( int );
95 
97  void slotButtonClicked( int button );
98 
99  // copy default templates to identity templates
100  void slotCopyGlobal();
101 
102 private slots:
103  void slotDelayedButtonClicked( KJob* );
104  void slotEditVcard();
105  void slotRefreshDefaultDomainName();
106  void slotVCardRemoved();
107 
108 private:
109  bool checkFolderExists( const QString & folder, const QString & msg );
110  bool validateAddresses( const QString & addresses );
111  void updateVcardButton();
112  void editVcard(const QString& filename);
113 
114 private:
115  // "general" tab:
116  KLineEdit *mNameEdit;
117  KLineEdit *mOrganizationEdit;
118  KLineEdit *mEmailEdit;
119  PimCommon::SimpleStringListEditor *mAliasEdit;
120  // "cryptography" tab:
121  QWidget *mCryptographyTab;
122  Kleo::SigningKeyRequester *mPGPSigningKeyRequester;
123  Kleo::EncryptionKeyRequester *mPGPEncryptionKeyRequester;
124  Kleo::SigningKeyRequester *mSMIMESigningKeyRequester;
125  Kleo::EncryptionKeyRequester *mSMIMEEncryptionKeyRequester;
126  KComboBox *mPreferredCryptoMessageFormat;
127  QCheckBox *mAutoSign;
128  // "advanced" tab:
129  KLineEdit *mReplyToEdit;
130  KLineEdit *mBccEdit;
131  KLineEdit *mCcEdit;
132  Sonnet::DictionaryComboBox *mDictionaryCombo;
133  MailCommon::FolderRequester *mFccCombo;
134  QCheckBox *mSentMailFolderCheck;
135  MailCommon::FolderRequester *mDraftsCombo;
136  MailCommon::FolderRequester *mTemplatesCombo;
137  QCheckBox *mTransportCheck;
138  MailTransport::TransportComboBox *mTransportCombo;
139  QCheckBox *mAttachMyVCard;
140  QString mVcardFilename;
141  KPushButton *mEditVCard;
142  PimCommon::AutoCorrectionLanguage *mAutoCorrectionLanguage;
143  KLineEdit *mDefaultDomainEdit;
144 
145  // "templates" tab:
146  TemplateParser::TemplatesConfiguration *mWidget;
147  QCheckBox *mCustom;
148  KPushButton *mCopyGlobal;
149  // "signature" tab:
150  KPIMIdentities::SignatureConfigurator *mSignatureConfigurator;
151  // "X-Face" tab:
152  KMail::XFaceConfigurator *mXFaceConfigurator;
153  KTabWidget *mTabWidget;
154 };
155 
156 } // namespace KMail
157 
158 #endif // __KMAIL_IDENTITYDIALOG_H__
QWidget
KMail::IdentityDialog::slotCopyGlobal
void slotCopyGlobal()
Definition: identitydialog.cpp:626
KMail::IdentityDialog::updateIdentity
void updateIdentity(KPIMIdentities::Identity &ident)
Definition: identitydialog.cpp:897
KMail::IdentityDialog::slotAboutToShow
void slotAboutToShow(int)
Definition: identitydialog.cpp:613
KMail::IdentityDialog::IdentityDialog
IdentityDialog(QWidget *parent=0)
Definition: identitydialog.cpp:116
KDialog
KMail::IdentityDialog::~IdentityDialog
~IdentityDialog()
Definition: identitydialog.cpp:607
QCheckBox
KMail::IdentityDialog::slotButtonClicked
void slotButtonClicked(int button)
Definition: identitydialog.cpp:673
QString
KLineEdit
KComboBox
KMail::IdentityDialog
Definition: identitydialog.h:83
KMail::XFaceConfigurator
Definition: xfaceconfigurator.h:32
KJob
KMail::IdentityDialog::setIdentity
void setIdentity(KPIMIdentities::Identity &ident)
Definition: identitydialog.cpp:795
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 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