This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
uf:application [2008/09/05 11:47] tvcutsem added |
uf:application [2009/02/27 16:13] alombide |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Applications ===== | ===== Applications ===== | ||
- | The most important property | + | Applications are simply containers for some named pieces |
- | Applications | + | The most important property of an application in Urbiflock is that it should be easy to share it with your friends. |
- | * Access a user's profile (but not change it?) | + | |
- | * Access a user's flocks (but not change them?) | + | |
- | * Create new flocks (and thus new proximities) | + | |
- | * Add actions (" | + | |
- | * Store their settings persistently | + | |
- | * Be installed at runtime | + | |
- | * Be copied to another flockr at runtime | + | |
- | * Be minimized, stopped, paused, restarted? | + | |
The mobility requirement needs some thought in how we are going to structure applications: | The mobility requirement needs some thought in how we are going to structure applications: | ||
* does the entire app. needs to be an isolate? | * does the entire app. needs to be an isolate? | ||
* will we copy physical '' | * will we copy physical '' | ||
+ | |||
+ | < | ||
+ | |||
+ | Every application should implement at least a start() method. This method should launch the application. It is called by the application launcher when the application button is clicked. | ||
+ | |||
+ | ===== Local API ===== | ||
+ | * name() | ||
+ | * owner() | ||
+ | * registerApplicationListener(type, | ||
+ | * start(): does nothing if not overridden. Is called by the launcher. | ||
+ | * pause(): does nothing if not overridden. | ||
+ | * unpause(): does nothing if not overridden. | ||
+ | * stop(): takes offline the application. Is called when the application is closed. | ||
+ | * export(asType): | ||
+ | |||
+ | ===== Remote API ===== | ||
+ | * name() | ||
+ | * getOwnerAndProfile(): | ||
+ | |