1 definition module Shares.mTaskShare
4 import iTasks._Framework.Serialization
6 import Devices.mTaskDevice
8 derive class iTask MTaskShare
16 instance == MTaskShare
19 makeShare :: String Int BCValue -> MTaskShare
21 //General viewing task
22 manageShares :: Task [MTaskDevice]
23 //manageShares :: [MTaskShare] -> Task MTaskShare
25 updateShares :: MTaskDevice ([MTaskShare] -> [MTaskShare]) -> Task [MTaskShare]
27 //Clean out shares when a task has been removed
28 cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare]
29 //cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare]
30 //Clean out shares when a device has been removed
32 updateShareFromPublish :: MTaskDevice Int BCValue -> Task BCValue
33 //updateShare :: Int BCValue -> Task [MTaskShare]
35 getRealShare :: MTaskDevice MTaskShare -> Shared BCValue
36 //getRealShare :: MTaskDevice BCShare -> Shared BCValue
38 //updateShare :: Int BCValue -> Task ()