add device shares
[mTask.git] / Shares / mTaskShare.dcl
index a3155fd..6cd08a9 100644 (file)
@@ -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 [MTaskShare]
+updateShareFromPublish :: MTaskDevice Int BCValue -> Task BCValue
 //updateShare :: Int BCValue -> Task [MTaskShare]
 
 getRealShare :: MTaskDevice MTaskShare -> Shared BCValue