firstrun.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * firstrun : First Run dialogs
00003  ****************************************************************************
00004  * Copyright © 2009 VideoLAN
00005  * $Id: f45351344c3ff10890de28971e137321e6a87db0 $
00006  *
00007  * Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software Foundation, Inc.,
00021  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #include "qt4.hpp"
00025 
00026 #include <QWidget>
00027 #include <QSettings>
00028 
00029 class QCheckBox;
00030 class FirstRun : public QWidget
00031 {
00032     Q_OBJECT
00033     public:
00034         static void CheckAndRun( QWidget *_p, intf_thread_t *p_intf )
00035         {
00036             if( getSettings()->value( "IsFirstRun", 1 ).toInt() )
00037             {
00038                 if( var_InheritBool( p_intf, "qt-privacy-ask") )
00039                 {
00040                     new FirstRun( _p, p_intf );
00041                 }
00042                 getSettings()->setValue( "IsFirstRun", 0 );
00043             }
00044         }
00045         FirstRun( QWidget *, intf_thread_t * );
00046     private:
00047         QCheckBox *checkbox, *checkbox2;
00048         intf_thread_t *p_intf;
00049         void buildPrivDialog();
00050     private slots:
00051         void save();
00052 };
00053 

Generated on Tue May 25 08:04:57 2010 for VLC by  doxygen 1.5.6