/
alexashkin
/
telegraph
Обзор
Документация
Войти
/
alexashkin
/
telegraph
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/tdlib/tdlibcontroller.h
37 строк
1 KB
mbarashkov
Завершение ВЕЛИКОЛЕПНОГО рефакторинга
21 фев 2025, 20:32
21 фев 2025, 20:32
b9fcdf4
Код
Авторство
О чём код?
#pragma once #include <QObject> #include <QNetworkConfigurationManager> #include "tdlibrequestservice.h" #include "tdlibrequestfactory.h" #include "tdlibrequestsender.h" #include "tdlibresponsehandler.h" #include "../device/osservice.h" class TDLibController : public QObject { Q_OBJECT public: explicit TDLibController(AppSettings *settings, QObject *parent = nullptr); TDLibResponseHandler* getResponseHandler() const { return const_cast<TDLibResponseHandler*>(&responseHandler);}; signals: private: QNetworkConfigurationManager *networkConfigurationManager; void handleNetworkConfigurationChanged(const QNetworkConfiguration&); QString getApplicationDataPath() const; void createDBDirectoryIfNeeded() const; void handleOpenWithChanged(); AppSettings *appSettings; TDLibState tdLibState; TDLibRequestFactory requestFactory; TDLibRequestService requestService; TDLibRequestSender requestSender; TDLibResponseHandler responseHandler; OSService osService; };