38 lines
665 B
C++
38 lines
665 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QTimerEvent>
|
|
#include <QTimer>
|
|
#include "telegrambotbase.h"
|
|
#include "execbot.h"
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
|
|
private slots:
|
|
void on_pushButton_1_clicked();
|
|
void on_pushButton_2_clicked();
|
|
void printMessage(TelegramBotAPI::Message msg);
|
|
void printImage(TelegramBotAPI::File file);
|
|
|
|
void on_lineEdit_editingFinished();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
ExecBot bot;
|
|
uint lid;
|
|
QTimer bot_timer;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|