CCIMXDesktop
 
Loading...
Searching...
No Matches
ToastProxy.h
Go to the documentation of this file.
1
6#ifndef TOASTPROXY_H
7#define TOASTPROXY_H
8
9#include "core/server/toast_file_gen_and_receiver/ToastMetaProtocol.h" // Includes the data structure for toast messages
10#include <QObject> // Base class for ToastProxy, enabling signals/slots
11
12// Forward declaration to avoid circular dependencies and improve compilation time
13class DesktopToast;
14
24class ToastProxy : public QObject {
25 Q_OBJECT
26
27public:
33 ToastProxy() = delete;
34
42 explicit ToastProxy(DesktopToast* toast, QObject* parent);
43
44public slots:
52 void process_toastMeta(const ToastMetaProtocol& protocolMeta);
53
54private:
60 DesktopToast* toast;
61};
62
63#endif // TOASTPROXY_H
Defines the ToastMetaProtocol struct, used for encapsulating data for toast notifications.
The DesktopToast class is the toast handle classes using less lock messages queue to display the mess...
Definition DesktopToast.h:15
Acts as an intermediary to process and forward toast notifications to the display mechanism.
Definition ToastProxy.h:24
ToastProxy()=delete
Deleted default constructor.
void process_toastMeta(const ToastMetaProtocol &protocolMeta)
Processes an incoming ToastMetaProtocol.
Definition ToastProxy.cpp:11
Represents the metadata and content for a toast notification.
Definition ToastMetaProtocol.h:22