aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/evolution-services
diff options
context:
space:
mode:
Diffstat (limited to 'executive-summary/evolution-services')
-rw-r--r--executive-summary/evolution-services/.cvsignore6
-rw-r--r--executive-summary/evolution-services/Makefile.am58
-rw-r--r--executive-summary/evolution-services/Makefile.in462
-rw-r--r--executive-summary/evolution-services/executive-summary-client.c162
-rw-r--r--executive-summary/evolution-services/executive-summary-client.h62
-rw-r--r--executive-summary/evolution-services/executive-summary-component-client.c285
-rw-r--r--executive-summary/evolution-services/executive-summary-component-client.h68
-rw-r--r--executive-summary/evolution-services/executive-summary-component.c400
-rw-r--r--executive-summary/evolution-services/executive-summary-component.h70
-rw-r--r--executive-summary/evolution-services/executive-summary.c241
-rw-r--r--executive-summary/evolution-services/executive-summary.h75
11 files changed, 1889 insertions, 0 deletions
diff --git a/executive-summary/evolution-services/.cvsignore b/executive-summary/evolution-services/.cvsignore
new file mode 100644
index 0000000000..b4ccf20181
--- /dev/null
+++ b/executive-summary/evolution-services/.cvsignore
@@ -0,0 +1,6 @@
+Executive-Summary.h
+Executive-Summary-common.c
+Executive-Summary-skels.c
+Executive-Summary-stubs.c
+Makefile.in
+core
diff --git a/executive-summary/evolution-services/Makefile.am b/executive-summary/evolution-services/Makefile.am
new file mode 100644
index 0000000000..8373dc72ab
--- /dev/null
+++ b/executive-summary/evolution-services/Makefile.am
@@ -0,0 +1,58 @@
+lib_LTLIBRARIES = libevolution-services.la
+
+INCLUDES = \
+ -I$(top_srcdir)/widgets \
+ -I$(top_srcdir)/widgets/e-text \
+ -I$(top_srcdir) \
+ -I$(top_builddir)/shell \
+ -I$(top_srcdir)/shell \
+ $(GNOME_VFS_CFLAGS) \
+ $(UNICODE_CFLAGS) \
+ $(GTKHTML_CFLAGS) \
+ -DEVOLUTION_VERSION=\""$(VERSION)"\" \
+ -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \
+ -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \
+ -DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\" \
+ -DEVOLUTION_DATADIR=\""$(datadir)"\" \
+ -DG_LOG_DOMAIN=\"evolution-services\"
+
+IDL_GENERATED = \
+ Executive-Summary.h \
+ Executive-Summary-common.c \
+ Executive-Summary-skels.c \
+ Executive-Summary-stubs.c
+
+Executive-Summary-impl.o: Executive-Summary.h
+
+$(IDL_GENERATED): $(IDLS)
+ $(ORBIT_IDL) -I $(datadir)/idl `$(GNOME_CONFIG) --cflags idl` \
+ -I$(srcdir) $(srcdir)/../idl/Executive-Summary.idl
+
+libevolution_services_la_SOURCES = \
+ $(IDL_GENERATED) \
+ executive-summary.c \
+ executive-summary.h \
+ executive-summary-client.c \
+ executive-summary-client.h \
+ executive-summary-component.c \
+ executive-summary-component.h \
+ executive-summary-component-client.c \
+ executive-summary-component-client.h
+
+libevolution_services_la_LIBADD = \
+ $(top_builddir)/e-util/libeutil.la \
+ $(BONOBO_VFS_GNOME_LIBS) \
+ $(EXTRA_GNOME_LIBS) \
+ $(GTKHTML_LIBS) \
+ $(UNICODE_LIBS)
+
+if ENABLE_PURIFY
+PLINK = $(LIBTOOL) --mode=link $(PURIFY) $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+
+all-local: evolution-mail.pure
+
+evolution-mail.pure: evolution-mail
+ @rm -f evolution-mail.pure
+ $(PLINK) $(evolution_mail_LDFLAGS) $(evolution_mail_OBJECTS) $(evolution_mail_LDADD) $(LIBS)
+
+endif
diff --git a/executive-summary/evolution-services/Makefile.in b/executive-summary/evolution-services/Makefile.in
new file mode 100644
index 0000000000..141fb0011b
--- /dev/null
+++ b/executive-summary/evolution-services/Makefile.in
@@ -0,0 +1,462 @@
+# Makefile.in generated automatically by automake 1.4a from Makefile.am
+
+# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+SHELL = @SHELL@
+
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
+bindir = @bindir@
+sbindir = @sbindir@
+libexecdir = @libexecdir@
+datadir = @datadir@
+sysconfdir = @sysconfdir@
+sharedstatedir = @sharedstatedir@
+localstatedir = @localstatedir@
+libdir = @libdir@
+infodir = @infodir@
+mandir = @mandir@
+includedir = @includedir@
+oldincludedir = /usr/include
+
+DESTDIR =
+
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+
+top_builddir = ../..
+
+ACLOCAL = @ACLOCAL@
+AUTOCONF = @AUTOCONF@
+AUTOMAKE = @AUTOMAKE@
+AUTOHEADER = @AUTOHEADER@
+
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_FLAG =
+transform = @program_transform_name@
+
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+host_alias = @host_alias@
+host_triplet = @host@
+AS = @AS@
+BONOBO_GNOME_CFLAGS = @BONOBO_GNOME_CFLAGS@
+BONOBO_GNOME_LIBS = @BONOBO_GNOME_LIBS@
+BONOBO_HTML_GNOME_CFLAGS = @BONOBO_HTML_GNOME_CFLAGS@
+BONOBO_HTML_GNOME_LIBS = @BONOBO_HTML_GNOME_LIBS@
+BONOBO_VFS_GNOME_CFLAGS = @BONOBO_VFS_GNOME_CFLAGS@
+BONOBO_VFS_GNOME_LIBS = @BONOBO_VFS_GNOME_LIBS@
+CAPPLET_LIBS = @CAPPLET_LIBS@
+CATALOGS = @CATALOGS@
+CATOBJEXT = @CATOBJEXT@
+CC = @CC@
+CPP = @CPP@
+DATADIRNAME = @DATADIRNAME@
+DLLTOOL = @DLLTOOL@
+EVOLUTION_DIR = @EVOLUTION_DIR@
+EXTRA_GNOME_CFLAGS = @EXTRA_GNOME_CFLAGS@
+EXTRA_GNOME_LIBS = @EXTRA_GNOME_LIBS@
+GENCAT = @GENCAT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GMOFILES = @GMOFILES@
+GMSGFMT = @GMSGFMT@
+GNOMEGNORBA_LIBS = @GNOMEGNORBA_LIBS@
+GNOMEUI_LIBS = @GNOMEUI_LIBS@
+GNOME_APPLETS_LIBS = @GNOME_APPLETS_LIBS@
+GNOME_CAPPLET_LIBS = @GNOME_CAPPLET_LIBS@
+GNOME_CONFIG = @GNOME_CONFIG@
+GNOME_DOCKLETS_LIBS = @GNOME_DOCKLETS_LIBS@
+GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
+GNOME_LIBDIR = @GNOME_LIBDIR@
+GNOME_LIBS = @GNOME_LIBS@
+GNOME_PILOT_CFLAGS = @GNOME_PILOT_CFLAGS@
+GNOME_PILOT_LIBS = @GNOME_PILOT_LIBS@
+GNOME_PRINT_CFLAGS = @GNOME_PRINT_CFLAGS@
+GNOME_PRINT_LIBS = @GNOME_PRINT_LIBS@
+GNOME_VFS_CFLAGS = @GNOME_VFS_CFLAGS@
+GNOME_VFS_LIBS = @GNOME_VFS_LIBS@
+GNOME_XML_LIB = @GNOME_XML_LIB@
+GNORBA_CFLAGS = @GNORBA_CFLAGS@
+GNORBA_LIBS = @GNORBA_LIBS@
+GPG = @GPG@
+GTKDOC = @GTKDOC@
+GTKHTML_CFLAGS = @GTKHTML_CFLAGS@
+GTKHTML_LIBS = @GTKHTML_LIBS@
+GTKXMHTML_LIBS = @GTKXMHTML_LIBS@
+GTK_CFLAGS = @GTK_CFLAGS@
+GTK_CONFIG = @GTK_CONFIG@
+GTK_LIBS = @GTK_LIBS@
+GT_NO = @GT_NO@
+GT_YES = @GT_YES@
+HAVE_GTK_DOC = @HAVE_GTK_DOC@
+INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
+INSTOBJEXT = @INSTOBJEXT@
+INTLDEPS = @INTLDEPS@
+INTLLIBS = @INTLLIBS@
+INTLOBJS = @INTLOBJS@
+KRB4_CFLAGS = @KRB4_CFLAGS@
+KRB4_LDFLAGS = @KRB4_LDFLAGS@
+KRB5_CFLAGS = @KRB5_CFLAGS@
+KRB5_LDFLAGS = @KRB5_LDFLAGS@
+LDAP_LIBS = @LDAP_LIBS@
+LEX = @LEX@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MKINSTALLDIRS = @MKINSTALLDIRS@
+OAF_CFLAGS = @OAF_CFLAGS@
+OAF_CONFIG = @OAF_CONFIG@
+OAF_LIBS = @OAF_LIBS@
+OBJDUMP = @OBJDUMP@
+ORBIT_CFLAGS = @ORBIT_CFLAGS@
+ORBIT_CONFIG = @ORBIT_CONFIG@
+ORBIT_IDL = @ORBIT_IDL@
+ORBIT_LIBS = @ORBIT_LIBS@
+PACKAGE = @PACKAGE@
+PGP = @PGP@
+PGP5 = @PGP5@
+PILOT_BINS = @PILOT_BINS@
+PILOT_LIBS = @PILOT_LIBS@
+PISOCK_INCLUDEDIR = @PISOCK_INCLUDEDIR@
+PISOCK_LIBDIR = @PISOCK_LIBDIR@
+PISOCK_LIBS = @PISOCK_LIBS@
+POFILES = @POFILES@
+POSUB = @POSUB@
+PTHREAD_LIB = @PTHREAD_LIB@
+PURIFY = @PURIFY@
+RANLIB = @RANLIB@
+SENDMAIL = @SENDMAIL@
+THREADS_CFLAGS = @THREADS_CFLAGS@
+THREADS_LIBS = @THREADS_LIBS@
+UNICODE_CFLAGS = @UNICODE_CFLAGS@
+UNICODE_LIBS = @UNICODE_LIBS@
+USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+XPM_LIBS = @XPM_LIBS@
+YACC = @YACC@
+ZVT_LIBS = @ZVT_LIBS@
+cflags_set = @cflags_set@
+cxxflags_set = @cxxflags_set@
+l = @l@
+
+lib_LTLIBRARIES = libevolution-services.la
+
+INCLUDES = -I$(top_srcdir)/widgets -I$(top_srcdir)/widgets/e-text -I$(top_srcdir) -I$(top_builddir)/shell -I$(top_srcdir)/shell $(GNOME_VFS_CFLAGS) $(UNICODE_CFLAGS) $(GTKHTML_CFLAGS) -DEVOLUTION_VERSION=\""$(VERSION)"\" -DEVOLUTION_GLADEDIR=\""$(gladedir)"\" -DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" -DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\" -DEVOLUTION_DATADIR=\""$(datadir)"\" -DG_LOG_DOMAIN=\"evolution-services\"
+
+
+IDL_GENERATED = Executive-Summary.h Executive-Summary-common.c Executive-Summary-skels.c Executive-Summary-stubs.c
+
+
+libevolution_services_la_SOURCES = $(IDL_GENERATED) executive-summary.c executive-summary.h executive-summary-client.c executive-summary-client.h executive-summary-component.c executive-summary-component.h executive-summary-component-client.c executive-summary-component-client.h
+
+
+libevolution_services_la_LIBADD = $(top_builddir)/e-util/libeutil.la $(BONOBO_VFS_GNOME_LIBS) $(EXTRA_GNOME_LIBS) $(GTKHTML_LIBS) $(UNICODE_LIBS)
+
+
+@ENABLE_PURIFY_TRUE@PLINK = $(LIBTOOL) --mode=link $(PURIFY) $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = ../../config.h
+CONFIG_CLEAN_FILES =
+LTLIBRARIES = $(lib_LTLIBRARIES)
+
+
+DEFS = @DEFS@ -I. -I$(srcdir) -I../..
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+libevolution_services_la_LDFLAGS =
+libevolution_services_la_DEPENDENCIES = \
+$(top_builddir)/e-util/libeutil.la
+libevolution_services_la_OBJECTS = Executive-Summary-common.lo \
+Executive-Summary-skels.lo Executive-Summary-stubs.lo \
+executive-summary.lo executive-summary-client.lo \
+executive-summary-component.lo executive-summary-component-client.lo
+CFLAGS = @CFLAGS@
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
+DIST_COMMON = Makefile.am Makefile.in
+
+
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
+
+TAR = gtar
+GZIP_ENV = --best
+DEP_FILES = .deps/Executive-Summary-common.P \
+.deps/Executive-Summary-skels.P .deps/Executive-Summary-stubs.P \
+.deps/executive-summary-client.P \
+.deps/executive-summary-component-client.P \
+.deps/executive-summary-component.P .deps/executive-summary.P
+SOURCES = $(libevolution_services_la_SOURCES)
+OBJECTS = $(libevolution_services_la_OBJECTS)
+
+all: all-redirect
+.SUFFIXES:
+.SUFFIXES: .S .c .lo .o .s
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
+ cd $(top_srcdir) && $(AUTOMAKE) --gnu executive-summary/evolution-services/Makefile
+
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
+ cd $(top_builddir) \
+ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
+
+
+mostlyclean-libLTLIBRARIES:
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+
+distclean-libLTLIBRARIES:
+
+maintainer-clean-libLTLIBRARIES:
+
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
+ $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
+ else :; fi; \
+ done
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
+ done
+
+.s.o:
+ $(COMPILE) -c $<
+
+.S.o:
+ $(COMPILE) -c $<
+
+mostlyclean-compile:
+ -rm -f *.o core *.core
+
+clean-compile:
+
+distclean-compile:
+ -rm -f *.tab.c
+
+maintainer-clean-compile:
+
+.s.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+
+.S.lo:
+ $(LIBTOOL) --mode=compile $(COMPILE) -c $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+
+maintainer-clean-libtool:
+
+libevolution-services.la: $(libevolution_services_la_OBJECTS) $(libevolution_services_la_DEPENDENCIES)
+ $(LINK) -rpath $(libdir) $(libevolution_services_la_LDFLAGS) $(libevolution_services_la_OBJECTS) $(libevolution_services_la_LIBADD) $(LIBS)
+
+tags: TAGS
+
+ID: $(HEADERS) $(SOURCES) $(LISP)
+ list='$(SOURCES) $(HEADERS)'; \
+ unique=`for i in $$list; do echo $$i; done | \
+ awk ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ here=`pwd` && cd $(srcdir) \
+ && mkid -f$$here/ID $$unique $(LISP)
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS)'; \
+ unique=`for i in $$list; do echo $$i; done | \
+ awk ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
+ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
+
+mostlyclean-tags:
+
+clean-tags:
+
+distclean-tags:
+ -rm -f TAGS ID
+
+maintainer-clean-tags:
+
+distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
+
+subdir = executive-summary/evolution-services
+
+distdir: $(DISTFILES)
+ here=`cd $(top_builddir) && pwd`; \
+ top_distdir=`cd $(top_distdir) && pwd`; \
+ distdir=`cd $(distdir) && pwd`; \
+ cd $(top_srcdir) \
+ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu executive-summary/evolution-services/Makefile
+ @for file in $(DISTFILES); do \
+ d=$(srcdir); \
+ if test -d $$d/$$file; then \
+ cp -pr $$d/$$file $(distdir)/$$file; \
+ else \
+ test -f $(distdir)/$$file \
+ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
+ || cp -p $$d/$$file $(distdir)/$$file || :; \
+ fi; \
+ done
+
+DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
+
+-include $(DEP_FILES)
+
+mostlyclean-depend:
+
+clean-depend:
+
+distclean-depend:
+ -rm -rf .deps
+
+maintainer-clean-depend:
+
+%.o: %.c
+ @echo '$(COMPILE) -c $<'; \
+ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
+ @-cp .deps/$(*F).pp .deps/$(*F).P; \
+ tr ' ' '\012' < .deps/$(*F).pp \
+ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
+ >> .deps/$(*F).P; \
+ rm .deps/$(*F).pp
+
+%.lo: %.c
+ @echo '$(LTCOMPILE) -c $<'; \
+ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
+ @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
+ < .deps/$(*F).pp > .deps/$(*F).P; \
+ tr ' ' '\012' < .deps/$(*F).pp \
+ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
+ >> .deps/$(*F).P; \
+ rm -f .deps/$(*F).pp
+info-am:
+info: info-am
+dvi-am:
+dvi: dvi-am
+check-am: all-am
+check: check-am
+installcheck-am:
+installcheck: installcheck-am
+install-exec-am: install-libLTLIBRARIES
+install-exec: install-exec-am
+
+install-data-am:
+install-data: install-data-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+install: install-am
+uninstall-am: uninstall-libLTLIBRARIES
+uninstall: uninstall-am
+all-am: Makefile $(LTLIBRARIES) all-local
+all-redirect: all-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
+installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+
+
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+
+maintainer-clean-generic:
+mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
+ mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
+ mostlyclean-generic
+
+mostlyclean: mostlyclean-am
+
+clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
+ clean-depend clean-generic mostlyclean-am
+
+clean: clean-am
+
+distclean-am: distclean-libLTLIBRARIES distclean-compile \
+ distclean-libtool distclean-tags distclean-depend \
+ distclean-generic clean-am
+ -rm -f libtool
+
+distclean: distclean-am
+
+maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
+ maintainer-clean-compile maintainer-clean-libtool \
+ maintainer-clean-tags maintainer-clean-depend \
+ maintainer-clean-generic distclean-am
+ @echo "This command is intended for maintainers to use;"
+ @echo "it deletes files that may require special tools to rebuild."
+
+maintainer-clean: maintainer-clean-am
+
+.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
+clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
+uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
+distclean-compile clean-compile maintainer-clean-compile \
+mostlyclean-libtool distclean-libtool clean-libtool \
+maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
+clean-tags maintainer-clean-tags distdir mostlyclean-depend \
+distclean-depend clean-depend maintainer-clean-depend info-am info \
+dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
+install-exec install-data-am install-data install-am install \
+uninstall-am uninstall all-local all-redirect all-am all installdirs \
+mostlyclean-generic distclean-generic clean-generic \
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
+
+
+Executive-Summary-impl.o: Executive-Summary.h
+
+$(IDL_GENERATED): $(IDLS)
+ $(ORBIT_IDL) -I $(datadir)/idl `$(GNOME_CONFIG) --cflags idl` \
+ -I$(srcdir) $(srcdir)/../idl/Executive-Summary.idl
+
+@ENABLE_PURIFY_TRUE@all-local: evolution-mail.pure
+
+@ENABLE_PURIFY_TRUE@evolution-mail.pure: evolution-mail
+@ENABLE_PURIFY_TRUE@ @rm -f evolution-mail.pure
+@ENABLE_PURIFY_TRUE@ $(PLINK) $(evolution_mail_LDFLAGS) $(evolution_mail_OBJECTS) $(evolution_mail_LDADD) $(LIBS)
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/executive-summary/evolution-services/executive-summary-client.c b/executive-summary/evolution-services/executive-summary-client.c
new file mode 100644
index 0000000000..2ea9175bd9
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-client.c
@@ -0,0 +1,162 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-client.c
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <bonobo.h>
+#include <gnome.h>
+#include <gal/util/e-util.h>
+
+#include "Executive-Summary.h"
+#include "executive-summary-client.h"
+#include "executive-summary-component.h"
+
+#define PARENT_TYPE BONOBO_OBJECT_CLIENT_TYPE
+static BonoboObjectClass *parent_class = NULL;
+
+struct _ExecutiveSummaryClientPrivate {
+ int dummy;
+};
+
+static void
+executive_summary_client_destroy (GtkObject *object)
+{
+ ExecutiveSummaryClient *client;
+ ExecutiveSummaryClientPrivate *priv;
+
+ client = EXECUTIVE_SUMMARY_CLIENT (object);
+ priv = client->private;
+
+ if (priv == NULL)
+ return;
+
+ g_free (priv);
+ client->private = NULL;
+
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+}
+
+static void
+executive_summary_client_init (ExecutiveSummaryClient *client)
+{
+ ExecutiveSummaryClientPrivate *priv;
+
+ priv = g_new0 (ExecutiveSummaryClientPrivate, 1);
+ client->private = priv;
+}
+
+static void
+executive_summary_client_class_init (ExecutiveSummaryClientClass *client)
+{
+ GtkObjectClass *object_class;
+
+ object_class = GTK_OBJECT_CLASS (client);
+ parent_class = gtk_type_class (PARENT_TYPE);
+
+ object_class->destroy = executive_summary_client_destroy;
+}
+
+void
+executive_summary_client_construct (ExecutiveSummaryClient *client,
+ CORBA_Object corba_object)
+{
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_CLIENT (client));
+ g_return_if_fail (corba_object != CORBA_OBJECT_NIL);
+
+ bonobo_object_client_construct (BONOBO_OBJECT_CLIENT (client), corba_object);
+}
+
+E_MAKE_TYPE (executive_summary_client, "ExecutiveSummaryClient",
+ ExecutiveSummaryClient, executive_summary_client_class_init,
+ executive_summary_client_init, PARENT_TYPE);
+
+void
+executive_summary_client_set_title (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component,
+ const char *title)
+{
+ Evolution_Summary summary;
+ Evolution_SummaryComponent corba_object;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+ summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
+
+ Evolution_Summary_set_title (summary, corba_object, title, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error setting title to %s:%s", title, CORBA_exception_id (&ev));
+ }
+
+ CORBA_exception_free (&ev);
+}
+
+void
+executive_summary_client_flash (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component)
+{
+ Evolution_Summary summary;
+ Evolution_SummaryComponent corba_object;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+ summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
+
+ Evolution_Summary_flash (summary, corba_object, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error flashing");
+ }
+
+ CORBA_exception_free (&ev);
+}
+
+void
+executive_summary_client_update (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component,
+ char *html)
+{
+ Evolution_Summary summary;
+ Evolution_SummaryComponent corba_object;
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+ summary = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (component));
+
+ Evolution_Summary_update_html_component (summary, corba_object,
+ html, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error updating the component");
+ }
+
+ CORBA_exception_free (&ev);
+}
+
+
diff --git a/executive-summary/evolution-services/executive-summary-client.h b/executive-summary/evolution-services/executive-summary-client.h
new file mode 100644
index 0000000000..a2b350c4c6
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-client.h
@@ -0,0 +1,62 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-client.h
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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 _EXECUTIVE_SUMMARY_COMPONENT_CLIENT_H__
+#define _EXECUTIVE_SUMMARY_COMPONENT_CLIENT_H__
+
+#include <bonobo.h>
+#include "executive-summary-component.h"
+
+#define EXECUTIVE_SUMMARY_CLIENT_TYPE (executive_summary_client_get_type ())
+#define EXECUTIVE_SUMMARY_CLIENT(obj) (GTK_CHECK_CAST ((obj), EXECUTIVE_SUMMARY_CLIENT_TYPE, ExecutiveSummaryClient))
+#define EXECUTIVE_SUMMARY_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EXECUTIVE_SUMMARY_CLIENT_TYPE, ExecutiveSummaryClientClass))
+#define IS_EXECUTIVE_SUMMARY_CLIENT(obj) (GTK_CHECK_TYPE ((obj), EXECUTIVE_SUMMARY_CLIENT_TYPE))
+#define IS_EXECUTIVE_SUMMARY_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EXECUTIVE_SUMMARY_CLIENT_TYPE))
+
+typedef struct _ExecutiveSummaryClientPrivate ExecutiveSummaryClientPrivate;
+typedef struct _ExecutiveSummaryClient ExecutiveSummaryClient;
+typedef struct _ExecutiveSummaryClientClass ExecutiveSummaryClientClass;
+
+struct _ExecutiveSummaryClient {
+ BonoboObjectClient parent;
+
+ ExecutiveSummaryClientPrivate *private;
+};
+
+struct _ExecutiveSummaryClientClass {
+ BonoboObjectClientClass parent_class;
+};
+
+GtkType executive_summary_client_get_type (void);
+void executive_summary_client_construct (ExecutiveSummaryClient *client,
+ CORBA_Object object);
+void executive_summary_client_set_title (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component,
+ const char *title);
+void executive_summary_client_flash (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component);
+void executive_summary_client_update (ExecutiveSummaryClient *client,
+ ExecutiveSummaryComponent *component,
+ char *html);
+
+#endif
diff --git a/executive-summary/evolution-services/executive-summary-component-client.c b/executive-summary/evolution-services/executive-summary-component-client.c
new file mode 100644
index 0000000000..b33a876450
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-component-client.c
@@ -0,0 +1,285 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-component-client.c
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <bonobo.h>
+#include <gnome.h>
+#include <gal/util/e-util.h>
+
+#include <liboaf/liboaf.h>
+
+#include <Executive-Summary.h>
+#include "executive-summary-component-client.h"
+#include "executive-summary.h"
+
+#define PARENT_TYPE BONOBO_OBJECT_CLIENT_TYPE
+static BonoboObjectClass *parent_class = NULL;
+
+struct _ExecutiveSummaryComponentClientPrivate {
+ int dummy;
+};
+
+static void
+executive_summary_component_client_destroy (GtkObject *object)
+{
+ ExecutiveSummaryComponentClient *client;
+ ExecutiveSummaryComponentClientPrivate *priv;
+
+ client = EXECUTIVE_SUMMARY_COMPONENT_CLIENT (object);
+ priv = client->private;
+
+ if (priv == NULL)
+ return;
+
+ g_free (priv);
+ client->private = NULL;
+
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+}
+
+static void
+executive_summary_component_client_init (ExecutiveSummaryComponentClient *client)
+{
+ ExecutiveSummaryComponentClientPrivate *priv;
+
+ priv = g_new0 (ExecutiveSummaryComponentClientPrivate, 1);
+ client->private = priv;
+}
+
+static void
+executive_summary_component_client_class_init (ExecutiveSummaryComponentClientClass *klass)
+{
+ GtkObjectClass *object_class;
+
+ object_class = GTK_OBJECT_CLASS (klass);
+ object_class->destroy = executive_summary_component_client_destroy;
+
+ parent_class = gtk_type_class (PARENT_TYPE);
+}
+
+void
+executive_summary_component_client_construct (ExecutiveSummaryComponentClient *client,
+ CORBA_Object corba_object)
+{
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client));
+ g_return_if_fail (corba_object != CORBA_OBJECT_NIL);
+
+ bonobo_object_client_construct (BONOBO_OBJECT_CLIENT (client), corba_object);
+}
+
+ExecutiveSummaryComponentClient*
+executive_summary_component_client_new (const char *id)
+{
+ ExecutiveSummaryComponentClient *client;
+ CORBA_Environment ev;
+ CORBA_Object corba_object;
+
+ g_return_val_if_fail (id != NULL, NULL);
+
+ CORBA_exception_init (&ev);
+
+ corba_object = oaf_activate_from_id ((char *)id, 0, NULL, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ CORBA_exception_free (&ev);
+ g_warning ("Could not start %s\n", id);
+ return NULL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ if (corba_object == CORBA_OBJECT_NIL) {
+ g_warning ("Could not activate %s\n", id);
+ return NULL;
+ }
+
+ client = gtk_type_new (executive_summary_component_client_get_type ());
+ executive_summary_component_client_construct (client, corba_object);
+
+ return client;
+}
+
+/* External API */
+void
+executive_summary_component_client_set_owner (ExecutiveSummaryComponentClient *client,
+ ExecutiveSummary *summary)
+{
+ Evolution_SummaryComponent component;
+ Evolution_Summary corba_object;
+ CORBA_Environment ev;
+
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client));
+ g_return_if_fail (summary != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY (summary));
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ corba_object = bonobo_object_corba_objref (BONOBO_OBJECT (summary));
+
+ g_return_if_fail (corba_object != CORBA_OBJECT_NIL);
+ Evolution_SummaryComponent_set_owner (component, corba_object, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error setting owner");
+ }
+
+ CORBA_exception_free (&ev);
+ return;
+}
+
+void
+executive_summary_component_client_unset_owner (ExecutiveSummaryComponentClient *client)
+{
+ Evolution_SummaryComponent component;
+ CORBA_Environment ev;
+
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client));
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+
+ Evolution_SummaryComponent_unset_owner (component, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error unsetting owner");
+ }
+
+ CORBA_exception_free (&ev);
+ return;
+}
+
+void
+executive_summary_component_client_supports (ExecutiveSummaryComponentClient *client,
+ gboolean *bonobo,
+ gboolean *html)
+{
+ Evolution_SummaryComponent component;
+ CORBA_Environment ev;
+
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client));
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+
+ Evolution_SummaryComponent_supports (component, bonobo, html, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error checking supports");
+ }
+
+ CORBA_exception_free (&ev);
+ return;
+}
+
+Bonobo_Control
+executive_summary_component_client_create_bonobo_view (ExecutiveSummaryComponentClient *client,
+ char **title)
+{
+ Bonobo_Control control;
+ Evolution_SummaryComponent component;
+ CORBA_Environment ev;
+
+ g_return_val_if_fail (client != NULL, CORBA_OBJECT_NIL);
+ g_return_val_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client),
+ CORBA_OBJECT_NIL);
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ control = Evolution_SummaryComponent_create_bonobo_view (component, title, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error creating view");
+ CORBA_exception_free (&ev);
+ return CORBA_OBJECT_NIL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return control;
+}
+
+char *
+executive_summary_component_client_create_html_view (ExecutiveSummaryComponentClient *client,
+ char **title)
+{
+ CORBA_char *ret_html;
+ Evolution_SummaryComponent component;
+ CORBA_Environment ev;
+
+ g_return_val_if_fail (client != NULL, NULL);
+ g_return_val_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client),
+ NULL);
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+
+ g_print ("Here\n");
+ ret_html = Evolution_SummaryComponent_create_html_view (component, title, &ev);
+ g_print ("Not here - %s\n", ret_html);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error creating HTML view");
+ CORBA_exception_free (&ev);
+ return NULL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return (char *)g_strdup (ret_html);
+}
+
+void
+executive_summary_component_client_configure (ExecutiveSummaryComponentClient *client)
+{
+ Evolution_SummaryComponent component;
+ CORBA_Environment ev;
+
+ g_return_if_fail (client != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT (client));
+
+ CORBA_exception_init (&ev);
+ component = bonobo_object_corba_objref (BONOBO_OBJECT (client));
+ Evolution_SummaryComponent_configure (component, &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning ("Error configuring service");
+ bonobo_object_unref (BONOBO_OBJECT (client));
+ CORBA_exception_free (&ev);
+ return;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return;
+}
+
+E_MAKE_TYPE (executive_summary_component_client,
+ "ExecutiveSummaryComponentClient",
+ ExecutiveSummaryComponentClient,
+ executive_summary_component_client_class_init,
+ executive_summary_component_client_init, PARENT_TYPE)
diff --git a/executive-summary/evolution-services/executive-summary-component-client.h b/executive-summary/evolution-services/executive-summary-component-client.h
new file mode 100644
index 0000000000..bfb3ea1939
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-component-client.h
@@ -0,0 +1,68 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-component-client.h
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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 _EXECUTIVE_SUMMARY_COMPONENT_CLIENT_H__
+#define _EXECUTIVE_SUMMARY_COMPONENT_CLIENT_H__
+
+#include <bonobo.h>
+#include <executive-summary.h>
+
+#define EXECUTIVE_SUMMARY_COMPONENT_CLIENT_TYPE (executive_summary_component_client_get_type ())
+#define EXECUTIVE_SUMMARY_COMPONENT_CLIENT(obj) (GTK_CHECK_CAST ((obj), EXECUTIVE_SUMMARY_COMPONENT_CLIENT_TYPE, ExecutiveSummaryComponentClient))
+#define EXECUTIVE_SUMMARY_COMPONENT_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EXECUTIVE_SUMMARY_COMPONENT_CLIENT_TYPE, ExecutiveSummaryComponentClientClass))
+#define IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT(obj) (GTK_CHECK_TYPE ((obj), EXECUTIVE_SUMMARY_COMPONENT_CLIENT_TYPE))
+#define IS_EXECUTIVE_SUMMARY_COMPONENT_CLIENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EXECUTIVE_SUMMARY_COMPONENT_CLIENT_TYPE))
+
+typedef struct _ExecutiveSummaryComponentClientPrivate ExecutiveSummaryComponentClientPrivate;
+typedef struct _ExecutiveSummaryComponentClient ExecutiveSummaryComponentClient;
+typedef struct _ExecutiveSummaryComponentClientClass ExecutiveSummaryComponentClientClass;
+
+struct _ExecutiveSummaryComponentClient {
+ BonoboObjectClient parent;
+
+ ExecutiveSummaryComponentClientPrivate *private;
+};
+
+struct _ExecutiveSummaryComponentClientClass {
+ BonoboObjectClientClass parent_class;
+};
+
+GtkType executive_summary_component_client_get_type (void);
+ExecutiveSummaryComponentClient *executive_summary_component_client_new (const char *id);
+
+void executive_summary_component_client_set_owner (ExecutiveSummaryComponentClient *client,
+ ExecutiveSummary *summary);
+void executive_summary_component_client_unset_owner (ExecutiveSummaryComponentClient *client);
+
+void executive_summary_component_client_supports (ExecutiveSummaryComponentClient *client,
+ gboolean *bonobo,
+ gboolean *html);
+Bonobo_Control executive_summary_component_client_create_bonobo_view (ExecutiveSummaryComponentClient *client,
+ char **title);
+
+char *executive_summary_component_client_create_html_view (ExecutiveSummaryComponentClient *client,
+ char **title);
+
+void executive_summary_component_client_configure (ExecutiveSummaryComponentClient *client);
+
+#endif
diff --git a/executive-summary/evolution-services/executive-summary-component.c b/executive-summary/evolution-services/executive-summary-component.c
new file mode 100644
index 0000000000..97e1d6ec97
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-component.c
@@ -0,0 +1,400 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-component.c - Bonobo implementation of
+ * SummaryComponent.idl
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <bonobo.h>
+#include <gnome.h>
+#include <gal/util/e-util.h>
+
+#include "Executive-Summary.h"
+#include "executive-summary.h"
+#include "executive-summary-component.h"
+#include "executive-summary-client.h"
+
+static void executive_summary_component_destroy (GtkObject *object);
+static void executive_summary_component_init (ExecutiveSummaryComponent *component);
+static void executive_summary_component_class_init (ExecutiveSummaryComponentClass *esc_class);
+
+#define PARENT_TYPE (bonobo_object_get_type ())
+
+static BonoboObjectClass *parent_class;
+
+struct _ExecutiveSummaryComponentPrivate {
+ EvolutionServicesCreateBonoboViewFn create_bonobo_view;
+ EvolutionServicesCreateHtmlViewFn create_html_view;
+ EvolutionServicesConfigureFn configure;
+
+ ExecutiveSummaryClient *owner_client;
+
+ void *closure;
+};
+
+/* CORBA interface */
+static POA_Evolution_SummaryComponent__vepv SummaryComponent_vepv;
+
+static POA_Evolution_SummaryComponent *
+create_servant (void)
+{
+ POA_Evolution_SummaryComponent *servant;
+ CORBA_Environment ev;
+
+ servant = (POA_Evolution_SummaryComponent *)g_new0 (BonoboObjectServant, 1);
+ servant->vepv = &SummaryComponent_vepv;
+
+ CORBA_exception_init (&ev);
+ POA_Evolution_SummaryComponent__init ((PortableServer_Servant) servant, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_free (servant);
+ CORBA_exception_free (&ev);
+ return NULL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return servant;
+}
+
+static void
+impl_Evolution_SummaryComponent_supports (PortableServer_Servant servant,
+ CORBA_boolean *html,
+ CORBA_boolean *bonobo,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ *html = (priv->create_html_view != NULL);
+ *bonobo = (priv->create_bonobo_view != NULL);
+}
+
+static void
+impl_Evolution_SummaryComponent_set_owner (PortableServer_Servant servant,
+ Evolution_Summary summary,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+ ExecutiveSummaryClient *client;
+ Evolution_Summary summary_duplicate;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ /* Create a summary client */
+ client = gtk_type_new (executive_summary_client_get_type ());
+
+ summary_duplicate = CORBA_Object_duplicate (summary, ev);
+ executive_summary_client_construct (client, summary_duplicate);
+
+ priv->owner_client = client;
+}
+
+static void
+impl_Evolution_SummaryComponent_unset_owner (PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ if (priv->owner_client == NULL)
+ return;
+
+ bonobo_object_unref (BONOBO_OBJECT (priv->owner_client));
+ priv->owner_client = NULL;
+}
+
+static Bonobo_Control
+impl_Evolution_SummaryComponent_create_bonobo_view (PortableServer_Servant servant,
+ CORBA_char **title,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+ BonoboControl *control;
+ char *initial_title;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ control = (* priv->create_bonobo_view) (component, &initial_title,
+ priv->closure);
+
+ *title = CORBA_string_dup (initial_title ? initial_title:"");
+ g_free (initial_title);
+ return bonobo_object_corba_objref (BONOBO_OBJECT (control));
+}
+
+static CORBA_char *
+impl_Evolution_SummaryComponent_create_html_view (PortableServer_Servant servant,
+ CORBA_char **title,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+ CORBA_char *ret_str;
+ char *ret_html;
+ char *initial_title;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ ret_html = (* priv->create_html_view) (component, &initial_title,
+ priv->closure);
+
+ *title = CORBA_string_dup (initial_title ? initial_title:"");
+ g_free (initial_title);
+
+ ret_str = CORBA_string_dup (ret_html ? ret_html:"");
+ g_free (ret_html);
+ return ret_str;
+}
+
+static void
+impl_Evolution_SummaryComponent_configure (PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ component = EXECUTIVE_SUMMARY_COMPONENT (bonobo_object);
+ priv = component->private;
+
+ (* priv->configure) (component, priv->closure);
+}
+
+static void
+executive_summary_component_destroy (GtkObject *object)
+{
+ ExecutiveSummaryComponent *component;
+ ExecutiveSummaryComponentPrivate *priv;
+ CORBA_Environment ev;
+
+ component = EXECUTIVE_SUMMARY_COMPONENT (object);
+ priv = component->private;
+
+ if (priv == NULL)
+ return;
+
+ CORBA_exception_init (&ev);
+
+ if (priv->owner_client != NULL) {
+ bonobo_object_unref (BONOBO_OBJECT (priv->owner_client));
+ priv->owner_client = NULL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ g_free (priv);
+ component->private = NULL;
+
+ (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+}
+
+/* Init */
+static void
+corba_class_init (void)
+{
+ POA_Evolution_SummaryComponent__vepv *vepv;
+ POA_Evolution_SummaryComponent__epv *epv;
+ PortableServer_ServantBase__epv *base_epv;
+
+ base_epv = g_new0 (PortableServer_ServantBase__epv, 1);
+ base_epv->_private = NULL;
+ base_epv->finalize = NULL;
+ base_epv->default_POA = NULL;
+
+ epv = g_new0 (POA_Evolution_SummaryComponent__epv, 1);
+ epv->supports = impl_Evolution_SummaryComponent_supports;
+ epv->set_owner = impl_Evolution_SummaryComponent_set_owner;
+ epv->unset_owner = impl_Evolution_SummaryComponent_unset_owner;
+ epv->create_bonobo_view = impl_Evolution_SummaryComponent_create_bonobo_view;
+ epv->create_html_view = impl_Evolution_SummaryComponent_create_html_view;
+ epv->configure = impl_Evolution_SummaryComponent_configure;
+
+ vepv = &SummaryComponent_vepv;
+ vepv->_base_epv = base_epv;
+ vepv->Bonobo_Unknown_epv = bonobo_object_get_epv ();
+ vepv->Evolution_SummaryComponent_epv = epv;
+}
+
+static void
+executive_summary_component_class_init (ExecutiveSummaryComponentClass *klass)
+{
+ GtkObjectClass *object_class;
+
+ object_class = GTK_OBJECT_CLASS (klass);
+ object_class->destroy = executive_summary_component_destroy;
+
+ parent_class = gtk_type_class (PARENT_TYPE);
+
+ corba_class_init ();
+}
+
+static void
+executive_summary_component_init (ExecutiveSummaryComponent *component)
+{
+ ExecutiveSummaryComponentPrivate *priv;
+
+ priv = g_new0 (ExecutiveSummaryComponentPrivate, 1);
+
+ priv->create_bonobo_view = NULL;
+ priv->create_html_view = NULL;
+ priv->configure = NULL;
+
+ priv->owner_client = NULL;
+ priv->closure = NULL;
+
+ component->private = priv;
+}
+
+void
+executive_summary_component_construct (ExecutiveSummaryComponent *component,
+ Evolution_SummaryComponent corba_object,
+ EvolutionServicesCreateBonoboViewFn create_bonobo,
+ EvolutionServicesCreateHtmlViewFn create_html,
+ EvolutionServicesConfigureFn configure,
+ void *closure)
+{
+ ExecutiveSummaryComponentPrivate *priv;
+
+ g_return_if_fail (component != NULL);
+ g_return_if_fail (corba_object != CORBA_OBJECT_NIL);
+
+ bonobo_object_construct (BONOBO_OBJECT (component), corba_object);
+
+ priv = component->private;
+
+ priv->create_bonobo_view = create_bonobo;
+ priv->create_html_view = create_html;
+ priv->configure = configure;
+
+ priv->closure = closure;
+}
+
+BonoboObject *
+executive_summary_component_new (EvolutionServicesCreateBonoboViewFn create_bonobo,
+ EvolutionServicesCreateHtmlViewFn create_html,
+ EvolutionServicesConfigureFn configure,
+ void *closure)
+{
+ ExecutiveSummaryComponent *component;
+ POA_Evolution_SummaryComponent *servant;
+ Evolution_SummaryComponent corba_object;
+
+ servant = create_servant ();
+ if (servant == NULL)
+ return NULL;
+
+ component = gtk_type_new (executive_summary_component_get_type ());
+ corba_object = bonobo_object_activate_servant (BONOBO_OBJECT (component),
+ servant);
+
+ executive_summary_component_construct (component, corba_object,
+ create_bonobo, create_html,
+ configure, closure);
+
+ return BONOBO_OBJECT (component);
+}
+
+E_MAKE_TYPE (executive_summary_component, "ExecutiveSummaryComponent",
+ ExecutiveSummaryComponent, executive_summary_component_class_init,
+ executive_summary_component_init, PARENT_TYPE);
+
+void
+executive_summary_component_set_title (ExecutiveSummaryComponent *component,
+ const char *title)
+{
+ ExecutiveSummaryComponentPrivate *priv;
+
+ g_return_if_fail (component != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT (component));
+
+ priv = component->private;
+
+ if (priv->owner_client == NULL) {
+ g_warning ("Component not owned!");
+ return;
+ }
+
+ executive_summary_client_set_title (priv->owner_client, component,
+ title);
+}
+
+void
+executive_summary_component_flash (ExecutiveSummaryComponent *component)
+{
+ ExecutiveSummaryComponentPrivate *priv;
+
+ g_return_if_fail (component != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT (component));
+
+ priv = component->private;
+
+ if (priv->owner_client == NULL) {
+ g_warning ("Component not owned!");
+ return;
+ }
+
+ executive_summary_client_flash (priv->owner_client, component);
+}
+
+void
+executive_summary_component_update (ExecutiveSummaryComponent *component,
+ char *html)
+{
+ ExecutiveSummaryComponentPrivate *priv;
+
+ g_return_if_fail (component != NULL);
+ g_return_if_fail (IS_EXECUTIVE_SUMMARY_COMPONENT (component));
+
+ priv = component->private;
+
+ if (priv->owner_client == NULL) {
+ g_warning ("Component not ownded!");
+ return;
+ }
+
+ executive_summary_client_update (priv->owner_client, component, html);
+}
diff --git a/executive-summary/evolution-services/executive-summary-component.h b/executive-summary/evolution-services/executive-summary-component.h
new file mode 100644
index 0000000000..75c1e23eb7
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary-component.h
@@ -0,0 +1,70 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary-component.h
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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 _EXECUTIVE_SUMMARY_COMPONENT_H__
+#define _EXECUTIVE_SUMMARY_COMPONENT_H__
+
+#include <gtk/gtksignal.h>
+#include <bonobo.h>
+
+#define EXECUTIVE_SUMMARY_COMPONENT_TYPE (executive_summary_component_get_type ())
+#define EXECUTIVE_SUMMARY_COMPONENT(obj) (GTK_CHECK_CAST ((obj), EXECUTIVE_SUMMARY_COMPONENT_TYPE, ExecutiveSummaryComponent))
+#define EXECUTIVE_SUMMARY_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EXECUTIVE_SUMMARY_COMPONENT_TYPE, ExecutiveSummaryComponentClass))
+#define IS_EXECUTIVE_SUMMARY_COMPONENT(obj) (GTK_CHECK_TYPE ((obj), EXECUTIVE_SUMMARY_COMPONENT_TYPE))
+#define IS_EXECUTIVE_SUMMARY_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EXECUTIVE_SUMMARY_COMPONENT_TYPE))
+
+typedef struct _ExecutiveSummaryComponentPrivate ExecutiveSummaryComponentPrivate;
+typedef struct _ExecutiveSummaryComponent ExecutiveSummaryComponent;
+typedef struct _ExecutiveSummaryComponentClass ExecutiveSummaryComponentClass;
+
+typedef BonoboObject *(* EvolutionServicesCreateBonoboViewFn) (ExecutiveSummaryComponent *component,
+ char **title,
+ void *closure);
+typedef char *(* EvolutionServicesCreateHtmlViewFn) (ExecutiveSummaryComponent *component,
+ char **title,
+ void *closure);
+typedef void (* EvolutionServicesConfigureFn) (ExecutiveSummaryComponent *component,
+ void *closure);
+
+struct _ExecutiveSummaryComponent {
+ BonoboObject parent;
+
+ ExecutiveSummaryComponentPrivate *private;
+};
+
+struct _ExecutiveSummaryComponentClass {
+ BonoboObjectClass parent_class;
+};
+
+GtkType executive_summary_component_get_type (void);
+
+BonoboObject *executive_summary_component_new (EvolutionServicesCreateBonoboViewFn create_bonobo,
+ EvolutionServicesCreateHtmlViewFn create_html,
+ EvolutionServicesConfigureFn configure,
+ void *closure);
+void executive_summary_component_set_title (ExecutiveSummaryComponent *component,
+ const char *title);
+void executive_summary_component_flash (ExecutiveSummaryComponent *component);
+void executive_summary_component_update (ExecutiveSummaryComponent *component,
+ char *html);
+#endif
diff --git a/executive-summary/evolution-services/executive-summary.c b/executive-summary/evolution-services/executive-summary.c
new file mode 100644
index 0000000000..08e4146466
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary.c
@@ -0,0 +1,241 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary.c - Bonobo implementation of Summary.idl
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <bonobo.h>
+#include <gnome.h>
+#include <gal/util/e-util.h>
+
+#include "Executive-Summary.h"
+#include "executive-summary.h"
+
+static void executive_summary_destroy (GtkObject *object);
+static void executive_summary_class_init (ExecutiveSummaryClass *es_class);
+static void executive_summary_init (ExecutiveSummary *es);
+
+#define PARENT_TYPE (bonobo_object_get_type ())
+
+static BonoboObjectClass *parent_class;
+
+struct _ExecutiveSummaryPrivate {
+ EvolutionServicesSetTitleFn set_title;
+ EvolutionServicesFlashFn flash;
+ EvolutionServicesUpdateFn update;
+
+ void *closure;
+};
+
+/* CORBA interface implementation */
+static POA_Evolution_Summary__vepv Summary_vepv;
+
+static POA_Evolution_Summary *
+create_servant (void)
+{
+ POA_Evolution_Summary *servant;
+ CORBA_Environment ev;
+
+ servant = (POA_Evolution_Summary *)g_new0 (BonoboObjectServant, 1);
+ servant->vepv = &Summary_vepv;
+
+ CORBA_exception_init (&ev);
+
+ POA_Evolution_Summary__init ((PortableServer_Servant) servant, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_free (servant);
+ CORBA_exception_free (&ev);
+ return NULL;
+ }
+
+ CORBA_exception_free (&ev);
+
+ return servant;
+}
+
+static void
+impl_Evolution_Summary_set_title (PortableServer_Servant servant,
+ const Evolution_SummaryComponent component,
+ const CORBA_char *title,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummary *summary;
+ ExecutiveSummaryPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ summary = EXECUTIVE_SUMMARY (bonobo_object);
+ priv = summary->private;
+
+ (* priv->set_title) (summary, component, title, priv->closure);
+}
+
+static void
+impl_Evolution_Summary_flash (PortableServer_Servant servant,
+ const Evolution_SummaryComponent component,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummary *summary;
+ ExecutiveSummaryPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ summary = EXECUTIVE_SUMMARY (bonobo_object);
+ priv = summary->private;
+
+ (* priv->flash) (summary, component, priv->closure);
+}
+
+static void
+impl_Evolution_Summary_update_html_component (PortableServer_Servant servant,
+ const Evolution_SummaryComponent component,
+ CORBA_char *html,
+ CORBA_Environment *ev)
+{
+ BonoboObject *bonobo_object;
+ ExecutiveSummary *summary;
+ ExecutiveSummaryPrivate *priv;
+
+ bonobo_object = bonobo_object_from_servant (servant);
+ summary = EXECUTIVE_SUMMARY (bonobo_object);
+ priv = summary->private;
+
+ (* priv->update) (summary, component, html, priv->closure);
+}
+
+/* GtkObject methods */
+static void
+executive_summary_destroy (GtkObject *object)
+{
+ ExecutiveSummary *es;
+ ExecutiveSummaryPrivate *priv;
+
+ es = EXECUTIVE_SUMMARY (object);
+ priv = es->private;
+
+ if (priv == NULL)
+ return;
+
+ g_free (priv);
+ es->private = NULL;
+}
+
+/* Initialisation */
+
+static void
+corba_class_init (void)
+{
+ POA_Evolution_Summary__vepv *vepv;
+ POA_Evolution_Summary__epv *epv;
+ PortableServer_ServantBase__epv *base_epv;
+
+ base_epv = g_new0 (PortableServer_ServantBase__epv, 1);
+ base_epv->_private = NULL;
+ base_epv->finalize = NULL;
+ base_epv->default_POA = NULL;
+
+ epv = g_new0 (POA_Evolution_Summary__epv, 1);
+ epv->set_title = impl_Evolution_Summary_set_title;
+ epv->flash = impl_Evolution_Summary_flash;
+ epv->update_html_component = impl_Evolution_Summary_update_html_component;
+
+ vepv = &Summary_vepv;
+ vepv->_base_epv = base_epv;
+ vepv->Bonobo_Unknown_epv = bonobo_object_get_epv ();
+ vepv->Evolution_Summary_epv = epv;
+}
+
+static void
+executive_summary_class_init (ExecutiveSummaryClass *es_class)
+{
+ GtkObjectClass *object_class;
+
+ object_class = (GtkObjectClass *) es_class;
+
+ object_class->destroy = executive_summary_destroy;
+
+ parent_class = gtk_type_class (PARENT_TYPE);
+ corba_class_init ();
+}
+
+static void
+executive_summary_init (ExecutiveSummary *es)
+{
+ ExecutiveSummaryPrivate *priv;
+
+ priv = g_new0 (ExecutiveSummaryPrivate, 1);
+ es->private = priv;
+
+ priv->set_title = NULL;
+ priv->flash = NULL;
+ priv->closure = NULL;
+}
+
+E_MAKE_TYPE (executive_summary, "ExecutiveSummary", ExecutiveSummary,
+ executive_summary_class_init, executive_summary_init, PARENT_TYPE);
+
+void
+executive_summary_construct (ExecutiveSummary *es,
+ Evolution_Summary corba_object,
+ EvolutionServicesSetTitleFn set_title,
+ EvolutionServicesFlashFn flash,
+ EvolutionServicesUpdateFn update,
+ void *closure)
+{
+ ExecutiveSummaryPrivate *priv;
+
+ bonobo_object_construct (BONOBO_OBJECT (es), corba_object);
+
+ priv = es->private;
+ priv->set_title = set_title;
+ priv->flash = flash;
+ priv->update = update;
+ priv->closure = closure;
+}
+
+BonoboObject *
+executive_summary_new (EvolutionServicesSetTitleFn set_title,
+ EvolutionServicesFlashFn flash,
+ EvolutionServicesUpdateFn update,
+ void *closure)
+{
+ POA_Evolution_Summary *servant;
+ Evolution_Summary corba_object;
+ ExecutiveSummary *es;
+
+ servant = create_servant ();
+ if (servant == NULL)
+ return NULL;
+
+ es = gtk_type_new (executive_summary_get_type ());
+
+ corba_object = bonobo_object_activate_servant (BONOBO_OBJECT (es),
+ servant);
+ executive_summary_construct (es, corba_object, set_title, flash,
+ update, closure);
+
+ return BONOBO_OBJECT (es);
+}
+
+
diff --git a/executive-summary/evolution-services/executive-summary.h b/executive-summary/evolution-services/executive-summary.h
new file mode 100644
index 0000000000..e2d5557d69
--- /dev/null
+++ b/executive-summary/evolution-services/executive-summary.h
@@ -0,0 +1,75 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/* executive-summary.h
+ *
+ * Authors: Iain Holmes <iain@helixcode.com>
+ *
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * 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 _EXECUTIVE_SUMMARY_H__
+#define _EXECUTIVE_SUMMARY_H__
+
+#include <gtk/gtksignal.h>
+#include <bonobo.h>
+#include "Executive-Summary.h"
+
+#define EXECUTIVE_SUMMARY_TYPE (executive_summary_get_type ())
+#define EXECUTIVE_SUMMARY(obj) (GTK_CHECK_CAST ((obj), EXECUTIVE_SUMMARY_TYPE, ExecutiveSummary))
+#define EXECUTIVE_SUMMARY_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EXECUTIVE_SUMMARY_TYPE, ExecutiveSummaryClass))
+#define IS_EXECUTIVE_SUMMARY(obj) (GTK_CHECK_TYPE ((obj), EXECUTIVE_SUMMARY_TYPE))
+#define IS_EXECUTIVE_SUMMARY_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), EXECUTIVE_SUMMARY_TYPE))
+
+typedef struct _ExecutiveSummaryPrivate ExecutiveSummaryPrivate;
+typedef struct _ExecutiveSummary ExecutiveSummary;
+typedef struct _ExecutiveSummaryClass ExecutiveSummaryClass;
+
+typedef void (* EvolutionServicesSetTitleFn) (ExecutiveSummary *summary,
+ const Evolution_SummaryComponent component,
+ const char *title,
+ void *closure);
+typedef void (* EvolutionServicesFlashFn) (ExecutiveSummary *summary,
+ const Evolution_SummaryComponent component,
+ void *closure);
+typedef void (* EvolutionServicesUpdateFn) (ExecutiveSummary *summary,
+ const Evolution_SummaryComponent component,
+ const char *html,
+ void *closure);
+
+struct _ExecutiveSummary {
+ BonoboObject parent;
+
+ ExecutiveSummaryPrivate *private;
+};
+
+struct _ExecutiveSummaryClass {
+ BonoboObjectClass parent_class;
+};
+
+GtkType executive_summary_get_type (void);
+void executive_summary_construct (ExecutiveSummary *es,
+ Evolution_Summary corba_object,
+ EvolutionServicesSetTitleFn set_title,
+ EvolutionServicesFlashFn flash,
+ EvolutionServicesUpdateFn update,
+ void *closure);
+BonoboObject *executive_summary_new (EvolutionServicesSetTitleFn set_title,
+ EvolutionServicesFlashFn flash,
+ EvolutionServicesUpdateFn update,
+ void *closure);
+
+#endif