| 1 | #cxx . . $ `<file>/src/sql/RecordingsDB.h`/ifndef SRC_SQL_RECORDINGSDB_H_ |
| 2 | #define SRC_SQL_RECORDINGSDB_H_cxx . . $ `src/sql/RecordingsDB.h:2:9`! |
| 3 | |
| 4 | #include "SQLConnection.h"cxx . . $ `<file>/src/sql/SQLConnection.h`/ |
| 5 | |
| 6 | struct RecordingDBInfocxx . . $ RecordingDBInfo# |
| 7 | { |
| 8 | stdcxx . . $ std/::stringcxx . . $ std/string# recordingIdcxx . . $ RecordingDBInfo#recordingId.; |
| 9 | int playCountcxx . . $ RecordingDBInfo#playCount. = 0; |
| 10 | int lastPlayedPositioncxx . . $ RecordingDBInfo#lastPlayedPosition. = 0; |
| 11 | time_t lastSeencxx . . $ RecordingDBInfo#lastSeen. = 0; |
| 12 | }; |
| 13 | |
| 14 | class RecordingsDBcxx . . $ RecordingsDB# : public SQLConnectioncxx . . $ SQLConnection# |
| 15 | { |
| 16 | public: |
| 17 | RecordingsDBcxx . . $ RecordingsDB#RecordingsDB(8d4ab0a187bf9331).(stdcxx . . $ std/::stringcxx . . $ std/string# folder); |
| 18 | ~cxx . . $ RecordingsDB#`~RecordingsDB`(ced63f7c635d850d).RecordingsDBcxx . . $ RecordingsDB#(); |
| 19 | bool Setcxx . . $ RecordingsDB#Set(888bf92eab5adb53).(RecordingDBInfocxx . . $ RecordingDBInfo#& recordingDBInfo); |
| 20 | RecordingDBInfocxx . . $ RecordingDBInfo# Getcxx . . $ RecordingsDB#Get(e63488523ab54805).(stdcxx . . $ std/::stringcxx . . $ std/string# recordingsId); |
| 21 | void Cleanupcxx . . $ RecordingsDB#Cleanup(49f6e7a06ebc5aa8).(); |
| 22 | private: |
| 23 | bool MigrateDbIfRequiredcxx . . $ RecordingsDB#MigrateDbIfRequired(c9857a73d68e59ba).(); |
| 24 | bool Migrate0To1cxx . . $ RecordingsDB#Migrate0To1(c9857a73d68e59ba).(); |
| 25 | }; |
| 26 | |
| 27 | #endif /* SRC_SQL_RECORDINGSDB_H_ */ |