kmail
identitydialog.h
Go to the documentation of this file.00001 /* -*- mode: C++; c-file-style: "gnu" -*- 00002 identitydialog.h 00003 00004 This file is part of KMail, the KDE mail client. 00005 Copyright (c) 2002 Marc Mutz <mutz@kde.org> 00006 00007 KMail is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License, version 2, as 00009 published by the Free Software Foundation. 00010 00011 KMail is distributed in the hope that it will be useful, but 00012 WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 In addition, as a special exception, the copyright holders give 00021 permission to link the code of this program with any edition of 00022 the Qt library by Trolltech AS, Norway (or with modified versions 00023 of Qt that use the same license as Qt), and distribute linked 00024 combinations including the two. You must obey the GNU General 00025 Public License in all respects for all of the code used other than 00026 Qt. If you modify this file, you may extend this exception to 00027 your version of the file, but you are not obligated to do so. If 00028 you do not wish to do so, delete this exception statement from 00029 your version. 00030 */ 00031 00032 #ifndef __KMAIL_IDENTITYDIALOG_H__ 00033 #define __KMAIL_IDENTITYDIALOG_H__ 00034 00035 #include <kdialog.h> 00036 00037 class QCheckBox; 00038 class QString; 00039 class TemplatesConfiguration; 00040 00041 class KComboBox; 00042 class KLineEdit; 00043 class KPushButton; 00044 00045 namespace Kleo { 00046 class EncryptionKeyRequester; 00047 class SigningKeyRequester; 00048 } 00049 namespace KPIMIdentities { 00050 class Identity; 00051 class SignatureConfigurator; 00052 } 00053 namespace KMail { 00054 class XFaceConfigurator; 00055 class FolderRequester; 00056 } 00057 namespace KPIM { 00058 class DictionaryComboBox; 00059 } 00060 00061 namespace MailTransport { 00062 class TransportComboBox; 00063 } 00064 00065 namespace KMail { 00066 00067 class IdentityDialog : public KDialog { 00068 Q_OBJECT 00069 public: 00070 IdentityDialog( QWidget * parent=0 ); 00071 virtual ~IdentityDialog(); 00072 00073 void setIdentity( /*_not_ const*/ KPIMIdentities::Identity & ident ); 00074 00075 void updateIdentity( KPIMIdentities::Identity & ident ); 00076 00077 protected slots: 00078 void slotAboutToShow( QWidget * w ); 00079 00081 virtual void slotButtonClicked( int button ); 00082 00083 // copy default templates to identity templates 00084 void slotCopyGlobal(); 00085 00086 private: 00087 bool checkFolderExists( const QString & folder, const QString & msg ); 00088 bool validateAddresses( const QString & addresses ); 00089 00090 protected: 00091 // "general" tab: 00092 KLineEdit *mNameEdit; 00093 KLineEdit *mOrganizationEdit; 00094 KLineEdit *mEmailEdit; 00095 // "cryptography" tab: 00096 QWidget *mCryptographyTab; 00097 Kleo::SigningKeyRequester *mPGPSigningKeyRequester; 00098 Kleo::EncryptionKeyRequester *mPGPEncryptionKeyRequester; 00099 Kleo::SigningKeyRequester *mSMIMESigningKeyRequester; 00100 Kleo::EncryptionKeyRequester *mSMIMEEncryptionKeyRequester; 00101 KComboBox *mPreferredCryptoMessageFormat; 00102 // "advanced" tab: 00103 KLineEdit *mReplyToEdit; 00104 KLineEdit *mBccEdit; 00105 KPIM::DictionaryComboBox *mDictionaryCombo; 00106 FolderRequester *mFccCombo; 00107 FolderRequester *mDraftsCombo; 00108 FolderRequester *mTemplatesCombo; 00109 QCheckBox *mTransportCheck; 00110 MailTransport::TransportComboBox *mTransportCombo; 00111 // "templates" tab: 00112 TemplatesConfiguration *mWidget; 00113 QCheckBox *mCustom; 00114 KPushButton *mCopyGlobal; 00115 // "signature" tab: 00116 KPIMIdentities::SignatureConfigurator *mSignatureConfigurator; 00117 // "X-Face" tab: 00118 KMail::XFaceConfigurator *mXFaceConfigurator; 00119 }; 00120 00121 } // namespace KMail 00122 00123 #endif // __KMAIL_IDENTITYDIALOG_H__
KDE 4.2 API Reference