Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

listviewitemconfigentry.h

Go to the documentation of this file.
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. Vogtp <tille@handhelds.org>
00010 
00011 #ifndef LISTVIEWITEMCONFIGENTRY_H
00012 #define LISTVIEWITEMCONFIGENTRY_H
00013 
00014 #include <qwidget.h>
00015 #include <qlistview.h>
00016 #include "listviewitemconffile.h"
00017 #include "listviewitemconf.h"
00018 
00019 class QTextStream;
00020 
00021 class ListViewItemConfigEntry : public ListViewItemConf  {
00022 public:
00023         ListViewItemConfigEntry(ListViewItemConfFile *parent, QString group, QString key="");
00024         ~ListViewItemConfigEntry();
00025         bool isGroup();
00026         bool isKey();
00027   QString getFile();
00028   void setGroup(QString);
00029   QString getGroup();
00030   void setKey(QString);
00031   QString getKey();
00032   QString getValue();
00033         void keyChanged(QString);
00034         void valueChanged(QString);
00035   virtual void displayText();
00036   virtual void changed();
00037   virtual void remove();
00038   virtual void expand();
00039   void save(QTextStream*);
00040   virtual void revert();
00041 private:
00042         QString _file;
00043         QString _group;
00044         QString _key;
00045         QString _value;
00046         QString _groupOrig;
00047         QString _keyOrig;
00048         QString _valueOrig;
00049   ListViewItemConfFile *_fileItem;
00050 };
00051 
00052 #endif

Generated on Sat Nov 5 16:16:48 2005 for OPIE by  doxygen 1.4.2