kmail

identitydialog.h
1/*
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 TQt library by Trolltech AS, Norway (or with modified versions
23 of TQt that use the same license as TQt), 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 TQt. 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 <kdialogbase.h>
36
37
38class TQLineEdit;
39class TQCheckBox;
40class TQComboBox;
41class TQString;
42class TQStringList;
43class SimpleStringListEditor;
44class TemplatesConfiguration;
45class KPushButton;
46namespace Kleo {
47 class EncryptionKeyRequester;
48 class SigningKeyRequester;
49}
50namespace KPIM {
51 class Identity;
52}
53namespace KMail {
54 class SignatureConfigurator;
55 class XFaceConfigurator;
56 class DictionaryComboBox;
57 class FolderRequester;
58}
59
60namespace KMail {
61
62 class IdentityDialog : public KDialogBase {
63 TQ_OBJECT
64
65 public:
66 IdentityDialog( TQWidget * parent=0, const char * name = 0 );
67 virtual ~IdentityDialog();
68
69 void setIdentity( /*_not_ const*/ KPIM::Identity & ident );
70
71 void updateIdentity( KPIM::Identity & ident );
72
73 public slots:
74 void slotUpdateTransportCombo( const TQStringList & sl );
75
76 protected slots:
77 void slotAboutToShow( TQWidget * w );
79 void slotOk();
80 // copy default templates to identity templates
81 void slotCopyGlobal();
82
83 private:
84 bool checkFolderExists( const TQString & folder, const TQString & msg );
85 bool validateAddresses( const TQString & addresses );
86
87 protected:
88 // "general" tab:
89 TQLineEdit *mNameEdit;
90 TQLineEdit *mOrganizationEdit;
91 TQLineEdit *mEmailEdit;
92 SimpleStringListEditor *mAliasEdit;
93 // "cryptography" tab:
94 TQWidget *mCryptographyTab;
95 Kleo::SigningKeyRequester *mPGPSigningKeyRequester;
96 Kleo::EncryptionKeyRequester *mPGPEncryptionKeyRequester;
97 Kleo::SigningKeyRequester *mSMIMESigningKeyRequester;
98 Kleo::EncryptionKeyRequester *mSMIMEEncryptionKeyRequester;
99 TQComboBox *mPreferredCryptoMessageFormat;
100 // "advanced" tab:
101 TQLineEdit *mReplyToEdit;
102 TQLineEdit *mBccEdit;
103 KMail::DictionaryComboBox *mDictionaryCombo;
104 FolderRequester *mFccCombo;
105 FolderRequester *mDraftsCombo;
106 FolderRequester *mTemplatesCombo;
107 TQCheckBox *mTransportCheck;
108 TQComboBox *mTransportCombo; // should be a KMTransportCombo...
109 // "templates" tab:
110 TemplatesConfiguration *mWidget;
111 TQCheckBox *mCustom;
112 KPushButton *mCopyGlobal;
113 // "signature" tab:
114 KMail::SignatureConfigurator *mSignatureConfigurator;
115 // "X-Face" tab:
116 KMail::XFaceConfigurator *mXFaceConfigurator;
117 };
118
119} // namespace KMail
120
121#endif // __KMAIL_IDENTITYDIALOG_H__
A combo box for selecting the dictionary used for spell checking.
folderdiaquotatab.h
Definition: aboutdata.cpp:40