main/ucb/source/ucp/webdav/SerfSession.cxx
// -------------------------------------------------------------------
// LOCK (refresh existing lock from DAVResourceAccess)
// -------------------------------------------------------------------
LOCK (refresh existing lock from DAVResourceAccess)
LOCK ( refresh existing lock from DAVResourceAccess )
sal_Int64 SerfSession::LOCK( const ::rtl::OUString & ,
                             sal_Int64 nTimeout,
                             const DAVRequestEnvironment &  )
    throw ( DAVException )
{
    osl::Guard< osl::Mutex > theGuard( m_aMutex );
    return nTimeout;
}
sal_Int64 SerfSession :: LOCK ( const :: rtl :: OUString & , sal_Int64 nTimeout , const DAVRequestEnvironment & ) throw ( DAVException ) { osl :: Guard < osl :: Mutex > theGuard ( m_aMutex ) ; return nTimeout ; }
LOCK (refresh existing lock from DAVResourceAccess)
LOCK ( refresh existing lock from DAVResourceAccess )
/*inPath*/ /*rEnv*/ /*
    // Try to get the neon lock from lock store
    SerfLock * theLock
        = m_aSerfLockStore.findByUri( makeAbsoluteURL( inPath ) );
    if ( !theLock )
         throw DAVException( DAVException::DAV_NOT_LOCKED );

    Init( rEnv );

    // refresh existing lock.
    theLock->timeout = static_cast< long >( nTimeout );

    TimeValue startCall;
    osl_getSystemTime( &startCall );

    int theRetVal = ne_lock_refresh( m_pHttpSession, theLock );

    if ( theRetVal == NE_OK )
    {
        m_aSerfLockStore.updateLock( theLock,
                                     lastChanceToSendRefreshRequest(
                                         startCall, theLock->timeout ) );
    }

    HandleError( theRetVal, inPath, rEnv );

    return theLock->timeout;
    */