/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ #ifndef __TODO_CONDUIT_H__ #define __TODO_CONDUIT_H__ #include #include #include #include #include #include #include #include #include #include #include #include /* This is the local record structure for the GnomeCal conduit. */ typedef struct _GCalLocalRecord GCalLocalRecord; struct _GCalLocalRecord { /* The stuff from gnome-pilot-conduit-standard-abs.h Must be first in the structure, or instances of this structure cannot be used by gnome-pilot-conduit-standard-abs. */ LocalRecord local; /* The corresponding Comp object, as found by GnomeCal. */ CalComponent *ical; /* pilot-link todo structure, used for implementing Transmit. */ struct ToDo *todo; }; #define GCAL_LOCALRECORD(s) ((GCalLocalRecord*)(s)) /* This is the configuration of the GnomeCal conduit. */ typedef struct _GCalConduitCfg GCalConduitCfg; struct _GCalConduitCfg { gboolean open_secret; guint32 pilotId; GnomePilotConduitSyncType sync_type; /* only used by capplet */ }; #define GET_GCALCONFIG(c) ((GCalConduitCfg*)gtk_object_get_data(GTK_OBJECT(c),"todoconduit_cfg")) /* This is the context for all the GnomeCal conduit methods. */ typedef struct _GCalConduitContext GCalConduitContext; struct _GCalConduitContext { struct ToDoAppInfo ai; ToDoConduitCfg *cfg; CalClient *client; CORBA_Environment ev; CORBA_ORB orb; gboolean calendar_load_tried; gboolean calendar_load_success; char *calendar_file; }; #define GET_GCALCONTEXT(c) ((GCalConduitContext*)gtk_object_get_data(GTK_OBJECT(c),"todoconduit_context")) #endif __TODO_CONDUIT_H__