32 #ifndef __KMAIL_HEADERSTRATEGY_H__
33 #define __KMAIL_HEADERSTRATEGY_H__
40 class HeaderStrategy {
43 virtual ~HeaderStrategy();
49 enum Type { All, Rich, Standard, Brief, Custom };
51 static const HeaderStrategy * create( Type type );
52 static const HeaderStrategy * create( const TQString & type );
54 static const HeaderStrategy * all();
55 static const HeaderStrategy * rich();
56 static const HeaderStrategy * standard();
57 static const HeaderStrategy * brief();
58 static const HeaderStrategy * custom();
63 virtual const char * name() const = 0;
64 virtual const HeaderStrategy * next() const = 0;
65 virtual const HeaderStrategy * prev() const = 0;
70 enum DefaultPolicy { Display, Hide };
72 virtual TQStringList headersToDisplay() const;
73 virtual TQStringList headersToHide() const;
74 virtual DefaultPolicy defaultPolicy() const = 0;
75 virtual bool showHeader( const TQString & header ) const;
|