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

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

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