diff options
Diffstat (limited to 'Types/Storage.hs')
-rw-r--r-- | Types/Storage.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Types/Storage.hs b/Types/Storage.hs index d9db853..c83593a 100644 --- a/Types/Storage.hs +++ b/Types/Storage.hs @@ -20,6 +20,9 @@ newtype StorageLocations = StorageLocations [Storage] newtype LocalStorageDirectory = LocalStorageDirectory FilePath +data StorageLevel = LocallyPreferred | Recommended | Alternate | Untrusted + deriving (Show, Eq, Ord, Bounded, Enum) + -- | Storage interface. This can be used both for local storage, -- an upload queue, or a remote server. -- @@ -35,6 +38,7 @@ data Storage = Storage , moveShares :: Storage -> IO [StoreResult] -- ^ Tries to move all shares from this storage to another one. , uploadQueue :: Maybe Storage + , storageLevel :: StorageLevel , getServer :: Maybe Server } |