aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Evolution-LocalStorage.idl
blob: 8ade4e98135b1ff94eff066ab4fcf088077262a1 (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
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Interface for the Evolution local storage.
 *
 * Authors:
 *   Ettore Perazzoli <ettore@helixcode.com>
 *
 * Copyright (C) 2000 Helix Code, Inc.
 */

#include <Bonobo.idl>

module GNOME {
module Evolution {
    interface LocalStorage : Evolution::Storage {
        /**
         * update_folder:
         * @path: Path of a folder within the storage.
         * @display_name: Name to be displayed in the tree view for
         * this folder
         * @highlighted: Whether or not to highlight the name.
         *
         * Set the name to display for the folder at the specified
         * @path.
         */
        void updateFolder (in string path,
                   in string display_name,
                   in boolean highlighted);
    };

    interface LocalStorageOpsListener : Bonobo::Unknown {
        enum Result {
            OK,
            UNSUPPORTED_OPERATION,
            UNSUPPORTED_TYPE,
            EXISTS,
            INVALID_URI,
            PERMISSION_DENIED,
            HAS_SUBFOLDERS,
            NO_SPACE
        };

        void notifyResult (in Result result);
    };

    interface LocalStorageOps : Bonobo::Unknown {
        exception Busy {};

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

        void removeFolderAsync (in ShellComponentListener listener,
                    in string physical_uri)
            raises (Busy);

        void populateFolderContextMenu (in Bonobo::UIContainer uih,
                        in string physical_uri,
                        in string type);
    };
};
};