Acts as an intermediary to process and forward toast notifications to the display mechanism. More...
#include <ToastProxy.h>
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. | |
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.
|
delete |
Deleted default constructor.
ToastProxy
objects can only be constructed with a DesktopToast
and a parent QObject
, reinforcing its role as an intermediary.
|
explicit |
Constructs a ToastProxy instance.
toast | A pointer to the DesktopToast object that will display the toast notifications. The proxy does not take ownership of this object. |
parent | A pointer to the parent QObject for this proxy, allowing for proper object hierarchy and memory management. |
|
slot |
Processes an incoming ToastMetaProtocol
.
ToastMetaProtocol
objects. Upon reception, it will extract the necessary information and typically forward it to the associated DesktopToast
instance for display. protocolMeta | A constant reference to the ToastMetaProtocol containing the toast data. |