fix timer
This commit is contained in:
@@ -122,4 +122,7 @@ class BluetoothController : public DbusConnection {
|
||||
|
||||
// HID Authorization handler
|
||||
void authorizeHIDDevice(const std::string &object_path);
|
||||
|
||||
Glib::RefPtr<Gio::DBus::NodeInfo> m_node_info;
|
||||
std::shared_ptr<Gio::DBus::InterfaceVTable> m_interface_vtable;
|
||||
};
|
||||
|
||||
@@ -37,11 +37,11 @@ struct NotifyMessage {
|
||||
std::string body;
|
||||
std::vector<std::string> actions;
|
||||
NotificationUrgency urgency = NORMAL;
|
||||
int32_t expire_timeout;
|
||||
int32_t expire_timeout = -1;
|
||||
// Callback to invoke when an action is triggered
|
||||
std::function<void(const std::string &action_id)> on_action;
|
||||
// Guard to prevent multiple action invocations across mirrors
|
||||
std::shared_ptr<bool> actionInvoked;
|
||||
std::shared_ptr<bool> actionInvoked = std::make_shared<bool>(false);
|
||||
// image data (if any) from dbus
|
||||
std::optional<Glib::RefPtr<Gdk::Pixbuf>> imageData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user