refactoors
[mTask.git] / Shares / mTaskShare.dcl
index 2ba97cb..686a372 100644 (file)
@@ -9,15 +9,16 @@ 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]
@@ -33,7 +34,7 @@ cleanSharesTask :: Int MTaskDevice -> 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 ()