source: trunk/third/evolution/shell/Evolution-Shortcuts.idl @ 18142

Revision 18142, 1.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18141, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2/*
3 * Interface for the Evolution shortcuts.
4 *
5 * Authors:
6 *   Ettore Perazzoli <ettore@ximian.com>
7 *
8 * Copyright (C) 2001 Ximian, Inc.
9 */
10
11#include <Bonobo.idl>
12
13module GNOME {
14module Evolution {
15
16        interface Shortcuts : Bonobo::Unknown {
17
18                struct Shortcut {
19                        string uri;
20                        string name;
21                        string type;
22                        string customIconName;
23                };
24                typedef sequence <Shortcut> ShortcutList;
25
26                struct Group {
27                        string name;
28                        ShortcutList shortcuts;
29                };
30                typedef sequence<Group> GroupList;
31
32                exception NotFound {};
33                exception InvalidPosition {};
34                exception CannotRemove {};
35
36                readonly attribute GroupList groups; // FIXME: Could be non-readonly
37
38                void add (in short group_num, in short position, in Shortcut shortcut)
39                        raises (NotFound);
40                void remove (in short group_num, in short item_num)
41                        raises (NotFound);
42                Shortcut get (in short group_num, in short item_num)
43                        raises (NotFound);
44
45                void addGroup (in short position, in string name)
46                        raises (InvalidPosition);
47                void removeGroup (in short group_num)
48                        raises (NotFound, CannotRemove);
49                Group getGroup (in short group_num)
50                        raises (NotFound);
51
52        };
53
54};
55};
Note: See TracBrowser for help on using the repository browser.