| SerfLockStore.hxx (5f30f85e) | SerfLockStore.hxx (3edf6992) |
|---|---|
| 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 13 unchanged lines hidden (view full) --- 22 23#ifndef INCLUDED_SERFLOCKSTORE_HXX 24#define INCLUDED_SERFLOCKSTORE_HXX 25 26#include <map> 27#include <osl/mutex.hxx> 28#include <rtl/ref.hxx> 29#include "SerfTypes.hxx" | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 13 unchanged lines hidden (view full) --- 22 23#ifndef INCLUDED_SERFLOCKSTORE_HXX 24#define INCLUDED_SERFLOCKSTORE_HXX 25 26#include <map> 27#include <osl/mutex.hxx> 28#include <rtl/ref.hxx> 29#include "SerfTypes.hxx" |
| 30#include "SerfSession.hxx" |
|
| 30 31namespace http_dav_ucp 32{ 33 34class TickerThread; 35class SerfSession; 36 37struct ltptr --- 9 unchanged lines hidden (view full) --- 47 rtl::Reference< SerfSession > xSession; 48 sal_Int32 nLastChanceToSendRefreshRequest; 49 50 _LockInfo() 51 : nLastChanceToSendRefreshRequest( -1 ) {} 52 53 _LockInfo( rtl::Reference< SerfSession > const & _xSession, 54 sal_Int32 _nLastChanceToSendRefreshRequest ) | 31 32namespace http_dav_ucp 33{ 34 35class TickerThread; 36class SerfSession; 37 38struct ltptr --- 9 unchanged lines hidden (view full) --- 48 rtl::Reference< SerfSession > xSession; 49 sal_Int32 nLastChanceToSendRefreshRequest; 50 51 _LockInfo() 52 : nLastChanceToSendRefreshRequest( -1 ) {} 53 54 _LockInfo( rtl::Reference< SerfSession > const & _xSession, 55 sal_Int32 _nLastChanceToSendRefreshRequest ) |
| 55 : xSession( _xSession ), 56 nLastChanceToSendRefreshRequest( _nLastChanceToSendRefreshRequest ) {} | 56 : xSession( _xSession ) 57 , nLastChanceToSendRefreshRequest( _nLastChanceToSendRefreshRequest ) {} |
| 57 58} LockInfo; 59 60typedef std::map< SerfLock *, LockInfo, ltptr > LockInfoMap; 61 62class SerfLockStore 63{ 64 osl::Mutex m_aMutex; | 58 59} LockInfo; 60 61typedef std::map< SerfLock *, LockInfo, ltptr > LockInfoMap; 62 63class SerfLockStore 64{ 65 osl::Mutex m_aMutex; |
| 65// ne_lock_store * m_pSerfLockStore; | |
| 66 TickerThread * m_pTickerThread; 67 LockInfoMap m_aLockInfoMap; 68 69public: 70 SerfLockStore(); 71 ~SerfLockStore(); 72 | 66 TickerThread * m_pTickerThread; 67 LockInfoMap m_aLockInfoMap; 68 69public: 70 SerfLockStore(); 71 ~SerfLockStore(); 72 |
| 73 void registerSession( HttpSession * pHttpSession ); | 73 void registerSession( SerfSession aSession ); |
| 74 75 SerfLock * findByUri( rtl::OUString const & rUri ); 76 77 void addLock( SerfLock * pLock, 78 rtl::Reference< SerfSession > const & xSession, 79 // time in seconds since Jan 1 1970 80 // -1: infinite lock, no refresh 81 sal_Int32 nLastChanceToSendRefreshRequest ); --- 16 unchanged lines hidden --- | 74 75 SerfLock * findByUri( rtl::OUString const & rUri ); 76 77 void addLock( SerfLock * pLock, 78 rtl::Reference< SerfSession > const & xSession, 79 // time in seconds since Jan 1 1970 80 // -1: infinite lock, no refresh 81 sal_Int32 nLastChanceToSendRefreshRequest ); --- 16 unchanged lines hidden --- |