Files
neutrino/src/gui/parentallock_setup.h
Thilo Graf ddab0fd734 update license text in some files
TODO: many other files still need corrections
2012-07-08 22:01:11 +02:00

65 lines
1.6 KiB
C++

/*
$port: parentallock_setup.h,v 1.2 2009/11/22 15:36:52 tuxbox-cvs Exp $
parentallock setup implementation - Neutrino-GUI
Copyright (C) 2001 Steffen Hehn 'McClean'
and some other guys
Homepage: http://dbox.cyberphoria.org/
Copyright (C) 2009 T. Graf 'dbt'
Homepage: http://www.dbox2-tuning.net/
License: GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __parentallock_setup__
#define __parentallock_setup__
#include <global.h>
#include <neutrino.h>
#include <neutrino_menue.h>
#include <gui/widget/menue.h>
#include <driver/screen_max.h>
#include <string>
class CParentalSetup : public CMenuTarget, public CPINProtection
{
private:
int width;
void showParentalSetup();
protected:
virtual CMenuTarget* getParent() { return( NULL);};
public:
CParentalSetup() : CPINProtection(g_settings.parentallock_pincode)
{
width = w_max (40, 10); //%
title = LOCALE_PARENTALLOCK_HEAD;
};
~CParentalSetup();
int exec(CMenuTarget* parent, const std::string & actionKey);
};
#endif