Files
evolution/shell/Evolution-ShellComponent.idl
Ettore Perazzoli d9ed7a6a63 Added display_name and description to the type.
* evolution-test-component.c: Added display_name and description
to the type.

* evolution-shell-component.c (impl__get_supported_types): Pass
`display_name' and `description' here.
(evolution_shell_component_construct): Likewise.

* evolution-shell-component.h: New members `display_name',
`description' in `EvolutionShellComponentFolderType'.

* e-component-registry.c (register_type): New args @description
and @display_name.  Pass to
`e_folder_type_registry_register_type()'.
(register_component): Pass the values returned in the sequence
from __get_supported_types.

* e-folder-type-registry.c: New members `display_name' and
`description' in `struct _FolderType'.
(folder_type_new): New args @description and @display_name.
Initialize the respective fields in the `FolderType' accordingly.
(folder_type_free): Free `display_name' and `description'.
(register_folder_type): New args @display_name, @description.
(e_folder_type_registry_register_type): New args @display_name,
@description.
(e_folder_type_registry_get_description_for_type): New.
(e_folder_type_registry_get_display_name_for_type): New.

* Evolution-ShellComponent.idl: Added `display_name' and
`description' fields to the `FolderType' struct.

svn path=/trunk/; revision=12245
2001-08-20 04:42:04 +00:00

120 lines
2.7 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;
string display_name;
string description;
boolean user_creatable;
sequence<string> accepted_dnd_types;
sequence<string> exported_dnd_types;
};
typedef sequence<FolderType> FolderTypeList;
typedef string URISchema;
typedef sequence<URISchema> URISchemaList;
struct UserCreatableItemType {
string id;
string description;
string menuDescription;
char menuShortcut;
};
typedef sequence<UserCreatableItemType> UserCreatableItemTypeList;
interface ShellComponentListener;
interface ShellComponent : Bonobo::Unknown {
readonly attribute FolderTypeList supported_types;
readonly attribute URISchemaList external_uri_schemas;
readonly attribute UserCreatableItemTypeList user_creatable_item_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 UnsupportedSchema {};
exception InternalError {};
Bonobo::Control createView (in string physical_uri,
in string type)
raises (NotFound, UnsupportedType, InternalError);
void handleExternalURI (in string external_uri)
raises (NotFound, UnsupportedSchema, 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,
in string type)
raises (Busy);
void xferFolderAsync (in ShellComponentListener listener,
in string source_physical_uri,
in string destination_physical_uri,
in string type,
in boolean remove_source)
raises (Busy);
void populateFolderContextMenu (in Bonobo::UIContainer uih,
in string physical_uri,
in string type);
void userCreateNewItem (in string id,
in string parent_folder_physical_uri,
in string parent_folder_type)
raises (UnsupportedType);
};
interface ShellComponentListener {
enum Result {
OK,
UNSUPPORTED_OPERATION,
UNSUPPORTED_TYPE,
EXISTS,
INVALID_URI,
PERMISSION_DENIED,
HAS_SUBFOLDERS,
NO_SPACE
};
void notifyResult (in Result result);
};
};
};