Add the right constructor for the service base class
This commit is contained in:
parent
08498f5ee2
commit
e3f8e5ff31
2 changed files with 30 additions and 7 deletions
|
@ -22,6 +22,24 @@
|
|||
|
||||
namespace Danbooru {
|
||||
|
||||
DanbooruServiceBase::DanbooruServiceBase(QUrl boardUrl, QString username,
|
||||
QString password, KImageCache *cache,
|
||||
QObject *parent):
|
||||
QObject(parent),
|
||||
m_url(boardUrl),
|
||||
m_username(username),
|
||||
m_password(password),
|
||||
m_maxRating(Danbooru::DanbooruPost::Safe),
|
||||
m_maxPosts(10),
|
||||
m_currentPage(1),
|
||||
m_tags(QStringList()),
|
||||
m_postsToFetch(0),
|
||||
m_cache(cache){
|
||||
}
|
||||
|
||||
DanbooruServiceBase::~DanbooruServiceBase() {
|
||||
}
|
||||
|
||||
const QStringList DanbooruServiceBase::allowedRatings() const {
|
||||
|
||||
QStringList ratings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue