aboutsummaryrefslogtreecommitdiffstats
path: root/executive-summary/idl/SummaryComponent.idl
blob: fbfd58800af2a3b494e26b7c44e5133f75eccfea (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
/*-*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * CORBA interface for the Evolution Executive Summary Components.
 *
 * Authors:
 *   Iain Holmes  <iain@helixcode.com> 
 *
 * Copyright (C) 2000 Helix Code, Inc.
 */

/* TODO: Needs Exceptions */

#include <Bonobo.idl>

module GNOME {
module Evolution {
module Summary {
    interface ViewFrame;

    interface Component: Bonobo::Unknown {

        /**
         * setOwner:
         * @summary: A Summary object.
         *
         * Sets the owner of the component.
         */
        void setOwner (in ViewFrame owner);

        /**
         * unsetOwner:
         *
         * Unsets the owner of the component.
         */
        void unsetOwner ();

        /**
         * createView:
         * @control: A Bonobo_Control
         * @html: HTML of the view.
         * @title: Title of the view.
         * @icon: Icon to be used for the view.
         *
         * Creates a summary of the data that the component has.
         * Returns: The ID of the view.
         */
        long createView (in long id,
                 out Bonobo::Control control,
                 out string html,
                 out string title,
                 out string icon);

        /**
         * destroyView:
         * @id: ID of the view to be destroyed.
         *
         * Tells a service that a view has been destroyed.
         */
        void destroyView (in long id);

        /**
         * configure:
         * 
         * Instructs the component to open a preferences dialog.
         */
        void configure ();

    };
};
};
};