aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Evolution-ShellComponent.idl
blob: 90b72fea26910707abebd959a50f7cd198c32b88 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Interface for the Evolution components.
 *
 * Authors:
 *   Ettore Perazzoli <ettore@helixcode.com>
 *
 * Copyright (C) 2000 Helix Code, Inc.
 */

#include <Bonobo.h>

module Evolution {
    interface Shell;

    struct FolderType {
        string name;
        string icon_name;
    };

    typedef sequence<FolderType> FolderTypeList;

    interface ShellComponentListener;

    interface ShellComponent : Bonobo::Unknown {
        readonly attribute FolderTypeList supported_types;

        /* FIXME: Can we use an attribute here?  */
        exception AlreadyOwned {};

        void set_owner (in Shell shell)
            raises (AlreadyOwned);

        exception NotOwned {};

        void unset_owner ()
            raises (NotOwned);

        /* FIXME: We might want more exceptions here.  */
        exception NotFound {};
        exception UnsupportedType {};
        exception InternalError {};

        Bonobo::Control create_view (in string physical_uri,
                         in string type)
            raises (NotFound, UnsupportedType, InternalError);

        exception Busy {};

        void async_create_folder (in ShellComponentListener listener,
                      in string physical_uri,
                      in string type)
            raises (Busy);
        void async_remove_folder (in ShellComponentListener listener,
                      in string physical_uri)
            raises (Busy);

        void populate_folder_context_menu (in Bonobo::UIHandler uih,
                           in string physical_uri,
                           in string type);
    };

    interface ShellComponentListener {
        enum Result {
            OK,
            UNSUPPORTED_OPERATION,
            UNSUPPORTED_TYPE,
            EXISTS,
            INVALID_URI,
            PERMISSION_DENIED,
            HAS_SUBFOLDERS,
            NO_SPACE
        };

        void report_result (in Result result);
    };
};
net-p2p/ncdc: update to 1.17wg2013-06-182-3/+5 * Convert USE_NCURSES by USES=ncursesbapt2013-05-061-2/+1 * Chase security/libgcrypt updateehaupt2013-05-041-0/+1 * Finish converting the whole ports tree to USES=pkgconfigbapt2013-04-231-1/+1 * Update to version 1.16.1pawel2013-04-202-3/+3