Devhelp.Book¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Devhelp.Book(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(index_file)¶
- Parameters:
index_file (
Gio.File) – the index file.- Returns:
a new
Devhelp.Bookobject, orNoneif parsing the index file failed.- Return type:
Devhelp.BookorNone
- cmp_by_id(b)¶
- Parameters:
b (
Devhelp.Book) – aDevhelp.Book.- Returns:
an integer less than, equal to, or greater than zero, if self is <, == or > than b.
- Return type:
Compares the
Devhelp.Book's by their IDs, withGLib.ascii_strcasecmp().
- cmp_by_title(b)¶
- Parameters:
b (
Devhelp.Book) – aDevhelp.Book.- Returns:
an integer less than, equal to, or greater than zero, if self is <, == or > than b.
- Return type:
Compares the
Devhelp.Book's by their title.
- get_completion()¶
- Returns:
the
Devhelp.Completionof self.- Return type:
New in version 3.28.
- get_id()¶
- Returns:
the book ID.
- Return type:
Gets the book ID. In the Devhelp index file format version 2, it is actually the “name”, not the ID, but “book ID” is clearer, “book name” can be confused with the title.
- get_links()¶
- Returns:
the list of all
Devhelp.Link's part of self.- Return type:
- get_tree()¶
- Returns:
the tree of
Devhelp.Link's part of self.- Return type:
Gets the general structure of the book, as a tree. The tree contains only
Devhelp.Link's of typeDevhelp.LinkType.BOOKorDevhelp.LinkType.PAGE. The otherDevhelp.Link's are not contained in the tree. To have a list of allDevhelp.Link's part of the book, you need to callDevhelp.Book.get_links().
Signal Details¶
- Devhelp.Book.signals.deleted(book)¶
- Signal Name:
deleted- Flags:
- Parameters:
book (
Devhelp.Book) – The object which received the signal
The
::deletedsignal is emitted when the index file has been deleted from the filesystem.
- Devhelp.Book.signals.updated(book)¶
- Signal Name:
updated- Flags:
- Parameters:
book (
Devhelp.Book) – The object which received the signal
The
::updatedsignal is emitted when the index file has been modified (but the file still exists).