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
b0f43c62
Kaydet (Commit)
b0f43c62
authored
Eki 01, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix warnings in ucb/source/ucp/webdav/ (--with-webdav=serf)
Change-Id: I6e45a8b00952dc3ef54f29536cf333bfdcee787d
üst
a995f827
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
80 additions
and
80 deletions
+80
-80
DAVAuthListener.hxx
ucb/source/ucp/webdav/DAVAuthListener.hxx
+2
-2
DAVAuthListenerImpl.hxx
ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx
+2
-2
DAVException.hxx
ucb/source/ucp/webdav/DAVException.hxx
+1
-1
DAVResourceAccess.cxx
ucb/source/ucp/webdav/DAVResourceAccess.cxx
+15
-15
DAVResourceAccess.hxx
ucb/source/ucp/webdav/DAVResourceAccess.hxx
+4
-4
DAVSession.hxx
ucb/source/ucp/webdav/DAVSession.hxx
+4
-4
SerfSession.cxx
ucb/source/ucp/webdav/SerfSession.cxx
+13
-13
SerfSession.hxx
ucb/source/ucp/webdav/SerfSession.hxx
+5
-5
SerfUri.hxx
ucb/source/ucp/webdav/SerfUri.hxx
+2
-2
webdavcontentcaps.cxx
ucb/source/ucp/webdav/webdavcontentcaps.cxx
+32
-32
No files found.
ucb/source/ucp/webdav/DAVAuthListener.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -38,8 +38,8 @@ class DAVAuthListener : public salhelper::SimpleReferenceObject
const
OUString
&
inHostName
,
OUString
&
inoutUserName
,
OUString
&
outPassWord
,
sal_B
ool
bCanUseSystemCredentials
,
sal_Bool
bUsePreviousCredentials
=
sal_T
rue
)
=
0
;
b
ool
bCanUseSystemCredentials
,
bool
bUsePreviousCredentials
=
t
rue
)
=
0
;
};
}
// namespace http_dav_ucp
...
...
ucb/source/ucp/webdav/DAVAuthListenerImpl.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -55,8 +55,8 @@ namespace http_dav_ucp
const
OUString
&
inHostName
,
OUString
&
inoutUserName
,
OUString
&
outPassWord
,
sal_B
ool
bCanUseSystemCredentials
,
sal_Bool
bUsePreviousCredentials
=
sal_T
rue
)
SAL_OVERRIDE
;
b
ool
bCanUseSystemCredentials
,
bool
bUsePreviousCredentials
=
t
rue
)
SAL_OVERRIDE
;
private
:
const
com
::
sun
::
star
::
uno
::
Reference
<
...
...
ucb/source/ucp/webdav/DAVException.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -157,7 +157,7 @@ class DAVException : public std::exception
,
mData
(
rData
)
,
mStatusCode
(
nStatusCode
)
{};
~
DAVException
(
)
{};
virtual
~
DAVException
(
)
{};
const
ExceptionCode
&
getError
()
const
{
return
mExceptionCode
;
}
const
OUString
&
getData
()
const
{
return
mData
;
}
...
...
ucb/source/ucp/webdav/DAVResourceAccess.cxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -46,8 +46,8 @@ int DAVAuthListener_Impl::authenticate(
const
OUString
&
inHostName
,
OUString
&
inoutUserName
,
OUString
&
outPassWord
,
sal_B
ool
bCanUseSystemCredentials
,
sal_B
ool
bUsePreviousCredentials
)
b
ool
bCanUseSystemCredentials
,
b
ool
bUsePreviousCredentials
)
{
if
(
m_xEnv
.
is
()
)
{
...
...
@@ -88,7 +88,7 @@ int DAVAuthListener_Impl::authenticate(
ucbhelper
::
InteractionSupplyAuthentication
>
&
xSupp
=
xRequest
->
getAuthenticationSupplier
();
sal_Bool
bUseSystemCredentials
=
sal_F
alse
;
bool
bUseSystemCredentials
=
f
alse
;
if
(
bCanUseSystemCredentials
)
bUseSystemCredentials
...
...
@@ -794,7 +794,7 @@ void DAVResourceAccess::MKCOL(
void
DAVResourceAccess
::
COPY
(
const
OUString
&
rSourcePath
,
const
OUString
&
rDestinationURI
,
sal_B
ool
bOverwrite
,
b
ool
bOverwrite
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
throw
(
DAVException
)
{
...
...
@@ -836,7 +836,7 @@ void DAVResourceAccess::COPY(
void
DAVResourceAccess
::
MOVE
(
const
OUString
&
rSourcePath
,
const
OUString
&
rDestinationURI
,
sal_B
ool
bOverwrite
,
b
ool
bOverwrite
,
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
throw
(
DAVException
)
{
...
...
@@ -1127,7 +1127,7 @@ void DAVResourceAccess::getUserRequestHeaders(
}
sal_B
ool
DAVResourceAccess
::
detectRedirectCycle
(
b
ool
DAVResourceAccess
::
detectRedirectCycle
(
const
OUString
&
rRedirectURL
)
throw
(
DAVException
)
{
...
...
@@ -1141,12 +1141,12 @@ sal_Bool DAVResourceAccess::detectRedirectCycle(
while
(
it
!=
end
)
{
if
(
aUri
==
(
*
it
)
)
return
sal_T
rue
;
return
t
rue
;
++
it
;
}
return
sal_F
alse
;
return
f
alse
;
}
...
...
@@ -1165,7 +1165,7 @@ void DAVResourceAccess::resetUri()
}
sal_B
ool
DAVResourceAccess
::
handleException
(
DAVException
&
e
,
int
errorCount
)
b
ool
DAVResourceAccess
::
handleException
(
DAVException
&
e
,
int
errorCount
)
throw
(
DAVException
)
{
switch
(
e
.
getError
()
)
...
...
@@ -1176,9 +1176,9 @@ sal_Bool DAVResourceAccess::handleException( DAVException & e, int errorCount )
// set new URL and path.
setURL
(
e
.
getData
()
);
initialize
();
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
// --> tkr #67048# copy & paste images doesn't display.
// if we have a bad connection try again. Up to three times.
case
DAVException
:
:
DAV_HTTP_ERROR
:
...
...
@@ -1187,16 +1187,16 @@ sal_Bool DAVResourceAccess::handleException( DAVException & e, int errorCount )
e
.
getStatus
()
==
413
)
&&
errorCount
<
3
)
{
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
// <--
// --> tkr: if connection has said retry then retry!
case
DAVException
:
:
DAV_HTTP_RETRY
:
return
sal_T
rue
;
return
t
rue
;
// <--
default
:
return
sal_F
alse
;
// Abort
return
f
alse
;
// Abort
}
}
...
...
ucb/source/ucp/webdav/DAVResourceAccess.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -179,7 +179,7 @@ public:
void
COPY
(
const
OUString
&
rSourcePath
,
const
OUString
&
rDestinationURI
,
sal_B
ool
bOverwrite
,
b
ool
bOverwrite
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
)
throw
(
DAVException
);
...
...
@@ -187,7 +187,7 @@ public:
void
MOVE
(
const
OUString
&
rSourcePath
,
const
OUString
&
rDestinationURI
,
sal_B
ool
bOverwrite
,
b
ool
bOverwrite
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
ucb
::
XCommandEnvironment
>
&
xEnv
)
throw
(
DAVException
);
...
...
@@ -233,9 +233,9 @@ public:
private
:
const
OUString
&
getRequestURI
()
const
;
sal_B
ool
detectRedirectCycle
(
const
OUString
&
rRedirectURL
)
b
ool
detectRedirectCycle
(
const
OUString
&
rRedirectURL
)
throw
(
DAVException
);
sal_B
ool
handleException
(
DAVException
&
e
,
int
errorCount
)
b
ool
handleException
(
DAVException
&
e
,
int
errorCount
)
throw
(
DAVException
);
void
initialize
()
throw
(
DAVException
);
...
...
ucb/source/ucp/webdav/DAVSession.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -59,9 +59,9 @@ public:
}
}
virtual
sal_B
ool
CanUse
(
const
OUString
&
inPath
)
=
0
;
virtual
b
ool
CanUse
(
const
OUString
&
inPath
)
=
0
;
virtual
sal_B
ool
UsesProxy
()
=
0
;
virtual
b
ool
UsesProxy
()
=
0
;
// DAV methods
...
...
@@ -158,13 +158,13 @@ public:
virtual
void
COPY
(
const
OUString
&
inSource
,
const
OUString
&
inDestination
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverwrite
=
false
)
b
ool
inOverwrite
=
false
)
throw
(
DAVException
)
=
0
;
virtual
void
MOVE
(
const
OUString
&
inSource
,
const
OUString
&
inDestination
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverwrite
=
false
)
b
ool
inOverwrite
=
false
)
throw
(
DAVException
)
=
0
;
virtual
void
DESTROY
(
const
OUString
&
inPath
,
...
...
ucb/source/ucp/webdav/SerfSession.cxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -138,7 +138,7 @@ void SerfSession::Init()
// TODO - close_connection callback
apr_status_t
status
=
serf_connection_create2
(
&
m_pSerfConnection
,
m_pSerfContext
,
*
(
m_aUri
.
getAprUri
()
),
m_aUri
.
getAprUri
(
),
Serf_ConnectSetup
,
this
,
0
/* close connection callback */
,
0
/* close connection baton */
,
getAprPool
()
);
...
...
@@ -209,13 +209,13 @@ bool SerfSession::isSSLNeeded()
char
*
SerfSession
::
getHostinfo
()
{
return
m_aUri
.
getAprUri
()
->
hostinfo
;
return
m_aUri
.
getAprUri
()
.
hostinfo
;
}
// virtual
sal_B
ool
SerfSession
::
CanUse
(
const
OUString
&
inUri
)
b
ool
SerfSession
::
CanUse
(
const
OUString
&
inUri
)
{
try
{
...
...
@@ -224,19 +224,19 @@ sal_Bool SerfSession::CanUse( const OUString & inUri )
(
theUri
.
GetHost
()
==
m_aUri
.
GetHost
()
)
&&
(
theUri
.
GetScheme
()
==
m_aUri
.
GetScheme
()
)
)
{
return
sal_T
rue
;
return
t
rue
;
}
}
catch
(
DAVException
const
&
)
{
return
sal_F
alse
;
return
f
alse
;
}
return
sal_F
alse
;
return
f
alse
;
}
// virtual
sal_B
ool
SerfSession
::
UsesProxy
()
b
ool
SerfSession
::
UsesProxy
()
{
Init
();
return
(
m_aProxyName
.
getLength
()
>
0
);
...
...
@@ -913,7 +913,7 @@ void SerfSession::MKCOL( const OUString & inPath,
void
SerfSession
::
COPY
(
const
OUString
&
inSourceURL
,
const
OUString
&
inDestinationURL
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverWrite
)
b
ool
inOverWrite
)
throw
(
DAVException
)
{
osl
::
Guard
<
osl
::
Mutex
>
theGuard
(
m_aMutex
);
...
...
@@ -936,7 +936,7 @@ void SerfSession::COPY( const OUString & inSourceURL,
void
SerfSession
::
MOVE
(
const
OUString
&
inSourceURL
,
const
OUString
&
inDestinationURL
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverWrite
)
b
ool
inOverWrite
)
throw
(
DAVException
)
{
osl
::
Guard
<
osl
::
Mutex
>
theGuard
(
m_aMutex
);
...
...
@@ -1461,13 +1461,13 @@ SerfSession::getDataFromInputStream(
}
sal_B
ool
b
ool
SerfSession
::
isDomainMatch
(
const
OUString
&
certHostName
)
{
OUString
hostName
=
getHostName
();
if
(
hostName
.
equalsIgnoreAsciiCase
(
certHostName
)
)
return
sal_T
rue
;
return
t
rue
;
if
(
certHostName
.
startsWith
(
"*"
)
&&
hostName
.
getLength
()
>=
certHostName
.
getLength
()
)
...
...
@@ -1476,9 +1476,9 @@ SerfSession::isDomainMatch( const OUString & certHostName )
if
(
hostName
.
matchIgnoreAsciiCase
(
cmpStr
,
hostName
.
getLength
()
-
cmpStr
.
getLength
()
)
)
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
/*
...
...
ucb/source/ucp/webdav/SerfSession.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -108,9 +108,9 @@ public:
serf_connection_t
*
getSerfConnection
();
// DAVSession methods
virtual
sal_B
ool
CanUse
(
const
OUString
&
inUri
)
SAL_OVERRIDE
;
virtual
b
ool
CanUse
(
const
OUString
&
inUri
)
SAL_OVERRIDE
;
virtual
sal_B
ool
UsesProxy
()
SAL_OVERRIDE
;
virtual
b
ool
UsesProxy
()
SAL_OVERRIDE
;
const
DAVRequestEnvironment
&
getRequestEnvironment
()
const
{
return
m_aEnv
;
}
...
...
@@ -211,14 +211,14 @@ public:
COPY
(
const
OUString
&
inSourceURL
,
const
OUString
&
inDestinationURL
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverWrite
)
b
ool
inOverWrite
)
throw
(
DAVException
)
SAL_OVERRIDE
;
virtual
void
MOVE
(
const
OUString
&
inSourceURL
,
const
OUString
&
inDestinationURL
,
const
DAVRequestEnvironment
&
rEnv
,
sal_B
ool
inOverWrite
)
b
ool
inOverWrite
)
throw
(
DAVException
)
SAL_OVERRIDE
;
virtual
void
DESTROY
(
const
OUString
&
inPath
,
...
...
@@ -248,7 +248,7 @@ public:
const
OUString
&
getHostName
()
const
{
return
m_aUri
.
GetHost
();
}
int
getPort
()
const
{
return
m_aUri
.
GetPort
();
}
sal_B
ool
isDomainMatch
(
const
OUString
&
certHostName
);
b
ool
isDomainMatch
(
const
OUString
&
certHostName
);
private
:
friend
class
SerfLockStore
;
...
...
ucb/source/ucp/webdav/SerfUri.hxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -58,9 +58,9 @@ class SerfUri
bool
operator
!=
(
const
SerfUri
&
rOther
)
const
{
return
!
operator
==
(
rOther
);
}
apr_uri_t
*
getAprUri
()
apr_uri_t
&
getAprUri
()
{
return
&
mAprUri
;
return
mAprUri
;
}
const
OUString
&
GetURI
(
void
)
const
{
return
mURI
;
};
...
...
ucb/source/ucp/webdav/webdavcontentcaps.cxx
Dosyayı görüntüle @
b0f43c62
...
...
@@ -274,7 +274,7 @@ bool ContentProvider::getProperty(
uno
::
Sequence
<
beans
::
Property
>
Content
::
getProperties
(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
&
xEnv
)
{
sal_B
ool
bTransient
;
b
ool
bTransient
;
boost
::
scoped_ptr
<
DAVResourceAccess
>
xResAccess
;
boost
::
scoped_ptr
<
ContentProperties
>
xCachedProps
;
rtl
::
Reference
<
ContentProvider
>
xProvider
;
...
...
@@ -314,21 +314,21 @@ uno::Sequence< beans::Property > Content::getProperties(
}
// Add DAV properties, map DAV properties to UCB properties.
sal_Bool
bHasCreationDate
=
sal_F
alse
;
// creationdate <-> DateCreated
sal_Bool
bHasGetLastModified
=
sal_F
alse
;
// getlastmodified <-> DateModified
sal_Bool
bHasGetContentType
=
sal_F
alse
;
// getcontenttype <-> MediaType
sal_Bool
bHasGetContentLength
=
sal_F
alse
;
// getcontentlength <-> Size
sal_Bool
bHasContentType
=
sal_F
alse
;
sal_Bool
bHasIsDocument
=
sal_F
alse
;
sal_Bool
bHasIsFolder
=
sal_F
alse
;
sal_Bool
bHasTitle
=
sal_F
alse
;
sal_Bool
bHasBaseURI
=
sal_F
alse
;
sal_Bool
bHasDateCreated
=
sal_F
alse
;
sal_Bool
bHasDateModified
=
sal_F
alse
;
sal_Bool
bHasMediaType
=
sal_F
alse
;
sal_Bool
bHasSize
=
sal_F
alse
;
sal_Bool
bHasCreatableInfos
=
sal_F
alse
;
bool
bHasCreationDate
=
f
alse
;
// creationdate <-> DateCreated
bool
bHasGetLastModified
=
f
alse
;
// getlastmodified <-> DateModified
bool
bHasGetContentType
=
f
alse
;
// getcontenttype <-> MediaType
bool
bHasGetContentLength
=
f
alse
;
// getcontentlength <-> Size
bool
bHasContentType
=
f
alse
;
bool
bHasIsDocument
=
f
alse
;
bool
bHasIsFolder
=
f
alse
;
bool
bHasTitle
=
f
alse
;
bool
bHasBaseURI
=
f
alse
;
bool
bHasDateCreated
=
f
alse
;
bool
bHasDateModified
=
f
alse
;
bool
bHasMediaType
=
f
alse
;
bool
bHasSize
=
f
alse
;
bool
bHasCreatableInfos
=
f
alse
;
{
std
::
set
<
OUString
>::
const_iterator
it
=
aPropSet
.
begin
();
...
...
@@ -338,62 +338,62 @@ uno::Sequence< beans::Property > Content::getProperties(
if
(
!
bHasCreationDate
&&
(
(
*
it
)
==
DAVProperties
::
CREATIONDATE
)
)
{
bHasCreationDate
=
sal_T
rue
;
bHasCreationDate
=
t
rue
;
}
else
if
(
!
bHasGetLastModified
&&
(
(
*
it
)
==
DAVProperties
::
GETLASTMODIFIED
)
)
{
bHasGetLastModified
=
sal_T
rue
;
bHasGetLastModified
=
t
rue
;
}
else
if
(
!
bHasGetContentType
&&
(
(
*
it
)
==
DAVProperties
::
GETCONTENTTYPE
)
)
{
bHasGetContentType
=
sal_T
rue
;
bHasGetContentType
=
t
rue
;
}
else
if
(
!
bHasGetContentLength
&&
(
(
*
it
)
==
DAVProperties
::
GETCONTENTLENGTH
)
)
{
bHasGetContentLength
=
sal_T
rue
;
bHasGetContentLength
=
t
rue
;
}
else
if
(
!
bHasContentType
&&
(
*
it
)
==
"ContentType"
)
{
bHasContentType
=
sal_T
rue
;
bHasContentType
=
t
rue
;
}
else
if
(
!
bHasIsDocument
&&
(
*
it
)
==
"IsDocument"
)
{
bHasIsDocument
=
sal_T
rue
;
bHasIsDocument
=
t
rue
;
}
else
if
(
!
bHasIsFolder
&&
(
*
it
)
==
"IsFolder"
)
{
bHasIsFolder
=
sal_T
rue
;
bHasIsFolder
=
t
rue
;
}
else
if
(
!
bHasTitle
&&
(
*
it
)
==
"Title"
)
{
bHasTitle
=
sal_T
rue
;
bHasTitle
=
t
rue
;
}
else
if
(
!
bHasBaseURI
&&
(
*
it
)
==
"BaseURI"
)
{
bHasBaseURI
=
sal_T
rue
;
bHasBaseURI
=
t
rue
;
}
else
if
(
!
bHasDateCreated
&&
(
*
it
)
==
"DateCreated"
)
{
bHasDateCreated
=
sal_T
rue
;
bHasDateCreated
=
t
rue
;
}
else
if
(
!
bHasDateModified
&&
(
*
it
)
==
"DateModified"
)
{
bHasDateModified
=
sal_T
rue
;
bHasDateModified
=
t
rue
;
}
else
if
(
!
bHasMediaType
&&
(
*
it
)
==
"MediaType"
)
{
bHasMediaType
=
sal_T
rue
;
bHasMediaType
=
t
rue
;
}
else
if
(
!
bHasSize
&&
(
*
it
)
==
"Size"
)
{
bHasSize
=
sal_T
rue
;
bHasSize
=
t
rue
;
}
else
if
(
!
bHasCreatableInfos
&&
(
*
it
)
==
"CreatableContentsInfo"
)
{
bHasCreatableInfos
=
sal_T
rue
;
bHasCreatableInfos
=
t
rue
;
}
++
it
;
}
...
...
@@ -562,7 +562,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
-
1
,
cppu
::
UnoType
<
rtl
::
OUString
>::
get
()
);
sal_Bool
bFolder
=
sal_F
alse
;
bool
bFolder
=
f
alse
;
try
{
...
...
@@ -573,7 +573,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
return
aCmdInfo
;
}
sal_B
ool
bSupportsLocking
=
supportsExclusiveWriteLock
(
xEnv
);
b
ool
bSupportsLocking
=
supportsExclusiveWriteLock
(
xEnv
);
sal_Int32
nPos
=
aCmdInfo
.
getLength
();
sal_Int32
nMoreCmds
=
(
bFolder
?
2
:
0
)
+
(
bSupportsLocking
?
2
:
0
);
...
...
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