1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * Bonobo_ObjectDirectory.idl: |
---|
4 | * |
---|
5 | * Copyright (C) 1999, 2000 Red Hat, Inc. |
---|
6 | * Copyright (C) 1999, 2000 Eazel, Inc. |
---|
7 | * |
---|
8 | * This library is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU General Public License as |
---|
10 | * published by the Free Software Foundation; either version 2 of the |
---|
11 | * License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * This library is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | * General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this library; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | * |
---|
22 | * Authors: Elliot Lee <sopwith@redhat.com>, |
---|
23 | * Maciej Stachowiak <mjs@noisehavoc.org> |
---|
24 | * |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef __BONOBO_OBJECT_DIRECTORY_IDL__ |
---|
28 | #define __BONOBO_OBJECT_DIRECTORY_IDL__ |
---|
29 | |
---|
30 | #ifndef __Bonobo_ObjectDirectory_COMPILATION |
---|
31 | #ifdef __ORBIT_IDL__ |
---|
32 | %{ |
---|
33 | #pragma include_defs bonobo-activation/Bonobo_ObjectDirectory.h |
---|
34 | %} |
---|
35 | #pragma inhibit push |
---|
36 | #endif |
---|
37 | #endif |
---|
38 | |
---|
39 | #include <Bonobo_Unknown.idl> |
---|
40 | #include <Bonobo_Activation_types.idl> |
---|
41 | |
---|
42 | /* ActivationContext needs a forward declaration of ObjectDirectory */ |
---|
43 | module Bonobo { |
---|
44 | interface ObjectDirectory; |
---|
45 | }; |
---|
46 | |
---|
47 | #include <Bonobo_ActivationContext.idl> |
---|
48 | |
---|
49 | module Bonobo { |
---|
50 | typedef long long CacheTime; |
---|
51 | |
---|
52 | union ServerInfoListCache switch (boolean) { |
---|
53 | case TRUE: |
---|
54 | ServerInfoList server_list; |
---|
55 | }; |
---|
56 | |
---|
57 | union ServerStateCache switch (boolean) { |
---|
58 | case TRUE: |
---|
59 | sequence<ImplementationID> active_servers; |
---|
60 | }; |
---|
61 | |
---|
62 | interface ObjectDirectory : Bonobo :: Unknown { |
---|
63 | exception NotRegistered {}; |
---|
64 | |
---|
65 | ServerInfoListCache get_servers (in CacheTime only_if_newer); |
---|
66 | ServerStateCache get_active_servers (in CacheTime only_if_newer); |
---|
67 | |
---|
68 | readonly attribute string username, hostname; |
---|
69 | |
---|
70 | Object activate (in ImplementationID iid, |
---|
71 | in ActivationContext ac, |
---|
72 | in Bonobo::ActivationEnvironment environment, |
---|
73 | in ActivationFlags flags) |
---|
74 | context ("username", "hostname"); |
---|
75 | |
---|
76 | RegistrationResult register_new (in ImplementationID iid, |
---|
77 | in Bonobo::ActivationEnvironment environment, |
---|
78 | in Object obj); |
---|
79 | void unregister (in ImplementationID iid, |
---|
80 | in Object obj) |
---|
81 | raises (NotRegistered); |
---|
82 | }; |
---|
83 | |
---|
84 | }; |
---|
85 | |
---|
86 | |
---|
87 | #ifndef __Bonobo_ObjectDirectory_COMPILATION |
---|
88 | #ifdef __ORBIT_IDL__ |
---|
89 | #pragma inhibit pop |
---|
90 | #endif |
---|
91 | #endif |
---|
92 | |
---|
93 | #endif |
---|