kitchensync Library API Documentation

agenda/md5map.h

00001 #ifndef MD5_MAP_H
00002 #define MD5_MAP_H
00003 
00004 #include <qcstring.h>
00005 #include <qmap.h>
00006 
00014 class KConfig;
00015 
00016 namespace OpieHelper {
00017     class MD5Map {
00018     public:
00019         typedef QMap<QString, QString> Map;
00020         typedef QMap<QString, QString>::Iterator Iterator;
00021         MD5Map(const QString& fileName = QString::null );
00022         ~MD5Map();
00023         void load( const QString& fileName );
00024 
00025         /* clears before saving */
00026         void save();
00027         /* only works if not loaded before */
00028         void setFileName( const QString& );
00029 
00030         QString md5sum(const QString& )const;
00031         bool contains( const QString& )const;
00032         void insert( const QString& , const QString& );
00033         void set( const Map& map );
00034 
00035         Map map()const;
00036 
00037         void clear();
00038 
00039     protected:
00040         KConfig* config();
00041 
00042     private:
00043         KConfig* m_conf;
00044         Map m_map;
00045         QString m_file;
00046     };
00047 };
00048 
00049 #endif
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu May 3 20:20:51 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003