Add the right constructor for the service base class

This commit is contained in:
Luca Beltrame 2015-08-22 20:03:01 +02:00
parent 08498f5ee2
commit e3f8e5ff31
2 changed files with 30 additions and 7 deletions

View file

@ -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;