Commit graph

98 commits

Author SHA1 Message Date
08402657a0 Add a limit option to the pool retrieval functions
To download less than the maximum (and ease testing)
2015-08-23 23:07:50 +02:00
c5b8fccc6f Build test application for Konachan API 2015-08-23 17:26:41 +02:00
7caa2d6956 Add missing (and needed) functions 2015-08-23 17:26:17 +02:00
9a3fd3819f Basic infrastructure for test tools to check that things are working 2015-08-23 15:31:18 +02:00
f088eb6948 Adapt build system to the newer files + libdanbooru version bump 2015-08-23 14:29:47 +02:00
e998ad6882 Add missing methods to the Konachan API 2015-08-23 00:58:28 +02:00
f2ffeb8cc2 Re-enable debug for Konachan 2015-08-23 00:31:48 +02:00
ba79760a4b Merge branch 'master' into multiple_apis 2015-08-23 00:16:43 +02:00
bff3d33fc3 Don't detach and create temporary QLists when there's no need 2015-08-23 00:16:03 +02:00
22eeb0757d WIP: implementations of Konachan / yande.re posts 2015-08-23 00:15:23 +02:00
e3f8e5ff31 Add the right constructor for the service base class 2015-08-22 20:03:01 +02:00
08498f5ee2 WIP, Konachan API implementation 2015-08-22 20:02:17 +02:00
0c18e639a9 Implement all common methods 2015-08-22 18:21:50 +02:00
4547000491 Adjust virtual / non virtual for some methods 2015-08-22 18:21:28 +02:00
6fa8e1ae9e Document all APIs and reorganize methods for easier understanding 2015-08-22 17:58:43 +02:00
4c332d26b3 Revert "Remove files added by mistake in the wrong branch"
Those actually belong to this branch.

This reverts commit e6bb528074.
2015-08-22 16:37:42 +02:00
e6bb528074 Remove files added by mistake in the wrong branch 2015-08-11 22:39:26 +02:00
e764ba2c9d Merge branch 'master' into multiple_apis 2015-08-10 17:09:52 +02:00
4550f54f32 Return gracefully if posts are not found
This fixes the spinner going on forever when non-existent tags are added.
2015-08-10 12:40:55 +02:00
9b438c9edc Supported operations for various APIs 2015-05-31 17:06:02 +02:00
615e594e39 Initial experimental work for multiple Danbooru APIs 2015-03-22 00:32:48 +01:00
d965371d23 Use kdelibs coding style 2015-03-21 23:05:57 +01:00
0084798a2c Port to categorized logging 2015-03-20 00:15:04 +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
a11bc79309 Add a sampleUrl function to get back the sample url of an image
The sample url is a mid-scaled version of the image, used for
previewing.
2015-02-26 00:20:21 +01:00
2c455a354c Warnings--; 2015-02-24 00:17:32 +01:00
74a7044fd3 Use a less generic header name for versions 2015-02-22 15:46:25 +01:00
959d7c89a9 Port utils.cpp away from deprecated Qt API 2015-02-22 11:59:22 +01:00
b6d71f3cbf --pedantic; 2015-02-22 10:49:29 +01:00
7dbffa0271 Add a default destructor 2015-02-21 16:26:43 +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
92613218e1 Bump libdanbooru version 2015-02-21 15:48:26 +01:00
b5d30ce512 Use ecm_setup_version instead of configure_file 2015-02-21 14:58:24 +01:00
8b56570223 Normalize license headers in all source files 2015-02-21 14:57:16 +01:00
ebd9e559ef QJson is no longer used 2015-02-21 10:38:51 +01:00
7ccd845eba Clean up debug statements 2015-02-20 23:34:12 +01:00
9b47e26bcb Uncomment qDebugs for debugging 2015-02-15 00:58:05 +01:00
4f21002603 Fix Qt includes 2015-02-15 00:15:48 +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
186b0fa0ff Allow using QSet<QString> with QVariants 2015-02-08 10:17:00 +01:00
bec49f9bb7 Clean up 2015-02-07 15:19:10 +01:00
dc321e88ce Comment out unneeded code 2015-02-07 00:03:51 +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
4fbfdf753e Add a default constructor for DanbooruPost 2015-02-05 00:28:02 +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