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

Overview of Conduits

A conduit can be simple or complex, depending on the job it has to do. Regardless of its complexity, you create it in the same way: a conduit is a desktop plug-in made in a desktop development environment.

A conduit isn’t code that runs on the Palm handheld, but an executable library that runs during the HotSync.

What Does a Conduit Do?

A conduit is responsible for the application’s data during synchronization between the handheld and a desktop computer. The conduit needs to do the following:

  • Open and close databases on the Palm device.

  • Determine whether data should be moved to the handheld, from the handheld, or some combination of both.

  • Appropriately add, delete, and modify records on the handheld and on the desktop.

  • Be able to work within a multiuser environment in which more than one Palm handheld may be syncing to the same network or desktop computer (though not necessarily at the same time).

  • Convert the data in the application’s database records to appropriate data structures on the desktop computer.

  • Compare records so that only modified records are synced (this is optional, though recommended).

Your conduit is responsible for saving the data on the desktop in whatever way makes sense. If your conduit syncs to a file for a desktop application, it needs to read and write data in that application’s file format. Your conduit may read and write records from a database on the desktop or some database on the network. As a result, each conduit handles storing ...

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