X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=Shares%2FmTaskShare.dcl;h=6cd08a9aa1848e7c19f339b5b502f28fc51bdda1;hb=1e18ef692756fa4a6f163994e7edb5ad4f11b3db;hp=9cb38cac773b3346886e2288ea6b520ac9059940;hpb=778d5d97bc6f8a0f37d59177301348a960079e13;p=mTask.git diff --git a/Shares/mTaskShare.dcl b/Shares/mTaskShare.dcl index 9cb38ca..6cd08a9 100644 --- a/Shares/mTaskShare.dcl +++ b/Shares/mTaskShare.dcl @@ -6,17 +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] @@ -29,7 +31,7 @@ cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] //cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare] //Clean out shares when a device has been removed -updateShareFromPublish :: MTaskDevice Int BCValue -> Task [MTaskDevice] +updateShareFromPublish :: MTaskDevice Int BCValue -> Task BCValue //updateShare :: Int BCValue -> Task [MTaskShare] getRealShare :: MTaskDevice MTaskShare -> Shared BCValue