Backport r950340 | aacid | 2009-04-06 23:21:18 +0200 (Mon, 06 Apr 2009) | 4 lines
[kdepim.git] / kmail / xfaceconfigurator.h
blobfc9dbde7b12db8993f304a061734249263d56680
1 /* -*- c++ -*-
2 xfaceconfigurator.cpp
4 KMail, the KDE mail client.
5 Copyright (c) 2004 Jakob Schröter <js@camaya.net>
6 Copyright (c) 2002 the KMail authors.
7 See file AUTHORS for details
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License,
11 version 2.0, as published by the Free Software Foundation.
12 You should have received a copy of the GNU General Public License
13 along with this program; if not, write to the Free Software Foundation,
14 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
17 #ifndef __KMAIL_XFACECONFIGURATOR_H__
18 #define __KMAIL_XFACECONFIGURATOR_H__
20 #include <QWidget>
22 class KComboBox;
23 class KTextEdit;
24 class KUrl;
26 class QCheckBox;
27 class QString;
28 class QLabel;
30 namespace KMail {
32 class XFaceConfigurator : public QWidget {
33 Q_OBJECT
34 public:
35 XFaceConfigurator( QWidget * parent=0 );
36 virtual ~XFaceConfigurator();
38 bool isXFaceEnabled() const;
39 void setXFaceEnabled( bool enable );
42 QString xface() const;
43 void setXFace( const QString & text );
45 protected:
46 QCheckBox * mEnableCheck;
47 KTextEdit * mTextEdit;
48 QLabel * mXFaceLabel;
49 KComboBox * mSourceCombo;
52 private:
53 void setXfaceFromFile( const KUrl &url );
55 private slots:
56 void slotSelectFile();
57 void slotSelectFromAddressbook();
58 void slotUpdateXFace();
60 } // namespace KMail
62 #endif // __KMAIL_XFACECONFIGURATOR_H__