#include <mediatype.hpp>
◆ MediaType()
MediaType::MediaType |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
◆ ~MediaType()
MediaType::~MediaType |
( |
| ) |
|
|
virtual |
◆ del()
bool del(MediaTypeRecord rec)
SQL function to delete a specific author record. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- bool Success - returns true
◆ depchk()
bool MediaType::depchk |
( |
int |
id | ) |
|
SQL function to check if media type is used in books table. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- bool - If found as MediaKey in Books table returns true
◆ findAll()
QSqlQuery MediaType::findAll |
( |
| ) |
|
SQL query returning all rows in the table. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- QSqlQuery - Success returns QSqlQuery result of all rows - falure returns null
◆ findAMedia()
bool MediaType::findAMedia |
( |
QString |
strLName | ) |
|
SQL function returns true if author is found for a specific author record. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- bool - Success returns true if author specific first and last name exists
◆ findID()
QSqlQuery MediaType::findID |
( |
quint32 |
id | ) |
|
SQL query returns SQL query result of one row with id. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- QSqlQuery - Success returns QSqlQuery result of rows with ID - falure returns null
◆ findLastID()
quint32 MediaType::findLastID |
( |
| ) |
|
SQL function returns the highest value of ID for all author records. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- unsigned long - Success returns true
◆ findMedia()
QSqlQuery MediaType::findMedia |
( |
QString |
strLName | ) |
|
SQL query returns SQL query result of rows that match the pattern in callstr. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- QSqlQuery - Success returns QSqlQuery result of all rows - falure returns null
◆ findMediaTypeRecord()
SQL function returns true if author is found for a specific author record. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- bool - Success returns true
◆ getLastErr()
quint32 MediaType::getLastErr |
( |
| ) |
|
|
inline |
◆ getLastErrMsg()
QString MediaType::getLastErrMsg |
( |
| ) |
|
|
inline |
◆ getMediaTypeRec()
SQL query returns a MediaTypeRecord with data to match the author in strcall. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- MediaTypeRecord - Success returns MediaTypeRecord result - falure returns empty record
◆ save()
SQL function to save author record. This is an interface functiont to perform SQL database functions regardless of what type of database is used.
- Returns
- bool - Success returns true
◆ update()
SQL function to update a specific author record. This is an interface function to perform SQL database functions regardless of what type of database is used.
- Returns
- bool - Success returns true
◆ db
QSqlDatabase MediaType::db |
|
private |
◆ err
Property local value storage This property holds the last error number to be returned.
The number will be returned from the database table handler upon last action.
The default value of this property is QSqlDatabase::NoError (0).
Access functions:
◆ errmsg
QString MediaType::errmsg |
|
read |
Property local value storage This property holds the message text to be displayed.
The text will be returned from the database table handler upon last action.
The default value of this property is an empty string.
Access functions:
The documentation for this class was generated from the following files: