[ekiga] libnotify plugin: made it export whether it has actions or not



commit 358a686c3287ab4883dde9c1fc5e674de9d6be29
Author: Julien Puydt <jpuydt free fr>
Date:   Mon Nov 12 10:56:59 2012 +0100

    libnotify plugin: made it export whether it has actions or not

 plugins/libnotify/libnotify-main.cpp |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/plugins/libnotify/libnotify-main.cpp b/plugins/libnotify/libnotify-main.cpp
index 3e0b3ed..b604bbe 100644
--- a/plugins/libnotify/libnotify-main.cpp
+++ b/plugins/libnotify/libnotify-main.cpp
@@ -65,6 +65,8 @@ public:
   const std::string get_description () const
   { return "\tService pushing user notifications to the desktop"; }
 
+  boost::optional<bool> get_bool_property (const std::string name) const;
+
 private:
 
   bool has_actions;
@@ -174,6 +176,19 @@ LibNotify::~LibNotify ()
   notify_uninit ();
 }
 
+boost::optional<bool>
+LibNotify::get_bool_property (const std::string name) const
+{
+  boost::optional<bool> result;
+
+  if (name == "actions") {
+
+    result.reset (has_actions);
+  }
+
+  return result;
+}
+
 static void
 on_notif_closed (NotifyNotification* /*notif*/,
 		 gpointer data)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]