repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add device shares
[mTask.git]
/
Shares
/
mTaskShare.dcl
diff --git
a/Shares/mTaskShare.dcl
b/Shares/mTaskShare.dcl
index
de2cbc4
..
6cd08a9
100644
(file)
--- a/
Shares/mTaskShare.dcl
+++ b/
Shares/mTaskShare.dcl
@@
-6,24
+6,35
@@
import mTask
import Devices.mTaskDevice
derive class iTask MTaskShare
import Devices.mTaskDevice
derive class iTask MTaskShare
+derive gPrint BCState
:: MTaskShare =
:: MTaskShare =
- {withTask :: [String]
- ,
withDevice :: [String]
- ,
identifier :: Int
- ,
value :: BCValue
+ {withTask
:: [String]
+ ,
identifier:: Int
+ ,
value :: BCValue
+ ,
humanName :: String
}
}
+
+instance == MTaskShare
+
//Constructor
makeShare :: String String Int BCValue -> MTaskShare
//General viewing task
//Constructor
makeShare :: String 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]
//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
//Clean out shares when a device has been removed
-cleanSharesDevice :: String -> Task [MTaskShare]
-updateShare :: 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
//updateShare :: Int BCValue -> Task ()
//updateShare :: Int BCValue -> Task ()