bump product version to 6.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / mozab / bootstrap / MMozillaBootstrap.hxx
blob179a13418aa9409b3647175c01149aa79b0b5c31
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 .
19 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MOZAB_BOOTSTRAP_MMOZILLABOOTSTRAP_HXX
20 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_MOZAB_BOOTSTRAP_MMOZILLABOOTSTRAP_HXX
22 #include <sal/config.h>
24 #include <memory>
26 #include <com/sun/star/mozilla/XMozillaBootstrap.hpp>
27 #include <com/sun/star/lang/XServiceInfo.hpp>
28 #include <cppuhelper/compbase.hxx>
29 #include <osl/module.h>
32 #define MOZAB_MozillaBootstrap_IMPL_NAME "com.sun.star.comp.mozilla.MozillaBootstrap"
34 namespace connectivity
36 namespace mozab
38 typedef ::cppu::WeakComponentImplHelper< css::mozilla::XMozillaBootstrap,
39 css::lang::XServiceInfo > OMozillaBootstrap_BASE;
40 class ProfileAccess;
41 class ProfileManager;
42 class MozillaBootstrap : public OMozillaBootstrap_BASE
44 private:
45 ::osl::Mutex m_aMutex; // mutex is need to control member access
46 virtual ~MozillaBootstrap() override;
47 std::unique_ptr<ProfileAccess> m_ProfileAccess;
48 public:
50 void Init();
51 MozillaBootstrap();
53 // OComponentHelper
54 virtual void SAL_CALL disposing() override;
56 // XServiceInfo
57 virtual OUString SAL_CALL getImplementationName( ) override;
58 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
59 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
61 // XMozillaBootstrap
63 // XProfileDiscover
64 virtual ::sal_Int32 SAL_CALL getProfileCount( css::mozilla::MozillaProductType product) override;
65 virtual ::sal_Int32 SAL_CALL getProfileList( css::mozilla::MozillaProductType product, css::uno::Sequence< OUString >& list ) override;
66 virtual OUString SAL_CALL getDefaultProfile( css::mozilla::MozillaProductType product ) override;
67 virtual OUString SAL_CALL getProfilePath( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
68 virtual sal_Bool SAL_CALL isProfileLocked( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
69 virtual sal_Bool SAL_CALL getProfileExists( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
71 // XProfileManager
72 virtual ::sal_Int32 SAL_CALL bootupProfile( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
73 virtual ::sal_Int32 SAL_CALL shutdownProfile( ) override;
74 virtual css::mozilla::MozillaProductType SAL_CALL getCurrentProduct( ) override;
75 virtual OUString SAL_CALL getCurrentProfile( ) override;
76 virtual sal_Bool SAL_CALL isCurrentProfileLocked( ) override;
77 virtual OUString SAL_CALL setCurrentProfile( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
79 // XProxyRunner
80 virtual ::sal_Int32 SAL_CALL Run( const css::uno::Reference< css::mozilla::XCodeProxy >& aCode ) override;
86 #endif // CONNECTIVITY_SMozillaBootstrap_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */