Headers

Common.h

/*
 Copyright (c) 1998-2001, Neil Rhodes and Julie McKeehan
    neil@pobox.com
 All rights reserved.

From the book "Palm OS Programming (2nd edition)"
by O'Reilly.

Permission granted to use this file however you see fit.
*/
#ifndef _  _COMMON_H_  _
#define _  _COMMON_H_  _

#include <PalmOS.h>
#include "Data.h"

#define kMaxNumericStringLength   6
#define kSalesCreator   'SLES'
#define kUnknownProductName "-Product-"

extern privateRecordViewEnum      gPrivateRecordStatus;
extern UInt16       gCurrentCategory;
extern UInt16       gNumCategories;
extern Order        *gCurrentOrder;
extern UInt16       gCurrentOrderIndex;

void OpenCustomerWithID(Int32 customerID);
Boolean OrderExistsForCustomer(Int32 customerID);
Boolean HandleProductPopupSelect(EventPtr event,
  UInt32 *newProductID, Char *productName);
void HandleProductPopupEnter(UInt16 triggerID, UInt16 listID, UInt32 productID);

void SelectACategory(ListPtr list, UInt16 newCategory);
void DrawOneProductInList(Int16 itemNumber, RectanglePtr bounds, 
  Char **text);
void DeleteNthItem(UInt16 itemNumber);

#endif

Customer.h

/* Copyright (c) 1998-2001, Neil Rhodes and Julie McKeehan neil@pobox.com All rights reserved. From the book "Palm OS Programming (2nd edition)" by O'Reilly. Permission granted to use this file however you see fit. */ #ifndef _ _CUSTOMER_H_ _ #define _ _CUSTOMER_H_ _ #include <PalmOS.h> extern Boolean gSaveBackup; // Returns true if the customer was changed/deleted. void EditCustomer(UInt16 recordNumber, Boolean isNew, Boolean *deleted); void EditCustomerWithSelection(UInt16 ...

Get Palm OS Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.