CCIMXDesktop
 
Loading...
Searching...
No Matches
ToastProxy Class Reference

Acts as an intermediary to process and forward toast notifications to the display mechanism. More...

#include <ToastProxy.h>

Inheritance diagram for ToastProxy:

Public Slots

void process_toastMeta (const ToastMetaProtocol &protocolMeta)
 Processes an incoming ToastMetaProtocol.
 

Public Member Functions

 ToastProxy ()=delete
 Deleted default constructor.
 
 ToastProxy (DesktopToast *toast, QObject *parent)
 Constructs a ToastProxy instance.
 

Detailed Description

Acts as an intermediary to process and forward toast notifications to the display mechanism.

The ToastProxy receives ToastMetaProtocol objects, which encapsulate toast notification data. Its primary role is to take this data and pass it to a DesktopToast instance, which is responsible for rendering and displaying the actual toast notification on the user's desktop. This separation allows for decoupling the toast data generation/reception from its display logic.

Constructor & Destructor Documentation

◆ ToastProxy() [1/2]

ToastProxy::ToastProxy ( )
delete

Deleted default constructor.

  • This ensures that ToastProxy objects can only be constructed with a DesktopToast and a parent QObject, reinforcing its role as an intermediary.

◆ ToastProxy() [2/2]

ToastProxy::ToastProxy ( DesktopToast toast,
QObject *  parent 
)
explicit

Constructs a ToastProxy instance.

Parameters
toastA pointer to the DesktopToast object that will display the toast notifications. The proxy does not take ownership of this object.
parentA pointer to the parent QObject for this proxy, allowing for proper object hierarchy and memory management.

Member Function Documentation

◆ process_toastMeta

void ToastProxy::process_toastMeta ( const ToastMetaProtocol protocolMeta)
slot

Processes an incoming ToastMetaProtocol.

  • This slot is designed to receive ToastMetaProtocol objects. Upon reception, it will extract the necessary information and typically forward it to the associated DesktopToast instance for display.
    Parameters
    protocolMetaA constant reference to the ToastMetaProtocol containing the toast data.

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