00001 /** $Revision: 1.13 $ 00002 Last updated: $Date: 2002/09/20 12:21:31 $ 00003 00004 Copyright (C) 2000-2002 Vlad Mereuta <dizzy@users.sourceforge.net> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00019 00020 #ifndef __PREFERENCES_FORM__ 00021 #define __PREFERENCES_FORM__ 00022 00023 #include <PalmOS.h> 00024 #include "Form.h" 00025 #include "CoinsPref.h" 00026 00027 /** contains functions and variabile definitions to manipulate the Prefereces Form. 00028 Preferences altered by this object are saved by StopApplication */ 00029 class PreferencesForm : public Form 00030 { 00031 private: 00032 ///the name of the currently chosen default account 00033 Char acc_name[50]; 00034 ///account uid for the currently chosen default account 00035 UInt32 acc_uid; 00036 ///pointer to the FreeCoins preferences bloc 00037 CoinsPrefType* prefs; 00038 00039 public: 00040 /** constructor */ 00041 PreferencesForm() FORM_SECTION2; 00042 00043 ///handles updates 00044 Boolean handleUpdateEvent(UInt16 update_code) FORM_SECTION2; 00045 ///handles form initialisation and drawing 00046 Boolean handleOpenEvent() FORM_SECTION2; 00047 /** handles control events 00048 @param control_id id of the control which has received an event */ 00049 Boolean handleCtlSelectEvent(UInt16 control_id) FORM_SECTION2; 00050 }; 00051 #endif