* Evolution-ShellComponent.idl: Studlycapsize all the IDs that are not. * Evolution-common.idl: Likewise. * evolution-activity-client.c: Updated accordingly. * evolution-shell-component.c: Likewise. * evolution-storage.c: Likewise. * e-activity-handler.c: Likewise. * e-component-registry.c: Likewise. * e-corba-storage.c: Likewise. * e-shell-user-creatable-items-handlers.c: Likewise. * e-local-storage.c (remove_folder): Remove unused variable. * e-shell-view.c (update_for_current_uri): Assign zero to `unread_count', not NULL. * e-shell-importer.c (import_druid_finish): Remove unused variable. * e-shell-user-creatable-items-handler.c: #include "e-corba-utils.h". * e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h". * e-shell-startup-wizard.h: #include <glib.h> * e-summary-weather.c (weather_make_html): Make local variable `icon_name' const. Remove unused variable `uri'. * e-summary.h: Reformatted in GTK+ style. (e_summary_remove_online_connection): Added prototype. * e-summary-preferences.c (fill_mail_shown_clist): Constify local variable `name'. * e-summary-mail.c: #include "e-util/e-path.h". Updated to match the new studlyCapsification in shell/Evolution*.idl. * mail-local.c: Match the studlyCapsification of shell/Evolution*.idl. * mail-config-druid.h: Change type of `event_source' from `Bonobo_EventSource *' to `Bonobo_EventSource'. * mail-accounts.c (mail_delete): Remove unused local variable `label'. * folder-info.c (do_get_info): `#if 0' unused variables. * gui/component/addressbook-component.c: Get rid of a warning by initializing the closing NULL element in folder_types correctly. * gui/component/select-names/e-select-names.c: Updated to match the studlyCapsification of attributes in shell/Evolution*.idl. svn path=/trunk/; revision=12495
120 lines
2.7 KiB
Plaintext
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 iconName;
|
|
|
|
string displayName;
|
|
string description;
|
|
|
|
boolean userCreatable;
|
|
|
|
sequence<string> acceptedDndTypes;
|
|
sequence<string> exportedDndTypes;
|
|
};
|
|
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 supportedTypes;
|
|
readonly attribute URISchemaList externalUriSchemas ;
|
|
readonly attribute UserCreatableItemTypeList userCreatableItemTypes;
|
|
|
|
/* 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);
|
|
};
|
|
};
|
|
};
|