Top | ![]() |
![]() |
![]() |
![]() |
FlatpakRemote * | flatpak_remote_new () |
const char * | flatpak_remote_get_name () |
GFile * | flatpak_remote_get_appstream_dir () |
GFile * | flatpak_remote_get_appstream_timestamp () |
gboolean | flatpak_remote_get_gpg_verify () |
void | flatpak_remote_set_gpg_verify () |
void | flatpak_remote_set_gpg_key () |
gboolean | flatpak_remote_get_noenumerate () |
void | flatpak_remote_set_noenumerate () |
int | flatpak_remote_get_prio () |
void | flatpak_remote_set_prio () |
char * | flatpak_remote_get_title () |
void | flatpak_remote_set_title () |
char * | flatpak_remote_get_url () |
void | flatpak_remote_set_url () |
gboolean | flatpak_remote_get_disabled () |
void | flatpak_remote_set_disabled () |
A FlatpakRemote object provides information about a remote repository (or short: remote) that has been configured.
At its most basic level, a remote has a name and the URL for the repository. In addition, they provide some additional information that can be useful when presenting repositories in a UI, such as a title, a priority or a "don't enumerate" flags.
To obtain FlatpakRemote objects for the configured remotes
on a system, use flatpak_installation_list_remotes()
or
flatpak_installation_get_remote_by_name()
.
FlatpakRemote *
flatpak_remote_new (const char *name
);
Returns a new remote object which can be used to configure a new remote.
Note: This is a local configuration object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
const char *
flatpak_remote_get_name (FlatpakRemote *self
);
Returns the name of the remote repository.
GFile * flatpak_remote_get_appstream_dir (FlatpakRemote *self
,const char *arch
);
Returns the directory where this remote will store locally cached
appstream information for the specified arch
.
GFile * flatpak_remote_get_appstream_timestamp (FlatpakRemote *self
,const char *arch
);
Returns the timestamp file that will be updated whenever the appstream information
has been updated (or tried to update) for the specified arch
.
gboolean
flatpak_remote_get_gpg_verify (FlatpakRemote *self
);
Returns whether GPG verification is enabled for the remote.
void flatpak_remote_set_gpg_verify (FlatpakRemote *self
,gboolean gpg_verify
);
Sets the gpg_verify config of this remote. See flatpak_remote_get_gpg_verify()
.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
void flatpak_remote_set_gpg_key (FlatpakRemote *self
,GBytes *gpg_key
);
Sets the trusted gpg key for this remote.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
gboolean
flatpak_remote_get_noenumerate (FlatpakRemote *self
);
Returns whether this remote should be used to list applications.
void flatpak_remote_set_noenumerate (FlatpakRemote *self
,gboolean noenumerate
);
Sets the noenumeration config of this remote. See flatpak_remote_get_noenumerate()
.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
int
flatpak_remote_get_prio (FlatpakRemote *self
);
Returns the priority for the remote.
void flatpak_remote_set_prio (FlatpakRemote *self
,int prio
);
Sets the prio config of this remote. See flatpak_remote_get_prio()
.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
char *
flatpak_remote_get_title (FlatpakRemote *self
);
Returns the title of the remote.
void flatpak_remote_set_title (FlatpakRemote *self
,const char *title
);
Sets the repository title of this remote.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
char *
flatpak_remote_get_url (FlatpakRemote *self
);
Returns the repository URL of this remote.
void flatpak_remote_set_url (FlatpakRemote *self
,const char *url
);
Sets the repository URL of this remote.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.
gboolean
flatpak_remote_get_disabled (FlatpakRemote *self
);
Returns whether this remote is disabled.
void flatpak_remote_set_disabled (FlatpakRemote *self
,gboolean disabled
);
Sets the disabled config of this remote. See flatpak_remote_get_disable()
.
Note: This is a local modification of this object, you must commit changes
using flatpak_installation_modify_remote()
for the changes to take
effect.