aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/Evolution-Addressbook-SelectNames.idl
blob: f25279bb38980df68173c913baff65546de3f599 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * CORBA interface for the SelectNames dialog.
 *
 * Authors:
 *   Ettore Perazzoli <ettore@ximian.com>
 *
 * Copyright (C) 2000 Ximian, Inc.
 */

#include <Bonobo.idl>

module GNOME {
module Evolution {
module Addressbook {

    interface SimpleCard : Bonobo::Unknown {
        struct Arbitrary {
            string key;
            string type;
            string value;
        };

        enum Field {
            FileAs,
            FullName,
            Email,
            PhonePrimary,
            PhoneAssistant,
            PhoneBusiness,
            PhoneCallback,
            PhoneCompany,
            PhoneHome,
            Org,
            AddressBusiness,
            AddressHome,
            PhoneMobile,
            PhoneCar,
            PhoneBusinessFax,
            PhoneHomeFax,
            PhoneBusiness2,
            PhoneHome2,
            PhoneIsdn,
            PhoneOther,
            PhoneOtherFax,
            PhonePager,
            PhoneRadio,
            PhoneTelex,
            PhoneTtytdd,
            AddressOther,
            Email2,
            Email3,
            Url,
            OrgUnit,
            Office,
            Title,
            Role,
            Manager,
            Assistant,
            Nickname,
            Spouse,
            Note,
            Caluri,
            Fburl,
            Anniversary,
            BirthDate,
            Mailer,
            NameOrOrg,
            Categories,
            FamilyName,
            GivenName,
            AdditionalName,
            NameSuffix,
            WantsHtml,
            IsList,
            Last
        };

        Arbitrary getArbitrary (in string key);
        void setArbitrary (in string key, in string type, in string value);

        string get (in Field field);
        void set (in Field field, in string value);
    };

    typedef sequence<SimpleCard> SimpleCardList;

    interface SelectNames : Bonobo::Unknown {
        struct Section {
            string id;
            string title;
        };

        typedef sequence<Section> SectionList;

        exception DuplicateID {};
        exception SectionNotFound {};

        void addSection (in string id, in string title)
            raises (DuplicateID);
        void addSectionWithLimit (in string id, in string title, in short limit)
            raises (DuplicateID);

        Bonobo::Control getEntryBySection (in string section_id)
            raises (SectionNotFound);

        void activateDialog (in string section_id);
    };


};
};
};