From 70b7fa1c674e0ab6ac8c8f05a43dc15a3c92ebb6 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 20 Oct 2000 02:48:24 +0000 Subject: Build fix 2000-10-19 JP Rosevear * Makefile.am (DIST_SUBDIRS): Build fix svn path=/trunk/; revision=6068 --- addressbook/conduit/address-conduit-config.h | 120 +++++++++++++++++++++ .../e-address-conduit-control-applet.desktop | 16 +++ addressbook/conduit/e-address.conduit.in | 8 ++ 3 files changed, 144 insertions(+) create mode 100644 addressbook/conduit/address-conduit-config.h create mode 100644 addressbook/conduit/e-address-conduit-control-applet.desktop create mode 100644 addressbook/conduit/e-address.conduit.in (limited to 'addressbook') diff --git a/addressbook/conduit/address-conduit-config.h b/addressbook/conduit/address-conduit-config.h new file mode 100644 index 0000000000..1afa8cef4b --- /dev/null +++ b/addressbook/conduit/address-conduit-config.h @@ -0,0 +1,120 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* Evolution calendar - ToDo Conduit Configuration + * + * Copyright (C) 1998 Free Software Foundation + * Copyright (C) 2000 Helix Code, Inc. + * + * Authors: Eskil Heyn Olsen + * JP Rosevear + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __ADDR_CONDUIT_CONFIG_H__ +#define __ADDR_CONDUIT_CONFIG_H__ + +#include +#include +#include + +/* Configuration info */ +typedef struct _EAddrConduitCfg EAddrConduitCfg; +struct _EAddrConduitCfg { + gboolean open_secret; + guint32 pilot_id; + GnomePilotConduitSyncType sync_type; /* only used by capplet */ +}; + +#ifdef ADDR_CONFIG_LOAD +/* Loads the configuration data */ +static void +addrconduit_load_configuration (EAddrConduitCfg **c, guint32 pilot_id) +{ + gchar prefix[256]; + g_snprintf (prefix, 255, "/gnome-pilot.d/e-todo-conduit/Pilot_%u/", + pilot_id); + + *c = g_new0 (EAddrConduitCfg,1); + g_assert (*c != NULL); + + gnome_config_push_prefix (prefix); + (*c)->open_secret = gnome_config_get_bool ("open_secret=FALSE"); + + /* set in capplets main */ + (*c)->sync_type = GnomePilotConduitSyncTypeCustom; + gnome_config_pop_prefix (); + + (*c)->pilot_id = pilot_id; +} +#endif + +#ifdef ADDR_CONFIG_SAVE +/* Saves the configuration data. */ +static void +addrconduit_save_configuration (EAddrConduitCfg *c) +{ + gchar prefix[256]; + + g_snprintf (prefix, 255, "/gnome-pilot.d/e-todo-conduit/Pilot_%u/", + c->pilot_id); + + gnome_config_push_prefix (prefix); + gnome_config_set_bool ("open_secret", c->open_secret); + gnome_config_pop_prefix (); + + gnome_config_sync (); + gnome_config_drop_all (); +} +#endif + +#ifdef ADDR_CONFIG_DUPE +/* Creates a duplicate of the configuration data */ +static EAddrConduitCfg* +addrconduit_dupe_configuration (EAddrConduitCfg *c) +{ + EAddrConduitCfg *retval; + + g_return_val_if_fail (c != NULL, NULL); + + retval = g_new0 (EAddrConduitCfg, 1); + retval->sync_type = c->sync_type; + retval->open_secret = c->open_secret; + retval->pilot_id = c->pilot_id; + + return retval; +} +#endif + +#ifdef ADDR_CONFIG_DESTROY +/* Destroy a configuration */ +static void +addrconduit_destroy_configuration (EAddrConduitCfg **c) +{ + g_return_if_fail (c != NULL); + g_return_if_fail (*c != NULL); + + g_free (*c); + *c = NULL; +} +#endif + +#endif __ADDR_CONDUIT_CONFIG_H__ + + + + + + + diff --git a/addressbook/conduit/e-address-conduit-control-applet.desktop b/addressbook/conduit/e-address-conduit-control-applet.desktop new file mode 100644 index 0000000000..f6d437932f --- /dev/null +++ b/addressbook/conduit/e-address-conduit-control-applet.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Name=Evolution Address conduit +Name[da]=Udstående +Name[fr]=Conduit Adresses +Name[no]=Oppgaver +Name[sv]=Adresser +Name[tr]=Adres parçasý +Comment=Configure the address conduit +Comment[da]=Konfigurér Udstående +Comment[fr]=Configuration du conduit Adresses +Comment[no]=Konfigurér oppgavelisten +Comment[sv]=Konfigurera adresskanalen +Comment[tr]=Adres parçasýnýn ayarlarý +Exec=e-address-conduit-control-applet --cap-id=1 +Terminal=0 +Type=Application diff --git a/addressbook/conduit/e-address.conduit.in b/addressbook/conduit/e-address.conduit.in new file mode 100644 index 0000000000..1aa78a180e --- /dev/null +++ b/addressbook/conduit/e-address.conduit.in @@ -0,0 +1,8 @@ + + + + + + + + -- cgit v1.2.3