|
OmronPID
|
The Notify class provides a way to send notifications to different services. More...
#include <notify.h>
Public Member Functions | |
| Notify (QObject *parent=nullptr) | |
| Constructs a Notify object with a parent object. | |
| virtual | ~Notify () |
| Destroys the Notify object. | |
| void | setLINE (const QString &message, const QString &token) |
| Sends a notification to LINE messaging API with the provided message and token. | |
| Notify::Notify | ( | QObject * | parent = nullptr | ) |
| void Notify::setLINE | ( | const QString & | message, |
| const QString & | token | ||
| ) |
Sends a notification to LINE messaging API with the provided message and token.
This method creates a HTTP POST request to the LINE messaging API using the provided message and token. The request is sent using the QNetworkAccessManager class. The method waits for the reply from the server in a non-blocking manner by connecting to the QNetworkAccessManager::finished signal. Once the reply is received, the Notify::handleNetworkReply() method is called to process the reply.