X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Shares%2FmTaskShare.dcl;h=686a372772e7d36d9cd353685c63655981776e91;hb=d99f9bb5fdcf3a58381281b5927a65f82b44b494;hp=1d3866958258509aac70f383dabf4f2e3c71b51d;hpb=7d9088b54956fe56c36ca8d01ec386b48f0a1c47;p=mTask.git diff --git a/Shares/mTaskShare.dcl b/Shares/mTaskShare.dcl index 1d38669..686a372 100644 --- a/Shares/mTaskShare.dcl +++ b/Shares/mTaskShare.dcl @@ -6,15 +6,19 @@ import mTask import Devices.mTaskDevice derive class iTask MTaskShare +derive gPrint BCState :: MTaskShare = - {withTask :: [String] - ,identifier :: Int - ,value :: BCValue + {withTask :: [String] + ,identifier:: Int + ,value :: BCValue + ,humanName :: String } +instance == MTaskShare + //Constructor -makeShare :: String Int BCValue -> MTaskShare +makeShare :: String String Int BCValue -> MTaskShare //General viewing task manageShares :: Task [MTaskDevice] @@ -27,10 +31,10 @@ cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] //cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] //Clean out shares when a device has been removed -updateShareFromPublish :: MTaskDevice 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 +shareShare :: MTaskDevice MTaskShare -> Shared BCValue +//shareShare :: MTaskDevice BCShare -> Shared BCValue //updateShare :: Int BCValue -> Task ()