kmail
attachmentcollector.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __KMAIL_ATTACHMENTCOLLECTOR_H__
00033 #define __KMAIL_ATTACHMENTCOLLECTOR_H__
00034
00035 #include <vector>
00036
00037 class partNode;
00038
00039 namespace KMail {
00040
00041 class AttachmentCollector {
00042 public:
00043 AttachmentCollector()
00044 : mDiveIntoEncryptions( true ),
00045 mDiveIntoSignatures( true ),
00046 mDiveIntoMessages( false ) {}
00047
00048 void setDiveIntoEncryptions( bool dive ) {
00049 mDiveIntoEncryptions = dive;
00050 }
00051 void setDiveIntoSignatures( bool dive ) {
00052 mDiveIntoSignatures = dive;
00053 }
00054 void setDiveIntoMessages( bool dive ) {
00055 mDiveIntoMessages = dive;
00056 }
00057
00058 void collectAttachmentsFrom( partNode * node );
00059
00060 const std::vector<partNode*> & attachments() const { return mAttachments; }
00061
00062 private:
00063 std::vector<partNode*> mAttachments;
00064 bool mDiveIntoEncryptions : 1;
00065 bool mDiveIntoSignatures : 1;
00066 bool mDiveIntoMessages : 1;
00067
00068 private:
00069 AttachmentCollector( const AttachmentCollector & );
00070 void operator=( const AttachmentCollector & );
00071 };
00072
00073 }
00074
00075 #endif // __KMAIL_BODYPARTFORMATTER_H__
|