O'Reilly logo

Palm OS Programming, 2nd Edition by Neil Rhodes, Julie McKeehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required