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

When the HotSync Button Is Pressed

We left off in the previous discussion ready to exchange information between the conduit on the desktop and the handheld unit. Let’s continue walking through the chain of events (see Table 15-1).

Table 15-1. When the HotSync button is pressed

Action (by the user or by the system)

What is happening programmatically

The Sync Manager gets the conduit name so that it can display information in the Status dialog box.

GetConduitName is called and returns.

The Sync Manager prepares to sync by passing the synchronization off to the conduit.

The conduit’s DLL is loaded into memory and its OpenConduit is called. It is told whether to do a fast sync, a slow sync, a copy from handheld to desktop, a copy from desktop to handheld, or to do nothing. When OpenConduit returns, it will have completed the task.

The conduit registers with the Sync Manager.

SyncRegisterConduit returns a handle.

The conduit notifies the log that syncing is about to start.

Conduit calls LogAddEntry("", slSyncStarted, false).

The conduit opens the remote order database on the handheld.

Conduit calls SyncOpenDB, which returns a handle to the remote order database.

The user sees that the Sales application is being synced.

All the data is written from the handheld to the desktop.

The conduit closes the remote database.

Conduit calls SyncCloseDB to close the Sales order database.

Conduit calls SyncOpenDB, which returns a handle to the product database.

The conduit ...

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