Devhelp.BookList¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Devhelp.BookList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_default()¶
- Returns:
the default
Devhelp.BookList
object.- Return type:
Gets the default
Devhelp.BookList
object. It is created withDevhelp.BookListBuilder
,Devhelp.BookListBuilder.add_default_sub_book_lists
() is called, andDevhelp.BookListBuilder.read_books_disabled_setting
() is called with the defaultDevhelp.Settings
object as returned byDevhelp.Settings.get_default
().New in version 3.30.
- classmethod new()¶
- Returns:
a new empty
Devhelp.BookList
object.- Return type:
New in version 3.30.
- add_book(book)¶
- Parameters:
book (
Devhelp.Book
) – aDevhelp.Book
.
Emits the
Devhelp.BookList
::add-book
signal.It is a programmer error to call this function if book is already inserted in self.
New in version 3.30.
- get_books()¶
- Returns:
the
GLib.List
ofDevhelp.Book
's part of self.- Return type:
Gets the list of
Devhelp.Book
's part of self, in no particular order. Each book ID in the list is unique (seeDevhelp.Book.get_id
()).New in version 3.30.
- remove_book(book)¶
- Parameters:
book (
Devhelp.Book
) – aDevhelp.Book
.
Emits the
Devhelp.BookList
::remove-book
signal.It is a programmer error to call this function if book is not present in self.
New in version 3.30.
- do_add_book(book) virtual¶
- Parameters:
book (
Devhelp.Book
) – aDevhelp.Book
.
Emits the
Devhelp.BookList
::add-book
signal.It is a programmer error to call this function if book is already inserted in book_list.
New in version 3.30.
- do_get_books() virtual¶
- Returns:
the
GLib.List
ofDevhelp.Book
's part of book_list.- Return type:
Gets the list of
Devhelp.Book
's part of book_list, in no particular order. Each book ID in the list is unique (seeDevhelp.Book.get_id
()).New in version 3.30.
- do_remove_book(book) virtual¶
- Parameters:
book (
Devhelp.Book
) – aDevhelp.Book
.
Emits the
Devhelp.BookList
::remove-book
signal.It is a programmer error to call this function if book is not present in book_list.
New in version 3.30.
Signal Details¶
- Devhelp.BookList.signals.add_book(book_list, book)¶
- Signal Name:
add-book
- Flags:
- Parameters:
book_list (
Devhelp.BookList
) – The object which received the signalbook (
Devhelp.Book
) – theDevhelp.Book
being added.
The
::add-book
signal is emitted when aDevhelp.Book
is added to aDevhelp.BookList
.The default object method handler adds book to the internal
GLib.List
of book_list after verifying that book is not already present in the list.New in version 3.30.
- Devhelp.BookList.signals.remove_book(book_list, book)¶
- Signal Name:
remove-book
- Flags:
- Parameters:
book_list (
Devhelp.BookList
) – The object which received the signalbook (
Devhelp.Book
) – theDevhelp.Book
being removed.
The
::remove-book
signal is emitted when aDevhelp.Book
is removed from aDevhelp.BookList
.The default object method handler removes book from the internal
GLib.List
of book_list, and verifies that book was present in the list and that book was not inserted several times.New in version 3.30.