Kaydet (Commit) 1b297589 authored tarafından Minh Ngo's avatar Minh Ngo Kaydeden (comit) Michael Meeks

Fixing a manager class

Change-Id: Icaaa3e33ebb0e2ca650a279a8b094fbddbff2a4d
üst 2bff2270
...@@ -7,6 +7,7 @@ namespace avmedia { ...@@ -7,6 +7,7 @@ namespace avmedia {
namespace vlc { namespace vlc {
const rtl::OUString VLC_IMPLEMENTATION_NAME = "com.sun.star.comp.avmedia.Manager_VLC"; const rtl::OUString VLC_IMPLEMENTATION_NAME = "com.sun.star.comp.avmedia.Manager_VLC";
const ::rtl::OUString VLC_SERVICENAME = "com.sun.star.media.Manager_VLC";
Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) Manager::Manager( const uno::Reference< lang::XMultiServiceFactory >& rxMgr )
: mxMgr( rxMgr ) : mxMgr( rxMgr )
...@@ -32,16 +33,18 @@ rtl::OUString SAL_CALL Manager::getImplementationName() ...@@ -32,16 +33,18 @@ rtl::OUString SAL_CALL Manager::getImplementationName()
return VLC_IMPLEMENTATION_NAME; return VLC_IMPLEMENTATION_NAME;
} }
sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& ServiceName ) sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& serviceName )
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
return false; return serviceName == VLC_SERVICENAME;
} }
uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames() uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames()
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
return uno::Sequence< rtl::OUString >(); ::uno::Sequence< OUString > aRet(1);
aRet[0] = VLC_SERVICENAME;
return aRet;
} }
} // end namespace vlc } // end namespace vlc
......
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > SAL_CALL createPlayer( const rtl::OUString& aURL ) throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > SAL_CALL createPlayer( const rtl::OUString& aURL ) throw (::com::sun::star::uno::RuntimeException);
rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException); rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); sal_Bool SAL_CALL supportsService( const rtl::OUString& serviceName ) throw (::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException);
private: private:
......
...@@ -82,7 +82,6 @@ void SAL_CALL VLCWindow::setVisible( sal_Bool Visible ) ...@@ -82,7 +82,6 @@ void SAL_CALL VLCWindow::setVisible( sal_Bool Visible )
void SAL_CALL VLCWindow::setEnable( sal_Bool Enable ) void SAL_CALL VLCWindow::setEnable( sal_Bool Enable )
throw (uno::RuntimeException) throw (uno::RuntimeException)
{ {
std::cout << __PRETTY_FUNCTION__ << " " << Enable << std::endl;
} }
void SAL_CALL VLCWindow::setFocus() void SAL_CALL VLCWindow::setFocus()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment