BookmarkFile#

class BookmarkFile(**kwargs)#
Constructors:

new() -> GLib.BookmarkFile

Constructors#

class BookmarkFile
classmethod new() BookmarkFile#

Methods#

class BookmarkFile
add_application(uri: str, name: str | None = None, exec: str | None = None) None#
Parameters:
  • uri

  • name

  • exec

add_group(uri: str, group: str) None#
Parameters:
  • uri

  • group

error_quark() int#
free() None#
get_added(uri: str) int#
Parameters:

uri

get_added_date_time(uri: str) DateTime#
Parameters:

uri

get_app_info(uri: str, name: str) tuple[bool, str, int, int]#
Parameters:
  • uri

  • name

get_application_info(uri: str, name: str) tuple[bool, str, int, DateTime]#
Parameters:
  • uri

  • name

get_applications(uri: str) list[str]#
Parameters:

uri

get_description(uri: str) str#
Parameters:

uri

get_groups(uri: str) list[str]#
Parameters:

uri

get_icon(uri: str) tuple[bool, str, str]#
Parameters:

uri

get_is_private(uri: str) bool#
Parameters:

uri

get_mime_type(uri: str) str#
Parameters:

uri

get_modified(uri: str) int#
Parameters:

uri

get_modified_date_time(uri: str) DateTime#
Parameters:

uri

get_size() int#
get_title(uri: str | None = None) str#
Parameters:

uri

get_uris() list[str]#
get_visited(uri: str) int#
Parameters:

uri

get_visited_date_time(uri: str) DateTime#
Parameters:

uri

has_application(uri: str, name: str) bool#
Parameters:
  • uri

  • name

has_group(uri: str, group: str) bool#
Parameters:
  • uri

  • group

has_item(uri: str) bool#
Parameters:

uri

load_from_data(data: Sequence[int]) bool#
Parameters:

data

load_from_data_dirs(file: str) tuple[bool, str]#
Parameters:

file

load_from_file(filename: str) bool#
Parameters:

filename

move_item(old_uri: str, new_uri: str | None = None) bool#
Parameters:
  • old_uri

  • new_uri

remove_application(uri: str, name: str) bool#
Parameters:
  • uri

  • name

remove_group(uri: str, group: str) bool#
Parameters:
  • uri

  • group

remove_item(uri: str) bool#
Parameters:

uri

set_added(uri: str, added: int) None#
Parameters:
  • uri

  • added

set_added_date_time(uri: str, added: DateTime) None#
Parameters:
  • uri

  • added

set_app_info(uri: str, name: str, exec: str, count: int, stamp: int) bool#
Parameters:
  • uri

  • name

  • exec

  • count

  • stamp

set_application_info(uri: str, name: str, exec: str, count: int, stamp: DateTime | None = None) bool#
Parameters:
  • uri

  • name

  • exec

  • count

  • stamp

set_description(uri: str | None, description: str) None#
Parameters:
  • uri

  • description

set_groups(uri: str, groups: Sequence[str] | None = None) None#
Parameters:
  • uri

  • groups

set_icon(uri: str, href: str | None, mime_type: str) None#
Parameters:
  • uri

  • href

  • mime_type

set_is_private(uri: str, is_private: bool) None#
Parameters:
  • uri

  • is_private

set_mime_type(uri: str, mime_type: str) None#
Parameters:
  • uri

  • mime_type

set_modified(uri: str, modified: int) None#
Parameters:
  • uri

  • modified

set_modified_date_time(uri: str, modified: DateTime) None#
Parameters:
  • uri

  • modified

set_title(uri: str | None, title: str) None#
Parameters:
  • uri

  • title

set_visited(uri: str, visited: int) None#
Parameters:
  • uri

  • visited

set_visited_date_time(uri: str, visited: DateTime) None#
Parameters:
  • uri

  • visited

to_data() bytes#
to_file(filename: str) bool#
Parameters:

filename