summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/package/pkguri.hxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2001-07-06 07:11:17 +0000
committerKai Sommerfeld <kso@openoffice.org>2001-07-06 07:11:17 +0000
commit3ef99d8f32e0863047a61f7e7a12b73951f8db86 (patch)
tree7f0c19d7bd70c3225e00776bddb1c68f488fc291 /ucb/source/ucp/package/pkguri.hxx
parentda98d91653c6017373f46bd8aa4f22728680a16d (diff)
#87186# - Improved PackageUri implementation and usage.
Diffstat (limited to 'ucb/source/ucp/package/pkguri.hxx')
-rw-r--r--ucb/source/ucp/package/pkguri.hxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/ucb/source/ucp/package/pkguri.hxx b/ucb/source/ucp/package/pkguri.hxx
index b9a7802ec748..dcd41bab0d58 100644
--- a/ucb/source/ucp/package/pkguri.hxx
+++ b/ucb/source/ucp/package/pkguri.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pkguri.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kso $ $Date: 2001-06-25 09:11:47 $
+ * last change: $Author: kso $ $Date: 2001-07-06 08:11:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,21 +82,25 @@ class PackageUri
mutable ::rtl::OUString m_aPackage;
mutable ::rtl::OUString m_aPath;
mutable ::rtl::OUString m_aName;
+ mutable bool m_bValid;
private:
void init() const;
static ::rtl::OUString decodeSegment( const ::rtl::OUString& rSource );
public:
- PackageUri() {}
+ PackageUri() : m_bValid( false ) {}
PackageUri( const ::rtl::OUString & rPackageUri )
- : m_aUri( rPackageUri ) {}
+ : m_aUri( rPackageUri ), m_bValid( false ) {}
+
+ sal_Bool isValid() const
+ { init(); return m_bValid; }
const ::rtl::OUString & getUri() const
{ init(); return m_aUri; }
void setUri( const ::rtl::OUString & rPackageUri )
- { m_aPath = ::rtl::OUString(); m_aUri = rPackageUri; }
+ { m_aPath = ::rtl::OUString(); m_aUri = rPackageUri; m_bValid = false; }
const ::rtl::OUString & getParentUri() const
{ init(); return m_aParentUri; }