Movie Info Provider: Added response-received signal
authorSimón Pena <spenap@gmail.com>
Sun, 16 May 2010 16:57:26 +0000 (18:57 +0200)
committerSimón Pena <spenap@gmail.com>
Sun, 16 May 2010 17:31:55 +0000 (19:31 +0200)
A signal is emitted when the response is received, notifying
the clients. It doesn't carry data, nor even the success or failure
of the query.

src/mvs-minfo-provider.c

index ca63a3d..5e4289f 100644 (file)
@@ -38,6 +38,15 @@ struct _MvsMInfoProviderPrivate {
         gchar *format;
 };
 
+enum {
+        RESPONSE_RECEIVED,
+        LAST_SIGNAL
+};
+
+static guint
+signals[LAST_SIGNAL] = { 0 };
+
+
 static void
 mvs_minfo_provider_get_property (GObject *object, guint property_id,
                          GValue *value, GParamSpec *pspec)
@@ -96,6 +105,15 @@ mvs_minfo_provider_class_init (MvsMInfoProviderClass *klass)
                                       TMDB_FORMAT,
                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
 
+        signals[RESPONSE_RECEIVED] = g_signal_new ("response-received", MVS_TYPE_MINFO_PROVIDER,
+                        G_SIGNAL_RUN_LAST,
+                        0,
+                        NULL,
+                        NULL,
+                        g_cclosure_marshal_VOID__VOID,
+                        G_TYPE_NONE,
+                        0,
+                        NULL);
 }
 
 static void