repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
started with device handshake
[mTask.git]
/
Shares
/
mTaskShare.dcl
diff --git
a/Shares/mTaskShare.dcl
b/Shares/mTaskShare.dcl
index
df4a2f1
..
9110254
100644
(file)
--- a/
Shares/mTaskShare.dcl
+++ b/
Shares/mTaskShare.dcl
@@
-2,26
+2,21
@@
definition module Shares.mTaskShare
import iTasks
import iTasks._Framework.Serialization
import iTasks
import iTasks._Framework.Serialization
+import mTask
-derive class iTask MTaskShareType
-
-derive gEditor MTaskShare
-derive gText MTaskShare
-derive JSONEncode MTaskShare
-derive JSONDecode MTaskShare
-derive gDefault MTaskShare
-derive gEq MTaskShare
+derive class iTask MTaskShareType, MTaskShare
:: MTaskShareType = MTaskWithShare String | MTaskLens String
:: MTaskShare =
{withTask :: String
,identifier :: Int
,realShare :: MTaskShareType
:: MTaskShareType = MTaskWithShare String | MTaskLens String
:: MTaskShare =
{withTask :: String
,identifier :: Int
,realShare :: MTaskShareType
- ,value :: String
- ,dynvalue :: Dynamic
+ ,value :: BCValue
}
manageShares :: [MTaskShare] -> Task ()
///makeShare :: String Int Dynamic -> Task MTaskShare
}
manageShares :: [MTaskShare] -> Task ()
///makeShare :: String Int Dynamic -> Task MTaskShare
-makeShare :: String Int String -> Task MTaskShare
+makeShare :: String Int BCValue -> Task MTaskShare
+
+updateShare :: Int BCValue -> Task ()