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
7744ed92
Kaydet (Commit)
7744ed92
authored
Ock 24, 2013
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CMIS: use the proxy settings from the options
Change-Id: I5b856ac166b67097e1921ec71eb5b7e1819fec41
üst
04f21f9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
UnpackedTarball_cmis.mk
libcmis/UnpackedTarball_cmis.mk
+1
-0
libcmis-0.3.0-proxy.patch
libcmis/libcmis-0.3.0-proxy.patch
+0
-0
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+9
-0
cmis_repo_content.cxx
ucb/source/ucp/cmis/cmis_repo_content.cxx
+9
-0
No files found.
libcmis/UnpackedTarball_cmis.mk
Dosyayı görüntüle @
7744ed92
...
...
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,cmis, \
libcmis/libcmis-0.3.0-warnings.patch \
libcmis/libcmis-0.3.0-win.patch \
libcmis/libcmis-0.3.0.patch \
libcmis/libcmis-0.3.0-proxy.patch \
))
ifeq ($(OS)$(COM),WNTMSC)
...
...
libcmis/libcmis-0.3.0-proxy.patch
0 → 100644
Dosyayı görüntüle @
7744ed92
This diff is collapsed.
Click to expand it.
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
7744ed92
...
...
@@ -60,6 +60,7 @@
#include <ucbhelper/std_inputstream.hxx>
#include <ucbhelper/std_outputstream.hxx>
#include <ucbhelper/propertyvalueset.hxx>
#include <ucbhelper/proxydecider.hxx>
#include "auth_provider.hxx"
#include "cmis_content.hxx"
...
...
@@ -256,6 +257,14 @@ namespace cmis
libcmis
::
Session
*
Content
::
getSession
(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
{
// Set the proxy if needed. We are doing that all times as the proxy data shouldn't be cached.
ucbhelper
::
InternetProxyDecider
aProxyDecider
(
m_xContext
);
INetURLObject
aBindingUrl
(
m_aURL
.
getBindingUrl
(
)
);
const
ucbhelper
::
InternetProxyServer
&
rProxy
=
aProxyDecider
.
getProxy
(
INetURLObject
::
GetScheme
(
aBindingUrl
.
GetProtocol
(
)
),
aBindingUrl
.
GetHost
(),
aBindingUrl
.
GetPort
()
);
rtl
::
OUString
sProxy
=
rProxy
.
aName
+
":"
+
rtl
::
OUString
::
valueOf
(
rProxy
.
nPort
);
libcmis
::
SessionFactory
::
setProxySettings
(
OUSTR_TO_STDSTR
(
sProxy
),
string
(),
string
(),
string
()
);
// Look for a cached session, key is binding url + repo id
rtl
::
OUString
sSessionId
=
m_aURL
.
getBindingUrl
(
)
+
m_aURL
.
getRepositoryId
(
);
if
(
NULL
==
m_pSession
)
...
...
ucb/source/ucp/cmis/cmis_repo_content.cxx
Dosyayı görüntüle @
7744ed92
...
...
@@ -41,6 +41,7 @@
#include <ucbhelper/commandenvironment.hxx>
#include <ucbhelper/contentidentifier.hxx>
#include <ucbhelper/propertyvalueset.hxx>
#include <ucbhelper/proxydecider.hxx>
#include "auth_provider.hxx"
#include "cmis_content.hxx"
...
...
@@ -138,6 +139,14 @@ namespace cmis
void
RepoContent
::
getRepositories
(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
{
// Set the proxy if needed. We are doing that all times as the proxy data shouldn't be cached.
ucbhelper
::
InternetProxyDecider
aProxyDecider
(
m_xContext
);
INetURLObject
aBindingUrl
(
m_aURL
.
getBindingUrl
(
)
);
const
ucbhelper
::
InternetProxyServer
&
rProxy
=
aProxyDecider
.
getProxy
(
INetURLObject
::
GetScheme
(
aBindingUrl
.
GetProtocol
(
)
),
aBindingUrl
.
GetHost
(),
aBindingUrl
.
GetPort
()
);
rtl
::
OUString
sProxy
=
rProxy
.
aName
+
":"
+
rtl
::
OUString
::
valueOf
(
rProxy
.
nPort
);
libcmis
::
SessionFactory
::
setProxySettings
(
OUSTR_TO_STDSTR
(
sProxy
),
string
(),
string
(),
string
()
);
if
(
m_aRepositories
.
empty
()
)
{
// Get the auth credentials
...
...
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