* Evolution-ShellComponent.idl (createView): Add a "view_info" argument. * e-shell-view.c (get_view_for_uri): if the URI contains a '#', split it into a URI and a "view_info" at that point. (Otherwise, pass "" for the view_info to ShellComponent_createView.) This can be used for things like specifying day/month/week view to the calendar. * e-shell.c (create_view): Ignore e_shell_view_display_uri's return code: it's possible/likely that the requested URL is remote and hasn't been filled in yet. (impl_Shell_handleURI): Don't use Shell_createNewView directly, call e_shell_create_view_from_uri_and_settings. (For the above fix and some others.) * evolution-shell-component.c (impl_createView): Add view_info. * evolution-shell-component-client.c (evolution_shell_component_client_create_view): Add view_info. * evolution-test-component.c (create_view_fn): add view_data. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): kill a warning svn path=/trunk/; revision=16397
126 lines
2.9 KiB
Plaintext
126 lines
2.9 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;
|
|
Icon icon;
|
|
};
|
|
typedef sequence<UserCreatableItemType> UserCreatableItemTypeList;
|
|
|
|
interface ShellComponentListener;
|
|
|
|
interface ShellComponent : Bonobo::Unknown {
|
|
readonly attribute FolderTypeList supportedTypes;
|
|
readonly attribute URISchemaList externalUriSchemas ;
|
|
readonly attribute UserCreatableItemTypeList userCreatableItemTypes;
|
|
|
|
exception AlreadyOwned {};
|
|
exception OldOwnerHasDied {};
|
|
|
|
void setOwner (in Shell shell, in string evolution_homedir)
|
|
raises (AlreadyOwned, OldOwnerHasDied);
|
|
|
|
exception NotOwned {};
|
|
|
|
void unsetOwner ()
|
|
raises (NotOwned);
|
|
|
|
void interactive (in boolean now_interactive);
|
|
|
|
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,
|
|
in string view_info)
|
|
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);
|
|
|
|
void sendReceive (in boolean show_dialog);
|
|
};
|
|
|
|
interface ShellComponentListener {
|
|
enum Result {
|
|
OK,
|
|
UNSUPPORTED_OPERATION,
|
|
UNSUPPORTED_TYPE,
|
|
EXISTS,
|
|
INVALID_URI,
|
|
PERMISSION_DENIED,
|
|
HAS_SUBFOLDERS,
|
|
NO_SPACE
|
|
};
|
|
|
|
void notifyResult (in Result result);
|
|
};
|
|
};
|
|
};
|