]> git.0d.be Git - empathy.git/blobdiff - ubuntu-online-accounts/mc-plugin/empathy-webcredentials-monitor.c
add empathy-webcredentials-monitor
[empathy.git] / ubuntu-online-accounts / mc-plugin / empathy-webcredentials-monitor.c
diff --git a/ubuntu-online-accounts/mc-plugin/empathy-webcredentials-monitor.c b/ubuntu-online-accounts/mc-plugin/empathy-webcredentials-monitor.c
new file mode 100644 (file)
index 0000000..e8911bc
--- /dev/null
@@ -0,0 +1,116 @@
+#include "config.h"
+
+#include "empathy-webcredentials-monitor.h"
+
+G_DEFINE_TYPE (EmpathyWebcredentialsMonitor, empathy_webcredentials_monitor, G_TYPE_OBJECT)
+
+enum
+{
+  FIRST_PROP = 1,
+  N_PROPS
+};
+
+/*
+enum
+{
+  LAST_SIGNAL
+};
+
+static guint signals[LAST_SIGNAL];
+*/
+
+struct _EmpathyWebcredentialsMonitorPriv
+{
+  gpointer badger;
+};
+
+static void
+empathy_webcredentials_monitor_get_property (GObject *object,
+    guint property_id,
+    GValue *value,
+    GParamSpec *pspec)
+{
+  //EmpathyWebcredentialsMonitor *self = EMPATHY_WEBCREDENTIALS_MONITOR (object);
+
+  switch (property_id)
+    {
+      default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+        break;
+    }
+}
+
+static void
+empathy_webcredentials_monitor_set_property (GObject *object,
+    guint property_id,
+    const GValue *value,
+    GParamSpec *pspec)
+{
+  //EmpathyWebcredentialsMonitor *self = EMPATHY_WEBCREDENTIALS_MONITOR (object);
+
+  switch (property_id)
+    {
+      default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+        break;
+    }
+}
+
+static void
+empathy_webcredentials_monitor_constructed (GObject *object)
+{
+  //EmpathyWebcredentialsMonitor *self = EMPATHY_WEBCREDENTIALS_MONITOR (object);
+  void (*chain_up) (GObject *) =
+      ((GObjectClass *) empathy_webcredentials_monitor_parent_class)->constructed;
+
+  chain_up (object);
+}
+
+static void
+empathy_webcredentials_monitor_dispose (GObject *object)
+{
+  //EmpathyWebcredentialsMonitor *self = EMPATHY_WEBCREDENTIALS_MONITOR (object);
+  void (*chain_up) (GObject *) =
+      ((GObjectClass *) empathy_webcredentials_monitor_parent_class)->dispose;
+
+  chain_up (object);
+}
+
+static void
+empathy_webcredentials_monitor_finalize (GObject *object)
+{
+  //EmpathyWebcredentialsMonitor *self = EMPATHY_WEBCREDENTIALS_MONITOR (object);
+  void (*chain_up) (GObject *) =
+      ((GObjectClass *) empathy_webcredentials_monitor_parent_class)->finalize;
+
+  chain_up (object);
+}
+
+static void
+empathy_webcredentials_monitor_class_init (
+    EmpathyWebcredentialsMonitorClass *klass)
+{
+  GObjectClass *oclass = G_OBJECT_CLASS (klass);
+
+  oclass->get_property = empathy_webcredentials_monitor_get_property;
+  oclass->set_property = empathy_webcredentials_monitor_set_property;
+  oclass->constructed = empathy_webcredentials_monitor_constructed;
+  oclass->dispose = empathy_webcredentials_monitor_dispose;
+  oclass->finalize = empathy_webcredentials_monitor_finalize;
+
+  g_type_class_add_private (klass, sizeof (EmpathyWebcredentialsMonitorPriv));
+}
+
+static void
+empathy_webcredentials_monitor_init (EmpathyWebcredentialsMonitor *self)
+{
+  self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
+      EMPATHY_TYPE_WEBCREDENTIALS_MONITOR, EmpathyWebcredentialsMonitorPriv);
+}
+
+EmpathyWebcredentialsMonitor *
+empathy_webcredentials_monitor_new (void)
+{
+  return g_object_new (EMPATHY_TYPE_WEBCREDENTIALS_MONITOR,
+      NULL);
+}