Features/SimpleActivity: Difference between revisions
Created page with "== Summary == SimpleActivity is a module that make some things that every activity do in a simpler way, and also it provides a much simpler way to implement sharing in your ac..." |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
SimpleActivity is a module that | SimpleActivity is a module that does in a simple way things common to every Sugar activity; it also provides a ''much'' simpler way to implement sharing in an activity. | ||
== Owner == | == Owner == | ||
| Line 11: | Line 11: | ||
== Detailed Description == | == Detailed Description == | ||
We have a lot of repeated | We have a lot of repeated code across our activities and some commonalities that can be consolidated. Also, why not make some things simpler, like creating the toolbar automatically with an activity icon. | ||
Also | |||
You just | Also included in this feature is SharedActivity, which is a class that derives from SimpleActivity, and does all the collaboration process by itself: you don't have to worry about dbus, tubes, telepathy, even about the service, path or interface name. SharedActivity will do everything for you. | ||
You just define a list of "events" with the respective callbacks to execute when an event is received, and then start sending events! | |||
== Benefit to Sugar == | == Benefit to Sugar == | ||
Since this module | Since this module makes it simpler to create an activity framework, developers new to Sugar can more readily make Sugar activities; in this way we may get more activities from a larger developer base. | ||
== Scope == | == Scope == | ||
This extension to the toolkit doesn't impact any existing work: developers can choose to use SimpleActivity/SharedActivtiy or continue doing everything as before. | |||
== How To Test == | == How To Test == | ||
| Line 36: | Line 38: | ||
== Comments and Discussion == | == Comments and Discussion == | ||
Should this be an extension to the toolkit? --[[User:Walter|Walter]] ([[User talk:Walter|talk]]) 21:28, 21 November 2013 (EST) | |||