31 #ifndef bodyiterator_h
32 #define bodyiterator_h
34 #include <tqptrlist.h>
35 #include <tqstringlist.h>
41 class AttachmentStrategy;
48 virtual ~BodyVisitor();
51 void visit( KMMessagePart * part );
52 void visit( TQPtrList<KMMessagePart> & list );
55 TQPtrList<KMMessagePart> partsToLoad();
59 virtual bool addPartToList( KMMessagePart * part ) = 0;
66 static bool parentNeedsLoading( KMMessagePart * part );
69 TQPtrList<KMMessagePart> mParts;
70 TQStringList mBasicList;
74 class BodyVisitorFactory
77 static BodyVisitor* getVisitor( const AttachmentStrategy* strategy );
81 class BodyVisitorSmart: public BodyVisitor
86 bool addPartToList( KMMessagePart * part );
90 class BodyVisitorInline: public BodyVisitor
95 bool addPartToList( KMMessagePart * part );
99 class BodyVisitorHidden: public BodyVisitor
104 bool addPartToList( KMMessagePart * part );
|