AlterOffice
AlterOffice 2026.2 SDK C/C++ API Reference
unourl.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 
4 #ifndef INCLUDED_CPPUHELPER_UNOURL_HXX
5 #define INCLUDED_CPPUHELPER_UNOURL_HXX
6 
7 #include "sal/config.h"
8 
10 
11 namespace rtl
12 {
13 class OUString;
14 }
15 
16 namespace cppu
17 {
26 {
27 public:
28  class Impl;
29 
38  explicit UnoUrlDescriptor(rtl::OUString const& rDescriptor);
39 
41 
43 
45 
53  rtl::OUString const& getDescriptor() const;
54 
61  rtl::OUString const& getName() const;
62 
71  bool hasParameter(rtl::OUString const& rKey) const;
72 
83 
84 private:
85  Impl* m_pImpl;
86 };
87 
117 {
118 public:
127  explicit UnoUrl(rtl::OUString const& rUrl);
128 
129  UnoUrl(UnoUrl const& rOther);
130 
132 
133  UnoUrl& operator=(UnoUrl const& rOther);
134 
142 
150 
157  rtl::OUString const& getObjectName() const;
158 
159 private:
160  class Impl;
161 
162  Impl* m_pImpl;
163 };
164 }
165 
166 #endif // INCLUDED_RTL_UNOURL_HXX
167 
168 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:567
#define CPPUHELPER_DLLPUBLIC
Definition: cppuhelperdllapi.h:12
Definition: bootstrap.hxx:14
Definition: Enterable.hxx:11
This String class provides base functionality for C++ like Unicode character array handling.
Definition: ustring.hxx:184
A descriptor as part of a UNO URL (connection descriptor or protocol descriptor).
Definition: unourl.hxx:26
rtl::OUString const & getName() const
Return the name component of the descriptor.
rtl::OUString getParameter(rtl::OUString const &rKey) const
Return the parameter value for a key.
UnoUrlDescriptor(rtl::OUString const &rDescriptor)
Construct a descriptor from a string representation.
rtl::OUString const & getDescriptor() const
Return the string representation of the descriptor.
UnoUrlDescriptor & operator=(UnoUrlDescriptor const &rOther)
bool hasParameter(rtl::OUString const &rKey) const
Test whether the parameters contain a key.
UnoUrlDescriptor(UnoUrlDescriptor const &rOther)
Parse UNO URLs into their components.
Definition: unourl.hxx:117
UnoUrlDescriptor const & getProtocol() const
Return the protocol descriptor component of the URL.
UnoUrl(UnoUrl const &rOther)
rtl::OUString const & getObjectName() const
Return the object-name component of the URL.
UnoUrl & operator=(UnoUrl const &rOther)
UnoUrlDescriptor const & getConnection() const
Return the connection descriptor component of the URL.
UnoUrl(rtl::OUString const &rUrl)
Construct a UNO URL from a string representation.