00001 /** $Revision: 1.3 $ 00002 Last updated: $Date: 2002/09/20 12:21:31 $ 00003 00004 Copyright (C) 2001-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 __PURGE_TRANSACTION_FORM__ 00021 #define __PURGE_TRANSACTION_FORM__ 00022 00023 #include <PalmOS.h> 00024 #include "Form.h" 00025 #include "TransactionsDB.h" 00026 00027 ///this class provides and interface for purging transactions dated earlier than a date chosen by the user 00028 class PurgeTransForm : public Form 00029 { 00030 private: 00031 ///date text 00032 Char date_txt[dateStringLength]; 00033 ///actual date 00034 DateType date; 00035 00036 public: 00037 ///constructor; does nothing 00038 PurgeTransForm() FORM_SECTION2; 00039 00040 ///handles update events 00041 Boolean handleUpdateEvent (UInt16 update_code) FORM_SECTION2; 00042 ///draws form and sets default date 00043 Boolean handleOpenEvent() FORM_SECTION2; 00044 /// event handler for controls in the form 00045 Boolean handleCtlSelectEvent(UInt16 control_id) FORM_SECTION2; 00046 }; 00047 #endif