Commit graph

24 commits

Author SHA1 Message Date
d965371d23 Use kdelibs coding style 2015-03-21 23:05:57 +01:00
feded2bdf3 Allow getting pool pages as well as posts
Currently this clashes, meaning that there will be problems if you get
pools and then posts...
2015-03-01 22:34:14 +01:00
b6d71f3cbf --pedantic; 2015-02-22 10:49:29 +01:00
114df7aa31 Move tag downloading to a separate slot instead of a lambda
If tag downloading is still in progress when the application is closed,
it will try to access the instance's pointer, leading to a crash.
2015-02-21 16:13:42 +01:00
8b56570223 Normalize license headers in all source files 2015-02-21 14:57:16 +01:00
aaf8adf560 Add a reset() function to reset the service to default settings 2015-02-14 14:45:29 +01:00
0200965e99 Add the missing method setBlacklist(const QStringList&)
On top of that, make nextPostPage() Q_INVOKABLE so it can be used from
QML.
2015-02-13 07:46:57 +01:00
f4566d3aca Large refactoring of DanbooruService
The idea is to use a long-lived DanbooruService instance, rather than
recreating it, so move most of the parameters via setters and getters.

Still needs some adjustments for resetting.
2015-02-12 21:31:30 +01:00
d94084bc25 Add setters for board url, cache, username, and password to DanbooruService
Remove also a useless constructor
2015-02-08 23:52:34 +01:00
f8b59e78b5 Clean up DanbooruService
Remove multi_get for now (broken in kio_http)
Add a default constructor (needed for QML)
Explicitly delete posts
2015-02-05 23:47:29 +01:00
f470558d20 Clean up includes 2014-10-12 14:27:44 +02:00
06f4f8d1fc [libdanbooru/danbooruservice] This is also unneeded 2014-10-06 20:52:07 +02:00
d5e807791e [libdanbooru/danbooruservice] These slots are unneeded now 2014-10-06 20:49:53 +02:00
39aac8c95b Run astyle-kdelibs on the source 2014-10-05 09:53:19 +02:00
3f760a7690 [libdanbooru/danbooruservice] Move thumbnail downloading to a lambda
slot

This greatly reduces complexity and prevents the ugly passing of
properties along the jobs.
2014-10-04 15:36:10 +02:00
ce6a1cbcff [libdanbooru/danbooruservice] Fixup types and flags 2014-10-04 00:41:01 +02:00
d96b7bdaf2 [libdanbooru] First stab at making everything compile 2014-10-04 00:04:02 +02:00
d7fec181e2 KUrl -> QUrl 2014-10-03 23:06:43 +02:00
f5aa505e0b Use the preferred way for Qt includes
This is to pave the way for the planned KF5 port
2014-08-28 09:21:24 +02:00
89632643aa Updated documentation 2013-06-09 17:12:04 +02:00
e9fde425df Support an image cache like the Python version does 2013-04-01 11:31:52 +02:00
aeba76cd06 - Implement related tags in the Danbooru interface;
- Fix return types due to utils change
2013-03-23 16:31:55 +01:00
869620d6f6 Implement most missing functions 2013-03-17 12:00:30 +01:00
fc691a9301 First semi-working implementation in c++ of remote Danbooru calls 2013-02-24 18:28:37 +01:00