Make folders tell their type

svn path=/trunk/kdenetwork/kmail/; revision=197410
wilder-work
Bo Thorsen 24 years ago
parent 1af774c4f7
commit 9c0516758e
  1. 3
      kmfolder.h
  2. 3
      kmfolderimap.h
  3. 3
      kmfoldermaildir.h
  4. 3
      kmfoldermbox.h
  5. 3
      kmfoldersearch.h

@ -84,6 +84,9 @@ public:
KMFolder(KMFolderDir* parent=0, const QString& name=QString::null);
virtual ~KMFolder();
/** Returns the type of this folder */
virtual KMFolderType folderType() const = 0;
/** Returns the filename of the folder (reimplemented in KMFolderImap) */
virtual QString fileName() const { return name(); }

@ -85,6 +85,9 @@ public:
KMFolderImap(KMFolderDir* parent=0, const QString& name=QString::null);
virtual ~KMFolderImap();
/** Returns the type of this folder */
virtual KMFolderType folderType() const { return KMFolderTypeImap; }
virtual QCString protocol() const { return "imap"; }
virtual KMMessage* getMsg(int idx);
/** The path to the imap folder on the server */

@ -37,6 +37,9 @@ public:
KMFolderMaildir(KMFolderDir* parent=0, const QString& name=QString::null);
virtual ~KMFolderMaildir();
/** Returns the type of this folder */
virtual KMFolderType folderType() const { return KMFolderTypeMaildir; }
/** Read a message and return a referece to a string */
virtual QCString& getMsgString(int idx, QCString& mDest);
virtual DwString getDwString(int idx);

@ -53,6 +53,9 @@ public:
KMFolderMbox(KMFolderDir* parent=0, const QString& name=QString::null);
virtual ~KMFolderMbox();
/** Returns the type of this folder */
virtual KMFolderType folderType() const { return KMFolderTypeMbox; }
/** Read a message and return a referece to a string */
virtual QCString& getMsgString(int idx, QCString& mDest);
DwString getDwString(int idx);

@ -85,6 +85,9 @@ public:
KMFolderSearch(KMFolderDir* parent=0, const QString& name=QString::null);
virtual ~KMFolderSearch();
/** Returns the type of this folder */
virtual KMFolderType folderType() const { return KMFolderTypeSearch; }
// Sets and runs the search used by the folder
void setSearch(KMSearch *search);
// Returns the current search used by the folder

Loading…
Cancel
Save