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 00010 #ifndef LISTVIEWITEMCONF_H 00011 #define LISTVIEWITEMCONF_H 00012 00013 #include <qlistview.h> 00014 00015 00016 class ListViewItemConf : public QListViewItem 00017 { 00018 public: 00019 enum {File, Group, Key}; 00020 00021 ListViewItemConf(ListViewItemConf *parent); 00022 ListViewItemConf(QListView *parent); 00023 ~ListViewItemConf(); 00024 00025 int getType(); 00026 void save(); 00027 virtual void revert() = 0; 00028 virtual void remove() = 0; 00029 virtual void displayText() = 0; 00030 virtual void expand() = 0; 00031 virtual void changed(); 00032 bool isChanged() {return _changed;}; 00033 virtual void unchanged(); 00034 virtual bool revertable(); 00035 00036 protected: 00037 int _type; 00038 bool _changed; 00039 }; 00040 00041 #endif
1.4.2