configpage.h

Go to the documentation of this file.
00001 /****************************************************************
00002  *  Vidalia is distributed under the following license:
00003  *
00004  *  Copyright (C) 2006,  Matt Edman, Justin Hipple
00005  *
00006  *  This program is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU General Public License
00008  *  as published by the Free Software Foundation; either version 2
00009  *  of the License, or (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, 
00019  *  Boston, MA  02110-1301, USA.
00020  ****************************************************************/
00021 
00022 /** 
00023  * \file configpage.h
00024  * \version $Id: configpage.h 1238 2006-09-25 17:50:57Z edmanm $
00025  * \brief Pure-virtual class for a configuration page
00026  */
00027 
00028 #ifndef _CONFIGPAGE_H
00029 #define _CONFIGPAGE_H
00030 
00031 #include <QWidget>
00032 
00033 
00034 class ConfigPage : public QWidget
00035 {
00036 public:
00037   /** Default Constructor */
00038   ConfigPage(QWidget *parent = 0) : QWidget(parent) {}
00039 
00040   /** Pure virtual method. Subclassed pages load their config settings here. */
00041   virtual void load() = 0;
00042   /** Pure virtual method. Subclassed pages save their config settings here
00043    * and return true if everything was saved successfully. */
00044   virtual bool save(QString &errmsg) = 0;
00045 };
00046 
00047 #endif
00048 

Generated on Mon Oct 23 20:08:15 2006 for Vidalia by  doxygen 1.5.0