* main.c: Added a new "-c" command-line arg. (idle_cb): If the arg is specified, open the component with that id/alias. * e-shell.c (impl_Shell_createNewView): New, implementation for the Shell::createNewView() CORBA method. (e_shell_class_init): Install. (e_shell_create_window): Get a component_id arg. * e-shell-window.c (e_shell_window_new): Get a component_id arg and create the window with that component activated if not NULL. * Evolution-Shell.idl (createNewView): Remove. (createNewWindow): New. svn path=/trunk/; revision=23274
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* Interface for the Evolution shell.
|
|
*
|
|
* Authors:
|
|
* Ettore Perazzoli <ettore@ximian.com>
|
|
*
|
|
* Copyright (C) 2000, 2001 Ximian, Inc.
|
|
*/
|
|
|
|
#include <Bonobo.idl>
|
|
|
|
module GNOME {
|
|
module Evolution {
|
|
interface Shell : Bonobo::Unknown {
|
|
exception Busy {};
|
|
exception ComponentNotFound {};
|
|
exception InternalError {};
|
|
exception InvalidURI {};
|
|
exception NotFound {};
|
|
exception NotReady {};
|
|
exception UnsupportedSchema {};
|
|
|
|
/**
|
|
* createNewWindow:
|
|
* @component_id: id or alias of the component to display in the new window.
|
|
*
|
|
*/
|
|
void createNewWindow (in string component_id)
|
|
raises (NotReady, ComponentNotFound, UnsupportedSchema, InternalError);
|
|
|
|
/**
|
|
* handleURI:
|
|
* @uri: URI to handle
|
|
*
|
|
* This handles the specified URI. It is different from
|
|
* `::createNewView' as it doesn't necessarily imply creating a
|
|
* new ShellView. (For example, a `mailto:' URI will invoke
|
|
* the message composer.)
|
|
*/
|
|
void handleURI (in string uri)
|
|
raises (NotReady, NotFound, UnsupportedSchema, InvalidURI, InternalError);
|
|
|
|
/**
|
|
* setLineStatus:
|
|
*
|
|
* Set the shell into on-line or off-line mode.
|
|
*/
|
|
void setLineStatus (in boolean online)
|
|
raises (NotReady);
|
|
};
|
|
};
|
|
};
|