bump product version to 6.3.0.0.beta1
[LibreOffice.git] / avmedia / source / vlc / vlcmanager.hxx
blob478a2e9d664d60eb6b819ce49a3e1d5de9443b38
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 INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
21 #define INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
22 #include <com/sun/star/media/XManager.hpp>
23 #include "vlccommon.hxx"
24 #include <wrapper/Wrapper.hxx>
25 #include <memory>
26 #include <cppuhelper/implbase.hxx>
28 namespace avmedia {
29 namespace vlc {
31 class Manager : public ::cppu::WeakImplHelper< css::media::XManager,
32 css::lang::XServiceInfo >
34 std::unique_ptr<wrapper::Instance> mInstance;
35 wrapper::EventHandler mEventHandler;
36 public:
37 explicit Manager();
38 virtual ~Manager() override;
40 css::uno::Reference< css::media::XPlayer > SAL_CALL createPlayer( const OUString& aURL ) override;
42 OUString SAL_CALL getImplementationName() override;
43 sal_Bool SAL_CALL supportsService( const OUString& serviceName ) override;
44 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
46 private:
47 css::uno::Reference< css::media::XPlayer > mPlayer;
48 OUString mURL;
49 bool m_is_vlc_found;
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */