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
6c605575
Kaydet (Commit)
6c605575
authored
Ara 19, 2011
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move onlinecheck.cxx from sal to extensions
üst
166f974c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
137 deletions
+13
-137
Library_updchk.mk
extensions/Library_updchk.mk
+5
-0
onlinecheck.cxx
extensions/source/update/check/onlinecheck.cxx
+3
-3
updatecheck.cxx
extensions/source/update/check/updatecheck.cxx
+5
-28
makefile.mk
sal/systools/win32/onlineupdate/makefile.mk
+0
-78
onlinecheck.dxp
sal/systools/win32/onlineupdate/onlinecheck.dxp
+0
-28
No files found.
extensions/Library_updchk.mk
Dosyayı görüntüle @
6c605575
...
...
@@ -51,6 +51,11 @@ ifeq ($(OS),WNT)
$(eval
$(call
gb_Library_add_linked_libs,updchk,\
ole32
\
shell32
\
wininet
\
))
$(eval
$(call
gb_Library_add_exception_objects,updchk,\
extensions/source/update/check/onlinecheck
\
))
endif
# OS WNT
...
...
sal/systools/win32/onlineupdate
/onlinecheck.cxx
→
extensions/source/update/check
/onlinecheck.cxx
Dosyayı görüntüle @
6c605575
...
...
@@ -43,7 +43,7 @@
#include <tchar.h>
// #i71984
extern
"C"
sal_Bool
SAL_CALL
hasInternetConnection
()
extern
"C"
bool
SAL_CALL
WNT_
hasInternetConnection
()
{
DWORD
dwFlags
;
TCHAR
szConnectionName
[
1024
];
...
...
@@ -57,11 +57,11 @@ extern "C" sal_Bool SAL_CALL hasInternetConnection()
SAL_N_ELEMENTS
(
szConnectionName
),
0
);
return
fIsConnected
?
sal_True
:
sal_F
alse
;
return
fIsConnected
?
true
:
f
alse
;
#ifndef __MINGW32__
}
__except
(
EXCEPTION_EXECUTE_HANDLER
)
{
return
sal_F
alse
;
return
f
alse
;
}
#endif
}
...
...
extensions/source/update/check/updatecheck.cxx
Dosyayı görüntüle @
6c605575
...
...
@@ -85,6 +85,7 @@ namespace uno = com::sun::star::uno ;
#define PROPERTY_DEFAULT_TEXT UNISTRING("DefaultText")
#define PROPERTY_SHOW_MENUICON UNISTRING("MenuIconVisible")
extern
"C"
bool
SAL_CALL
WNT_hasInternetConnection
();
//------------------------------------------------------------------------------
// Returns the URL of the release note for the given position
...
...
@@ -267,9 +268,11 @@ private:
/* Used to avoid dialup login windows (on platforms we know how to double this) */
inline
bool
hasInternetConnection
()
const
{
if
(
m_pHasInternetConnection
!=
NULL
)
return
(
sal_True
==
m_pHasInternetConnection
());
#ifdef WNT
return
WNT_hasInternetConnection
();
#else
return
true
;
#endif
}
/* Creates a new instance of UpdateInformationProvider and returns this instance */
...
...
@@ -295,10 +298,6 @@ protected:
osl
::
Condition
&
m_aCondition
;
private
:
// const
OnlineCheckFunc
m_pHasInternetConnection
;
const
uno
::
Reference
<
uno
::
XComponentContext
>
m_xContext
;
uno
::
Reference
<
deployment
::
XUpdateInformationProvider
>
m_xProvider
;
};
...
...
@@ -373,30 +372,8 @@ private:
UpdateCheckThread
::
UpdateCheckThread
(
osl
::
Condition
&
rCondition
,
const
uno
::
Reference
<
uno
::
XComponentContext
>&
xContext
)
:
m_aCondition
(
rCondition
),
m_pHasInternetConnection
(
NULL
),
m_xContext
(
xContext
)
{
#ifdef WNT
rtl
::
OUString
aPath
;
if
(
osl_getExecutableFile
(
&
aPath
.
pData
)
==
osl_Process_E_None
)
{
sal_uInt32
lastIndex
=
aPath
.
lastIndexOf
(
'/'
);
if
(
lastIndex
>
0
)
{
aPath
=
aPath
.
copy
(
0
,
lastIndex
+
1
);
aPath
+=
UNISTRING
(
"onlinecheck"
);
}
if
(
m_aModule
.
load
(
aPath
)
)
{
m_pHasInternetConnection
=
reinterpret_cast
<
OnlineCheckFunc
>
(
m_aModule
.
getFunctionSymbol
(
UNISTRING
(
"hasInternetConnection"
)));
}
}
#endif
createSuspended
();
// actually run the thread
...
...
sal/systools/win32/onlineupdate/makefile.mk
deleted
100755 → 0
Dosyayı görüntüle @
166f974c
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ
=
..
$/
..
$/
..
PRJNAME
=
sal
TARGET
=
onlinecheck
USE_DEFFILE
=
TRUE
LIBTARGET
=
NO
# --- Settings ----------------------------------
.INCLUDE
:
settings.mk
CFLAGS
+=
$(LFS_CFLAGS)
CXXFLAGS
+=
$(LFS_CFLAGS)
# --- Targets ----------------------------------
.IF
"$(GUI)"
==
"WNT"
.IF
"$(COMEX)"
==
"9"
.IF
"$(PSDK_HOME)"
!=
""
# Since the 02/2003 PSDK the "new" linker is needed here.
LINK
=
$(WRAPCMD)
"
$(PSDK_HOME)$/
Bin
$/
Win64
$/
LINK.EXE"
.ENDIF
.ENDIF
SLOFILES
=
\
$(SLO)$/
onlinecheck.obj
SHL1TARGET
=
$(TARGET)
SHL1IMPLIB
=
$(SHL1TARGET)
SHL1DEF
=
$(MISC)
/
$(SHL1TARGET)
.def
DEF1NAME
=
$(SHL1TARGET)
DEF1EXPORTFILE
=
$(SHL1TARGET)
.dxp
DEF1DEPN
=
\
$(DEF1EXPORTFILE)
\
makefile.mk
SHL1OBJS
=
$(SLOFILES)
SHL1STDLIBS
=
\
$(KERNEL32LIB)
\
$(LIBCMT)
\
$(WININETLIB)
.ENDIF
.INCLUDE
:
target.mk
sal/systools/win32/onlineupdate/onlinecheck.dxp
deleted
100644 → 0
Dosyayı görüntüle @
166f974c
;*************************************************************************
;
; DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
;
; Copyright 2000, 2010 Oracle and/or its affiliates.
;
; OpenOffice.org - a multi-platform office productivity suite
;
; This file is part of OpenOffice.org.
;
; OpenOffice.org is free software: you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License version 3
; only, as published by the Free Software Foundation.
;
; OpenOffice.org is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU Lesser General Public License version 3 for more details
; (a copy is included in the LICENSE file that accompanied this code).
;
; You should have received a copy of the GNU Lesser General Public License
; version 3 along with OpenOffice.org. If not, see
; <http://www.openoffice.org/license.html>
; for a copy of the LGPLv3 License.
;
;*************************************************************************
hasInternetConnection
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