OmronPID
Loading...
Searching...
No Matches
Public Member Functions
Notify Class Reference

The Notify class provides a way to send notifications to different services. More...

#include <notify.h>

Inheritance diagram for Notify:

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.
 

Detailed Description

The Notify class provides a way to send notifications to different services.

Constructor & Destructor Documentation

◆ Notify()

Notify::Notify ( QObject *  parent = nullptr)

Constructs a Notify object with a parent object.

Parameters
parentThe parent object of this object

Member Function Documentation

◆ setLINE()

void Notify::setLINE ( const QString &  message,
const QString &  token 
)

Sends a notification to LINE messaging API with the provided message and token.

Parameters
messageThe message to send.
tokenThe LINE API token to authenticate with.

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.


The documentation for this class was generated from the following files: