X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Shares%2FmTaskShare.dcl;h=6cd08a9aa1848e7c19f339b5b502f28fc51bdda1;hb=1e18ef692756fa4a6f163994e7edb5ad4f11b3db;hp=de2cbc47c3eaa844e5d62466fd81c3328c47d787;hpb=a81623aa9629a3c5c8f8bf920e494a596b30c4b7;p=mTask.git diff --git a/Shares/mTaskShare.dcl b/Shares/mTaskShare.dcl index de2cbc4..6cd08a9 100644 --- a/Shares/mTaskShare.dcl +++ b/Shares/mTaskShare.dcl @@ -6,24 +6,35 @@ import mTask import Devices.mTaskDevice derive class iTask MTaskShare +derive gPrint BCState :: MTaskShare = - {withTask :: [String] - ,withDevice :: [String] - ,identifier :: Int - ,value :: BCValue + {withTask :: [String] + ,identifier:: Int + ,value :: BCValue + ,humanName :: String } + +instance == MTaskShare + //Constructor makeShare :: String String Int BCValue -> MTaskShare //General viewing task -manageShares :: [MTaskShare] -> Task MTaskShare +manageShares :: Task [MTaskDevice] +//manageShares :: [MTaskShare] -> Task MTaskShare + +updateShares :: MTaskDevice ([MTaskShare] -> [MTaskShare]) -> Task [MTaskShare] //Clean out shares when a task has been removed cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] +//cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] //Clean out shares when a device has been removed -cleanSharesDevice :: String -> Task [MTaskShare] -updateShare :: Int BCValue -> Task [MTaskShare] +updateShareFromPublish :: MTaskDevice Int BCValue -> Task BCValue +//updateShare :: Int BCValue -> Task [MTaskShare] + +getRealShare :: MTaskDevice MTaskShare -> Shared BCValue +//getRealShare :: MTaskDevice BCShare -> Shared BCValue //updateShare :: Int BCValue -> Task ()