author | ulf69 <ulf69> | 2004-07-16 23:24:05 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-07-16 23:24:05 (UTC) |
commit | b78f5351ef7432aae4104ed306b52975c91eacb0 (patch) (unidiff) | |
tree | b1b797c79174da9265781f15406cb37f00f47fde /microkde | |
parent | 2670b9dec6a26a22eb6063b0f7837984c935c765 (diff) | |
download | kdepimpi-b78f5351ef7432aae4104ed306b52975c91eacb0.zip kdepimpi-b78f5351ef7432aae4104ed306b52975c91eacb0.tar.gz kdepimpi-b78f5351ef7432aae4104ed306b52975c91eacb0.tar.bz2 |
load sharp dtm plugin if the lib is available
-rw-r--r-- | microkde/kresources/factory.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/microkde/kresources/factory.cpp b/microkde/kresources/factory.cpp index 2253de4..f82e94c 100644 --- a/microkde/kresources/factory.cpp +++ b/microkde/kresources/factory.cpp | |||
@@ -95,7 +95,7 @@ Factory::Factory( const QString& resourceFamily ) : | |||
95 | info->descriptionLabel = i18n( "No description available" ); | 95 | info->descriptionLabel = i18n( "No description available" ); |
96 | mTypeMap.insert( "ldap", info ); | 96 | mTypeMap.insert( "ldap", info ); |
97 | 97 | ||
98 | //US add opie plugin only, if the library exists | 98 | //US add opie plugin only, if the library exists. |
99 | QString libname = "microkabc_opie"; | 99 | QString libname = "microkabc_opie"; |
100 | QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | 100 | QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); |
101 | if ( !path.isEmpty() ) | 101 | if ( !path.isEmpty() ) |
@@ -107,7 +107,7 @@ Factory::Factory( const QString& resourceFamily ) : | |||
107 | mTypeMap.insert( "opie", info ); | 107 | mTypeMap.insert( "opie", info ); |
108 | } | 108 | } |
109 | 109 | ||
110 | //US add qtopia plugin only, if the library exists | 110 | //US add qtopia plugin only, if the library exists. |
111 | libname = "microkabc_qtopia"; | 111 | libname = "microkabc_qtopia"; |
112 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | 112 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); |
113 | if ( !path.isEmpty() ) | 113 | if ( !path.isEmpty() ) |
@@ -119,6 +119,18 @@ Factory::Factory( const QString& resourceFamily ) : | |||
119 | mTypeMap.insert( "qtopia", info ); | 119 | mTypeMap.insert( "qtopia", info ); |
120 | } | 120 | } |
121 | 121 | ||
122 | //US add sharp plugin only, if the library exists. | ||
123 | libname = "microkabc_sharpdtm"; | ||
124 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | ||
125 | if ( !path.isEmpty() ) | ||
126 | { | ||
127 | info = new PluginInfo; | ||
128 | info->library = libname; | ||
129 | info->nameLabel = i18n( "sharp" ); | ||
130 | info->descriptionLabel = i18n( "Sharp DTM Addressbook." ); | ||
131 | mTypeMap.insert( "sharp", info ); | ||
132 | } | ||
133 | |||
122 | 134 | ||
123 | } | 135 | } |
124 | 136 | ||