repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small update
[mTask.git]
/
Shares
/
mTaskShare.dcl
diff --git
a/Shares/mTaskShare.dcl
b/Shares/mTaskShare.dcl
index
bb6ec46
..
0e73a82
100644
(file)
--- a/
Shares/mTaskShare.dcl
+++ b/
Shares/mTaskShare.dcl
@@
-1,13
+1,23
@@
definition module Shares.mTaskShare
import iTasks
definition module Shares.mTaskShare
import iTasks
+import iTasks._Framework.Serialization
+import mTask
+import Devices.mTaskDevice
-:: MTaskShare = {
- withTask :: String,
- identifier :: Int,
- realShare :: String
- }
+derive class iTask MTaskShareType, MTaskShare
-instance zero MTaskShare
+:: MTaskShareType = MTaskWithShare String | MTaskLens String
+:: MTaskShare =
+ {withTask :: [String]
+ ,withDevice :: [String]
+ ,identifier :: Int
+ ,realShare :: MTaskShareType
+ ,value :: BCValue
+ }
manageShares :: [MTaskShare] -> Task ()
manageShares :: [MTaskShare] -> Task ()
+
+makeShare :: String String Int BCValue -> Task MTaskShare
+
+updateShare :: Int BCValue -> Task ()