X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Shares%2FmTaskShare.dcl;h=de2cbc47c3eaa844e5d62466fd81c3328c47d787;hb=a81623aa9629a3c5c8f8bf920e494a596b30c4b7;hp=0f476d5148ad830ca9ca8a6a8f484e025a541391;hpb=7fec7868123d56d410e807042cb3e031ebda12b9;p=mTask.git diff --git a/Shares/mTaskShare.dcl b/Shares/mTaskShare.dcl index 0f476d5..de2cbc4 100644 --- a/Shares/mTaskShare.dcl +++ b/Shares/mTaskShare.dcl @@ -1,12 +1,29 @@ definition module Shares.mTaskShare import iTasks +import iTasks._Framework.Serialization +import mTask +import Devices.mTaskDevice -:: MTaskShare = { - initValue :: Int, - withTask :: String, - identifier :: Int, - realShare :: String - } +derive class iTask MTaskShare -viewShares :: [MTaskShare] -> Task () +:: MTaskShare = + {withTask :: [String] + ,withDevice :: [String] + ,identifier :: Int + ,value :: BCValue + } +//Constructor +makeShare :: String String Int BCValue -> MTaskShare + +//General viewing task +manageShares :: [MTaskShare] -> Task MTaskShare + +//Clean out shares when a task has been removed +cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] +//Clean out shares when a device has been removed +cleanSharesDevice :: String -> Task [MTaskShare] + +updateShare :: Int BCValue -> Task [MTaskShare] + +//updateShare :: Int BCValue -> Task ()