Line data Source code
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 :
10 : #include "oglmanager.hxx"
11 : #include "oglframegrabber.hxx"
12 : #include "oglplayer.hxx"
13 :
14 : #include <cppuhelper/supportsservice.hxx>
15 :
16 : using namespace com::sun::star;
17 :
18 : namespace avmedia { namespace ogl {
19 :
20 0 : OGLManager::OGLManager( const uno::Reference< lang::XMultiServiceFactory >& rMgr )
21 0 : : m_xMgr( rMgr )
22 : {
23 : (void) m_xMgr;
24 0 : }
25 :
26 0 : OGLManager::~OGLManager()
27 : {
28 0 : }
29 :
30 0 : uno::Reference< media::XPlayer > SAL_CALL OGLManager::createPlayer( const OUString& rURL )
31 : throw (uno::RuntimeException, std::exception)
32 : {
33 : // TODO: Here we need to construct our OpenGL player.
34 : // See com::sun::star::media::XManager
35 0 : OGLPlayer* pPlayer( new OGLPlayer( rURL ) );
36 0 : return uno::Reference< media::XPlayer >(pPlayer);
37 : }
38 :
39 0 : OUString SAL_CALL OGLManager::getImplementationName() throw ( uno::RuntimeException, std::exception )
40 : {
41 0 : return OUString("com.sun.star.comp.avmedia.Manager_OpenGL");
42 : }
43 :
44 0 : sal_Bool SAL_CALL OGLManager::supportsService( const OUString& rServiceName )
45 : throw ( uno::RuntimeException, std::exception )
46 : {
47 0 : return cppu::supportsService(this, rServiceName);
48 : }
49 :
50 0 : uno::Sequence< OUString > SAL_CALL OGLManager::getSupportedServiceNames()
51 : throw ( uno::RuntimeException, std::exception )
52 : {
53 0 : ::uno::Sequence< OUString > aRet(1);
54 0 : aRet[0] = OUString("com.sun.star.media.Manager_OpenGL");
55 0 : return aRet;
56 : }
57 :
58 : } // namespace ogl
59 : } // namespace avmedia
60 :
61 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|