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

kmail

  • sources
  • kde-4.12
  • 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 MessageComposer {
77 class ComposerAutoCorrectionLanguage;
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 
106 private:
107  bool checkFolderExists( const QString & folder, const QString & msg );
108  bool validateAddresses( const QString & addresses );
109  void updateVcardButton();
110  void editVcard(const QString& filename);
111 
112 private:
113  // "general" tab:
114  KLineEdit *mNameEdit;
115  KLineEdit *mOrganizationEdit;
116  KLineEdit *mEmailEdit;
117  PimCommon::SimpleStringListEditor *mAliasEdit;
118  // "cryptography" tab:
119  QWidget *mCryptographyTab;
120  Kleo::SigningKeyRequester *mPGPSigningKeyRequester;
121  Kleo::EncryptionKeyRequester *mPGPEncryptionKeyRequester;
122  Kleo::SigningKeyRequester *mSMIMESigningKeyRequester;
123  Kleo::EncryptionKeyRequester *mSMIMEEncryptionKeyRequester;
124  KComboBox *mPreferredCryptoMessageFormat;
125  QCheckBox *mAutoSign;
126  // "advanced" tab:
127  KLineEdit *mReplyToEdit;
128  KLineEdit *mBccEdit;
129  KLineEdit *mCcEdit;
130  Sonnet::DictionaryComboBox *mDictionaryCombo;
131  MailCommon::FolderRequester *mFccCombo;
132  QCheckBox *mSentMailFolderCheck;
133  MailCommon::FolderRequester *mDraftsCombo;
134  MailCommon::FolderRequester *mTemplatesCombo;
135  QCheckBox *mTransportCheck;
136  MailTransport::TransportComboBox *mTransportCombo;
137  QCheckBox *mAttachMyVCard;
138  QString mVcardFilename;
139  KPushButton *mEditVCard;
140  MessageComposer::ComposerAutoCorrectionLanguage *mAutoCorrectionLanguage;
141 
142  // "templates" tab:
143  TemplateParser::TemplatesConfiguration *mWidget;
144  QCheckBox *mCustom;
145  KPushButton *mCopyGlobal;
146  // "signature" tab:
147  KPIMIdentities::SignatureConfigurator *mSignatureConfigurator;
148  // "X-Face" tab:
149  KMail::XFaceConfigurator *mXFaceConfigurator;
150  KTabWidget *mTabWidget;
151 };
152 
153 } // namespace KMail
154 
155 #endif // __KMAIL_IDENTITYDIALOG_H__
KMail::IdentityDialog::slotCopyGlobal
void slotCopyGlobal()
Definition: identitydialog.cpp:597
KMail::IdentityDialog::updateIdentity
void updateIdentity(KPIMIdentities::Identity &ident)
Definition: identitydialog.cpp:855
KMail::IdentityDialog::slotAboutToShow
void slotAboutToShow(int)
Definition: identitydialog.cpp:584
QWidget
KMail::IdentityDialog::IdentityDialog
IdentityDialog(QWidget *parent=0)
Definition: identitydialog.cpp:110
KDialog
KMail::IdentityDialog::~IdentityDialog
~IdentityDialog()
Definition: identitydialog.cpp:578
KMail::IdentityDialog::slotButtonClicked
void slotButtonClicked(int button)
Definition: identitydialog.cpp:639
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:759
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:51 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

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