diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-04-01 15:55:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-04-01 15:55:42 +0100 |
commit | a0f825b71a8e3740f712e723af0db1e286e3487f (patch) | |
tree | 4df9cfb9033e38806ef0878158e89ee7437f4451 /connectivity/source | |
parent | 02ecc932eb1c11f66e496502dd0d17beabf0eed2 (diff) |
fix evolution local addressbook integration, which uses a new local: uri
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx | 7 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NResultSet.cxx | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx index 4aed0b3ee05a..3b06a0cb1ee1 100644 --- a/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx +++ b/connectivity/source/drivers/evoab2/NDatabaseMetaData.cxx @@ -1147,17 +1147,18 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTables( switch (m_pConnection->getSDBCAddressType()) { case SDBCAddress::EVO_GWISE: - if (0==strncmp( "groupwise://", p, 11 )) + if ( !strncmp( "groupwise://", p, 11 )) break; else continue; case SDBCAddress::EVO_LOCAL: - if (0==strncmp( "file://", p, 6 )) + if ( !strncmp( "file://", p, 6 ) || + !strncmp( "local://", p, 6 ) ) break; else continue; case SDBCAddress::EVO_LDAP: - if (0==strncmp( "ldap://", p, 6 )) + if ( !strncmp( "ldap://", p, 6 )) break; else continue; diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 8fc193ae4f10..d7e7db02c81a 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -182,7 +182,8 @@ static bool isLDAP( EBook *pBook ) static bool isLocal( EBook *pBook ) { - return pBook && !strncmp( "file://", e_book_get_uri( pBook ), 6 ); + return pBook && ( !strncmp( "file://", e_book_get_uri( pBook ), 6 ) || + !strncmp( "local:", e_book_get_uri( pBook ), 6 ) ); } static bool isAuthRequired( EBook *pBook ) |