| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Soup.Objects.Cache
Contents
Description
- newtype Cache = Cache (ForeignPtr Cache)
- class GObject o => CacheK o
- toCache :: CacheK o => o -> IO Cache
- noCache :: Maybe Cache
- data CacheClearMethodInfo
- cacheClear :: (MonadIO m, CacheK a) => a -> m ()
- data CacheDumpMethodInfo
- cacheDump :: (MonadIO m, CacheK a) => a -> m ()
- data CacheFlushMethodInfo
- cacheFlush :: (MonadIO m, CacheK a) => a -> m ()
- data CacheGetMaxSizeMethodInfo
- cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32
- data CacheLoadMethodInfo
- cacheLoad :: (MonadIO m, CacheK a) => a -> m ()
- cacheNew :: MonadIO m => Text -> CacheType -> m Cache
- data CacheSetMaxSizeMethodInfo
- cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m ()
- data CacheCacheDirPropertyInfo
- cacheCacheDir :: AttrLabelProxy "cacheDir"
- constructCacheCacheDir :: Text -> IO ([Char], GValue)
- getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m (Maybe Text)
- data CacheCacheTypePropertyInfo
- cacheCacheType :: AttrLabelProxy "cacheType"
- constructCacheCacheType :: CacheType -> IO ([Char], GValue)
- getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType
Exported types
Constructors
| Cache (ForeignPtr Cache) |
Instances
| GObject Cache Source | |
| ((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabelProxy t (Cache -> p) Source | |
| type ParentTypes Cache Source | |
| type AttributeList Cache Source | |
| type SignalList Cache Source |
Methods
cacheClear
data CacheClearMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheClearMethodInfo a signature Source |
cacheClear :: (MonadIO m, CacheK a) => a -> m () Source
cacheDump
data CacheDumpMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheDumpMethodInfo a signature Source |
cacheFlush
data CacheFlushMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheFlushMethodInfo a signature Source |
cacheFlush :: (MonadIO m, CacheK a) => a -> m () Source
cacheGetMaxSize
data CacheGetMaxSizeMethodInfo Source
Instances
| ((~) * signature (m Word32), MonadIO m, CacheK a) => MethodInfo * CacheGetMaxSizeMethodInfo a signature Source |
cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32 Source
cacheLoad
data CacheLoadMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheLoadMethodInfo a signature Source |
cacheNew
cacheSetMaxSize
data CacheSetMaxSizeMethodInfo Source
Instances
| ((~) * signature (Word32 -> m ()), MonadIO m, CacheK a) => MethodInfo * CacheSetMaxSizeMethodInfo a signature Source |
cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m () Source
Properties
CacheDir
data CacheCacheDirPropertyInfo Source
Instances
| AttrInfo CacheCacheDirPropertyInfo Source | |
| type AttrLabel CacheCacheDirPropertyInfo = "cache-dir" Source | |
| type AttrGetType CacheCacheDirPropertyInfo = Maybe Text Source | |
| type AttrBaseTypeConstraint CacheCacheDirPropertyInfo = CacheK Source | |
| type AttrSetTypeConstraint CacheCacheDirPropertyInfo = * ~ Text Source | |
| type AttrAllowedOps CacheCacheDirPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) Source |
cacheCacheDir :: AttrLabelProxy "cacheDir" Source
CacheType
data CacheCacheTypePropertyInfo Source
Instances
| AttrInfo CacheCacheTypePropertyInfo Source | |
| type AttrLabel CacheCacheTypePropertyInfo = "cache-type" Source | |
| type AttrGetType CacheCacheTypePropertyInfo = CacheType Source | |
| type AttrBaseTypeConstraint CacheCacheTypePropertyInfo = CacheK Source | |
| type AttrSetTypeConstraint CacheCacheTypePropertyInfo = * ~ CacheType Source | |
| type AttrAllowedOps CacheCacheTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
cacheCacheType :: AttrLabelProxy "cacheType" Source
getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType Source