Commit graph

146 commits

Author SHA1 Message Date
King_DuckZ
bf055b5b87 Rename property 2020-08-10 23:15:25 +01:00
King_DuckZ
a930622569 Add more timestamp conversion functions to dateconv.hpp 2020-08-10 22:17:42 +01:00
King_DuckZ
616ac36a34 Populate the shops table 2020-08-10 21:52:56 +01:00
King_DuckZ
417030f4fe Parse the YYYY-MM-DDTHH:MM:SSZ dates correctly
Dates in the json reply seem to come in two different formats.
One is the reply timestamp, second one is the actual
content (for example shop opening dates)
2020-08-10 21:52:56 +01:00
King_DuckZ
9bb2efb2ee Rename TimerGeneric to TimerOroApi
It's not *that* generic, it's really meant
to only work with oro::Api methods
2020-08-10 21:52:56 +01:00
King_DuckZ
5bf036f056 Replace timers with a templated one
They all do the same thing, the only difference
is the method they call on oro::Api, so
template on that
2020-08-10 21:52:56 +01:00
King_DuckZ
4b3d88b2f0 Move more crap to the base class 2020-08-10 21:52:56 +01:00
King_DuckZ
c1e21bb8d6 Add TimerShops 2020-08-10 21:52:56 +01:00
King_DuckZ
9f4a5baebb Store icons into their own separate table 2020-08-10 21:52:56 +01:00
King_DuckZ
8d6b282862 Update submodules 2020-08-10 21:52:56 +01:00
King_DuckZ
35118dbe4e Get db path from settings file instead of using a hardcoded value 2020-08-10 13:21:04 +01:00
King_DuckZ
c05213d576 Remove config_file option 2020-08-10 12:44:54 +01:00
King_DuckZ
2a4fe62427 Add ini file parser from kamokan and meson option for config path 2020-08-10 12:24:39 +01:00
King_DuckZ
2717817958 Attach GPL3+ licence 2020-08-10 11:22:25 +01:00
King_DuckZ
ab8f8b1533 I don't think I need transactions for those 2020-08-10 10:18:15 +01:00
King_DuckZ
5bc151a3ec Refactor timer code
No need to copy-paste that much stuff, especially since
there are going to be more timer types in the future.
2020-08-10 03:01:54 +01:00
King_DuckZ
53ba7febf4 This stuff doesn't need to be in oro 2020-08-10 02:47:55 +01:00
King_DuckZ
eeab1d5c5e Add base64 decoding function 2020-08-10 02:35:27 +01:00
King_DuckZ
6b9502ea3e Store items and icons into the db 2020-08-10 02:34:09 +01:00
King_DuckZ
f2b8abf82b Disable console output from restc-cpp 2020-08-09 22:55:25 +01:00
King_DuckZ
8fa434e76e Timer queries the remote api 2020-08-09 21:07:54 +01:00
King_DuckZ
c0461f6b09 More refactoring 2020-08-09 20:47:04 +01:00
King_DuckZ
73ec4446ea Add support for long timeouts in timers 2020-08-09 20:32:25 +01:00
King_DuckZ
034020e152 Remove thread pool selection code for now 2020-08-09 20:04:22 +01:00
King_DuckZ
9df60f074b Rename classes 2020-08-09 19:28:39 +01:00
King_DuckZ
7fb055cd40 Refactor event code.
This splits the thread pool code from the event code, and
class names are now wrong (I will update them in the next
commit). Also, this disregards the roar11 vs tf library
thing, taskflow was not working anyways and I will probably
remove all the conditional compilation stuff about it for
now.
2020-08-09 19:26:18 +01:00
King_DuckZ
9f0fed98e2 Get the concept working
A bit hackish because see ThreadPool.hpp.
Also code is dirty and it can't be stopped once running.
Building up from here.
2020-08-09 17:29:37 +01:00
King_DuckZ
399f60190f Make methods noexcept where necessary 2020-08-09 17:28:31 +01:00
King_DuckZ
f6cc2ff951 Import roar11's thread pool
See https://roar11.com/2016/01/a-platform-independent-thread-pool-using-c14/
2020-08-09 17:25:33 +01:00
King_DuckZ
fb69fd2289 Split html timed fetch into 2 classes
Signed-off-by: King_DuckZ <king_duckz@gmx.com>
2020-08-01 07:24:45 +02:00
King_DuckZ
3ab4f916d8 Add sample responses as received by the origins server 2020-08-01 07:05:27 +02:00
King_DuckZ
d44529871c Add event loop with thread pool
I think it works

Signed-off-by: King_DuckZ <king_duckz@gmx.com>
2020-08-01 07:02:54 +02:00
King_DuckZ
e3b8b563f0 Add some cmake options to the meson file 2020-06-23 15:14:57 +02:00
King_DuckZ
e94131ac32 Add SQLiteCpp subproject 2020-06-23 10:58:19 +02:00
King_DuckZ
b4c9b013a0 Add fame_list() to Api.
With this commit the whole remote API is currently covered.
2020-06-23 10:29:59 +02:00
King_DuckZ
5b480f3ae5 Add market_list() to Api. 2020-06-23 10:19:02 +02:00
King_DuckZ
fd5c29ca54 Add items_icons() to Api. 2020-06-22 22:29:14 +02:00
King_DuckZ
fd147c4f2a Add items_list() to Api. 2020-06-22 20:53:56 +02:00
King_DuckZ
939bcffc61 Add who_am_i() method to Api. 2020-06-22 19:40:37 +02:00
King_DuckZ
d6a27f814a Pass the base url as a build option
So with SoapUI I can pass -Dbase_url=http://localhost:8080
2020-06-22 19:37:56 +02:00
King_DuckZ
b1376f7379 Default initalise values 2020-06-20 02:02:43 +02:00
King_DuckZ
bab47fbd0b Parse the date from the responce header 2020-06-20 02:01:52 +02:00
King_DuckZ
96e35a5814 Giving code some initial structure 2020-06-20 01:27:47 +02:00
King_DuckZ
e0611ec6ff Create src subdir 2020-06-20 00:15:24 +02:00
King_DuckZ
002f27de1f Not using boost in the end
Although the dependency is still there because
of restc-cpp
2020-06-20 00:11:06 +02:00
King_DuckZ
49af441d48 Proof of concept invoking remote ping call 2020-06-20 00:08:04 +02:00