aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@src.gnome.org>1999-07-31 05:56:36 +0800
committerJonathan Blandford <jrb@src.gnome.org>1999-07-31 05:56:36 +0800
commit686958286d269319f373226f6522db5c86407746 (patch)
tree25af31b9e5c69883c2cf122dd5e83a101eb1f8e4 /calendar/gui
parent5fdba6c2e5390bcc2a9c0a76df2d2f3bc4a2d43d (diff)
downloadgsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar.gz
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar.bz2
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar.lz
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar.xz
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.tar.zst
gsoc2013-evolution-686958286d269319f373226f6522db5c86407746.zip
add this
svn path=/trunk/; revision=1048
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-conduit.c205
1 files changed, 205 insertions, 0 deletions
diff --git a/calendar/gui/calendar-conduit.c b/calendar/gui/calendar-conduit.c
new file mode 100644
index 0000000000..1fce50a2d9
--- /dev/null
+++ b/calendar/gui/calendar-conduit.c
@@ -0,0 +1,205 @@
+/* $Id$ */
+
+#include <glib.h>
+#include <gnome.h>
+
+#include <pi-source.h>
+#include <pi-socket.h>
+#include <pi-file.h>
+#include <pi-dlp.h>
+#include <pi-version.h>
+
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <utime.h>
+#include <unistd.h>
+#include <pwd.h>
+#include <signal.h>
+#include <errno.h>
+#include <gpilotd/gnome-pilot-conduit.h>
+#include <gpilotd/gnome-pilot-conduit-standard-abs.h>
+
+
+static gint
+match_record (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord **local,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("in match_record\n");
+ return 0;
+}
+static gint
+free_match (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord **local,
+ gpointer data)
+{
+ g_print ("entering free_match\n");
+ *local = NULL;
+
+ return 0;
+}
+static gint
+archive_local (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ gpointer data)
+{
+ g_print ("entering archive_local\n");
+ return 1;
+
+}
+static gint
+archive_remote (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("entering archive_remote\n");
+ return 1;
+}
+static gint
+store_remote (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("entering store_remote\n");
+ g_print ("Rec:%s:\nLength:%d\n", remote->record, remote->length);
+ return 1;
+}
+static gint
+clear_status_archive_local (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ gpointer data)
+{
+ g_print ("entering clear_status_archive_local\n");
+ return 1;
+}
+static gint
+iterate (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord **local,
+ gpointer data)
+{
+ g_print ("entering iterate\n");
+ return 1;
+}
+static gint
+iterate_specific (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord **local,
+ gint flag,
+ gint archived,
+ gpointer data)
+{
+ g_print ("entering iterate_specific\n");
+ return 1;
+}
+static gint
+purge (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ gpointer data)
+{
+ g_print ("entering purge\n");
+ return 1;
+}
+static gint
+set_status (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ gint status,
+ gpointer data)
+{
+ g_print ("entering set_status\n");
+ return 1;
+}
+static gint
+set_archived (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ gint archived,
+ gpointer data)
+{
+ g_print ("entering set_archived\n");
+ return 1;
+}
+static gint
+set_pilot_id (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ guint32 ID,
+ gpointer data)
+{
+ g_print ("entering set_pilot_id\n");
+ return 1;
+}
+static gint
+compare (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("entering compare\n");
+ return 1;
+}
+static gint
+compare_backup (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("entering compare_backup\n");
+ return 1;
+}
+static gint
+free_transmit (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ PilotRecord *remote,
+ gpointer data)
+{
+ g_print ("entering free_transmit\n");
+ return 1;
+}
+static gint
+delete_all (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ gpointer data)
+{
+ g_print ("entering delete_all\n");
+ return 1;
+}
+static PilotRecord *
+transmit (GnomePilotConduitStandardAbs *pilot_conduit_standard_abs,
+ LocalRecord *local,
+ gpointer data)
+{
+ g_print ("entering transmit\n");
+ return NULL;
+}
+
+GnomePilotConduit *
+conduit_get_gpilot_conduit (guint32 pilotId)
+{
+ GtkObject *retval;
+
+ retval = gnome_pilot_conduit_standard_abs_new ("DatebookDB", 0x64617465);
+ g_assert (retval != NULL);
+ gtk_signal_connect (retval, "match_record", (GtkSignalFunc) match_record, NULL);
+ gtk_signal_connect (retval, "free_match", (GtkSignalFunc) free_match, NULL);
+ gtk_signal_connect (retval, "archive_local", (GtkSignalFunc) archive_local, NULL);
+ gtk_signal_connect (retval, "archive_remote", (GtkSignalFunc) archive_remote, NULL);
+ gtk_signal_connect (retval, "store_remote", (GtkSignalFunc) store_remote, NULL);
+ gtk_signal_connect (retval, "clear_status_archive_local", (GtkSignalFunc) clear_status_archive_local, NULL);
+ gtk_signal_connect (retval, "iterate", (GtkSignalFunc) iterate, NULL);
+ gtk_signal_connect (retval, "iterate_specific", (GtkSignalFunc) iterate_specific, NULL);
+ gtk_signal_connect (retval, "purge", (GtkSignalFunc) purge, NULL);
+ gtk_signal_connect (retval, "set_status", (GtkSignalFunc) set_status, NULL);
+ gtk_signal_connect (retval, "set_archived", (GtkSignalFunc) set_archived, NULL);
+ gtk_signal_connect (retval, "set_pilot_id", (GtkSignalFunc) set_pilot_id, NULL);
+ gtk_signal_connect (retval, "compare", (GtkSignalFunc) compare, NULL);
+ gtk_signal_connect (retval, "compare_backup", (GtkSignalFunc) compare_backup, NULL);
+ gtk_signal_connect (retval, "free_transmit", (GtkSignalFunc) free_transmit, NULL);
+ gtk_signal_connect (retval, "delete_all", (GtkSignalFunc) delete_all, NULL);
+ gtk_signal_connect (retval, "transmit", (GtkSignalFunc) transmit, NULL);
+
+ return GNOME_PILOT_CONDUIT (retval);
+}
+void
+conduit_destroy_gpilot_conduit (GnomePilotConduit *conduit)
+{
+ gtk_object_destroy (GTK_OBJECT (conduit));
+}
+
+