generalpage.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 generalpage.h
00024  * \version $Id: generalpage.h 1563 2006-12-26 06:06:04Z edmanm $
00025  * \brief General Tor and Vidalia configuration options
00026  */
00027 
00028 #ifndef _GENERALPAGE_H
00029 #define _GENERALPAGE_H
00030 
00031 #include <QFileDialog>
00032 #include <config/vidaliasettings.h>
00033 #include <config/torsettings.h>
00034 
00035 #include "configpage.h"
00036 #include "ui_generalpage.h"
00037 
00038 class GeneralPage : public ConfigPage
00039 {
00040   Q_OBJECT
00041 
00042 public:
00043   /** Default Constructor */
00044   GeneralPage(QWidget *parent = 0);
00045   /** Default Destructor */
00046   ~GeneralPage();
00047   /** Saves the changes on this page */
00048   bool save(QString &errmsg);
00049   /** Loads the settings for this page */
00050   void load();
00051 
00052 private slots:
00053   /** Called when the user clicks "Browse" */
00054   void browseTorPath();
00055   
00056 private:
00057   /* A VidaliaSettings object used for saving/loading vidalia settings */
00058   VidaliaSettings *_vidaliaSettings;
00059   /* A TorSettings ovject used for saving/loading tor settings */
00060   TorSettings *_torSettings;
00061   /** Qt Designer generated object */
00062   Ui::GeneralPage ui;
00063 };
00064 
00065 #endif
00066 

Generated on Wed Sep 5 15:49:27 2007 for Vidalia by  doxygen 1.5.3