UDK 3.2.7 C/C++ API Reference
cppuhelper/unourl.hxx
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*************************************************************************
00003  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 
00029 #if !defined INCLUDED_CPPUHELPER_UNOURL_HXX
00030 #define INCLUDED_CPPUHELPER_UNOURL_HXX
00031 
00032 #include <memory>
00033 #include "cppuhelperdllapi.h"
00034 
00035 namespace rtl { class OUString; }
00036 
00037 namespace cppu {
00038 
00046 class CPPUHELPER_DLLPUBLIC UnoUrlDescriptor
00047 {
00048 public:
00049     class Impl;
00050 
00059     explicit UnoUrlDescriptor(rtl::OUString const & rDescriptor);
00060 
00062     explicit UnoUrlDescriptor(std::auto_ptr< Impl > & rImpl);
00064 
00065     UnoUrlDescriptor(UnoUrlDescriptor const & rOther);
00066 
00067     ~UnoUrlDescriptor();
00068 
00069     UnoUrlDescriptor & operator =(UnoUrlDescriptor const & rOther);
00070 
00078     rtl::OUString const & getDescriptor() const;
00079 
00086     rtl::OUString const & getName() const;
00087 
00096     bool hasParameter(rtl::OUString const & rKey) const;
00097 
00107     rtl::OUString getParameter(rtl::OUString const & rKey) const;
00108 
00109 private:
00110     std::auto_ptr< Impl > m_xImpl;
00111 };
00112 
00141 class CPPUHELPER_DLLPUBLIC UnoUrl
00142 {
00143 public:
00152     explicit UnoUrl(rtl::OUString const & rUrl);
00153 
00154     UnoUrl(UnoUrl const & rOther);
00155 
00156     ~UnoUrl();
00157 
00158     UnoUrl & operator =(UnoUrl const & rOther);
00159 
00166     UnoUrlDescriptor const & getConnection() const;
00167 
00174     UnoUrlDescriptor const & getProtocol() const;
00175 
00182     rtl::OUString const & getObjectName() const;
00183 
00184 private:
00185     class Impl;
00186 
00187     std::auto_ptr< Impl > m_xImpl;
00188 };
00189 
00190 }
00191 
00192 #endif // INCLUDED_RTL_UNOURL_HXX
00193 
00194 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines