modulemanager.hxx (07a3d7f1) modulemanager.hxx (7a164331)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 132 unchanged lines hidden (view full) ---

141 //___________________________________________
142 // helper
143
144 private:
145
146 //---------------------------------------
147 /** @short open the underlying configuration.
148
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 132 unchanged lines hidden (view full) ---

141 //___________________________________________
142 // helper
143
144 private:
145
146 //---------------------------------------
147 /** @short open the underlying configuration.
148
149 @descr This method must be called everytimes
149 @descr This method must be called every time
150 a (reaonly!) configuration is needed. Because
151 method works together with the member
152 m_xCFG, open it on demand and cache it
153 afterwards.
154
155 Note: A writable configuration access
156 must be created explicitly. Otherwise
157 we can't make sure that broken write requests
150 a (reaonly!) configuration is needed. Because
151 method works together with the member
152 m_xCFG, open it on demand and cache it
153 afterwards.
154
155 Note: A writable configuration access
156 must be created explicitly. Otherwise
157 we can't make sure that broken write requests
158 wont affect our read access !
158 won't affect our read access !
159
160 @return [com.sun.star.container.XNameAccess]
161 the configuration object
162
163 @throw [com.sun.star.uno.RuntimeException]
164 if config could not be opened successfully!
165
166 @threadsafe
167 */
168 css::uno::Reference< css::container::XNameAccess > implts_getConfig()
169 throw(css::uno::RuntimeException);
170
171 //---------------------------------------
172 /** @short makes the real identification of the module.
173
174 @descr It checks for the optional but preferred interface
175 XModule first. If this module does not exists at the
176 given component it tries to use XServiceInfo instead.
177
159
160 @return [com.sun.star.container.XNameAccess]
161 the configuration object
162
163 @throw [com.sun.star.uno.RuntimeException]
164 if config could not be opened successfully!
165
166 @threadsafe
167 */
168 css::uno::Reference< css::container::XNameAccess > implts_getConfig()
169 throw(css::uno::RuntimeException);
170
171 //---------------------------------------
172 /** @short makes the real identification of the module.
173
174 @descr It checks for the optional but preferred interface
175 XModule first. If this module does not exists at the
176 given component it tries to use XServiceInfo instead.
177
178 Note: This method try to locate a suitable module name.
178 Note: This method tries to locate a suitable module name.
179 Nothing else. Selecting the right component and throwing suitable
180 exceptions must be done outside.
181
182 @see identify()
183
184 @param xComponent
185 the module for identification.
186
187 @return The identifier of the given module.
188 Can be empty if given component is not a real module !
189
190 @threadsafe
191 */
192 ::rtl::OUString implts_identify(const css::uno::Reference< css::uno::XInterface >& xComponent);
193};
194
195} // namespace framework
196
197#endif // __FRAMEWORK_SERVICES_MODULEMANAGER_HXX_
179 Nothing else. Selecting the right component and throwing suitable
180 exceptions must be done outside.
181
182 @see identify()
183
184 @param xComponent
185 the module for identification.
186
187 @return The identifier of the given module.
188 Can be empty if given component is not a real module !
189
190 @threadsafe
191 */
192 ::rtl::OUString implts_identify(const css::uno::Reference< css::uno::XInterface >& xComponent);
193};
194
195} // namespace framework
196
197#endif // __FRAMEWORK_SERVICES_MODULEMANAGER_HXX_