repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[mTask.git]
/
Shares
/
mTaskShare.dcl
diff --git
a/Shares/mTaskShare.dcl
b/Shares/mTaskShare.dcl
index
0e73a82
..
de2cbc4
100644
(file)
--- a/
Shares/mTaskShare.dcl
+++ b/
Shares/mTaskShare.dcl
@@
-5,19
+5,25
@@
import iTasks._Framework.Serialization
import mTask
import Devices.mTaskDevice
import mTask
import Devices.mTaskDevice
-derive class iTask MTaskShare
Type, MTaskShare
+derive class iTask MTaskShare
-:: MTaskShareType = MTaskWithShare String | MTaskLens String
:: MTaskShare =
{withTask :: [String]
,withDevice :: [String]
,identifier :: Int
:: MTaskShare =
{withTask :: [String]
,withDevice :: [String]
,identifier :: Int
- ,realShare :: MTaskShareType
,value :: BCValue
}
,value :: BCValue
}
+//Constructor
+makeShare :: String String Int BCValue -> MTaskShare
-manageShares :: [MTaskShare] -> Task ()
+//General viewing task
+manageShares :: [MTaskShare] -> Task MTaskShare
-makeShare :: String String Int BCValue -> Task MTaskShare
+//Clean out shares when a task has been removed
+cleanSharesTask :: Int MTaskDevice -> Task [MTaskShare]
+//Clean out shares when a device has been removed
+cleanSharesDevice :: String -> Task [MTaskShare]
-updateShare :: Int BCValue -> Task ()
+updateShare :: Int BCValue -> Task [MTaskShare]
+
+//updateShare :: Int BCValue -> Task ()