Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
f74f69a9
Commit
f74f69a9
authored
Jun 10, 2017
by
Laurent Montel
😁
Browse files
Make it compile on windows
parent
57d4e83f
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/actions/qekigadialer.cpp
View file @
f74f69a9
...
...
@@ -32,7 +32,11 @@
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
#include <QString>
static
bool
isEkigaServiceRegistered
()
...
...
@@ -89,7 +93,11 @@ bool QEkigaDialer::initializeEkiga()
const
int
runs
=
100
;
for
(
int
i
=
0
;
i
<
runs
;
++
i
)
{
if
(
!
isEkigaServiceRegistered
())
{
#ifdef WIN32
Sleep
(
2000
);
#else
::
sleep
(
2
);
#endif
}
else
{
break
;
}
...
...
src/actions/qsflphonedialer.cpp
View file @
f74f69a9
...
...
@@ -32,7 +32,11 @@
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
static
bool
isSflPhoneServiceRegistered
()
{
...
...
@@ -73,7 +77,11 @@ bool QSflPhoneDialer::initializeSflPhone()
const
int
runs
=
100
;
for
(
int
i
=
0
;
i
<
runs
;
++
i
)
{
if
(
!
isSflPhoneServiceRegistered
())
{
#ifdef WIN32
Sleep
(
2000
);
#else
::
sleep
(
2
);
#endif
}
else
{
return
true
;
}
...
...
src/actions/qskypedialer.cpp
View file @
f74f69a9
...
...
@@ -30,7 +30,11 @@
#include <QtDBus/QDBusReply>
#include <KLocalizedString>
#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
static
bool
isSkypeServiceRegistered
()
{
...
...
@@ -91,7 +95,11 @@ bool QSkypeDialer::initializeSkype()
const
int
runs
=
100
;
for
(
int
i
=
0
;
i
<
runs
;
++
i
)
{
if
(
!
isSkypeServiceRegistered
())
{
#ifdef WIN32
Sleep
(
2000
);
#else
::
sleep
(
2
);
#endif
}
else
{
break
;
}
...
...
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