bump product version to 4.1.6.2
[LibreOffice.git] / framework / inc / services / license.hxx
blob85f3d51ee6359aecbc3a9fa5a482385471dea1a2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __FRAMEWORK_SERVICES_LICENSE_HXX_
21 #define __FRAMEWORK_SERVICES_LICENSE_HXX_
23 /** Attention: stl headers must(!) be included at first. Otherwhise it can make trouble
24 with solaris headers ...
26 #include <vector>
28 #include <threadhelp/threadhelpbase.hxx>
29 #include <threadhelp/resetableguard.hxx>
30 #include <threadhelp/writeguard.hxx>
31 #include <threadhelp/readguard.hxx>
32 #include <macros/generic.hxx>
33 #include <macros/xinterface.hxx>
34 #include <macros/xtypeprovider.hxx>
35 #include <macros/xserviceinfo.hxx>
36 #include <properties.h>
37 #include <stdtypes.h>
38 #include <uielement/menubarmanager.hxx>
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #include <com/sun/star/lang/XTypeProvider.hpp>
42 #include <com/sun/star/task/XJob.hpp>
43 #include <com/sun/star/util/XCloseable.hpp>
44 #include <com/sun/star/util/CloseVetoException.hpp>
46 #include <cppuhelper/propshlp.hxx>
47 #include <cppuhelper/interfacecontainer.hxx>
48 #include <cppuhelper/weak.hxx>
50 namespace framework
52 class License : public css::lang::XTypeProvider ,
53 public css::lang::XServiceInfo ,
54 public css::task::XJob ,
55 public css::util::XCloseable ,
56 // base classes
57 // Order is necessary for right initialization!
58 private ThreadHelpBase , // Struct for right initalization of mutex member! Must be first of baseclasses.
59 public ::cppu::OWeakObject // => XWeak, XInterface
61 private:
62 css::uno::Reference< css::uno::XComponentContext > m_xContext;
63 sal_Bool m_bTerminate;
64 public:
65 License( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
66 virtual ~License();
68 /** declaration of XInterface, XTypeProvider, XServiceInfo */
69 FWK_DECLARE_XINTERFACE
70 FWK_DECLARE_XTYPEPROVIDER
71 DECLARE_XSERVICEINFO
73 virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence<css::beans::NamedValue>& args)
74 throw( css::lang::IllegalArgumentException, css::uno::Exception);
76 virtual void SAL_CALL close(sal_Bool bDeliverOwnership) throw (css::util::CloseVetoException);
78 virtual void SAL_CALL addCloseListener(const css::uno::Reference< css::util::XCloseListener >& aListener) throw (css::uno::RuntimeException);
79 virtual void SAL_CALL removeCloseListener(const css::uno::Reference< css::util::XCloseListener >& aListener) throw (css::uno::RuntimeException);
83 } // namespace framework
85 #endif // __FRAMEWORK_SERVICES_LAYOUTMANAGER_HXX_
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */