8 #include <tqvaluelist.h>
10 #include <tqguardedptr.h>
12 #include "kmfolderdir.h"
16 class KMFolderMgr: public TQObject
22 KMFolderMgr( const TQString& basePath, KMFolderDirType dirType = KMStandardDir);
23 virtual ~KMFolderMgr();
26 TQString basePath() const { return mBasePath; }
29 virtual void setBasePath( const TQString&);
32 KMFolderRootDir& dir();
36 virtual KMFolder* find( const TQString& folderName, bool foldersOnly=TRUE);
39 virtual KMFolder* findIdString( const TQString& folderId,
46 virtual KMFolder* findOrCreate( const TQString& folderName, bool sysFldr=TRUE,
51 virtual KMFolder* findById( const uint id);
53 virtual void getFolderURLS( TQStringList& flist,
54 const TQString& prefix=TQString(),
56 virtual KMFolder* getFolderByURL( const TQString& vpath,
57 const TQString& prefix=TQString(),
62 virtual KMFolder* createFolder( const TQString& fName, bool sysFldr=FALSE,
63 KMFolderType aFolderType=KMFolderTypeMbox,
67 virtual void remove( KMFolder* obsoleteFolder);
70 virtual void contentsChanged( void);
73 virtual void reload( void);
77 virtual void createFolderList( TQStringList *str,
78 TQValueList<TQGuardedPtr<KMFolder> > *folders );
82 virtual void createFolderList( TQStringList *str,
83 TQValueList<TQGuardedPtr<KMFolder> > *folders,
85 const TQString& prefix,
86 bool i18nized=FALSE );
90 virtual void createI18nFolderList( TQStringList *str,
91 TQValueList<TQGuardedPtr<KMFolder> > *folders );
97 void compactAllFolders( bool immediate, KMFolderDir *adir = 0 );
100 void expireAllFolders( bool immediate, KMFolderDir *adir = 0 );
119 void renameFolder( KMFolder* folder, const TQString& newName,
130 void compactAll() { compactAllFolders( true ); }
136 void removeFolderAux( KMFolder* obsoleteFolder, bool success);
139 void slotRenameDone( TQString newName, bool success );
158 void msgAdded( KMFolder*, TQ_UINT32);
161 void msgRemoved( KMFolder*, TQ_UINT32);
164 void msgChanged( KMFolder*, TQ_UINT32, int delta);
167 void msgHeaderChanged( KMFolder*, int idx);
170 void folderMoveOrCopyOperationFinished();
175 void removeFolder( KMFolder* aFolder);
181 KMFolderRootDir mDir;
KMail list that manages the contents of one directory that may contain folders and/or other directori...
|