[anjuta/libgit2-glib] libanjuta: Implement IAnjutaRefreshable interface
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/libgit2-glib] libanjuta: Implement IAnjutaRefreshable interface
- Date: Mon, 22 Jul 2013 23:18:28 +0000 (UTC)
commit 0bf0188dd98bbaa3f3c594133da65df51aa2f6f7
Author: James Liggett <jrliggett cox net>
Date: Sun Jul 21 00:40:56 2013 -0700
libanjuta: Implement IAnjutaRefreshable interface
libanjuta/interfaces/libanjuta.idl | 43 ++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 6db48ba..9ce0dcb 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -6839,3 +6839,46 @@ interface IAnjutaIndenter
*/
void indent (IAnjutaIterable* start, IAnjutaIterable* end);
}
+
+/**
+ * SECTION: ianjuta-automatic-refreshable
+ * @title: IAnjutaAutomaticRefreshable
+ * @short_description: Interface for objects that update information
+ * automatically in response to an outside event, such as
+ * file changes.
+ * @include: libanjuta/interfaces/ianjuta-automatic-refreshable
+ *
+ */
+
+interface IAnjutaRefreshable
+{
+ /**
+ * ianjuta_refreshable_refresh:
+ * @obj: Self
+ * @err: Error propagation
+ *
+ * Manually update refreshable data
+ */
+ void refresh ();
+
+ /**
+ * ianjuta_refreshable_start_monitor:
+ * @obj: Self
+ * @err: Error propagation
+ *
+ * Start monitoring for changes to external sources, such as files, that
+ * would cause the data contained by this object to become outdated. The
+ * object will refresh itself once these changes are detected.
+ */
+ void start_monitor();
+
+ /**
+ * ianjuta_refreshable_stop_monitor:
+ * @obj: Self
+ * @err: Error propagation
+ *
+ * Stop monitoring for changes. This method cleans up any resources created
+ * by ianjuta_refreshable_start_monitor.
+ */
+ void stop_monitor();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]