Commit graph

25 commits

Author SHA1 Message Date
4e63e1b246 Make Api virtual.
I think this is a bit better than what I had before.
Still a mess, but that's conditional compilation for you.
2020-08-29 17:10:41 +01:00
80bfbc640a Add option to choose between restc-cpp and nap
I don't think this is very clean, but they might fix
the bug in restc-cpp that is currently holding this
project back, and I might want to go back to it.
I might refactor this into a virtual class.
2020-08-29 16:42:34 +01:00
be1a19f7c7 Move backend name to config file
Still, only one backend is available at this point.
2020-08-22 02:30:00 +01:00
c5e0b01b06 Add OriginsDB base class and a make() function
This fixes the build. The make function for the moment
just takes a string since that's all that's ever needed.
This is supposed to change since the postgresql database
will need a port, an url, password etc. Maybe
connection strings are still a thing, but if not then
I'll probably need to find a way to accept arbitrary
parameters in OriginsDB::make().
2020-08-22 01:57:14 +01:00
1fcd7bd749 Append the version number to the name reported to the server 2020-08-16 15:42:45 +01:00
cef5060eb2 Add app name and reason to config header 2020-08-16 14:34:19 +01:00
d1716a0c91 Add api_key to the config file 2020-08-16 14:26:43 +01:00
1c911f36b0 Manage connection errors: print and return 1 2020-08-16 13:54:26 +01:00
a3153bcc66 Move TimerBase's g_extra_wait out to the settings file 2020-08-16 13:31:08 +01:00
3866462ff5 Add worker_threads setting 2020-08-11 01:33:11 +01:00
35118dbe4e Get db path from settings file instead of using a hardcoded value 2020-08-10 13:21:04 +01:00
2717817958 Attach GPL3+ licence 2020-08-10 11:22:25 +01:00
6b9502ea3e Store items and icons into the db 2020-08-10 02:34:09 +01:00
8fa434e76e Timer queries the remote api 2020-08-09 21:07:54 +01:00
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
e94131ac32 Add SQLiteCpp subproject 2020-06-23 10:58:19 +02:00
b4c9b013a0 Add fame_list() to Api.
With this commit the whole remote API is currently covered.
2020-06-23 10:29:59 +02:00
5b480f3ae5 Add market_list() to Api. 2020-06-23 10:19:02 +02:00
fd5c29ca54 Add items_icons() to Api. 2020-06-22 22:29:14 +02:00
fd147c4f2a Add items_list() to Api. 2020-06-22 20:53:56 +02:00
939bcffc61 Add who_am_i() method to Api. 2020-06-22 19:40:37 +02:00
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
bab47fbd0b Parse the date from the responce header 2020-06-20 02:01:52 +02:00
96e35a5814 Giving code some initial structure 2020-06-20 01:27:47 +02:00
e0611ec6ff Create src subdir 2020-06-20 00:15:24 +02:00
Renamed from main.cpp (Browse further)