kmail
kmatmlistview.h00001
00002
00003
00004
00005 #ifndef __KMAIL_KMATMLISTVIEW_H__
00006 #define __KMAIL_KMATMLISTVIEW_H__
00007
00008 #include <qlistview.h>
00009 #include <qcstring.h>
00010
00011 class KMComposeWin;
00012 class MessageComposer;
00013 class QCheckBox;
00014
00015 class KMAtmListViewItem : public QObject, public QListViewItem
00016 {
00017 Q_OBJECT
00018 friend class ::KMComposeWin;
00019 friend class ::MessageComposer;
00020
00021 public:
00022 KMAtmListViewItem(QListView * parent);
00023 virtual ~KMAtmListViewItem();
00024 virtual void paintCell( QPainter * p, const QColorGroup & cg,
00025 int column, int width, int align );
00026
00027 void setUncompressedMimeType( const QCString & type, const QCString & subtype ) {
00028 mType = type; mSubtype = subtype;
00029 }
00030 void uncompressedMimeType( QCString & type, QCString & subtype ) const {
00031 type = mType; subtype = mSubtype;
00032 }
00033 void setUncompressedCodec( const QCString & codec ) { mCodec = codec; }
00034 QCString uncompressedCodec() const { return mCodec; }
00035
00036 signals:
00037 void compress( int );
00038 void uncompress( int );
00039
00040 protected:
00041 void enableCryptoCBs(bool on);
00042 void setEncrypt(bool on);
00043 bool isEncrypt();
00044 void setSign(bool on);
00045 bool isSign();
00046 void setCompress(bool on);
00047 bool isCompress();
00048
00049 private slots:
00050 void slotCompress();
00051
00052 private:
00053 QListView* mListview;
00054 QCheckBox* mCBEncrypt;
00055 QCheckBox* mCBSign;
00056 QCheckBox* mCBCompress;
00057 bool mCBSignEnabled, mCBEncryptEnabled;
00058 QCString mType, mSubtype, mCodec;
00059 };
00060
00061
00062 #endif // __KMAIL_KMATMLISTVIEW_H__
|