2013-06-13 09:43:51 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
|
|
|
|
2014-05-15 12:06:32 +02:00
|
|
|
#ifndef INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
|
|
|
|
#define INCLUDED_AVMEDIA_SOURCE_VLC_VLCMANAGER_HXX
|
2013-09-08 00:52:46 +03:00
|
|
|
#include <com/sun/star/media/XManager.hpp>
|
2013-06-13 09:43:51 +03:00
|
|
|
#include "vlccommon.hxx"
|
2013-09-08 00:52:46 +03:00
|
|
|
#include "wrapper/Wrapper.hxx"
|
2015-01-09 16:23:36 +00:00
|
|
|
#include <memory>
|
2013-06-13 09:43:51 +03:00
|
|
|
|
|
|
|
namespace avmedia {
|
|
|
|
namespace vlc {
|
|
|
|
|
|
|
|
class Manager : public ::cppu::WeakImplHelper2 < ::com::sun::star::media::XManager,
|
|
|
|
::com::sun::star::lang::XServiceInfo >
|
|
|
|
{
|
2015-01-09 16:23:36 +00:00
|
|
|
std::unique_ptr<wrapper::Instance> mInstance;
|
2013-09-14 19:56:24 +03:00
|
|
|
wrapper::EventHandler mEventHandler;
|
2013-06-13 09:43:51 +03:00
|
|
|
public:
|
2015-05-02 17:12:54 +01:00
|
|
|
explicit Manager( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxMgr );
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~Manager();
|
2013-06-13 09:43:51 +03:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > SAL_CALL createPlayer( const rtl::OUString& aURL ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2013-06-13 09:43:51 +03:00
|
|
|
|
2014-03-26 16:37:00 +01:00
|
|
|
rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
sal_Bool SAL_CALL supportsService( const rtl::OUString& serviceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
|
|
|
::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2013-06-13 09:43:51 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMgr;
|
2013-07-29 23:49:18 +03:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > mPlayer;
|
2013-09-08 16:26:19 +03:00
|
|
|
rtl::OUString mURL;
|
2013-08-25 20:56:20 +03:00
|
|
|
bool m_is_vlc_found;
|
2013-06-13 09:43:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2015-01-09 16:23:36 +00:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|