> IMHO, I think what is missing is a conduit (probably using
> the Plucker desktop channels & options) to make it a one step process (once
> the channels are set up).  I think we are close to this too.

Hi Bill, 

You are 100% on the mark.

A conduit now for update-when-hit-button is pretty short in terms of code (at least in 
terms of 
a visual version with the progress dialog, as it will track the termination of the 
processes). 
I have not picked up the Palm conduit kit or have any experience in it, but perhaps 
someone 
with good Conduit skill can have a look.

For MSW, this is what would be needed. AFAIK for conduits a Mac would be similar, so 
it might 
be workwhile to make as a base class with implementations for Mac and MSW to separate 
the 
implementation specifics like a registry.

Start with whatever a minimal conduit project usually is.

When a sync is started:

(1) Get the location of the system's plucker installation directory and store it. It 
is in the 
registry. Doing a search for "The Plucker Team" in the registry will show the folder 
of Plucker 
keys, and one of them is the plucker directory. Usually C:\program files\plucker or 
something 
similar.
(2) Use that stored plucker directory, adding on "\plucker.ini" to get the filename of 
plucker.ini.
(3) Read plucker.ini config file, and look up the value of the autoupdate mode. for 
Plucker. It 
is stored in
[PLUCKER_DAEMON]
autoupdate_mode=3
(4) If autoupdate_code is 3 (update due whenever I hit sync button) then
(5) Use the plucker directory location to get the filename of plucker-desktop, which 
will be an 
addition of "\plucker_desktop\plucker-desktop.exe"
(6) Do a synchronous shell execute command of plucker-desktop.exe with the commandline 
option 
of --update-due
for example the entire string would be something like:
"C:\program files\plucker\plucker_desktop\plucker-desktop --update-due"
By a sychronous shell execute, I mean that the the program flow of the conduit logic 
is halted 
until the shell command terminates. 

For this to work, the conduit would need to be able to run before software gets 
installed to 
the palm (I don't know if that is possible in the Palm conduit). 

There is a Desktop UI widget ready to go, it is the 4th radio button in Preferences 
dialog > 
Autoupdate tab: this reads/writes the autoupdate_mode key.

Best wishes,
Robert

_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to