aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Evolution-Shortcuts.idl
blob: 7ffb55a16417dd7a8607f4d2dfdedcd10608e4d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Interface for the Evolution shortcuts.
 *
 * Authors:
 *   Ettore Perazzoli <ettore@ximian.com>
 *
 * Copyright (C) 2001 Ximian, Inc.
 */

#include <Bonobo.idl>

module GNOME {
module Evolution {

    interface Shortcuts : Bonobo::Unknown {

        struct Shortcut {
            string uri;
            string name;
            string type;
        };
        typedef sequence <Shortcut> ShortcutList;

        struct Group {
            string name;
            ShortcutList shortcuts;
        };
        typedef sequence<Group> GroupList;

        exception NotFound {};

        readonly attribute GroupList groups; // FIXME: Could be non-readonly

        void add (in short group_num, in short position, in Shortcut shortcut)
            raises (NotFound);
        void remove (in short group_num, in short item_num)
            raises (NotFound);
        Shortcut get (in short group_num, in short item_num)
            raises (NotFound);

        void addGroup (in short position, in string name);
        void removeGroup (in short group_num)
            raises (NotFound);
        Group getGroup (in short group_num)
            raises (NotFound);

    };

};
};