LibreOffice Module connectivity (master) 1
MMozillaBootstrap.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <sal/config.h>
22
23#include <memory>
24
25#include <com/sun/star/mozilla/XMozillaBootstrap.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
28
29
31{
32 typedef ::cppu::WeakComponentImplHelper< css::mozilla::XMozillaBootstrap,
33 css::lang::XServiceInfo > OMozillaBootstrap_BASE;
34 class ProfileAccess;
35 class ProfileManager;
37 {
38 private:
39 ::osl::Mutex m_aMutex; // mutex is need to control member access
40 virtual ~MozillaBootstrap() override;
41 std::unique_ptr<ProfileAccess> m_ProfileAccess;
42 public:
43
45
46 // OComponentHelper
47 virtual void SAL_CALL disposing() override;
48
49 // XServiceInfo
50 virtual OUString SAL_CALL getImplementationName( ) override;
51 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
52 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
53
54 // XMozillaBootstrap
55
56 // XProfileDiscover
57 virtual ::sal_Int32 SAL_CALL getProfileCount( css::mozilla::MozillaProductType product) override;
58 virtual ::sal_Int32 SAL_CALL getProfileList( css::mozilla::MozillaProductType product, css::uno::Sequence< OUString >& list ) override;
59 virtual OUString SAL_CALL getDefaultProfile( css::mozilla::MozillaProductType product ) override;
60 virtual OUString SAL_CALL getProfilePath( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
61 virtual sal_Bool SAL_CALL isProfileLocked( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
62 virtual sal_Bool SAL_CALL getProfileExists( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
63
64 // XProfileManager
65 virtual ::sal_Int32 SAL_CALL bootupProfile( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
66 virtual ::sal_Int32 SAL_CALL shutdownProfile( ) override;
67 virtual css::mozilla::MozillaProductType SAL_CALL getCurrentProduct( ) override;
68 virtual OUString SAL_CALL getCurrentProfile( ) override;
69 virtual sal_Bool SAL_CALL isCurrentProfileLocked( ) override;
70 virtual OUString SAL_CALL setCurrentProfile( css::mozilla::MozillaProductType product, const OUString& profileName ) override;
71
72 // XProxyRunner
73 virtual ::sal_Int32 SAL_CALL Run( const css::uno::Reference< css::mozilla::XCodeProxy >& aCode ) override;
74 };
75
76}
77
78/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL setCurrentProfile(css::mozilla::MozillaProductType product, const OUString &profileName) override
virtual sal_Bool SAL_CALL getProfileExists(css::mozilla::MozillaProductType product, const OUString &profileName) override
virtual sal_Bool SAL_CALL isProfileLocked(css::mozilla::MozillaProductType product, const OUString &profileName) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ::sal_Int32 SAL_CALL shutdownProfile() override
virtual OUString SAL_CALL getDefaultProfile(css::mozilla::MozillaProductType product) override
virtual OUString SAL_CALL getCurrentProfile() override
virtual css::mozilla::MozillaProductType SAL_CALL getCurrentProduct() override
virtual sal_Bool SAL_CALL isCurrentProfileLocked() override
virtual OUString SAL_CALL getImplementationName() override
virtual ::sal_Int32 SAL_CALL bootupProfile(css::mozilla::MozillaProductType product, const OUString &profileName) override
virtual ::sal_Int32 SAL_CALL Run(const css::uno::Reference< css::mozilla::XCodeProxy > &aCode) override
virtual OUString SAL_CALL getProfilePath(css::mozilla::MozillaProductType product, const OUString &profileName) override
virtual ::sal_Int32 SAL_CALL getProfileList(css::mozilla::MozillaProductType product, css::uno::Sequence< OUString > &list) override
std::unique_ptr< ProfileAccess > m_ProfileAccess
virtual void SAL_CALL disposing() override
virtual ::sal_Int32 SAL_CALL getProfileCount(css::mozilla::MozillaProductType product) override
::cppu::WeakComponentImplHelper< css::mozilla::XMozillaBootstrap, css::lang::XServiceInfo > OMozillaBootstrap_BASE
unsigned char sal_Bool