5 #ifndef __KMAIL_KMATMLISTVIEW_H__ 6 #define __KMAIL_KMATMLISTVIEW_H__ 8 #include <tqlistview.h> 12 class MessageComposer; 15 class KMAtmListViewItem : public TQObject, public TQListViewItem 21 KMAtmListViewItem( TQListView *parent ); 22 virtual ~KMAtmListViewItem(); 26 virtual int compare( TQListViewItem *i, int col, bool ascending ) const; 28 virtual void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ); 30 void setUncompressedMimeType( const TQCString & type, const TQCString & subtype ) { 31 mType = type; mSubtype = subtype; 33 void setAttachmentSize( int numBytes ) { 34 mAttachmentSize = numBytes; 36 void uncompressedMimeType( TQCString & type, TQCString & subtype ) const { 37 type = mType; subtype = mSubtype; 39 void setUncompressedCodec( const TQCString &codec ) { mCodec = codec; } 40 TQCString uncompressedCodec() const { return mCodec; } 42 void enableCryptoCBs( bool on ); 43 void setEncrypt( bool on ); 45 void setSign( bool on ); 47 void setCompress( bool on ); 52 void uncompress( int ); 56 void slotHeaderChange( int, int, int ); 57 void slotHeaderClick( int ); 61 void updateCheckBox( int headerSection, TQCheckBox *cb ); 62 void updateAllCheckBoxes(); 65 TQCheckBox *mCBEncrypt; 67 TQCheckBox *mCBCompress; 68 TQCString mType, mSubtype, mCodec; 72 #endif // __KMAIL_KMATMLISTVIEW_H__
|