2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-11 14:06:25 +00:00
Files
kotatogram-desktop/Telegram/SourceFiles/kotato/json_settings.h

42 lines
688 B
C
Raw Normal View History

2019-10-04 03:58:02 +03:00
/*
This file is part of Kotatogram Desktop,
the unofficial app based on Telegram Desktop.
For license and copyright information please follow this link:
https://github.com/kotatogram/kotatogram-desktop/blob/dev/LEGAL
*/
#pragma once
2019-10-11 06:54:49 +03:00
#include <QtCore/QTimer>
2020-04-21 06:20:14 +03:00
namespace Kotato {
namespace JsonSettings {
2019-10-04 03:58:02 +03:00
2019-10-11 06:54:49 +03:00
class Manager : public QObject {
Q_OBJECT
public:
Manager();
void fill();
void write(bool force = false);
public Q_SLOTS:
2019-10-11 06:54:49 +03:00
void writeTimeout();
private:
void writeDefaultFile();
void writeCurrentSettings();
bool readCustomFile();
void writing();
QTimer _jsonWriteTimer;
};
2019-10-04 03:58:02 +03:00
void Start();
2019-10-11 06:54:49 +03:00
void Write();
2019-10-04 03:58:02 +03:00
void Finish();
2020-04-21 06:20:14 +03:00
} // namespace JsonSettings
} // namespace Kotato