Kaydet (Commit) 6b9635f6 authored tarafından Vladimir Glazunov's avatar Vladimir Glazunov

CWS-TOOLING: integrate CWS kso43

...@@ -140,7 +140,7 @@ public: ...@@ -140,7 +140,7 @@ public:
virtual ~Content(); virtual ~Content();
static com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > getPropertyValuesFromGFileInfo( com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > getPropertyValuesFromGFileInfo(
GFileInfo *pInfo, const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rSMgr, GFileInfo *pInfo, const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rSMgr,
const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv, const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv,
const com::sun::star::uno::Sequence< com::sun::star::beans::Property >& rProperties); const com::sun::star::uno::Sequence< com::sun::star::beans::Property >& rProperties);
......
...@@ -236,11 +236,31 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues( sal_uInt32 nInde ...@@ -236,11 +236,31 @@ uno::Reference< sdbc::XRow > DataSupplier::queryPropertyValues( sal_uInt32 nInde
if ( getResult( nIndex ) ) if ( getResult( nIndex ) )
{ {
uno::Reference< sdbc::XRow > xRow = Content::getPropertyValuesFromGFileInfo( uno::Reference< ucb::XContent > xContent( queryContent( nIndex ) );
maResults[ nIndex ]->pInfo, m_xSMgr, getResultSet()->getEnvironment(), getResultSet()->getProperties()); if ( xContent.is() )
{
maResults[ nIndex ]->xRow = xRow; try
return xRow; {
uno::Reference< ucb::XCommandProcessor > xCmdProc(
xContent, uno::UNO_QUERY_THROW );
sal_Int32 nCmdId( xCmdProc->createCommandIdentifier() );
ucb::Command aCmd;
aCmd.Name = rtl::OUString::createFromAscii( "getPropertyValues" );
aCmd.Handle = -1;
aCmd.Argument <<= getResultSet()->getProperties();
uno::Any aResult( xCmdProc->execute(
aCmd, nCmdId, getResultSet()->getEnvironment() ) );
uno::Reference< sdbc::XRow > xRow;
if ( aResult >>= xRow )
{
maResults[ nIndex ]->xRow = xRow;
return xRow;
}
}
catch ( uno::Exception const & )
{
}
}
} }
return uno::Reference< sdbc::XRow >(); return uno::Reference< sdbc::XRow >();
} }
......
...@@ -960,6 +960,7 @@ void DAVResourceAccess::LOCK( ...@@ -960,6 +960,7 @@ void DAVResourceAccess::LOCK(
while ( bRetry ); while ( bRetry );
} }
#if 0 // currently not used, but please don't remove code
//========================================================================= //=========================================================================
// refresh existing lock. // refresh existing lock.
sal_Int64 DAVResourceAccess::LOCK( sal_Int64 DAVResourceAccess::LOCK(
...@@ -1003,6 +1004,7 @@ sal_Int64 DAVResourceAccess::LOCK( ...@@ -1003,6 +1004,7 @@ sal_Int64 DAVResourceAccess::LOCK(
return nNewTimeout; return nNewTimeout;
} }
#endif
//========================================================================= //=========================================================================
void DAVResourceAccess::UNLOCK( void DAVResourceAccess::UNLOCK(
......
...@@ -209,12 +209,14 @@ public: ...@@ -209,12 +209,14 @@ public:
com::sun::star::ucb::XCommandEnvironment > & xEnv ) com::sun::star::ucb::XCommandEnvironment > & xEnv )
throw( DAVException ); throw( DAVException );
#if 0 // currently not used, but please don't remove code
// refresh existing lock. // refresh existing lock.
sal_Int64 sal_Int64
LOCK( sal_Int64 nTimeout, LOCK( sal_Int64 nTimeout,
const com::sun::star::uno::Reference< const com::sun::star::uno::Reference<
com::sun::star::ucb::XCommandEnvironment > & xEnv ) com::sun::star::ucb::XCommandEnvironment > & xEnv )
throw ( DAVException ); throw ( DAVException );
#endif
void void
UNLOCK( const com::sun::star::uno::Reference< UNLOCK( const com::sun::star::uno::Reference<
......
...@@ -435,7 +435,7 @@ extern "C" int NeonSession_CertificationNotify( void *userdata, ...@@ -435,7 +435,7 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) ); char * dn = ne_ssl_readable_dname( ne_ssl_cert_subject( cert ) );
rtl::OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 ); rtl::OUString cert_subject( dn, strlen( dn ), RTL_TEXTENCODING_UTF8, 0 );
free( dn ); ne_free( dn );
security::CertificateContainerStatus certificateContainer( security::CertificateContainerStatus certificateContainer(
xCertificateContainer->hasCertificate( xCertificateContainer->hasCertificate(
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <rtl/uri.hxx> #include <rtl/uri.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include "ne_alloc.h"
#include "NeonUri.hxx" #include "NeonUri.hxx"
#include "DAVException.hxx" #include "DAVException.hxx"
...@@ -127,7 +128,7 @@ NeonUri::NeonUri( const ne_uri * inUri ) ...@@ -127,7 +128,7 @@ NeonUri::NeonUri( const ne_uri * inUri )
throw DAVException( DAVException::DAV_INVALID_ARG ); throw DAVException( DAVException::DAV_INVALID_ARG );
init( rtl::OString( uri ), inUri ); init( rtl::OString( uri ), inUri );
free( uri ); ne_free( uri );
calculateURI(); calculateURI();
} }
......
...@@ -37,7 +37,7 @@ String STR_LOCKFAILED_TITLE ...@@ -37,7 +37,7 @@ String STR_LOCKFAILED_TITLE
}; };
String STR_LOCKFAILED_MSG String STR_LOCKFAILED_MSG
{ {
Text [ en-US ] = "The file could not be locked for exclusive access by %PRODUCTNAME, due to missing permission to created a lock file on that file location."; Text [ en-US ] = "The file could not be locked for exclusive access by %PRODUCTNAME, due to missing permission to create a lock file on that file location.";
}; };
String STR_LOCKFAILED_DONTSHOWAGAIN String STR_LOCKFAILED_DONTSHOWAGAIN
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment