Files
evolution/shell/Evolution-Component.idl
Not Zed 3a96d74c2b ** See bug #53683.
2004-02-04  Not Zed  <NotZed@Ximian.com>

	** See bug #53683.

	* Evolution-Component.idl: added EvolutionComponent::quit() call.

	* main.c (quit_box_new): removed, dont show quit box anymore at
	the end, we've already shutdown by now with the new shutdown
	sequence.

	* e-shell-window-commands.c (command_quit): call e_shell_quit to
	quit.

	* e-shell.c (e_shell_prepare_for_quit): renamed es_run_quit, now
	internal, and a gtktimeout function, so return code inverted.
	(e_shell_quit): new public entry, find out if we can shutdown, if
	so, then trigger a shutdown.
	(e_shell_request_close_window): just call e_shell_quit to exit
	when we've run out of windows.
	(e_shell_quit): desensitise all of the app windows before running
	shutdown.  looks a bit weird, but not doing so looks worse.

svn path=/trunk/; revision=24609
2004-02-04 10:55:25 +00:00

88 lines
2.4 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Interface for the Evolution components.
*
* Authors:
* Ettore Perazzoli <ettore@ximian.com>
*
* Copyright (C) 2003 Ximian, Inc.
*/
#include <Bonobo.idl>
module GNOME {
module Evolution {
/* A type of item that the component can create when asked by the user,
e.g. a mail message or an appointment. */
struct CreatableItemType {
string id;
string description;
string menuDescription;
string tooltip;
char menuShortcut;
string iconName;
};
typedef sequence <CreatableItemType> CreatableItemTypeList;
interface Component : Bonobo::Unknown {
exception Failed {};
exception UnknownType {};
/*** Upgrade path. ***/
boolean upgradeFromVersion (in short major, in short minor, in short revision);
/*** Basic functionality. ***/
/* Create the controls for embedding in the shell. */
void createControls (out Bonobo::Control sidebar_control,
out Bonobo::Control view_control,
out Bonobo::Control statusbar_control)
raises (Failed);
/* Check if the component can quit.
Do not perform any quit-related tasks however.
May be called multiple times, depending on user interaction. */
boolean requestQuit ();
/* Ask the component to quit. Returns TRUE when the
component has completed any closing-down tasks, and
is ready to exit(). This will be called repeatedly
at intervals until it returns TRUE. */
boolean quit ();
/* Notify the component of whether the shell is currently
running in interactive mode or not. (I.e. basically,
whether there are any Evolution windows on the screen.)
@new_view_xid is an X Window ID ("None" if @now_interactive
is FALSE) */
void interactive (in boolean now_interactive,
in unsigned long new_view_xid);
/*** The following stuff is needed to build the "New" toolbar
item as well as the "File -> New" submenu. ***/
/* List of creatable items. */
readonly attribute CreatableItemTypeList userCreatableItems;
/* Pop up a new editing dialog for the item with the specified
@item_type_name. */
void requestCreateItem (in string item_type_name)
raises (UnknownType, Failed);
/*** URI handling (e.g. for the command-line, "evolution
mailto:foo@bar.org") ***/
void handleURI (in string uri);
/*** Send/receive. ***/
void sendAndReceive ();
};
};
};