20 #ifndef kmfoldermbox_h
21 #define kmfoldermbox_h
23 #include "kmfolderindex.h"
26 #include <sys/types.h>
31 class AttachmentStrategy;
33 using KMail::FolderJob;
35 using KMail::AttachmentStrategy;
51 friend class ::KMail::MboxJob;
58 KMFolderMbox( KMFolder* folder, const char* name=0);
59 virtual ~KMFolderMbox();
62 virtual KMFolderType folderType() const { return KMFolderTypeMbox; }
80 virtual int open( const char *owner);
83 virtual void reallyDoClose( const char *owner);
95 virtual int compact( bool silent );
99 int compact( unsigned int startIndex, int nbMessages, FILE* tmpFile, off_t& offs, bool& done );
102 virtual bool isReadOnly() const { return mReadOnly; }
107 void setLockType( LockType ltype=FCNTL );
109 void setProcmailLockFileName( const TQString& );
111 static TQByteArray escapeFrom( const DwString & str );
116 virtual TQ_INT64 doFolderSize() const;
120 TQString partSpecifier, const AttachmentStrategy *as ) const;
121 virtual FolderJob* doCreateJob( TQPtrList<KMMessage>& msgList, const TQString& sets,
122 FolderJob::JobType jt, KMFolder *folder ) const;
138 virtual int unlock();
155 TQString mProcmailLockFileName;
158 #endif // kmfoldermbox_h
|