summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeif Lotfy <seif@lotfy.com>2012-09-08 15:19:54 +0200
committerSeif Lotfy <seif@lotfy.com>2012-09-08 15:19:54 +0200
commite60a81032d8ee0cabffbbb0c556c5f12bbc99a2e (patch)
tree532ef40dba911a9ec34aec867ef6f11294dbbe73
parent32c97ae11f2730ffc45e5d2eff6963cef34d1bcb (diff)
downloadzeitgeist-e60a81032d8ee0cabffbbb0c556c5f12bbc99a2e.tar.gz
Readded fixme
Implemented insert_events_no_reply
-rw-r--r--libzeitgeist/log.vala7
-rw-r--r--libzeitgeist/queued-proxy-wrapper.vala1
2 files changed, 8 insertions, 0 deletions
diff --git a/libzeitgeist/log.vala b/libzeitgeist/log.vala
index df353512..47e33114 100644
--- a/libzeitgeist/log.vala
+++ b/libzeitgeist/log.vala
@@ -100,6 +100,13 @@ public class Log : QueuedProxyWrapper
}
*/
+ public async void insert_events_no_reply (GenericArray<Event> events)
+ throws Error
+ {
+ yield wait_for_proxy ();
+ yield proxy.insert_events (Events.to_variant (events), null);
+ }
+
// FIXME: make variadic
public async Array<uint32> insert_events (GenericArray<Event> events,
Cancellable? cancellable=null) throws Error
diff --git a/libzeitgeist/queued-proxy-wrapper.vala b/libzeitgeist/queued-proxy-wrapper.vala
index a377ec8d..5bdc596c 100644
--- a/libzeitgeist/queued-proxy-wrapper.vala
+++ b/libzeitgeist/queued-proxy-wrapper.vala
@@ -24,6 +24,7 @@
namespace Zeitgeist
{
+// FIXME: private or something
protected abstract class QueuedProxyWrapper : Object
{
public bool proxy_created { get; private set; default = false; }