Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KDirMoods.hh

Go to the documentation of this file.
00001 /*
00002  *   kmood - a mood indicator
00003  *   Copyright (C) 2003  Andreas Baumann
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with this program; if not, write to the Free Software
00017  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  *
00019  */
00020 
00021 #ifndef __KDIRMOODS_H__
00022 #define __KDIRMOODS_H__
00023 
00024 // Qt includes
00025 #include <qstring.h>
00026 
00027 // KDE includes
00028 #include <kdirwatch.h>
00029 
00030 // KMood includes
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 

Generated on Wed Oct 8 21:52:18 2003 for kmood by doxygen1.2.18