aboutsummaryrefslogtreecommitdiff
path: root/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h
diff options
context:
space:
mode:
Diffstat (limited to 'SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h')
-rw-r--r--SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h346
1 files changed, 346 insertions, 0 deletions
diff --git a/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h b/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h
new file mode 100644
index 0000000..39b4e92
--- /dev/null
+++ b/SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h
@@ -0,0 +1,346 @@
+/******************************************************************************
+ *
+ * Copyright (c) 1995-1999 Palm Computing, Inc. or its subsidiaries.
+ * All rights reserved.
+ *
+ * File: SystemResources.h
+ *
+ * Description:
+ * Include file for both PalmRez and the C Compiler. This file contains
+ * equates used by both tools. When compiling using the C compiler
+ * the variable RESOURCE_COMPILER must be defined.
+ *
+ * History:
+ * 02/27/95 ron Created by Ron Marianetti
+ * 08/04/95 vmk Added system resource id for Desktop Link user info
+ * 02/03/98 tlw Changed sysFileCDefaultApp from sysFileCMemory which
+ * no longer exists to sysFileCPreferences.
+ * 6/23/98 jhl Added FlashMgr resource
+ * 06/23/98 jhl Added FlashMgr resource
+ * 05/05/99 kwk Added simulator creator/file types, also the
+ * Japanese user dict panel creator and the TSM
+ * library creator.
+ * 05/06/99 lyl Added OEM System File type
+ * 06/25/99 kwk Added sysResIDAppPrefs & sysResIDOverlayFeatures.
+ * 07/14/99 kwk Added sysResTSilkscreen.
+ * 08/08/99 kwk Added sysFileCJEDict.
+ * 09/20/99 kwk Added keyboard feature for reentrancy check.
+ *
+ *****************************************************************************/
+
+#ifndef __SYSTEMRESOURCES_H__
+#define __SYSTEMRESOURCES_H__
+
+//-----------------------------------------------------------
+// This section is common to both the C and Resource Compiler
+//-----------------------------------------------------------
+
+//................................................................
+// File types and creators
+//
+// Each database shall have a creator ID and a type.
+//
+// The creator ID shall establish which application, patch, or extension
+// a particular database is associated with. The creator ID should identify
+// the application/patch/extension, NOT who created it.
+//
+// The type will determine which part of an application,
+// patch, or extension a particular database is.
+//
+// There can be only one database per application, patch, or extension
+// which has type 'application', 'patch', or 'extension'.
+//
+// Creators:
+//
+// ROM-based applications created by Palm Computing have all-lower case
+// creator ID's. Third-party applications have creator ID's which
+// are either all caps, or mixed case. The same requirements go for
+// system patches and extensions.
+//
+// All applications, system patches and extensions shall have unique creator
+// ID's.
+//
+// Types:
+//
+// 'Application', 'Extension', and 'Patch' file/database types for ROM-based
+// apps shall be all-lower case (they are defined below). Other
+// file/database types must be mixed-case,
+// or all caps. These other types are internal to the applications, and
+// therefore the system is unconcerned with their exact values.
+//................................................................
+#define sysFileCSystem 'psys' // Creator type for System files
+#define sysFileCOEMSystem 'poem' // Creator type for OEM System files
+#define sysFileCGraffiti 'graf' // Creator type for Graffiti databases
+#define sysFileCSystemPatch 'ptch' // Creator for System resource file patches
+
+#define sysFileCCalculator 'calc' // Creator type for Calculator App
+#define sysFileCSecurity 'secr' // Creator type for Security App
+#define sysFileCPreferences 'pref' // Creator type for Preferences App
+#define sysFileCAddress 'addr' // Creator type for Address App
+#define sysFileCToDo 'todo' // Creator type for To Do App
+#define sysFileCDatebook 'date' // Creator type for Datebook App
+#define sysFileCMemo 'memo' // Creator type for MemoPad App
+#define sysFileCSync 'sync' // Creator type for HotSync App
+#define sysFileCMemory 'memr' // Creator type for Memory App
+#define sysFileCMail 'mail' // Creator type for Mail App
+#define sysFileCExpense 'exps' // Creator type for Expense App
+#define sysFileCLauncher 'lnch' // Creator type for Launcher App
+#define sysFileCClipper 'clpr' // Creator type for clipper app.
+#define sysFileCSetup 'setp' // Creator type for setup app.
+#define sysFileCActivate 'actv' // Creator type for activation app.
+#define sysFileCFlashInstaller 'fins' // Creator type for FlashInstaller app.
+#define sysFileCRFDiag 'rfdg' // Creator type for RF diagnostics app.
+#define sysFileCMessaging 'msgs' // Creator type for Messaging App
+#define sysFileCModemFlashTool 'gsmf' // Creator type for Palm V modem flash app.
+#define sysFileCJEDict 'dict' // Creator type for JEDict app.
+#define sysFileHotSyncServer 'srvr' // Creator type for HotSync(R) Server app.
+#define sysFileHotSyncServerUpdate 'hssu' // Creator type for HotSync(R) Server update app.
+
+// The following two apps are manufacturing, calibration and maintenance related
+#define sysFileCMACUtilScreen 'mcut' // Creator type for screen oriented MACUtil app.
+#define sysFileCMACUtilSerial 'mcus' // Creator type for serial line driven MACUtil app.
+#define sysResIDMACUtilAutostart 10000 // Autostart serial MACUtil
+
+// Demo Apps
+#define sysFileCGraffitiDemo 'gdem' // Creator type for Graffiti Demo
+#define sysFileCMailDemo 'mdem' // Creator type for Mail Demo
+
+#define sysFileCFirstApp sysFileCPreferences // Creator type for First App after reset
+#define sysFileCAltFirstApp sysFileCSetup // Creator type for First alternate App after reset (with hard key pressed)
+#define sysFileCDefaultApp sysFileCPreferences // Creator type for Default app
+#define sysFileCDefaultButton1App sysFileCDatebook // Creator type for dflt hard button 1 app
+#define sysFileCDefaultButton2App sysFileCAddress // Creator type for dflt hard button 2 app
+#define sysFileCDefaultButton3App sysFileCToDo // Creator type for dflt hard button 3 app
+#define sysFileCDefaultButton4App sysFileCMemo // Creator type for dflt hard button 4 app
+#define sysFileCDefaultCalcButtonApp sysFileCCalculator // Creator type for dflt calc button app
+#define sysFileCDefaultCradleApp sysFileCSync // Creator type for dflt hot sync button app
+#define sysFileCDefaultModemApp sysFileCSync // Creator type for dflt modem button app
+#define sysFileCDefaultAntennaButtonApp sysFileCLauncher // Creator type for dflt antenna up button app
+#define sysFileCNullApp '0000' // Creator type for non-existing app
+#define sysFileCSimulator '\?\?\?\?' // Creator type for Simulator files (app.tres, sys.tres)
+ // '????' does not compile with VC++ (Elaine Server)
+
+#define sysFileCDigitizer 'digi' // Creator type for Digitizer Panel
+#define sysFileCGeneral 'gnrl' // Creator type for General Panel
+#define sysFileCFormats 'frmt' // Creator type for Formats Panel
+#define sysFileCShortCuts 'shct' // Creator type for ShortCuts Panel
+#define sysFileCButtons 'bttn' // Creator type for Buttons Panel
+#define sysFileCOwner 'ownr' // Creator type for Owner Panel
+#define sysFileCModemPanel 'modm' // Creator type for Modem Panel
+#define sysFileCDialPanel 'dial' // Creator type for Dial Panel
+#define sysFileCNetworkPanel 'netw' // Creator type for Network Panel
+#define sysFileCWirelessPanel 'wrls' // Creator type for the wireless Panel.
+#define sysFileCUserDict 'udic' // Creator type for the UserDict panel.
+#define sysFileCPADHtal 'hpad' // Creator type for PAD HTAL lirary
+#define sysFileCTCPHtal 'htcp' // Creator type for TCP HTAL lirary
+#define sysFileCMineHunt 'mine' // Creator type for MineHunt App
+#define sysFileCPuzzle15 'puzl' // Creator type for Puzzle "15" App
+#define sysFileCOpenLibInfo 'olbi' // Creator type for Feature Manager features
+ // used for saving open library info under PalmOS v1.x
+#define sysFileCHwrFlashMgr 'flsh' // Creator type for HwrFlashMgr features
+
+// Libraries. If the resource used by these are expected to be treated as part of
+// the system's usage then the Memory app must be changed.
+#define sysFileTLibrary 'libr' // File type of Shared Libraries
+#define sysFileTLibraryExtension 'libx' // File type of library extensions
+
+#define sysFileCNet 'netl' // Creator type for Net (TCP/IP) Library
+#define sysFileCRmpLib 'netp' // Creator type for RMP Library (NetLib plug-in)
+#define sysFileCINetLib 'inet' // Creator type for INet Library
+#define sysFileCSecLib 'secl' // Creator type for Ir Library
+#define sysFileCWebLib 'webl' // Creator type for Web Library
+#define sysFileCIrLib 'irda' // Creator type for Ir Library
+
+#define sysFileCSerialMgr 'smgr' // Creator for SerialMgrNew used for features.
+#define sysFileCSerialWrapper 'swrp' // Creator type for Serial Wrapper Library.
+#define sysFileCIrSerialWrapper 'iwrp' // Creator type for Ir Serial Wrapper Library.
+#define sysFileCTextServices 'tsml' // Creator type for Text Services Library.
+
+#define sysFileTUartPlugIn 'sdrv' // File type for SerialMgrNew physical port plug-in.
+#define sysFileTVirtPlugin 'vdrv' // Flir type for SerialMgrNew virtual port plug-in.
+#define sysFileCUart328 'u328' // Creator type for '328 UART plug-in
+#define sysFileCUart328EZ 'u8EZ' // Creator type for '328EZ UART plug-in
+#define sysFileCUart650 'u650' // Creator type for '650 UART plug-in
+#define sysFileCVirtIrComm 'ircm' // Creator type for IrComm virtual port plug-in.
+
+#define sysFileTSystem 'rsrc' // File type for Main System File
+#define sysFileTSystemPatch 'ptch' // File type for System resource file patches
+#define sysFileTKernel 'krnl' // File type for System Kernel (AMX)
+#define sysFileTBoot 'boot' // File type for SmallROM System File
+#define sysFileTSmallHal 'shal' // File type for SmallROM HAL File
+#define sysFileTBigHal 'bhal' // File type for Main ROM HAL File
+#define sysFileTSplash 'spls' // File type for Main ROM Splash File
+#define sysFileTUIAppShell 'uish' // File type for UI Application Shell
+#define sysFileTOverlay 'ovly' // File type for UI overlay database
+#define sysFileTExtension 'extn' // File type for System Extensions
+#define sysFileTApplication 'appl' // File type for applications
+#define sysFileTPanel 'panl' // File type for preference panels
+#define sysFileTSavedPreferences 'sprf' // File type for saved preferences
+#define sysFileTPreferences 'pref' // File type for preferences
+#define sysFileTMidi 'smfr' // File type for Standard MIDI File record databases
+#define sysFileTpqa 'pqa ' // File type for the PQA files.
+
+#define sysFileTUserDictionary 'dict' // File type for input method user dictionary.
+#define sysFileTLearningData 'lean' // File type for input method learning data.
+
+#define sysFileTGraffitiMacros 'macr' // Graffiti Macros database
+
+#define sysFileTHtalLib 'htal' // HTAL library
+
+#define sysFileTExgLib 'exgl' // Type of Exchange libraries
+
+#define sysFileTFileStream 'strm' // Default File Stream database type
+
+#define sysFileTTemp 'temp' // Temporary database type; in future versions
+ // of PalmOS (although likely not before 3.3), the
+ // system may automatically delete any db's of
+ // this type at reset time (however, apps are still
+ // responsible for deleting the ones they create
+ // before exiting to protect valuable storage space)
+
+#define sysFileTScriptPlugin 'scpt' // File type for plugin to the Network Panel to
+ //extend scripting capabilities.
+
+#define sysFileTSimulator '\?\?\?\?' // File type for Simulator files (app.tres, sys.tres)
+ // '????' does not compile with VC++ (Elaine Server)
+
+//................................................................
+// Resource types and IDs
+//................................................................
+#define sysResTBootCode 'boot' // Resource type of boot resources
+#define sysResIDBootReset 10000 // Reset code
+#define sysResIDBootInitCode 10001 // Init code
+#define sysResIDBootSysCodeStart 10100 // System code resources start here
+#define sysResIDBootSysCodeMin 10102 // IDs 'Start' to this must exist!!
+#define sysResIDBootUICodeStart 10200 // UI code resources start here
+#define sysResIDBootUICodeMin 10203 // IDs 'Start' to this must exist!!
+
+#define sysResIDBootHAL 19000 // HAL code resource (from HAL.prc)
+
+#define sysResIDBitmapSplash 19000 // ID of (boot) splash screen bitmap
+#define sysResIDBitmapConfirm 19001 // ID of hard reset confirmation bitmap
+
+#define sysResTAppPrefs 'pref' // Resource type of App preferences resources
+#define sysResIDAppPrefs 0 // Application preference
+
+#define sysResTExtPrefs 'xprf' // Resource type of extended preferences
+#define sysResIDExtPrefs 0 // Extended preferences
+
+#define sysResTAppCode 'code' // Resource type of App code resources
+#define sysResTAppGData 'data' // Resource type of App global data resources
+
+#define sysResTExtensionCode 'extn' // Resource type of Extensions code
+#define sysResTExtensionOEMCode 'exte' // Resource type of OEM Extensions code
+
+#define sysResTFeatures 'feat' // Resource type of System features table
+#define sysResIDFeatures 10000 // Resource ID of System features table
+#define sysResIDOverlayFeatures 10001 // Resource ID of system overlay feature table.
+
+#define sysResTCountries 'cnty' // Resource type of System countries table
+#define sysResIDCountries 10000 // Resource ID of System countries table
+
+#define sysResTLibrary 'libr' // Resource type of System Libraries
+#ifndef PUBLIC_STUFF_STRIPPED
+// DOLATER - obsolete, should be removed:
+#endif // PUBLIC_STUFF_STRIPPED
+//#define sysResIDLibrarySerMgr328 10000 // Dragonball (68328) UART
+//#define sysResIDLibrarySerMgr681 10001 // 68681 UART
+//#define sysResIDLibraryRMPPlugIn 10002 // Reliable Message Protocol NetLib Plug-in
+
+#define sysResTSilkscreen 'silk' // Resource type of silkscreen info.
+
+#define sysResTGrfTemplate 'tmpl' // Graffiti templates "file"
+#define sysResIDGrfTemplate 10000 // Graffiti templates "file" ID
+#define sysResTGrfDictionary 'dict' // Graffiti dictionary "file"
+#define sysResIDGrfDictionary 10000 // Graffiti dictionary "file" ID
+#define sysResIDGrfDefaultMacros 10000 // sysResTDefaultDB resource with Graffiti Macros database
+
+#define sysResTDefaultDB 'dflt' // Default database resource type
+#define sysResIDDefaultDB 1 // resource ID of sysResTDefaultDB in each app
+
+#define sysResTErrStrings 'tSTL' // list of error strings
+#define sysResIDErrStrings 10000 // resource ID is (errno>>8)+sysResIDErrStrings
+
+#define sysResIDOEMDBVersion 20001 // resource ID of "tver" and "tint" versions in OEM stamped databases
+
+// System Preferences
+#define sysResTSysPref sysFileCSystem
+#define sysResIDSysPrefMain 0 // Main preferences
+#define sysResIDSysPrefPassword 1 // Password
+#define sysResIDSysPrefFindStr 2 // Find string
+#define sysResIDSysPrefCalibration 3 // Digitizer calibration.
+#define sysResIDDlkUserInfo 4 // Desktop Link user information.
+#define sysResIDDlkLocalPC 5 // Desktop Link local PC host name
+#define sysResIDDlkCondFilterTab 6 // Desktop Link conduit filter table
+#define sysResIDModemMgrPref 7 // Modem Manager preferences
+#define sysResIDDlkLocalPCAddr 8 // Desktop Link local PC host address
+#define sysResIDDlkLocalPCMask 9 // Desktop Link local PC host subnet mask
+
+// These prefs store parameters to pass to an app when launched with a button
+#define sysResIDButton1Param 10 // Parameter for hard button 1 app
+#define sysResIDButton2Param 11 // Parameter for hard button 2 app
+#define sysResIDButton3Param 12 // Parameter for hard button 3 app
+#define sysResIDButton4Param 13 // Parameter for hard button 4 app
+#define sysResIDCalcButtonParam 14 // Parameter for calc button app
+#define sysResIDCradleParam 15 // Parameter for hot sync button app
+#define sysResIDModemParam 16 // Parameter for modem button app
+#define sysResIDAntennaButtonParam 17 // Parameter for antenna up button app
+
+// New for Color, user's color preferences
+#define sysResIDPrefUIColorTableBase 17 // base + depth = ID of actual pref
+#define sysResIDPrefUIColorTable1 18 // User's UI colors for 1bpp displays
+#define sysResIDPrefUIColorTable2 19 // User's UI colors for 2bpp displays
+#define sysResIDPrefUIColorTable4 21 // User's UI colors for 4bpp displays
+#define sysResIDPrefUIColorTable8 25 // User's UI colors for 8bpp displays
+
+// FlashMgr Resources - old
+#define sysResTFlashMgr 'flsh'
+#define sysResIDFlashMgrWorkspace 1 // RAM workspace during flash activity
+
+// FlashMgr Resources - new
+#define sysResTHwrFlashIdent 'flid' // Flash identification code resource
+#define sysResIDHwrFlashIdent 10000 // Flash identification code resource
+
+#define sysResTHwrFlashCode 'flcd' // Flash programming code resource
+ // (resource ID determined by device type)
+
+// OEM Feature type and id.
+#define sysFtrTOEMSys sysFileCOEMSystem
+#define sysFtrIDOEMSysHideBatteryGauge 1
+
+// Onscreen keyboard features
+#define sysFtrTKeyboard 'keyb'
+#define sysFtrIDKeyboardActive 1 // Boolean value, true => keyboard is active.
+ // Currently only used for Japanese.
+
+// Activation status values.
+#define sysActivateStatusFeatureIndex 1
+#define sysActivateNeedGeorgeQuery 0
+#define sysActivateNeedMortyQuery 1
+#define sysActivateFullyActivated 2
+
+#define sysMaxUserDomainNameLength 64
+
+// Current clipper feature indeces
+#define sysClipperPQACardNoIndex 1
+#define sysClipperPQADbIDIndex 2
+
+//-----------------------------------------------------------
+// This section is only valid when running the resource compiler
+//
+// Actually, this section is obsolete. Instear, .r files should
+// inlude SysResTypes.rh to get these definitions.
+//
+#ifndef PUBLIC_STUFF_STRIPPED
+// DOLATER еее leaving this here for now just in case.
+#endif // PUBLIC_STUFF_STRIPPED
+//-----------------------------------------------------------
+
+#ifdef RESOURCE_COMPILER
+
+#include <SysResTypes.rh>
+
+#endif
+
+
+#endif // __SYSTEMRESOURCES_H__