Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1c010bd2
Kaydet (Commit)
1c010bd2
authored
Ock 08, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avmedia: cleanup unused listener logic in gstreamer, and update docs.
Change-Id: Ic64a4e0ed1ad194d94f5451b60e926f13ad85578
üst
ee0bf5d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
87 deletions
+21
-87
README
avmedia/README
+6
-0
gstwindow.cxx
avmedia/source/gstreamer/gstwindow.cxx
+15
-86
gstwindow.hxx
avmedia/source/gstreamer/gstwindow.hxx
+0
-1
No files found.
avmedia/README
Dosyayı görüntüle @
1c010bd2
...
...
@@ -3,3 +3,8 @@ Audio/Video media implementation.
Provides per-platform implementations of multimedia functionality.
Currently no stream API is provided, only a URI based one, so
streaming has to be wrapped around it via temp files.
Also provides (in source/framework/mediacontrol.cxx) an implementation
of the graphical media playback control that appears in the toolbar /
mediaobject bar when media is selected under the .uno:AVMediaToolBox
item.
\ No newline at end of file
avmedia/source/gstreamer/gstwindow.cxx
Dosyayı görüntüle @
1c010bd2
...
...
@@ -29,10 +29,6 @@ using namespace ::com::sun::star;
namespace
avmedia
{
namespace
gstreamer
{
// -----------
// - statics -
// -----------
static
::
osl
::
Mutex
&
ImplGetOwnStaticMutex
()
{
static
::
osl
::
Mutex
*
pMutex
=
NULL
;
...
...
@@ -51,15 +47,11 @@ static ::osl::Mutex& ImplGetOwnStaticMutex()
return
*
pMutex
;
}
// ---------------
// - Window -
// ---------------
// Window
// ------------------------------------------------------------------------------
Window
::
Window
(
const
uno
::
Reference
<
lang
::
XMultiServiceFactory
>&
rxMgr
,
Player
&
rPlayer
)
:
mxMgr
(
rxMgr
),
maListeners
(
maMutex
),
meZoomLevel
(
media
::
ZoomLevel_NOT_AVAILABLE
),
mrPlayer
(
rPlayer
),
mnPointerType
(
awt
::
SystemPointer
::
ARROW
)
...
...
@@ -68,8 +60,6 @@ Window::Window( const uno::Reference< lang::XMultiServiceFactory >& rxMgr, Playe
}
// ------------------------------------------------------------------------------
Window
::~
Window
()
{
}
...
...
@@ -82,8 +72,6 @@ void SAL_CALL Window::update( )
{
}
// ------------------------------------------------------------------------------
sal_Bool
SAL_CALL
Window
::
setZoomLevel
(
media
::
ZoomLevel
eZoomLevel
)
throw
(
uno
::
RuntimeException
)
{
...
...
@@ -103,16 +91,12 @@ sal_Bool SAL_CALL Window::setZoomLevel( media::ZoomLevel eZoomLevel )
return
bRet
;
}
// ------------------------------------------------------------------------------
media
::
ZoomLevel
SAL_CALL
Window
::
getZoomLevel
(
)
throw
(
uno
::
RuntimeException
)
{
return
meZoomLevel
;
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
setPointerType
(
sal_Int32
nPointerType
)
throw
(
uno
::
RuntimeException
)
{
...
...
@@ -127,8 +111,6 @@ void SAL_CALL Window::setPosSize( sal_Int32 /*X*/, sal_Int32 /*Y*/, sal_Int32 /*
{
}
// ------------------------------------------------------------------------------
awt
::
Rectangle
SAL_CALL
Window
::
getPosSize
()
throw
(
uno
::
RuntimeException
)
{
...
...
@@ -141,122 +123,79 @@ awt::Rectangle SAL_CALL Window::getPosSize()
return
aRet
;
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
setVisible
(
sal_Bool
/*bVisible*/
)
throw
(
uno
::
RuntimeException
)
{
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
setEnable
(
sal_Bool
/*bEnable*/
)
throw
(
uno
::
RuntimeException
)
{
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
setFocus
(
)
throw
(
uno
::
RuntimeException
)
{
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addWindowListener
(
const
uno
::
Reference
<
awt
::
XWindowListener
>&
xListener
)
void
SAL_CALL
Window
::
addWindowListener
(
const
uno
::
Reference
<
awt
::
XWindowListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeWindowListener
(
const
uno
::
Reference
<
awt
::
XWindowListener
>&
xListener
)
void
SAL_CALL
Window
::
removeWindowListener
(
const
uno
::
Reference
<
awt
::
XWindowListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addFocusListener
(
const
uno
::
Reference
<
awt
::
XFocusListener
>&
xListener
)
void
SAL_CALL
Window
::
addFocusListener
(
const
uno
::
Reference
<
awt
::
XFocusListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeFocusListener
(
const
uno
::
Reference
<
awt
::
XFocusListener
>&
xListener
)
void
SAL_CALL
Window
::
removeFocusListener
(
const
uno
::
Reference
<
awt
::
XFocusListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addKeyListener
(
const
uno
::
Reference
<
awt
::
XKeyListener
>&
xListener
)
void
SAL_CALL
Window
::
addKeyListener
(
const
uno
::
Reference
<
awt
::
XKeyListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeKeyListener
(
const
uno
::
Reference
<
awt
::
XKeyListener
>&
xListener
)
void
SAL_CALL
Window
::
removeKeyListener
(
const
uno
::
Reference
<
awt
::
XKeyListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addMouseListener
(
const
uno
::
Reference
<
awt
::
XMouseListener
>&
xListener
)
void
SAL_CALL
Window
::
addMouseListener
(
const
uno
::
Reference
<
awt
::
XMouseListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeMouseListener
(
const
uno
::
Reference
<
awt
::
XMouseListener
>&
xListener
)
void
SAL_CALL
Window
::
removeMouseListener
(
const
uno
::
Reference
<
awt
::
XMouseListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addMouseMotionListener
(
const
uno
::
Reference
<
awt
::
XMouseMotionListener
>&
xListener
)
void
SAL_CALL
Window
::
addMouseMotionListener
(
const
uno
::
Reference
<
awt
::
XMouseMotionListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeMouseMotionListener
(
const
uno
::
Reference
<
awt
::
XMouseMotionListener
>&
xListener
)
void
SAL_CALL
Window
::
removeMouseMotionListener
(
const
uno
::
Reference
<
awt
::
XMouseMotionListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addPaintListener
(
const
uno
::
Reference
<
awt
::
XPaintListener
>&
xListener
)
void
SAL_CALL
Window
::
addPaintListener
(
const
uno
::
Reference
<
awt
::
XPaintListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removePaintListener
(
const
uno
::
Reference
<
awt
::
XPaintListener
>&
xListener
)
void
SAL_CALL
Window
::
removePaintListener
(
const
uno
::
Reference
<
awt
::
XPaintListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// XComponent
...
...
@@ -267,20 +206,14 @@ void SAL_CALL Window::dispose( )
{
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
addEventListener
(
const
uno
::
Reference
<
lang
::
XEventListener
>&
xListener
)
void
SAL_CALL
Window
::
addEventListener
(
const
uno
::
Reference
<
lang
::
XEventListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
addInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// ------------------------------------------------------------------------------
void
SAL_CALL
Window
::
removeEventListener
(
const
uno
::
Reference
<
lang
::
XEventListener
>&
xListener
)
void
SAL_CALL
Window
::
removeEventListener
(
const
uno
::
Reference
<
lang
::
XEventListener
>&
)
throw
(
uno
::
RuntimeException
)
{
maListeners
.
removeInterface
(
getCppuType
(
&
xListener
),
xListener
);
}
// XServiceInfo
...
...
@@ -292,16 +225,12 @@ OUString SAL_CALL Window::getImplementationName( )
return
OUString
(
AVMEDIA_GST_WINDOW_IMPLEMENTATIONNAME
);
}
// ------------------------------------------------------------------------------
sal_Bool
SAL_CALL
Window
::
supportsService
(
const
OUString
&
ServiceName
)
throw
(
uno
::
RuntimeException
)
{
return
ServiceName
==
AVMEDIA_GST_WINDOW_SERVICENAME
;
}
// ------------------------------------------------------------------------------
uno
::
Sequence
<
OUString
>
SAL_CALL
Window
::
getSupportedServiceNames
(
)
throw
(
uno
::
RuntimeException
)
{
...
...
avmedia/source/gstreamer/gstwindow.hxx
Dosyayı görüntüle @
1c010bd2
...
...
@@ -86,7 +86,6 @@ private:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
mxMgr
;
::
osl
::
Mutex
maMutex
;
::
cppu
::
OMultiTypeInterfaceContainerHelper
maListeners
;
::
com
::
sun
::
star
::
media
::
ZoomLevel
meZoomLevel
;
Player
&
mrPlayer
;
int
mnPointerType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment