• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

maildir

maildir.h

Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2007 Till Adam <adam@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef __MAILDIR_H__
00021 #define __MAILDIR_H__
00022 
00023 
00024 #include <maildir_export.h>
00025 
00026 #include <QString>
00027 #include <QStringList>
00028 
00029 namespace KPIM {
00030 
00031 class MAILDIR_EXPORT Maildir
00032 {
00033 public:
00034     explicit Maildir( const QString& path = QString(), bool isRoot = false );
00035     /* Copy constructor */
00036     Maildir(const Maildir & rhs);
00037     /* Copy operator */
00038     Maildir& operator=(const Maildir & rhs);
00040     bool operator==(const Maildir & rhs) const;
00041     /* Destructor */
00042     ~Maildir();
00043 
00046     bool isValid() const;
00047 
00053     bool isValid( QString &error ) const;
00054 
00061     bool create();
00062 
00066     QString path() const;
00067 
00073     QStringList entryList() const;
00074 
00079     QStringList subFolderList() const;
00080 
00086     QString addSubFolder( const QString& folderName );
00087 
00091     bool removeSubFolder( const QString& folderName );
00092 
00098     Maildir subFolder( const QString& folderName );
00099 
00103     QByteArray readEntry( const QString& key ) const;
00104 
00108     QByteArray readEntryHeaders( const QString& key ) const;
00109 
00114     void writeEntry( const QString& key, const QByteArray& data );
00115 
00119     QString addEntry( const QByteArray& data );
00120 
00124     bool removeEntry( const QString& key );
00125 private:
00126     void swap( const Maildir& );
00127     class Private;
00128     Private *d;
00129 };
00130 
00131 }
00132 #endif // __MAILDIR_H__

maildir

Skip menu "maildir"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal