Use kdelibs coding style
This commit is contained in:
parent
0084798a2c
commit
d965371d23
31 changed files with 201 additions and 234 deletions
|
@ -17,7 +17,6 @@
|
|||
* along with Danbooru Client. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef DANBOORUSERVICE_H
|
||||
#define DANBOORUSERVICE_H
|
||||
|
||||
|
@ -102,7 +101,6 @@ private:
|
|||
|
||||
public:
|
||||
|
||||
|
||||
/**
|
||||
* @brief Construct a default instance of the service.
|
||||
*
|
||||
|
@ -114,7 +112,7 @@ public:
|
|||
* @param parent The parent QObject
|
||||
*
|
||||
**/
|
||||
DanbooruService(QUrl boardUrl=QUrl(), QString username = QString(),
|
||||
DanbooruService(QUrl boardUrl = QUrl(), QString username = QString(),
|
||||
QString password = QString(), KImageCache *cache = 0,
|
||||
QObject *parent = 0);
|
||||
|
||||
|
@ -222,16 +220,16 @@ public:
|
|||
* @param blacklist A QSet<QString> including unwanted tags.
|
||||
*
|
||||
**/
|
||||
void setBlacklist(const QStringList& blacklist);
|
||||
void setBlacklist(const QStringList &blacklist);
|
||||
|
||||
/**
|
||||
* @brief Set the tag blacklist.
|
||||
*
|
||||
* If a tag is in the blacklist, posts tagged with it will not be downloaded.
|
||||
*
|
||||
**/
|
||||
/**
|
||||
* @brief Set the tag blacklist.
|
||||
*
|
||||
* If a tag is in the blacklist, posts tagged with it will not be downloaded.
|
||||
*
|
||||
**/
|
||||
|
||||
void setBlacklist(const QSet<QString>& blacklist);
|
||||
void setBlacklist(const QSet<QString> &blacklist);
|
||||
|
||||
/**
|
||||
* @brief Set the maximum allowed rating for the board.
|
||||
|
@ -248,7 +246,7 @@ public:
|
|||
* @param url The URL to connect to.
|
||||
* @return void
|
||||
*/
|
||||
void setBoardUrl(const QUrl& url);
|
||||
void setBoardUrl(const QUrl &url);
|
||||
|
||||
/**
|
||||
* @brief Set an image cache to use.
|
||||
|
@ -264,7 +262,7 @@ public:
|
|||
* @param username The username to use.
|
||||
*
|
||||
**/
|
||||
void setUserName(const QString& username);
|
||||
void setUserName(const QString &username);
|
||||
|
||||
/**
|
||||
* @brief Set the password used for login.
|
||||
|
@ -276,14 +274,13 @@ public:
|
|||
* @param password The salted password to use.
|
||||
*
|
||||
**/
|
||||
void setPassword(const QString& password);
|
||||
void setPassword(const QString &password);
|
||||
|
||||
void setMaxPosts(int number);
|
||||
|
||||
void setCurrentPage(int page);
|
||||
|
||||
void setPostTags(const QStringList& tags);
|
||||
|
||||
void setPostTags(const QStringList &tags);
|
||||
|
||||
private Q_SLOTS:
|
||||
void processPostList(KJob *job);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue