/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include"DAVSession.hxx" #include"CurlUri.hxx"
#include <curl/curl.h>
#include <atomic> #include <mutex>
namespace http_dav_ucp
{ /// implementation of libcurl HTTP/DAV back-end class CurlSession : public DAVSession
{ private: /// mutex required to access all other non-const members
::std::mutex m_Mutex;
css::uno::Reference<css::uno::XComponentContext> const m_xContext; /// flags may be passed to constructor, e.g. "KeepAlive"
css::uno::Sequence<css::beans::NamedValue> const m_Flags;
CurlUri const m_URI; /// buffer for libcurl detailed error messages char m_ErrorBuffer[CURL_ERROR_SIZE]; /// proxy is used if non-empty
OUString const m_Proxy; /// once authentication was successful, rely on m_pCurl's data bool m_isAuthenticated = false; bool m_isAuthenticatedProxy = false; /// read timeout in milliseconds (connection timeout is stored in m_pCurl) int m_nReadTimeout = 0; /// flag to signal abort to transferring thread
::std::atomic<bool> m_AbortFlag = false;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.