SecretService 0.13.2d47dfe
SecretService is base back end library for your c++ Qt projects.
yourtimebot.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2023-2023 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef YOURTIMEBOT_H
9#define YOURTIMEBOT_H
10
11#include "YourTimeDeliviry/idatabase.h"
12#include <qTbot/telegramrestbot.h>
13
17class YourTimeBot: public qTbot::TelegramRestBot
18{
19 Q_OBJECT
20public:
21 YourTimeBot(const QSharedPointer<YourTimeDeliviry::IDataBase>& db);
22 bool login(const QByteArray &token) override;
23 // IBot interface
24protected:
25 void handleIncomeNewUpdate(const QSharedPointer<qTbot::iUpdate> &update) override;
26
27private:
28 QSharedPointer<YourTimeDeliviry::IDataBase> _db;
29
30};
31
32#endif // YOURTIMEBOT_H
The YourTimeBot class.
Definition yourtimebot.h:18
bool login(const QByteArray &token) override
void handleIncomeNewUpdate(const QSharedPointer< qTbot::iUpdate > &update) override