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.BookListobject.- Return type:
Gets the default
Devhelp.BookListobject. 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.Settingsobject as returned byDevhelp.Settings.get_default().New in version 3.30.
- classmethod new()¶
- Returns:
a new empty
Devhelp.BookListobject.- Return type:
New in version 3.30.
- add_book(book)¶
- Parameters:
book (
Devhelp.Book) – aDevhelp.Book.
Emits the
Devhelp.BookList::add-booksignal.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.ListofDevhelp.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-booksignal.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-booksignal.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.ListofDevhelp.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-booksignal.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.Bookbeing added.
The
::add-booksignal is emitted when aDevhelp.Bookis added to aDevhelp.BookList.The default object method handler adds book to the internal
GLib.Listof 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.Bookbeing removed.
The
::remove-booksignal is emitted when aDevhelp.Bookis removed from aDevhelp.BookList.The default object method handler removes book from the internal
GLib.Listof book_list, and verifies that book was present in the list and that book was not inserted several times.New in version 3.30.