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; } 65 DwString getDwString( int idx); 73 virtual int addMsg( KMMessage* msg, int* index_return = 0 ); 80 virtual int open( const char *owner); 83 virtual void reallyDoClose( const char *owner); 85 virtual int canAccess(); 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; } 105 bool isLocked() const { return mFilesLocked; } 107 void setLockType( LockType ltype=FCNTL ); 109 void setProcmailLockFileName( const TQString& ); 111 static TQByteArray escapeFrom( const DwString & str ); 113 virtual IndexStatus indexStatus(); 116 virtual TQ_INT64 doFolderSize() const; 119 virtual FolderJob* doCreateJob( KMMessage *msg, FolderJob::JobType jt, KMFolder *folder, 120 TQString partSpecifier, const AttachmentStrategy *as ) const; 121 virtual FolderJob* doCreateJob( TQPtrList<KMMessage>& msgList, const TQString& sets, 122 FolderJob::JobType jt, KMFolder *folder ) const; 130 virtual int createIndexFromContents(); 138 virtual int unlock(); 143 virtual int removeContents(); 148 virtual int expungeContents(); 155 TQString mProcmailLockFileName; 158 #endif // kmfoldermbox_h A FolderStorage with an index for faster access to often used message properties. ...
|