| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
| 2 |
/* |
| 3 |
* This file is part of the LibreOffice project. |
| 4 |
* |
| 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 |
#pragma once |
| 10 |
|
| 11 |
#include <rtl/ustring.hxx> |
| 12 |
|
| 13 |
namespace cmis |
| 14 |
{ |
| 15 |
class URL |
| 16 |
{ |
| 17 |
private: |
| 18 |
OUString m_sBindingUrl; |
| 19 |
OUString m_sRepositoryId; |
| 20 |
OUString m_sPath; |
| 21 |
OUString m_sId; |
| 22 |
OUString m_sUser; |
| 23 |
OUString m_sPass; |
| 24 |
|
| 25 |
public: |
| 26 |
explicit URL( std::u16string_view urlStr ); |
| 27 |
|
| 28 |
const OUString& getObjectPath() const { return m_sPath; } |
| 29 |
const OUString& getObjectId() const { return m_sId; } |
| 30 |
const OUString& getBindingUrl() const { return m_sBindingUrl; } |
| 31 |
const OUString& getRepositoryId() const { return m_sRepositoryId; } |
| 32 |
const OUString& getUsername() const { return m_sUser; } |
| 33 |
const OUString& getPassword() const { return m_sPass; } |
| 34 |
void setObjectPath( const OUString& sPath ); |
| 35 |
void setObjectId( const OUString& sId ); |
| 36 |
void setUsername( const OUString& sUser ); |
| 37 |
|
| 38 |
OUString asString( ) const; |
| 39 |
}; |
| 40 |
} |
| 41 |
|
| 42 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |