The Book class represents a book object.
More...
#include <book.h>
|
| Book () |
| Construct a new Book object.
|
|
| Book (const QString &title, const QStringList &authors, const QString &isbn, const QDate &publicationDate) |
| Construct a new Book object.
|
|
void | setTitle (const QString &title) |
| Set the book's title.
|
|
void | setAuthors (const QStringList &authors) |
| Set the book's author(s).
|
|
void | setIsbn (const QString &isbn) |
| Set the book's ISBN.
|
|
void | setPublicationDate (const QDate &publicationDate) |
| Set the book's Publication Date.
|
|
QString | getTitle () const |
| Get the book's title.
|
|
QStringList | getAuthors () const |
| Get the book's author(s)
|
|
QString | getIsbn () const |
| Get the book's ISBN.
|
|
QDate | getPublicationDate () const |
| Get the book's Publication Date.
|
|
The Book class represents a book object.
◆ Book()
Book::Book |
( |
const QString & | title, |
|
|
const QStringList & | authors, |
|
|
const QString & | isbn, |
|
|
const QDate & | publicationDate ) |
Construct a new Book object.
- Parameters
-
title | The title of the book. |
authors | The author(s) of the book. |
isbn | The ISBN of the book. |
publicationDate | The publication date of the book. |
◆ getAuthors()
QStringList Book::getAuthors |
( |
| ) |
const |
Get the book's author(s)
- Returns
- QStringList A list of the author(s) of the book.
◆ getIsbn()
QString Book::getIsbn |
( |
| ) |
const |
Get the book's ISBN.
- Returns
- QString
◆ getPublicationDate()
QDate Book::getPublicationDate |
( |
| ) |
const |
Get the book's Publication Date.
- Returns
- QDate
◆ getTitle()
QString Book::getTitle |
( |
| ) |
const |
Get the book's title.
- Returns
- QString The title of the book.
◆ setAuthors()
void Book::setAuthors |
( |
const QStringList & | authors | ) |
|
Set the book's author(s).
- Parameters
-
authors | A list of the author(s) of the book. |
◆ setIsbn()
void Book::setIsbn |
( |
const QString & | isbn | ) |
|
Set the book's ISBN.
The ISBN line edit used an input mask to ensure that the ISBN is entered in the correct format.
- Parameters
-
isbn | The ISBN of the book. |
◆ setPublicationDate()
void Book::setPublicationDate |
( |
const QDate & | publicationDate | ) |
|
Set the book's Publication Date.
- Parameters
-
publicationDate | The publication date of the book. |
◆ setTitle()
void Book::setTitle |
( |
const QString & | title | ) |
|
Set the book's title.
- Parameters
-
title | The title of the book. |
The documentation for this class was generated from the following files:
- /Users/mitchcampbell/Local Projects/COS3711-03/COS3711-03-01/src/book.h
- /Users/mitchcampbell/Local Projects/COS3711-03/COS3711-03-01/src/book.cpp