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
17
class
YourTimeBot
:
public
qTbot::TelegramRestBot
18
{
19
Q_OBJECT
20
public
:
21
YourTimeBot
(
const
QSharedPointer<YourTimeDeliviry::IDataBase>& db);
22
bool
login
(
const
QByteArray &token)
override
;
23
// IBot interface
24
protected
:
25
void
handleIncomeNewUpdate
(
const
QSharedPointer<qTbot::iUpdate> &update)
override
;
26
27
private
:
28
QSharedPointer<YourTimeDeliviry::IDataBase> _db;
29
30
};
31
32
#endif
// YOURTIMEBOT_H
YourTimeBot
The YourTimeBot class.
Definition
yourtimebot.h:18
YourTimeBot::login
bool login(const QByteArray &token) override
Definition
yourtimebot.cpp:21
YourTimeBot::handleIncomeNewUpdate
void handleIncomeNewUpdate(const QSharedPointer< qTbot::iUpdate > &update) override
Definition
yourtimebot.cpp:42
src
db
yourtimebot.h
Generated by
1.9.8