00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 ***************************************************************************/ 00009 // (c) 2002 Patrick S. Vogt <tille@handhelds.org> 00010 00011 #ifndef LISTVIEWITEMCONFFILE_H 00012 #define LISTVIEWITEMCONFFILE_H 00013 00014 #include <qwidget.h> 00015 #include <qlistview.h> 00016 #include <qfile.h> 00017 #include <qfileinfo.h> 00018 #include "listviewitemconf.h" 00019 00020 00021 class ListViewItemConfFile : public ListViewItemConf { 00022 public: 00023 ListViewItemConfFile(QFileInfo *file, QListView *parent=0); 00024 ~ListViewItemConfFile(); 00025 QString fileName(); 00026 void save(); 00027 virtual void displayText(); 00028 virtual bool revertable(); 00029 virtual void revert(); 00030 virtual void remove(); 00031 virtual void expand(); 00032 QString backupFileName(); 00033 void parseFile(); 00034 protected: 00035 private: 00036 bool _valid; 00037 QFileInfo *confFileInfo; 00038 }; 00039 00040 #endif
1.4.2