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
d5d18154
Kaydet (Commit)
d5d18154
authored
Eki 30, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: fix the --disable-dbus build
Change-Id: I4562b029172e2dcef7d13bf2c1aa37410d18e25a
üst
f3881ab8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
8 deletions
+38
-8
screensaverinhibitor.cxx
vcl/unx/generic/window/screensaverinhibitor.cxx
+38
-8
No files found.
vcl/unx/generic/window/screensaverinhibitor.cxx
Dosyayı görüntüle @
d5d18154
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
#include <sal/log.hxx>
#include <sal/log.hxx>
void
ScreenSaverInhibitor
::
inhibit
(
bool
bInhibit
,
const
OUString
&
sReason
,
void
ScreenSaverInhibitor
::
inhibit
(
bool
bInhibit
,
const
OUString
&
sReason
,
bool
bIsX11
,
const
boost
::
optional
<
gu
int
>
xid
,
boost
::
optional
<
Display
*>
pDisplay
)
bool
bIsX11
,
const
boost
::
optional
<
unsigned
int
>
xid
,
boost
::
optional
<
Display
*>
pDisplay
)
{
{
const
g
char
*
appname
=
SalGenericSystem
::
getFrameClassName
();
const
char
*
appname
=
SalGenericSystem
::
getFrameClassName
();
const
OString
aReason
=
OUStringToOString
(
sReason
,
RTL_TEXTENCODING_UTF8
);
const
OString
aReason
=
OUStringToOString
(
sReason
,
RTL_TEXTENCODING_UTF8
);
inhibitFDO
(
bInhibit
,
appname
,
aReason
.
getStr
()
);
inhibitFDO
(
bInhibit
,
appname
,
aReason
.
getStr
()
);
...
@@ -64,13 +64,13 @@ void ScreenSaverInhibitor::inhibit( bool bInhibit, const OUString& sReason,
...
@@ -64,13 +64,13 @@ void ScreenSaverInhibitor::inhibit( bool bInhibit, const OUString& sReason,
}
}
}
}
#ifdef ENABLE_DBUS
void
dbusInhibit
(
bool
bInhibit
,
void
dbusInhibit
(
bool
bInhibit
,
const
gchar
*
service
,
const
gchar
*
path
,
const
gchar
*
interface
,
const
gchar
*
service
,
const
gchar
*
path
,
const
gchar
*
interface
,
std
::
function
<
bool
(
DBusGProxy
*
,
guint
&
,
GError
*&
)
>
fInhibit
,
std
::
function
<
bool
(
DBusGProxy
*
,
guint
&
,
GError
*&
)
>
fInhibit
,
std
::
function
<
bool
(
DBusGProxy
*
,
const
guint
,
GError
*&
)
>
fUnInhibit
,
std
::
function
<
bool
(
DBusGProxy
*
,
const
guint
,
GError
*&
)
>
fUnInhibit
,
boost
::
optional
<
guint
>&
rCookie
)
boost
::
optional
<
guint
>&
rCookie
)
{
{
#ifdef ENABLE_DBUS
if
(
(
!
bInhibit
&&
(
rCookie
==
boost
::
none
)
)
||
if
(
(
!
bInhibit
&&
(
rCookie
==
boost
::
none
)
)
||
(
bInhibit
&&
(
rCookie
!=
boost
::
none
)
)
)
(
bInhibit
&&
(
rCookie
!=
boost
::
none
)
)
)
{
{
...
@@ -130,11 +130,12 @@ void dbusInhibit( bool bInhibit,
...
@@ -130,11 +130,12 @@ void dbusInhibit( bool bInhibit,
g_object_unref
(
G_OBJECT
(
proxy
)
);
g_object_unref
(
G_OBJECT
(
proxy
)
);
#endif // ENABLE_DBUS
}
}
#endif // ENABLE_DBUS
void
ScreenSaverInhibitor
::
inhibitFDO
(
bool
bInhibit
,
const
gchar
*
appname
,
const
g
char
*
reason
)
void
ScreenSaverInhibitor
::
inhibitFDO
(
bool
bInhibit
,
const
char
*
appname
,
const
char
*
reason
)
{
{
#ifdef ENABLE_DBUS
dbusInhibit
(
bInhibit
,
dbusInhibit
(
bInhibit
,
FDO_DBUS_SERVICE
,
FDO_DBUS_PATH
,
FDO_DBUS_INTERFACE
,
FDO_DBUS_SERVICE
,
FDO_DBUS_PATH
,
FDO_DBUS_INTERFACE
,
[
appname
,
reason
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
[
appname
,
reason
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
...
@@ -154,10 +155,17 @@ void ScreenSaverInhibitor::inhibitFDO( bool bInhibit, const gchar* appname, cons
...
@@ -154,10 +155,17 @@ void ScreenSaverInhibitor::inhibitFDO( bool bInhibit, const gchar* appname, cons
G_TYPE_INVALID
);
G_TYPE_INVALID
);
},
},
mnFDOCookie
);
mnFDOCookie
);
#else
(
void
)
this
;
(
void
)
bInhibit
;
(
void
)
appname
;
(
void
)
reason
;
#endif // ENABLE_DBUS
}
}
void
ScreenSaverInhibitor
::
inhibitFDOPM
(
bool
bInhibit
,
const
gchar
*
appname
,
const
g
char
*
reason
)
void
ScreenSaverInhibitor
::
inhibitFDOPM
(
bool
bInhibit
,
const
char
*
appname
,
const
char
*
reason
)
{
{
#ifdef ENABLE_DBUS
dbusInhibit
(
bInhibit
,
dbusInhibit
(
bInhibit
,
FDOPM_DBUS_SERVICE
,
FDOPM_DBUS_PATH
,
FDOPM_DBUS_INTERFACE
,
FDOPM_DBUS_SERVICE
,
FDOPM_DBUS_PATH
,
FDOPM_DBUS_INTERFACE
,
[
appname
,
reason
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
[
appname
,
reason
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
...
@@ -177,10 +185,17 @@ void ScreenSaverInhibitor::inhibitFDOPM( bool bInhibit, const gchar* appname, co
...
@@ -177,10 +185,17 @@ void ScreenSaverInhibitor::inhibitFDOPM( bool bInhibit, const gchar* appname, co
G_TYPE_INVALID
);
G_TYPE_INVALID
);
},
},
mnFDOPMCookie
);
mnFDOPMCookie
);
#else
(
void
)
this
;
(
void
)
bInhibit
;
(
void
)
appname
;
(
void
)
reason
;
#endif // ENABLE_DBUS
}
}
void
ScreenSaverInhibitor
::
inhibitGSM
(
bool
bInhibit
,
const
gchar
*
appname
,
const
gchar
*
reason
,
const
gu
int
xid
)
void
ScreenSaverInhibitor
::
inhibitGSM
(
bool
bInhibit
,
const
char
*
appname
,
const
char
*
reason
,
const
unsigned
int
xid
)
{
{
#ifdef ENABLE_DBUS
dbusInhibit
(
bInhibit
,
dbusInhibit
(
bInhibit
,
GSM_DBUS_SERVICE
,
GSM_DBUS_PATH
,
GSM_DBUS_INTERFACE
,
GSM_DBUS_SERVICE
,
GSM_DBUS_PATH
,
GSM_DBUS_INTERFACE
,
[
appname
,
reason
,
xid
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
[
appname
,
reason
,
xid
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
...
@@ -202,10 +217,18 @@ void ScreenSaverInhibitor::inhibitGSM( bool bInhibit, const gchar* appname, cons
...
@@ -202,10 +217,18 @@ void ScreenSaverInhibitor::inhibitGSM( bool bInhibit, const gchar* appname, cons
G_TYPE_INVALID
);
G_TYPE_INVALID
);
},
},
mnGSMCookie
);
mnGSMCookie
);
#else
(
void
)
this
;
(
void
)
bInhibit
;
(
void
)
appname
;
(
void
)
reason
;
(
void
)
xid
;
#endif // ENABLE_DBUS
}
}
void
ScreenSaverInhibitor
::
inhibitMSM
(
bool
bInhibit
,
const
gchar
*
appname
,
const
gchar
*
reason
,
const
gu
int
xid
)
void
ScreenSaverInhibitor
::
inhibitMSM
(
bool
bInhibit
,
const
char
*
appname
,
const
char
*
reason
,
const
unsigned
int
xid
)
{
{
#ifdef ENABLE_DBUS
dbusInhibit
(
bInhibit
,
dbusInhibit
(
bInhibit
,
MSM_DBUS_SERVICE
,
MSM_DBUS_PATH
,
MSM_DBUS_INTERFACE
,
MSM_DBUS_SERVICE
,
MSM_DBUS_PATH
,
MSM_DBUS_INTERFACE
,
[
appname
,
reason
,
xid
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
[
appname
,
reason
,
xid
]
(
DBusGProxy
*
proxy
,
guint
&
nCookie
,
GError
*&
error
)
->
bool
{
...
@@ -227,6 +250,13 @@ void ScreenSaverInhibitor::inhibitMSM( bool bInhibit, const gchar* appname, cons
...
@@ -227,6 +250,13 @@ void ScreenSaverInhibitor::inhibitMSM( bool bInhibit, const gchar* appname, cons
G_TYPE_INVALID
);
G_TYPE_INVALID
);
},
},
mnMSMCookie
);
mnMSMCookie
);
#else
(
void
)
this
;
(
void
)
bInhibit
;
(
void
)
appname
;
(
void
)
reason
;
(
void
)
xid
;
#endif // ENABLE_DBUS
}
}
/**
/**
...
...
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