summaryrefslogtreecommitdiff
path: root/avmedia/source/vlc/vlcplayer.hxx
diff options
context:
space:
mode:
authorMinh Ngo <nlminhtl@gmail.com>2013-09-08 00:52:46 +0300
committerMinh Ngo <nlminhtl@gmail.com>2013-09-08 00:54:29 +0300
commit79bed99d078d3fcc7445a150a70fc085fdcf3d67 (patch)
tree9ea1d9aca2857100250c9beeff011085ad0249e2 /avmedia/source/vlc/vlcplayer.hxx
parent6b1b5b7c0b0e75c625603f3c6025484988cd5482 (diff)
Refactoring vlc module
Change-Id: If5454d2ce70eee40cf42205a5dcbcfef93f0abe8
Diffstat (limited to 'avmedia/source/vlc/vlcplayer.hxx')
-rw-r--r--avmedia/source/vlc/vlcplayer.hxx23
1 files changed, 14 insertions, 9 deletions
diff --git a/avmedia/source/vlc/vlcplayer.hxx b/avmedia/source/vlc/vlcplayer.hxx
index 2996cb203d6c..e2aa17bda89d 100644
--- a/avmedia/source/vlc/vlcplayer.hxx
+++ b/avmedia/source/vlc/vlcplayer.hxx
@@ -42,17 +42,18 @@ typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::media::XPlayer,
class VLCPlayer : public ::cppu::BaseMutex,
public VLC_Base
{
- boost::shared_ptr<VLC::EventHandler> mEventHandler;
- VLC::Instance mInstance;
+ VLC::Instance& mInstance;
+ VLC::EventHandler& mEventHandler;
+
VLC::Media mMedia;
VLC::Player mPlayer;
VLC::EventManager mEventManager;
const rtl::OUString mUrl;
bool mPlaybackLoop;
public:
- VLCPlayer( const rtl::OUString& iurl, boost::shared_ptr<VLC::EventHandler> eh );
-
- const rtl::OUString& url() const;
+ VLCPlayer( const rtl::OUString& url,
+ VLC::Instance& instance,
+ VLC::EventHandler& eh );
void SAL_CALL start() throw ( ::com::sun::star::uno::RuntimeException );
void SAL_CALL stop() throw ( ::com::sun::star::uno::RuntimeException );
@@ -70,11 +71,15 @@ public:
css::awt::Size SAL_CALL getPreferredPlayerWindowSize() throw ( ::com::sun::star::uno::RuntimeException );
::com::sun::star::uno::Reference< css::media::XPlayerWindow > SAL_CALL createPlayerWindow( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
throw ( ::com::sun::star::uno::RuntimeException );
- ::com::sun::star::uno::Reference< css::media::XFrameGrabber > SAL_CALL createFrameGrabber() throw ( ::com::sun::star::uno::RuntimeException );
+ ::com::sun::star::uno::Reference< css::media::XFrameGrabber > SAL_CALL createFrameGrabber()
+ 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 );;
- ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 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 );;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
+ throw ( ::com::sun::star::uno::RuntimeException );;
private:
void replay();