fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / ucp / cmis / auth_provider.hxx
blob9fbf599836302bf053ac56cc3bba166d42bd3ae8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef INCLUDED_UCB_SOURCE_UCP_CMIS_AUTH_PROVIDER_HXX
10 #define INCLUDED_UCB_SOURCE_UCP_CMIS_AUTH_PROVIDER_HXX
12 #include <libcmis/libcmis.hxx>
14 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
16 namespace cmis
18 class AuthProvider : public libcmis::AuthProvider
20 const com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment>& m_xEnv;
21 static com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment> sm_xEnv;
22 OUString m_sUrl;
23 OUString m_sBindingUrl;
25 public:
26 AuthProvider ( const com::sun::star::uno::Reference<
27 com::sun::star::ucb::XCommandEnvironment>& xEnv,
28 const OUString& sUrl,
29 const OUString& sBindingUrl ):
30 m_xEnv( xEnv ), m_sUrl( sUrl ), m_sBindingUrl( sBindingUrl ) { }
32 bool authenticationQuery( std::string& username, std::string& password ) SAL_OVERRIDE;
34 static char* onedriveAuthCodeFallback( const char* url,
35 const char* /*username*/,
36 const char* /*password*/ );
38 static void setXEnv( const com::sun::star::uno::Reference<
39 com::sun::star::ucb::XCommandEnvironment>& xEnv ) { sm_xEnv = xEnv; }
41 static com::sun::star::uno::Reference<
42 com::sun::star::ucb::XCommandEnvironment> getXEnv( ) { return sm_xEnv; }
46 #endif
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */