systray functionality

From: Sergio Alvarez <sergio_at_mediadefender.com>
Date: Thu, 17 May 2007 16:12:31 -0700

In order to talk to the app, it's just a http get to 127.0.0.1:port
Port is determined by the following
        port = 10026,
        if you can't connect divide by 1.2,
        if you go below 1024 then the app isn't running

The following commands are supported

        http://127.0.0.1:port/stop.html // pauses all downloads
        http://127.0.0.1:port/start.html // resumes downloads
        http://127.0.0.1:port/exit.html // tells the app to exit
        http://127.0.0.1:port/status.html?free=<free space in bytes> // lets you know if the app is running or not, and gives the app how much free space you have left on the drive(optional)

The first 3 should return a 200.
Status return 200 if it's unpaused, 400 if it's paused

The systray also checks to make sure the jar it's running is the current version. Stefan puts the md5 and sha1 of the current version at http://129.47.9.160/zonie/update.php.

I check on start up and download the latest and copy it over before trying to run it, and then have a timer that checks periodically, and downloads and restarts the app if needed.

The functionality of the systray for the user is as follows.

After install, and anytime they manually run the systray it send the user to the following web page.

        http://129.47.9.160/zonie/account.php?s

Note, it does not take you to any url when the app launches on start up.

If it doesn't detect java it takes them to

        http://129.47.9.160/install/install.php?install=java

Double clicking the icon takes them to
        http://129.47.9.160/zonie/queue.php

The right click opens a menu with the following. The localhost ones just do a get, the rest open up a web page to the given address.

Miivi
http://129.47.9.160/zonie/library.php

queue
http://129.47.9.160/zonie/queue.php

history
http://129.47.9.160/zonie/library.php

pause
http://127.0.0.1:port/stop.html
        
resume
http://127.0.0.1:port/start.html

exit
http://127.0.0.1:port/exit.html
Received on Fri Sep 14 2007 - 10:56:06 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:48 BST