xref: /trunk/main/avmedia/source/gstreamer/gstmanager.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
19ea84ac5SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
39ea84ac5SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
49ea84ac5SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
59ea84ac5SAndrew Rist  * distributed with this work for additional information
69ea84ac5SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
79ea84ac5SAndrew Rist  * to you under the Apache License, Version 2.0 (the
89ea84ac5SAndrew Rist  * "License"); you may not use this file except in compliance
99ea84ac5SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
119ea84ac5SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
139ea84ac5SAndrew Rist  * Unless required by applicable law or agreed to in writing,
149ea84ac5SAndrew Rist  * software distributed under the License is distributed on an
159ea84ac5SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
169ea84ac5SAndrew Rist  * KIND, either express or implied.  See the License for the
179ea84ac5SAndrew Rist  * specific language governing permissions and limitations
189ea84ac5SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
209ea84ac5SAndrew Rist  *************************************************************/
219ea84ac5SAndrew Rist 
229ea84ac5SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _GSTMANAGER_HXX
25cdf0e10cSrcweir #define _GSTMANAGER_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "gstcommon.hxx"
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #ifndef _COM_SUN_STAR_MEDIA_XMANAGER_HDL_
30cdf0e10cSrcweir #include "com/sun/star/media/XManager.hdl"
31cdf0e10cSrcweir #endif
32cdf0e10cSrcweir 
33cdf0e10cSrcweir // -----------
34cdf0e10cSrcweir // - Manager -
35cdf0e10cSrcweir // -----------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace avmedia
38cdf0e10cSrcweir {
39cdf0e10cSrcweir namespace gst
40cdf0e10cSrcweir {
41cdf0e10cSrcweir class Manager : public ::cppu::WeakImplHelper2< ::com::sun::star::media::XManager,
42cdf0e10cSrcweir                                                 ::com::sun::star::lang::XServiceInfo >
43cdf0e10cSrcweir {
44*46880872SDamjan Jovanovic public: Manager( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
45cdf0e10cSrcweir     ~Manager();
46cdf0e10cSrcweir 
47cdf0e10cSrcweir     // XManager
48cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > SAL_CALL createPlayer(
49cdf0e10cSrcweir         const ::rtl::OUString& aURL )
50cdf0e10cSrcweir      throw( ::com::sun::star::uno::RuntimeException );
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     // XServiceInfo
53cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName()
54cdf0e10cSrcweir      throw( ::com::sun::star::uno::RuntimeException );
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
57cdf0e10cSrcweir      throw( ::com::sun::star::uno::RuntimeException );
58cdf0e10cSrcweir 
59cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
60cdf0e10cSrcweir      throw( ::com::sun::star::uno::RuntimeException );
61cdf0e10cSrcweir 
62*46880872SDamjan Jovanovic     // Static helper functions
63*46880872SDamjan Jovanovic     static ::rtl::OUString SAL_CALL getImplementationName_Static();
64*46880872SDamjan Jovanovic     static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
65cdf0e10cSrcweir 
66cdf0e10cSrcweir private:
67cdf0e10cSrcweir 
68*46880872SDamjan Jovanovic     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > mxContext;
69cdf0e10cSrcweir };
70cdf0e10cSrcweir } // namespace gst
71cdf0e10cSrcweir } // namespace avmedia
72cdf0e10cSrcweir 
73cdf0e10cSrcweir #endif // _GSTMANAGER_HXX
74