]> WPIA git - cassiopeia.git/blob - src/database.h
add: initial mysql-related stuff for job fetching
[cassiopeia.git] / src / database.h
1 #pragma once
2
3 #include <string>
4 #include <memory>
5
6 struct Job {
7     std::string id;
8     std::string task;
9     std::string from;
10     std::string to;
11 };
12
13 class JobProvider {
14 public:
15     virtual std::shared_ptr<Job> fetchJob() = 0;
16     virtual bool finishJob( std::shared_ptr<Job> job ) = 0;
17 };