Files
evolution/shell/Evolution-ShellComponent.idl
Dan Winship 5778265e23 add "in string evolution_homedir" to ShellComponent::set_owner's
* Evolution-ShellComponent.idl: add "in string evolution_homedir"
        to ShellComponent::set_owner's arguments.

        * e-shell.c (e_shell_get_local_directory): Expose local_directory.

        * e-component-registry.c (register_component): Pass the shell's
        "local_directory" to the component as its evolution_homedir.

        * evolution-shell-component.c (impl_ShellComponent_set_owner):
        Update to include evolution_homedir.
        (class_init): Update signal prototype.

        * evolution-shell-component-client.c
        (evolution_shell_component_client_set_owner): Update to include
        evolution_homedir.

        * e-init.c: Remove. This wasn't being used.

svn path=/trunk/; revision=4710
2000-08-10 23:59:41 +00:00

78 lines
1.6 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Interface for the Evolution components.
*
* Authors:
* Ettore Perazzoli <ettore@helixcode.com>
*
* Copyright (C) 2000 Helix Code, Inc.
*/
#include <Bonobo.h>
module Evolution {
interface Shell;
struct FolderType {
string name;
string icon_name;
};
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 set_owner (in Shell shell, in string evolution_homedir)
raises (AlreadyOwned);
exception NotOwned {};
void unset_owner ()
raises (NotOwned);
/* FIXME: We might want more exceptions here. */
exception NotFound {};
exception UnsupportedType {};
exception InternalError {};
Bonobo::Control create_view (in string physical_uri,
in string type)
raises (NotFound, UnsupportedType, InternalError);
exception Busy {};
void async_create_folder (in ShellComponentListener listener,
in string physical_uri,
in string type)
raises (Busy);
void async_remove_folder (in ShellComponentListener listener,
in string physical_uri)
raises (Busy);
void populate_folder_context_menu (in Bonobo::UIHandler 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 report_result (in Result result);
};
};