summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-10-27 08:51:22 (UTC)
committer zautrix <zautrix>2005-10-27 08:51:22 (UTC)
commiteb83d8b5542de9ca0c421ad6aca2913b502bbe78 (patch) (side-by-side diff)
tree44827c23c1d72591d569ffa277feb75480041443
parentff68b29b914fc3fbc3aa777d3e3ceeb8a64ecc09 (diff)
downloadkdepimpi-eb83d8b5542de9ca0c421ad6aca2913b502bbe78.zip
kdepimpi-eb83d8b5542de9ca0c421ad6aca2913b502bbe78.tar.gz
kdepimpi-eb83d8b5542de9ca0c421ad6aca2913b502bbe78.tar.bz2
abc
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kresources/factory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/microkde/kresources/factory.cpp b/microkde/kresources/factory.cpp
index 5fbfa68..4843ce0 100644
--- a/microkde/kresources/factory.cpp
+++ b/microkde/kresources/factory.cpp
@@ -125,32 +125,45 @@ Factory::Factory( const QString& resourceFamily) :
mTypeMap.insert( "qtopia", info );
}
//US add sharp plugin only, if the library exists.
libname = "microkabc_sharpdtm";
path = KLibLoader::findLibrary( QFile::encodeName( libname ) );
if ( !path.isEmpty() )
{
info = new PluginInfo;
info->library = libname;
info->nameLabel = i18n( "sharp" );
info->descriptionLabel = i18n( "Sharp DTM Addressbook." );
mTypeMap.insert( "sharp", info );
}
+ //LR add ol plugin only, if the library exists.
+ libname = "microkabc_olaccess";
+ path = KLibLoader::findLibrary( QFile::encodeName( libname ) );
+ if ( !path.isEmpty() )
+ {
+ info = new PluginInfo;
+ info->library = libname;
+ info->nameLabel = i18n( "sharp" );
+ info->descriptionLabel = i18n( "Outlook Addressbook." );
+ mTypeMap.insert( "olaccess", info );
+ }
+
+
}
Factory::~Factory()
{
}
QStringList Factory::typeNames() const
{
//US method QMap::keys() not available yet. SO collect the data manually
//US return mTypeMap.keys();
QStringList result;
QMap<QString, PluginInfo*>::ConstIterator it;
for( it = mTypeMap.begin(); it != mTypeMap.end(); ++it ) {
result << it.key().latin1();