aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/tlacuache.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2000-02-05 06:25:36 +0800
committernobody <nobody@localhost>2000-02-05 06:25:36 +0800
commitacac5179e3ab5b299080b1bef4960a172dc6cf86 (patch)
tree5e5c8f9e4d0929a39b0295b10a322997006e4afc /calendar/tlacuache.c
parentdec6d6b0971480b8910c301daa6218abe3f2eee0 (diff)
downloadgsoc2013-evolution-LIBGTOP_1_0_14.tar
gsoc2013-evolution-LIBGTOP_1_0_14.tar.gz
gsoc2013-evolution-LIBGTOP_1_0_14.tar.bz2
gsoc2013-evolution-LIBGTOP_1_0_14.tar.lz
gsoc2013-evolution-LIBGTOP_1_0_14.tar.xz
gsoc2013-evolution-LIBGTOP_1_0_14.tar.zst
gsoc2013-evolution-LIBGTOP_1_0_14.zip
This commit was manufactured by cvs2svn to create tagLIBGTOP_1_0_14
'LIBGTOP_1_0_14'. svn path=/tags/LIBGTOP_1_0_14/; revision=1672
Diffstat (limited to 'calendar/tlacuache.c')
-rw-r--r--calendar/tlacuache.c126
1 files changed, 0 insertions, 126 deletions
diff --git a/calendar/tlacuache.c b/calendar/tlacuache.c
deleted file mode 100644
index b11b5030d8..0000000000
--- a/calendar/tlacuache.c
+++ /dev/null
@@ -1,126 +0,0 @@
-/* Tlacuache - personal calendar server main module
- *
- * Copyright (C) 2000 Helix Code, Inc.
- *
- * Author: Federico Mena-Quintero <federico@helixcode.com>
- *
- * 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.
- */
-
-#include <config.h>
-#include <libgnorba/gnorba.h>
-#include <bonobo.h>
-#include <libgnomevfs/gnome-vfs.h>
-#include "cal-factory.h"
-#include "calobj.h"
-
-
-
-/* The calendar factory */
-static CalFactory *factory;
-
-
-
-/* Stuff that the un-converted alarm code needs to build */
-
-int debug_alarms = FALSE;
-
-void calendar_notify (time_t time, CalendarAlarm *which, void *data);
-
-CalendarAlarm alarm_defaults[4] = {
- { ALARM_MAIL, 0, 15, ALARM_MINUTES },
- { ALARM_PROGRAM, 0, 15, ALARM_MINUTES },
- { ALARM_DISPLAY, 0, 15, ALARM_MINUTES },
- { ALARM_AUDIO, 0, 15, ALARM_MINUTES }
-};
-
-void
-calendar_notify (time_t time, CalendarAlarm *which, void *data)
-{
- g_error ("calendar_notify() called!");
-}
-
-
-
-/* Creates and registers the calendar factory */
-static gboolean
-create_cal_factory (void)
-{
- CORBA_Object object;
- CORBA_Environment ev;
- int result;
-
- factory = cal_factory_new ();
- if (!factory) {
- g_message ("create_cal_factory(): could not create the calendar factory!");
- return FALSE;
- }
-
- object = bonobo_object_corba_objref (BONOBO_OBJECT (factory));
-
- CORBA_exception_init (&ev);
- result = goad_server_register (CORBA_OBJECT_NIL,
- object,
- "calendar:cal-factory",
- "object",
- &ev);
-
- if (ev._major != CORBA_NO_EXCEPTION || result == -1) {
- g_message ("create_cal_factory(): could not register the calendar factory");
- CORBA_exception_free (&ev);
- return FALSE;
- } else if (result == -2) {
- g_message ("create_cal_factory(): a calendar factory is already registered");
- CORBA_exception_free (&ev);
- return FALSE;
- }
-
- CORBA_exception_free (&ev);
- return TRUE;
-}
-
-int
-main (int argc, char **argv)
-{
- CORBA_Environment ev;
-
- bindtextdomain (PACKAGE, GNOMELOCALEDIR);
- textdomain (PACKAGE);
-
- CORBA_exception_init (&ev);
- gnome_CORBA_init ("tlacuache", VERSION, &argc, argv, GNORBA_INIT_SERVER_FUNC, &ev);
- if (ev._major != CORBA_NO_EXCEPTION) {
- g_message ("main(): could not initialize the ORB");
- CORBA_exception_free (&ev);
- exit (1);
- }
- CORBA_exception_free (&ev);
-
- if (!bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL)) {
- g_message ("main(): could not initialize Bonobo");
- exit (1);
- }
-
- if (!gnome_vfs_init ()) {
- g_message ("main(): could not initialize GNOME-VFS");
- exit (1);
- }
-
- if (!create_cal_factory ())
- exit (1);
-
- bonobo_main ();
- return 0;
-}