Delphi Conduit Library Help

Introduction

Main Index

General Info

TpfgPalmComponent

TpfgHotSyncActionDialog

TpfgPalmRemoteTable

TpfgPalmLocalTable

TpfgUserManager

TpfgPalmSyncComponent

TpfgPalmInstall

FAQ

  

Properties

Done [ro]
InCritical [ro]

Methods

Lock
Unlock
Unlock

TpfgPalmPollingThread

The TpfgPalmPollingThread is a thread class designed to keep the connection to the Palm active whilst you are doing intensive tasks that preclude you from making regular calls to the Palm in your main thread.

For example, suppose your conduit synchronises across the Internet, and you make a system call to download an XML document containing all the changes. If there were a lot, it would be possible for the Palm connection to die. By using this thread, you can keep the connection active.

Properties

Done: Boolean
Returns true if the thread has terminated.

InCritical: Boolean
Returns true if the thread has been locked to stop it making calls to the Palm. ie. the polling thread has been suspended.

Methods

procedure Lock;
Locks the thread, preventing it from functioning until the Unlock method is called. This is recommended if you plan to make calls to the Palm API yourself, and don't want to go to the bother of destroying the thread.

procedure Unlock;
Unlocks the thread, allowing the polling of the Palm to be resumed.

procedure Terminate;
Terminates the polling thread.