xref: /aoo42x/main/framework/inc/services/license.hxx (revision 30acf5e8)
1f8e07b45SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3f8e07b45SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4f8e07b45SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5f8e07b45SAndrew Rist  * distributed with this work for additional information
6f8e07b45SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7f8e07b45SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8f8e07b45SAndrew Rist  * "License"); you may not use this file except in compliance
9f8e07b45SAndrew Rist  * with the License.  You may obtain a copy of the License at
10f8e07b45SAndrew Rist  *
11f8e07b45SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12f8e07b45SAndrew Rist  *
13f8e07b45SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14f8e07b45SAndrew Rist  * software distributed under the License is distributed on an
15f8e07b45SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16f8e07b45SAndrew Rist  * KIND, either express or implied.  See the License for the
17f8e07b45SAndrew Rist  * specific language governing permissions and limitations
18f8e07b45SAndrew Rist  * under the License.
19f8e07b45SAndrew Rist  *
20f8e07b45SAndrew Rist  *************************************************************/
21f8e07b45SAndrew Rist 
22f8e07b45SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef __FRAMEWORK_SERVICES_LICENSE_HXX_
25cdf0e10cSrcweir #define __FRAMEWORK_SERVICES_LICENSE_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir /** Attention: stl headers must(!) be included at first. Otherwhise it can make trouble
28cdf0e10cSrcweir                with solaris headers ...
29cdf0e10cSrcweir */
30cdf0e10cSrcweir #include <vector>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir //_________________________________________________________________________________________________________________
33cdf0e10cSrcweir //	my own includes
34cdf0e10cSrcweir //_________________________________________________________________________________________________________________
35cdf0e10cSrcweir #include <threadhelp/threadhelpbase.hxx>
36cdf0e10cSrcweir #include <threadhelp/resetableguard.hxx>
37cdf0e10cSrcweir #include <threadhelp/writeguard.hxx>
38cdf0e10cSrcweir #include <threadhelp/readguard.hxx>
39cdf0e10cSrcweir #include <macros/generic.hxx>
40cdf0e10cSrcweir #include <macros/xinterface.hxx>
41cdf0e10cSrcweir #include <macros/xtypeprovider.hxx>
42cdf0e10cSrcweir #include <macros/xserviceinfo.hxx>
43cdf0e10cSrcweir #include <stdtypes.h>
44cdf0e10cSrcweir #include <properties.h>
45cdf0e10cSrcweir #include <stdtypes.h>
46cdf0e10cSrcweir #include <uielement/menubarmanager.hxx>
47cdf0e10cSrcweir 
48cdf0e10cSrcweir //_________________________________________________________________________________________________________________
49cdf0e10cSrcweir //	interface includes
50cdf0e10cSrcweir //_________________________________________________________________________________________________________________
51cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
52cdf0e10cSrcweir #include <com/sun/star/lang/XTypeProvider.hpp>
53cdf0e10cSrcweir #include <com/sun/star/task/XJob.hpp>
54cdf0e10cSrcweir #include <com/sun/star/util/XCloseable.hpp>
55cdf0e10cSrcweir #include <com/sun/star/util/CloseVetoException.hpp>
56cdf0e10cSrcweir 
57cdf0e10cSrcweir //_________________________________________________________________________________________________________________
58cdf0e10cSrcweir //	other includes
59cdf0e10cSrcweir //_________________________________________________________________________________________________________________
60cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx>
61cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.hxx>
62cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
63cdf0e10cSrcweir 
64cdf0e10cSrcweir namespace framework
65cdf0e10cSrcweir {
66cdf0e10cSrcweir     class License : public  css::lang::XTypeProvider            ,
67cdf0e10cSrcweir                     public  css::lang::XServiceInfo             ,
68cdf0e10cSrcweir                     public  css::task::XJob                     ,
69cdf0e10cSrcweir                     public  css::util::XCloseable               ,
70cdf0e10cSrcweir                     // base classes
7107a3d7f1SPedro Giffuni                     // Order is necessary for right initialization!
72*30acf5e8Spfg                     private ThreadHelpBase						, // Struct for right initialization of mutex member! Must be first of baseclasses.
73cdf0e10cSrcweir                     public  ::cppu::OWeakObject                   // => XWeak, XInterface
74cdf0e10cSrcweir     {
75cdf0e10cSrcweir     private:
76cdf0e10cSrcweir         css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory;
77cdf0e10cSrcweir         sal_Bool m_bTerminate;
78cdf0e10cSrcweir     public:
79cdf0e10cSrcweir         License( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rSMGR );
80cdf0e10cSrcweir         virtual ~License();
81cdf0e10cSrcweir 
82cdf0e10cSrcweir         /** declaration of XInterface, XTypeProvider, XServiceInfo */
83cdf0e10cSrcweir 		FWK_DECLARE_XINTERFACE
84cdf0e10cSrcweir 		FWK_DECLARE_XTYPEPROVIDER
85cdf0e10cSrcweir 		DECLARE_XSERVICEINFO
86cdf0e10cSrcweir 
87cdf0e10cSrcweir #if 0
88cdf0e10cSrcweir         DECL_STATIC_LINK( License, Terminate, void* );
89cdf0e10cSrcweir #endif
90cdf0e10cSrcweir 
91cdf0e10cSrcweir         /*
92cdf0e10cSrcweir         XJob...
93cdf0e10cSrcweir         any execute([in] sequence< ::com::sun::star::beans::NamedValue > Arguments )
94cdf0e10cSrcweir             raises(
95cdf0e10cSrcweir 	            ::com::sun::star::lang::IllegalArgumentException,
96cdf0e10cSrcweir                 ::com::sun::star::uno::Exception );
97cdf0e10cSrcweir         */
98cdf0e10cSrcweir         virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence<css::beans::NamedValue>& args)
99cdf0e10cSrcweir             throw( css::lang::IllegalArgumentException, css::uno::Exception);
100cdf0e10cSrcweir 
101cdf0e10cSrcweir         /*
102cdf0e10cSrcweir         XCLoseable
103cdf0e10cSrcweir         void close( [in] boolean DeliverOwnership ) raises(CloseVetoException );
104cdf0e10cSrcweir         */
105cdf0e10cSrcweir         virtual void SAL_CALL close(sal_Bool bDeliverOwnership) throw (css::util::CloseVetoException);
106cdf0e10cSrcweir 
107cdf0e10cSrcweir         /*
108cdf0e10cSrcweir         XCloseVroadcaster
109cdf0e10cSrcweir         [oneway] void addCloseListener([in] XCloseListenerListener );
110cdf0e10cSrcweir         [oneway] void removeCloseListener([in] XCloseListenerListener );
111cdf0e10cSrcweir         */
112cdf0e10cSrcweir         virtual void SAL_CALL addCloseListener(const css::uno::Reference< css::util::XCloseListener >& aListener) throw (css::uno::RuntimeException);
113cdf0e10cSrcweir         virtual void SAL_CALL removeCloseListener(const css::uno::Reference< css::util::XCloseListener >& aListener) throw (css::uno::RuntimeException);
114cdf0e10cSrcweir 
115cdf0e10cSrcweir };
116cdf0e10cSrcweir 
117cdf0e10cSrcweir } // namespace framework
118cdf0e10cSrcweir 
119cdf0e10cSrcweir #endif // __FRAMEWORK_SERVICES_LAYOUTMANAGER_HXX_
120