Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toDBusMenuModel :: (MonadIO m, IsDBusMenuModel o) => o -> m DBusMenuModel

    gi-gio GI.Gio.Objects.DBusMenuModel

    Cast to DBusMenuModel, for types for which this is known to be safe. For general casts, use castTo.

  2. module GI.Gio.Objects.FileEnumerator

    GFileEnumerator allows you to operate on a set of File objects, returning a FileInfo structure for each file enumerated (e.g. fileEnumerateChildren will return a GFileEnumerator for each of the children within a directory). To get the next file's information from a GFileEnumerator, use fileEnumeratorNextFile or its asynchronous version, fileEnumeratorNextFilesAsync. Note that the asynchronous version will return a list of FileInfo objects, whereas the synchronous will only return the next file in the enumerator. The ordering of returned files is unspecified for non-Unix platforms; for more information, see dirReadName. On Unix, when operating on local files, returned files will be sorted by inode number. Effectively you can assume that the ordering of returned files will be stable between successive calls (and applications) assuming the directory is unchanged. If your application needs a specific ordering, such as by name or modification time, you will have to implement that in your application code. To close a GFileEnumerator, use fileEnumeratorClose, or its asynchronous version, fileEnumeratorCloseAsync. Once a GFileEnumerator is closed, no further actions may be performed on it, and it should be freed with objectUnref.

  3. newtype FileEnumerator

    gi-gio GI.Gio.Objects.FileEnumerator

    Memory-managed wrapper type.

  4. FileEnumerator :: ManagedPtr FileEnumerator -> FileEnumerator

    gi-gio GI.Gio.Objects.FileEnumerator

    No documentation available.

  5. class (GObject o, IsDescendantOf FileEnumerator o) => IsFileEnumerator o

    gi-gio GI.Gio.Objects.FileEnumerator

    Type class for types which can be safely cast to FileEnumerator, for instance with toFileEnumerator.

  6. constructFileEnumeratorContainer :: (IsFileEnumerator o, MonadIO m, IsFile a) => a -> m (GValueConstruct o)

    gi-gio GI.Gio.Objects.FileEnumerator

    Construct a GValueConstruct with valid value for the “container” property. This is rarely needed directly, but it is used by new.

  7. fileEnumeratorClose :: (HasCallStack, MonadIO m, IsFileEnumerator a, IsCancellable b) => a -> Maybe b -> m ()

    gi-gio GI.Gio.Objects.FileEnumerator

    Releases all resources used by this enumerator, making the enumerator return IOErrorEnumClosed on all calls. This will be automatically called when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.

  8. fileEnumeratorCloseAsync :: (HasCallStack, MonadIO m, IsFileEnumerator a, IsCancellable b) => a -> Int32 -> Maybe b -> Maybe AsyncReadyCallback -> m ()

    gi-gio GI.Gio.Objects.FileEnumerator

    Asynchronously closes the file enumerator. If cancellable is not Nothing, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be returned in fileEnumeratorCloseFinish.

  9. fileEnumeratorCloseFinish :: (HasCallStack, MonadIO m, IsFileEnumerator a, IsAsyncResult b) => a -> b -> m ()

    gi-gio GI.Gio.Objects.FileEnumerator

    Finishes closing a file enumerator, started from fileEnumeratorCloseAsync. If the file enumerator was already closed when fileEnumeratorCloseAsync was called, then this function will report IOErrorEnumClosed in error, and return False. If the file enumerator had pending operation when the close operation was started, then this function will report IOErrorEnumPending, and return False. If cancellable was not Nothing, then the operation may have been cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error IOErrorEnumCancelled will be set, and False will be returned.

  10. fileEnumeratorGetChild :: (HasCallStack, MonadIO m, IsFileEnumerator a, IsFileInfo b) => a -> b -> m File

    gi-gio GI.Gio.Objects.FileEnumerator

    Return a new File which refers to the file named by info in the source directory of enumerator. This function is primarily intended to be used inside loops with fileEnumeratorNextFile. To use this, FILE_ATTRIBUTE_STANDARD_NAME must have been listed in the attributes list used when creating the FileEnumerator. This is a convenience method that's equivalent to:

    C code

    gchar *name = g_file_info_get_name (info);
    GFile *child = g_file_get_child (g_file_enumerator_get_container (enumr),
    name);
    
    Since: 2.36

Page 116 of many | Previous | Next