1 definition module Shares.mTaskShare
4 import iTasks._Framework.Serialization
6 import Devices.mTaskDevice
8 derive class iTask MTaskShare
17 instance == MTaskShare
20 makeShare :: String Int BCValue -> MTaskShare
22 //General viewing task
23 manageShares :: Task [MTaskDevice]
24 //manageShares :: [MTaskShare] -> Task MTaskShare
26 updateShares :: MTaskDevice ([MTaskShare] -> [MTaskShare]) -> Task [MTaskShare]
28 //Clean out shares when a task has been removed
29 cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare]
30 //cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare]
31 //Clean out shares when a device has been removed
33 updateShareFromPublish :: MTaskDevice Int BCValue -> Task BCValue
34 //updateShare :: Int BCValue -> Task [MTaskShare]
36 getRealShare :: MTaskDevice MTaskShare -> Shared BCValue
37 //getRealShare :: MTaskDevice BCShare -> Shared BCValue
39 //updateShare :: Int BCValue -> Task ()