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
ac0eeb43
Kaydet (Commit)
ac0eeb43
authored
Eyl 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I2f59aec574ed2c5120c554bdff13a9efab6992df
üst
0535f42e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
+9
-14
mediator.hxx
extensions/source/plugin/inc/plugin/unx/mediator.hxx
+6
-10
plugcon.hxx
extensions/source/plugin/inc/plugin/unx/plugcon.hxx
+1
-1
nppapi.cxx
extensions/source/plugin/unx/nppapi.cxx
+2
-3
npwrap.cxx
extensions/source/plugin/unx/npwrap.cxx
+0
-0
No files found.
extensions/source/plugin/inc/plugin/unx/mediator.hxx
Dosyayı görüntüle @
ac0eeb43
...
...
@@ -83,12 +83,12 @@ protected:
MediatorListener
*
m_pListener
;
// thread to fill the queue
sal_uLong
m_nCurrentID
;
sal_uLong
m_nCurrentID
;
// will be constantly increased with each message sent
bool
m_bValid
;
Link
<
>
m_aConnectionLostHdl
;
Link
<
>
m_aNewMessageHdl
;
Link
<
Mediator
*
,
void
>
m_aConnectionLostHdl
;
Link
<
Mediator
*
,
void
>
m_aNewMessageHdl
;
public
:
Mediator
(
int
nSocket
);
virtual
~
Mediator
();
...
...
@@ -117,25 +117,21 @@ public:
MediatorMessage
*
GetNextMessage
(
bool
bWait
=
false
);
Link
<>
SetConnectionLostHdl
(
const
Link
<
>&
rLink
)
void
SetConnectionLostHdl
(
const
Link
<
Mediator
*
,
void
>&
rLink
)
{
Link
<>
aRet
=
m_aConnectionLostHdl
;
m_aConnectionLostHdl
=
rLink
;
return
aRet
;
}
Link
<>
SetNewMessageHdl
(
const
Link
<
>&
rLink
)
void
SetNewMessageHdl
(
const
Link
<
Mediator
*
,
void
>&
rLink
)
{
Link
<>
aRet
=
m_aNewMessageHdl
;
m_aNewMessageHdl
=
rLink
;
return
aRet
;
}
};
class
MediatorListener
:
public
osl
::
Thread
{
friend
class
Mediator
;
private
:
private
:
Mediator
*
m_pMediator
;
::
osl
::
Mutex
m_aMutex
;
...
...
extensions/source/plugin/inc/plugin/unx/plugcon.hxx
Dosyayı görüntüle @
ac0eeb43
...
...
@@ -132,7 +132,7 @@ protected:
static
std
::
vector
<
PluginConnector
*>
allConnectors
;
DECL_LINK
(
NewMessageHdl
,
Mediator
*
);
DECL_LINK
_TYPED
(
NewMessageHdl
,
Mediator
*
,
void
);
DECL_LINK_TYPED
(
WorkOnNewMessageHdl
,
void
*
,
void
);
std
::
vector
<
NPStream
*>
m_aNPWrapStreams
;
...
...
extensions/source/plugin/unx/nppapi.cxx
Dosyayı görüntüle @
ac0eeb43
...
...
@@ -64,7 +64,7 @@ PluginConnector::~PluginConnector()
}
}
IMPL_LINK
(
PluginConnector
,
NewMessageHdl
,
Mediator
*
,
/*pMediator*/
)
IMPL_LINK
_NOARG_TYPED
(
PluginConnector
,
NewMessageHdl
,
Mediator
*
,
void
)
{
osl
::
MutexGuard
aGuard
(
m_aUserEventMutex
);
bool
bFound
=
false
;
...
...
@@ -75,9 +75,8 @@ IMPL_LINK( PluginConnector, NewMessageHdl, Mediator*, /*pMediator*/ )
bFound
=
true
;
}
if
(
!
bFound
)
return
0
;
return
;
Application
::
PostUserEvent
(
LINK
(
this
,
PluginConnector
,
WorkOnNewMessageHdl
)
);
return
0
;
}
IMPL_LINK_NOARG_TYPED
(
PluginConnector
,
WorkOnNewMessageHdl
,
void
*
,
void
)
...
...
extensions/source/plugin/unx/npwrap.cxx
Dosyayı görüntüle @
ac0eeb43
This diff is collapsed.
Click to expand it.
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