00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KDIRMOODS_H__
00022 #define __KDIRMOODS_H__
00023
00024
00025 #include <qstring.h>
00026
00027
00028 #include <kdirwatch.h>
00029
00030
00031 #include "KMoods.hh"
00032
00045 class KDirMoods : public KMoods
00046 {
00047 Q_OBJECT
00048
00049 public:
00050
00051 KDirMoods( const QString& path );
00052
00053 virtual void writeMood( KMood *mood );
00054
00055 protected:
00056 virtual void readMoods( );
00057
00058 private:
00059 KDirWatch m_dirWatch;
00060 QString m_path;
00061
00062 KMood *readMoodFromFile( QString filename, QString userName );
00063
00064 private slots:
00065 void slotDirty( const QString& filename );
00066
00067 void slotCreated( const QString& filename );
00068
00069 void slotDeleted( const QString& filename );
00070 };
00071
00072 #endif
00073