OmronPID
Loading...
Searching...
No Matches
notify.h
1#ifndef NOTIFY_H
2#define NOTIFY_H
3
4#include <QObject>
5#include <QNetworkAccessManager>
6#include <QNetworkReply>
7
11class Notify : public QObject
12{
13Q_OBJECT
14public:
19 Notify(QObject *parent = nullptr);
20
24 virtual ~Notify();
25
37void setLINE(const QString& message, const QString& token);
38private slots:
43 void handleNetworkReply(QNetworkReply *reply);
44
45private:
46 QNetworkAccessManager networkManager_{};
47 QUrl url_{};
48};
49
50#endif // NOTIFY_H
The Notify class provides a way to send notifications to different services.
Definition: notify.h:12
void setLINE(const QString &message, const QString &token)
Sends a notification to LINE messaging API with the provided message and token.
Definition: notify.cpp:12
virtual ~Notify()
Destroys the Notify object.
Definition: notify.cpp:10