Files
evolution/shell/Evolution-ShellComponent.idl
Dan Winship bfdcfc7949 add a "debug" method to tell a component to output debugging messages to a
* Evolution-ShellComponent.idl: add a "debug" method to tell a
	component to output debugging messages to a given file.

	* main.c (main): Add a "--debug filename" argument, to direct
	debugging output for all components to a file. Redirect the
	shell's stdout/stderr to that file if this argument is used.

	* evolution-shell-component-client.c
	(evolution_shell_component_client_set_owner): If debug_log is set,
	call the component's debug method as well.

	* evolution-shell-component.c (impl_ShellComponent_debug):
	redirect stdout/stderr to the named file and emit a "debug"
	signal.

svn path=/trunk/; revision=9046
2001-03-30 16:39:46 +00:00

92 lines
2.0 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) 2000, 2001 Ximian, Inc.
*/
#include <Bonobo.h>
module GNOME {
module Evolution {
interface Shell;
struct FolderType {
string name;
string icon_name;
sequence<string> accepted_dnd_types;
sequence<string> exported_dnd_types;
};
typedef sequence<FolderType> FolderTypeList;
interface ShellComponentListener;
interface ShellComponent : Bonobo::Unknown {
readonly attribute FolderTypeList supported_types;
/* FIXME: Can we use an attribute here? */
exception AlreadyOwned {};
void setOwner (in Shell shell, in string evolution_homedir)
raises (AlreadyOwned);
exception NotOwned {};
void unsetOwner ()
raises (NotOwned);
void debug (in string log_path);
/* FIXME: We might want more exceptions here. */
exception NotFound {};
exception UnsupportedType {};
exception InternalError {};
Bonobo::Control createView (in string physical_uri,
in string type)
raises (NotFound, UnsupportedType, InternalError);
exception Busy {};
void createFolderAsync (in ShellComponentListener listener,
in string physical_uri,
in string type)
raises (Busy);
void removeFolderAsync (in ShellComponentListener listener,
in string physical_uri)
raises (Busy);
void xferFolderAsync (in ShellComponentListener listener,
in string source_physical_uri,
in string destination_physical_uri,
in boolean remove_source)
raises (Busy);
void populateFolderContextMenu (in Bonobo::UIContainer uih,
in string physical_uri,
in string type);
};
interface ShellComponentListener {
enum Result {
OK,
UNSUPPORTED_OPERATION,
UNSUPPORTED_TYPE,
EXISTS,
INVALID_URI,
PERMISSION_DENIED,
HAS_SUBFOLDERS,
NO_SPACE
};
void notifyResult (in Result result);
};
};
};