Packages - what is it?

13 views
Skip to first unread message

dmitry.z...@gmail.com

unread,
Feb 17, 2009, 12:07:47 PM2/17/09
to Phantom OS
My current understanding is that package is simpy a class, which
implements some interface. Class has to be brought in and instantiated
to have package on a computer.

Interface:

String getName - returns package name. Package class itself must be in
the package as well.
String getShortDescription
String getLongDescription

void download - requests package to be downloaded from some default
repository.
int downloadProgress - nonzero if package is being downloaded, 100
when done
boolean isDownloaded - just a check
boolean isBusy - true if downloading

String[] getClassList - list of classes in package

int getCurrentVersion - installed
int getLastVersion - available in repository

// some way to revert to older ver?

Reply all
Reply to author
Forward
0 new messages