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
9940361f
Kaydet (Commit)
9940361f
authored
Eyl 18, 2012
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Provide client with state of server on startup.
Change-Id: Ic516afd65025cf4a8c7d3539d9010ad30e05e429
üst
0edc04d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
BluetoothServer.cxx
sd/source/ui/remotecontrol/BluetoothServer.cxx
+11
-0
BluetoothServer.hxx
sd/source/ui/remotecontrol/BluetoothServer.hxx
+3
-0
Communicator.cxx
sd/source/ui/remotecontrol/Communicator.cxx
+5
-1
Server.cxx
sd/source/ui/remotecontrol/Server.cxx
+6
-2
No files found.
sd/source/ui/remotecontrol/BluetoothServer.cxx
Dosyayı görüntüle @
9940361f
...
@@ -44,6 +44,17 @@ BluetoothServer::~BluetoothServer()
...
@@ -44,6 +44,17 @@ BluetoothServer::~BluetoothServer()
{
{
}
}
bool
BluetoothServer
::
isDiscoverable
()
{
return
true
;
}
void
BluetoothServer
::
setDiscoverable
(
bool
aDiscoverable
)
{
}
void
BluetoothServer
::
execute
()
void
BluetoothServer
::
execute
()
{
{
#if defined(LINUX) && defined(ENABLE_DBUS)
#if defined(LINUX) && defined(ENABLE_DBUS)
...
...
sd/source/ui/remotecontrol/BluetoothServer.hxx
Dosyayı görüntüle @
9940361f
...
@@ -21,6 +21,9 @@ namespace sd
...
@@ -21,6 +21,9 @@ namespace sd
{
{
public
:
public
:
static
void
setup
(
std
::
vector
<
Communicator
*>*
pCommunicators
);
static
void
setup
(
std
::
vector
<
Communicator
*>*
pCommunicators
);
bool
isDiscoverable
();
void
setDiscoverable
(
bool
aDiscoverable
);
private
:
private
:
BluetoothServer
(
std
::
vector
<
Communicator
*>*
pCommunicators
);
BluetoothServer
(
std
::
vector
<
Communicator
*>*
pCommunicators
);
~
BluetoothServer
();
~
BluetoothServer
();
...
...
sd/source/ui/remotecontrol/Communicator.cxx
Dosyayı görüntüle @
9940361f
...
@@ -56,6 +56,11 @@ void Communicator::execute()
...
@@ -56,6 +56,11 @@ void Communicator::execute()
{
{
presentationStarted
(
xPresentation
->
getController
()
);
presentationStarted
(
xPresentation
->
getController
()
);
}
}
else
{
pTransmitter
->
addMessage
(
"slideshow_finished
\n\n
"
,
Transmitter
::
PRIORITY_HIGH
);
}
}
}
catch
(
uno
::
RuntimeException
&
)
catch
(
uno
::
RuntimeException
&
)
{
{
...
@@ -81,7 +86,6 @@ void Communicator::execute()
...
@@ -81,7 +86,6 @@ void Communicator::execute()
aCommand
.
clear
();
aCommand
.
clear
();
}
}
}
}
// TODO: deal with transmision errors gracefully.
disposeListener
();
disposeListener
();
pTransmitter
->
notifyFinished
();
pTransmitter
->
notifyFinished
();
...
...
sd/source/ui/remotecontrol/Server.cxx
Dosyayı görüntüle @
9940361f
...
@@ -127,6 +127,7 @@ void RemoteServer::execute()
...
@@ -127,6 +127,7 @@ void RemoteServer::execute()
// Check if we already have this server.
// Check if we already have this server.
Reference
<
XNameAccess
>
xConfig
=
officecfg
::
Office
::
Impress
::
Misc
::
AuthorisedRemotes
::
get
();
Reference
<
XNameAccess
>
xConfig
=
officecfg
::
Office
::
Impress
::
Misc
::
AuthorisedRemotes
::
get
();
Sequence
<
OUString
>
aNames
=
xConfig
->
getElementNames
();
Sequence
<
OUString
>
aNames
=
xConfig
->
getElementNames
();
bool
aFound
=
false
;
for
(
int
i
=
0
;
i
<
aNames
.
getLength
();
i
++
)
for
(
int
i
=
0
;
i
<
aNames
.
getLength
();
i
++
)
{
{
if
(
aNames
[
i
].
equals
(
pClient
->
mName
)
)
if
(
aNames
[
i
].
equals
(
pClient
->
mName
)
)
...
@@ -138,12 +139,15 @@ void RemoteServer::execute()
...
@@ -138,12 +139,15 @@ void RemoteServer::execute()
if
(
sPin
.
equals
(
pClient
->
mPin
)
)
{
if
(
sPin
.
equals
(
pClient
->
mPin
)
)
{
connectClient
(
pClient
,
sPin
);
connectClient
(
pClient
,
sPin
);
aFound
=
true
;
break
;
}
}
break
;
}
}
}
}
pSocket
->
write
(
"LO_SERVER_VALIDATING_PIN
\n\n
"
,
// Pin not found so inform the client.
if
(
!
aFound
)
pSocket
->
write
(
"LO_SERVER_VALIDATING_PIN
\n\n
"
,
strlen
(
"LO_SERVER_VALIDATING_PIN
\n\n
"
)
);
strlen
(
"LO_SERVER_VALIDATING_PIN
\n\n
"
)
);
}
else
{
}
else
{
delete
pSocket
;
delete
pSocket
;
...
...
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