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