kmail

xfaceconfigurator.h

Go to the documentation of this file.
00001 /*  -*- c++ -*-
00002     xfaceconfigurator.cpp
00003 
00004     KMail, the KDE mail client.
00005     Copyright (c) 2004 Jakob Schröter <js@camaya.net>
00006     Copyright (c) 2002 the KMail authors.
00007     See file AUTHORS for details
00008 
00009     This program is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU General Public License,
00011     version 2.0, as published by the Free Software Foundation.
00012     You should have received a copy of the GNU General Public License
00013     along with this program; if not, write to the Free Software Foundation,
00014     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
00015 */
00016 
00017 #ifndef __KMAIL_XFACECONFIGURATOR_H__
00018 #define __KMAIL_XFACECONFIGURATOR_H__
00019 
00020 #include <qwidget.h>
00021 #include <qtextedit.h>
00022 
00023 class KURL;
00024 
00025 class QCheckBox;
00026 class QString;
00027 class QLabel;
00028 class QComboBox;
00029 
00030 namespace KMail {
00031 
00032   class XFaceConfigurator : public QWidget {
00033     Q_OBJECT
00034   public:
00035     XFaceConfigurator( QWidget * parent=0, const char * name=0 );
00036     virtual ~XFaceConfigurator();
00037 
00038     bool isXFaceEnabled() const;
00039     void setXFaceEnabled( bool enable );
00040 
00041 
00042     QString xface() const;
00043     void setXFace( const QString & text );
00044 
00045   protected:
00046     QCheckBox     * mEnableCheck;
00047     QTextEdit     * mTextEdit;
00048     QLabel        * mXFaceLabel;
00049     QComboBox     * mSourceCombo;
00050 
00051 
00052   private:
00053     void setXfaceFromFile( const KURL &url );
00054 
00055   private slots:
00056     void slotSelectFile();
00057     void slotSelectFromAddressbook();
00058     void slotUpdateXFace();
00059   };
00060 } // namespace KMail
00061 
00062 #endif // __KMAIL_XFACECONFIGURATOR_H__
00063 
00064