maildir
KPIM::Maildir Class Reference
#include <maildir.h>
Detailed Description
Definition at line 31 of file maildir.h.
Public Member Functions | |
| QString | addEntry (const QByteArray &data) |
| QString | addSubFolder (const QString &folderName) |
| bool | create () |
| QStringList | entryList () const |
| bool | isValid (QString &error) const |
| bool | isValid () const |
| Maildir (const Maildir &rhs) | |
| Maildir (const QString &path=QString(), bool isRoot=false) | |
| Maildir & | operator= (const Maildir &rhs) |
| bool | operator== (const Maildir &rhs) const |
| QString | path () const |
| QByteArray | readEntry (const QString &key) const |
| QByteArray | readEntryHeaders (const QString &key) const |
| bool | removeEntry (const QString &key) |
| bool | removeSubFolder (const QString &folderName) |
| Maildir | subFolder (const QString &folderName) |
| QStringList | subFolderList () const |
| void | writeEntry (const QString &key, const QByteArray &data) |
| ~Maildir () | |
Constructor & Destructor Documentation
Definition at line 100 of file maildir.cpp.
| Maildir::Maildir | ( | const Maildir & | rhs | ) |
Definition at line 113 of file maildir.cpp.
| Maildir::~Maildir | ( | ) |
Definition at line 135 of file maildir.cpp.
Member Function Documentation
| QString Maildir::addEntry | ( | const QByteArray & | data | ) |
Adds the given.
- Parameters:
-
to the maildir. Returns the key of the entry.
Definition at line 350 of file maildir.cpp.
Adds subfolder with the given.
- Parameters:
-
folderName.
- Returns:
- an empty string on failure or the full path of the new subfolder on success
Definition at line 202 of file maildir.cpp.
| bool Maildir::create | ( | ) |
Make a valid maildir at the path of this Maildir object.
This involves creating the necessary subdirs, etc. Note that an empty Maildir is not valid, unless it is given valid path, or until create( ) is called on it.
Definition at line 183 of file maildir.cpp.
| QStringList Maildir::entryList | ( | ) | const |
Returns the list of items (mails) in the maildir.
These are keys, which map to filenames, internally, but that's an implementation detail, which should not be relied on.
Definition at line 254 of file maildir.cpp.
| bool Maildir::isValid | ( | QString & | error | ) | const |
Returns whether the maildir is valid, and sets the error out-parameter so it can be used to signal the kind of error to the user.
- See also:
- isValid
Definition at line 174 of file maildir.cpp.
| bool Maildir::isValid | ( | ) | const |
Returns whether the maildir has all the necessary subdirectories, that they are readable, etc.
Definition at line 168 of file maildir.cpp.
Definition at line 120 of file maildir.cpp.
| bool Maildir::operator== | ( | const Maildir & | rhs | ) | const |
| QString Maildir::path | ( | ) | const |
| QByteArray Maildir::readEntry | ( | const QString & | key | ) | const |
Return the contents of the file in the maildir with the given.
- Parameters:
-
key.
Definition at line 284 of file maildir.cpp.
| QByteArray Maildir::readEntryHeaders | ( | const QString & | key | ) | const |
Return the contents of the headers section of the file the maildir with the given.
- Parameters:
-
key.
Definition at line 304 of file maildir.cpp.
| bool Maildir::removeEntry | ( | const QString & | key | ) |
Removes the entry with the given .
Returns success or failure.
Definition at line 372 of file maildir.cpp.
| bool Maildir::removeSubFolder | ( | const QString & | folderName | ) |
Removes subfolder with the given.
- Parameters:
-
folderName. Returns success or failure.
Definition at line 223 of file maildir.cpp.
Returns a Maildir object for the given.
- Parameters:
-
folderName. If such a folder exists, the Maildir object will be valid, otherwise you can call create() on it, to make a subfolder with that name.
Definition at line 238 of file maildir.cpp.
| QStringList Maildir::subFolderList | ( | ) | const |
Returns the list of subfolders, as names (relative paths).
Use the subFolder method to get Maildir objects representing them.
Definition at line 266 of file maildir.cpp.
| void Maildir::writeEntry | ( | const QString & | key, | |
| const QByteArray & | data | |||
| ) |
Write the given.
- Parameters:
-
data to a file in the maildir with the given key.
Definition at line 336 of file maildir.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference