diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:42:36 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:42:36 +0000 |
commit | f7adfa881743210922ff7936c0f0e45c0ec63b63 (patch) | |
tree | ecd3984d6a39bcd044209b12931e4a4f9176cc04 /connectivity | |
parent | 139f17f9c0846a5fe39ab422ac51ebcae6da6fac (diff) |
INTEGRATION: CWS mozab03 (1.1.148); FILE MERGED
2003/11/26 14:04:00 yl146652 1.1.148.1: #21912 mapping mozilla mailing lists as sdbc views
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mozab/mozillasrc/MNameMapper.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNameMapper.hxx b/connectivity/source/drivers/mozab/mozillasrc/MNameMapper.hxx index f52f681720c8..ace56a538326 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MNameMapper.hxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MNameMapper.hxx @@ -2,9 +2,9 @@ * * $RCSfile: MNameMapper.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mmaher $ $Date: 2001-10-11 10:07:55 $ + * last change: $Author: obo $ $Date: 2004-03-17 10:42:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,9 +85,14 @@ namespace connectivity typedef ::std::multimap< ::rtl::OUString, nsIAbDirectory *, ltstr > dirMap; + typedef ::std::multimap< ::rtl::OUString, nsIAbDirectory *, ltstr > uriMap; static MNameMapper *instance; dirMap *mDirMap; + uriMap *mUriMap; + + //clear dirs + void clear(); public: static MNameMapper* getInstance(); @@ -96,7 +101,10 @@ namespace connectivity ~MNameMapper(); // May modify the name passed in so that it's unique - void add( ::rtl::OUString& str, nsIAbDirectory* abook ); + nsresult add( ::rtl::OUString& str, nsIAbDirectory* abook ); + + //reset dirs + void reset(); // Will replace the given dir void replace( const ::rtl::OUString& str, nsIAbDirectory* abook ); |