00001 /** $Revision: 1.6 $ 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 __FREE_COINS__ 00021 #define __FREE_COINS__ 00022 00023 #include <PalmOS.h> 00024 #include "MiscFunc.h" 00025 00026 /** loads form resources and sets the event handler for the form loaded. 00027 returns true if the event was handled and should not be passed 00028 to a higher level handler. */ 00029 static Boolean ApplicationHandleEvent( EventPtr event ); 00030 00031 /** The main event loop of the application 00032 normally a C application would do something like 00033 FrmDispatchEvent(&event); 00034 but dispatch only tries to call the registered form handler and then 00035 frmhandleEvent, if that fails. And this is what we replicate with our own 00036 dispatch event which is aware of the Form class structure 00037 */ 00038 static void ApplicationEventLoop(void); 00039 00040 /** Called when the application starts/stops */ 00041 static void StartApplication(void); 00042 00043 /** Called when the application stops */ 00044 static void StopApplication(void); 00045 00046 #endif