make shares of devices
[mTask.git] / Shares / mTaskShare.dcl
index de2cbc4..c505362 100644 (file)
@@ -9,21 +9,27 @@ derive class iTask MTaskShare
 
 :: MTaskShare =
                {withTask :: [String]
-               ,withDevice :: [String]
                ,identifier :: Int
                ,value :: BCValue
                }
+
 //Constructor
-makeShare :: String String Int BCValue -> MTaskShare
+makeShare :: 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]
+updateShare :: MTaskDevice Int BCValue -> Task [MTaskShare]
+//updateShare :: Int BCValue -> Task [MTaskShare]
+
+getRealShare :: MTaskDevice BCShare -> Shared BCValue
 
 //updateShare :: Int BCValue -> Task ()