Skip to Main Content
Palm OS Programming, 2nd Edition
book

Palm OS Programming, 2nd Edition

by Julie McKeehan, Neil Rhodes
October 2001
Intermediate to advanced content levelIntermediate to advanced
704 pages
19h 33m
English
O'Reilly Media, Inc.
Content preview from Palm OS Programming, 2nd Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Palm OS Network Programming

Palm OS Network Programming

Greg Winton
Palm Programming: The Developer's Guide

Palm Programming: The Developer's Guide

Neil Rhodes, Julie McKeehan

Publisher Resources

ISBN: 1565928563Errata Page