32 #ifndef __KMAIL_ATTACHMENTSTRATEGY_H__
33 #define __KMAIL_ATTACHMENTSTRATEGY_H__
40 class AttachmentStrategy {
43 virtual ~AttachmentStrategy();
49 enum Type { Iconic, Smart, Inlined, Hidden, HeaderOnly };
51 static const AttachmentStrategy * create( Type type );
52 static const AttachmentStrategy * create( const TQString & type );
54 static const AttachmentStrategy * iconic();
55 static const AttachmentStrategy * smart();
56 static const AttachmentStrategy * inlined();
57 static const AttachmentStrategy * hidden();
58 static const AttachmentStrategy * headerOnly();
64 virtual const char * name() const = 0;
65 virtual const AttachmentStrategy * next() const = 0;
66 virtual const AttachmentStrategy * prev() const = 0;
72 enum Display { None, AsIcon, Inline };
74 virtual bool inlineNestedMessages() const = 0;
75 virtual Display defaultDisplay( const partNode * node ) const = 0;
|