merge the formfield patch from ooo-build
[ooovba.git] / avmedia / source / gstreamer / gstmanager.hxx
blob8ed38bb98da1923d77ea0d751ad406a7afcc83fe
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile$
7 * $Revision$
9 * last change: $Author$ $Date$
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * MA 02111-1307 USA
34 ************************************************************************/
36 #ifndef _MANAGER_HXX
37 #define _MANAGER_HXX
39 #include "gstcommon.hxx"
41 #ifndef _COM_SUN_STAR_MEDIA_XMANAGER_HDL_
42 #include "com/sun/star/media/XManager.hdl"
43 #endif
45 // -----------
46 // - Manager -
47 // -----------
49 namespace avmedia { namespace gstreamer {
51 class Manager : public ::cppu::WeakImplHelper2 < ::com::sun::star::media::XManager,
52 ::com::sun::star::lang::XServiceInfo >
54 public:
56 Manager( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxMgr );
57 ~Manager();
59 // XManager
60 virtual ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > SAL_CALL createPlayer( const ::rtl::OUString& aURL ) throw (::com::sun::star::uno::RuntimeException);
62 // XServiceInfo
63 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
64 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
65 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
66 private:
68 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMgr;
71 } // namespace gstreamer
72 } // namespace avmedia
74 #endif // _MANAGER_HXX