desktop-portal-0.7.0.0: Desktop Portal.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Desktop.Portal.Documents

Synopsis

Common Types

data AddFlag Source #

Instances

Instances details
Show AddFlag Source # 
Instance details

Defined in Desktop.Portal.Documents

Eq AddFlag Source # 
Instance details

Defined in Desktop.Portal.Documents

Methods

(==) :: AddFlag -> AddFlag -> Bool #

(/=) :: AddFlag -> AddFlag -> Bool #

newtype ExtraResults Source #

Constructors

ExtraResults 

Fields

Instances

Instances details
Show ExtraResults Source # 
Instance details

Defined in Desktop.Portal.Documents

Eq ExtraResults Source # 
Instance details

Defined in Desktop.Portal.Documents

Documents Portal Methods

add Source #

Arguments

:: Client 
-> FileSpec

The file to add to the documents store.

-> Bool

Whether to re-use the existing entry in the documents store, if this file is already there.

-> Bool

Whether this file should stay in the documents store after this app shuts down.

-> IO DocumentId

The id (folder name) of the file in the store.

Add a file to the documents store, with basic configuration options.

addFull Source #

Arguments

:: Client 
-> [FileSpec]

The files to add to the documents store.

-> [AddFlag]

The flags to apply to the files.

-> Maybe ApplicationId

The id of another application that will be granted access to the files.

-> [GrantPermission]

The permissions to grant to the other application.

-> IO ([DocumentId], ExtraResults)

The id (folder name) of each file in the store.

Add multiple files to the document store, with full configuration options.

addNamed Source #

Arguments

:: Client 
-> FileSpec

The parent directory of the file to add to the documents store.

-> OsString

The basename of the file.

-> Bool

Whether to re-use the existing entry in the documents store, if this file is already there.

-> Bool

Whether this file should stay in the documents store after this app shuts down.

-> IO DocumentId

The id (folder name) of the file in the store.

Add a file to the document store with a specified name, with basic configuration options.

addNamedFull Source #

Arguments

:: Client 
-> FileSpec

The parent directory of the file to add to the documents store.

-> OsString

The basename of the file.

-> [AddFlag]

The flags to apply to the file.

-> Maybe ApplicationId

The id of another application that will be granted access to the file.

-> [GrantPermission]

The permissions to grant to the other application.

-> IO (DocumentId, ExtraResults)

The id (folder name) of the file in the store.

Add a file to the document store with a specified name, with full configuration options.