author | ulf69 <ulf69> | 2004-10-22 22:41:44 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-22 22:41:44 (UTC) |
commit | f6e3009e73281495775542ad62371edd8c43c986 (patch) (unidiff) | |
tree | 2d8c0414820f2a26cb798931a6a237c83418aee2 | |
parent | 882370623d27902c3bad8cd968ad8ca17e9d5573 (diff) | |
download | kdepimpi-f6e3009e73281495775542ad62371edd8c43c986.zip kdepimpi-f6e3009e73281495775542ad62371edd8c43c986.tar.gz kdepimpi-f6e3009e73281495775542ad62371edd8c43c986.tar.bz2 |
removed loading/checking for libmicrokabc_opie.so
-rw-r--r-- | microkde/kresources/factory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kresources/factory.cpp b/microkde/kresources/factory.cpp index 4e4456d..78e3b43 100644 --- a/microkde/kresources/factory.cpp +++ b/microkde/kresources/factory.cpp | |||
@@ -67,75 +67,76 @@ Factory::Factory( const QString& resourceFamily) : | |||
67 | /*US | 67 | /*US |
68 | 68 | ||
69 | KTrader::OfferList plugins = KTrader::self()->query( "KResources/Plugin", QString( "[X-KDE-ResourceFamily] == '%1'" ) | 69 | KTrader::OfferList plugins = KTrader::self()->query( "KResources/Plugin", QString( "[X-KDE-ResourceFamily] == '%1'" ) |
70 | .arg( resourceFamily ) ); | 70 | .arg( resourceFamily ) ); |
71 | KTrader::OfferList::ConstIterator it; | 71 | KTrader::OfferList::ConstIterator it; |
72 | for ( it = plugins.begin(); it != plugins.end(); ++it ) { | 72 | for ( it = plugins.begin(); it != plugins.end(); ++it ) { |
73 | QVariant type = (*it)->property( "X-KDE-ResourceType" ); | 73 | QVariant type = (*it)->property( "X-KDE-ResourceType" ); |
74 | if ( !type.toString().isEmpty() ) | 74 | if ( !type.toString().isEmpty() ) |
75 | mTypeMap.insert( type.toString(), *it ); | 75 | mTypeMap.insert( type.toString(), *it ); |
76 | } | 76 | } |
77 | */ | 77 | */ |
78 | 78 | ||
79 | //US new | 79 | //US new |
80 | PluginInfo* info = new PluginInfo; | 80 | PluginInfo* info = new PluginInfo; |
81 | info->library = "microkabc_file"; | 81 | info->library = "microkabc_file"; |
82 | info->nameLabel = i18n( "file" ); | 82 | info->nameLabel = i18n( "file" ); |
83 | info->descriptionLabel = i18n( "Choose one file" ); | 83 | info->descriptionLabel = i18n( "Choose one file" ); |
84 | mTypeMap.insert( "file", info ); | 84 | mTypeMap.insert( "file", info ); |
85 | 85 | ||
86 | info = new PluginInfo; | 86 | info = new PluginInfo; |
87 | info->library = "microkabc_dir"; | 87 | info->library = "microkabc_dir"; |
88 | info->nameLabel = i18n( "dir" ); | 88 | info->nameLabel = i18n( "dir" ); |
89 | info->descriptionLabel = i18n( "Choose a directory with may files" ); | 89 | info->descriptionLabel = i18n( "Choose a directory with may files" ); |
90 | mTypeMap.insert( "dir", info ); | 90 | mTypeMap.insert( "dir", info ); |
91 | 91 | ||
92 | info = new PluginInfo; | 92 | info = new PluginInfo; |
93 | info->library = "microkabc_ldap"; | 93 | info->library = "microkabc_ldap"; |
94 | info->nameLabel = i18n( "ldap" ); | 94 | info->nameLabel = i18n( "ldap" ); |
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 | /*US | ||
99 | QString libname = "microkabc_opie"; | 100 | QString libname = "microkabc_opie"; |
100 | QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | 101 | QString path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); |
101 | if ( !path.isEmpty() ) | 102 | if ( !path.isEmpty() ) |
102 | { | 103 | { |
103 | info = new PluginInfo; | 104 | info = new PluginInfo; |
104 | info->library = libname; | 105 | info->library = libname; |
105 | info->nameLabel = i18n( "opie" ); | 106 | info->nameLabel = i18n( "opie" ); |
106 | info->descriptionLabel = i18n( "Opie PIM Addressbook." ); | 107 | info->descriptionLabel = i18n( "Opie PIM Addressbook." ); |
107 | mTypeMap.insert( "opie", info ); | 108 | mTypeMap.insert( "opie", info ); |
108 | } | 109 | } |
109 | 110 | */ | |
110 | //US add qtopia plugin only, if the library exists. | 111 | //US add qtopia plugin only, if the library exists. |
111 | libname = "microkabc_qtopia"; | 112 | libname = "microkabc_qtopia"; |
112 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | 113 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); |
113 | if ( !path.isEmpty() ) | 114 | if ( !path.isEmpty() ) |
114 | { | 115 | { |
115 | info = new PluginInfo; | 116 | info = new PluginInfo; |
116 | info->library = libname; | 117 | info->library = libname; |
117 | info->nameLabel = i18n( "qtopia" ); | 118 | info->nameLabel = i18n( "qtopia" ); |
118 | info->descriptionLabel = i18n( "Qtopia PIM Addressbook." ); | 119 | info->descriptionLabel = i18n( "Qtopia PIM Addressbook." ); |
119 | mTypeMap.insert( "qtopia", info ); | 120 | mTypeMap.insert( "qtopia", info ); |
120 | } | 121 | } |
121 | 122 | ||
122 | //US add sharp plugin only, if the library exists. | 123 | //US add sharp plugin only, if the library exists. |
123 | libname = "microkabc_sharpdtm"; | 124 | libname = "microkabc_sharpdtm"; |
124 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); | 125 | path = KLibLoader::findLibrary( QFile::encodeName( libname ) ); |
125 | if ( !path.isEmpty() ) | 126 | if ( !path.isEmpty() ) |
126 | { | 127 | { |
127 | info = new PluginInfo; | 128 | info = new PluginInfo; |
128 | info->library = libname; | 129 | info->library = libname; |
129 | info->nameLabel = i18n( "sharp" ); | 130 | info->nameLabel = i18n( "sharp" ); |
130 | info->descriptionLabel = i18n( "Sharp DTM Addressbook." ); | 131 | info->descriptionLabel = i18n( "Sharp DTM Addressbook." ); |
131 | mTypeMap.insert( "sharp", info ); | 132 | mTypeMap.insert( "sharp", info ); |
132 | } | 133 | } |
133 | 134 | ||
134 | 135 | ||
135 | } | 136 | } |
136 | 137 | ||
137 | Factory::~Factory() | 138 | Factory::~Factory() |
138 | { | 139 | { |
139 | } | 140 | } |
140 | 141 | ||
141 | QStringList Factory::typeNames() const | 142 | QStringList Factory::typeNames() const |