author | zecke <zecke> | 2003-08-27 13:03:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-27 13:03:26 (UTC) |
commit | 2635bf400cb58c11f48477150d6fc4337de12fb0 (patch) (unidiff) | |
tree | c9fd9cc0401337e7329dd104fc1e7d3fcef4e93d /core | |
parent | 38538a71248a16ff964870909965cf233c796bf5 (diff) | |
download | opie-2635bf400cb58c11f48477150d6fc4337de12fb0.zip opie-2635bf400cb58c11f48477150d6fc4337de12fb0.tar.gz opie-2635bf400cb58c11f48477150d6fc4337de12fb0.tar.bz2 |
Fix path
it's application not applications
-rw-r--r-- | core/tools/quicklauncher/dropins.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tools/quicklauncher/dropins.h b/core/tools/quicklauncher/dropins.h index ac8d8cc..fe43ec2 100644 --- a/core/tools/quicklauncher/dropins.h +++ b/core/tools/quicklauncher/dropins.h | |||
@@ -15,47 +15,47 @@ namespace Opie { | |||
15 | struct PluginLoader { | 15 | struct PluginLoader { |
16 | PluginLoader( const char* ) { | 16 | PluginLoader( const char* ) { |
17 | } | 17 | } |
18 | 18 | ||
19 | QRESULT queryInterface( const QString& app, const QUuid&, QUnknownInterface** ); | 19 | QRESULT queryInterface( const QString& app, const QUuid&, QUnknownInterface** ); |
20 | void releaseInterface( QUnknownInterface* ); | 20 | void releaseInterface( QUnknownInterface* ); |
21 | QMap<QUnknownInterface*, QLibrary*> libs; | 21 | QMap<QUnknownInterface*, QLibrary*> libs; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * We can skip installing a Translator here because Opies QPEApplication | 25 | * We can skip installing a Translator here because Opies QPEApplication |
26 | * will do that in initApp for us as well | 26 | * will do that in initApp for us as well |
27 | */ | 27 | */ |
28 | QRESULT PluginLoader::queryInterface( const QString& libFile, const QUuid& uuid, QUnknownInterface** iface ) { | 28 | QRESULT PluginLoader::queryInterface( const QString& libFile, const QUuid& uuid, QUnknownInterface** iface ) { |
29 | QRESULT res = QS_FALSE; | 29 | QRESULT res = QS_FALSE; |
30 | *iface = 0; | 30 | *iface = 0; |
31 | 31 | ||
32 | // Below lines from TT then mine again | 32 | // Below lines from TT then mine again |
33 | QString name = libFile; | 33 | QString name = libFile; |
34 | if ( libFile.findRev(".so") == (int)libFile.length()-3 ) { | 34 | if ( libFile.findRev(".so") == (int)libFile.length()-3 ) { |
35 | name = libFile.left( libFile.length()-3 ); | 35 | name = libFile.left( libFile.length()-3 ); |
36 | if ( name.find( "lib" ) == 0 ) | 36 | if ( name.find( "lib" ) == 0 ) |
37 | name = name.mid( 3 ); | 37 | name = name.mid( 3 ); |
38 | } | 38 | } |
39 | QString path = QPEApplication::qpeDir() + "/plugins/applications/lib"+name+".so"; | 39 | QString path = QPEApplication::qpeDir() + "/plugins/application/lib"+name+".so"; |
40 | 40 | ||
41 | QLibrary *lib = new QLibrary( path ); | 41 | QLibrary *lib = new QLibrary( path ); |
42 | if ( lib->queryInterface( uuid, iface ) == QS_OK && iface ) { | 42 | if ( lib->queryInterface( uuid, iface ) == QS_OK && iface ) { |
43 | libs.insert( *iface, lib ); | 43 | libs.insert( *iface, lib ); |
44 | res = QS_OK; | 44 | res = QS_OK; |
45 | } | 45 | } |
46 | 46 | ||
47 | return res; | 47 | return res; |
48 | } | 48 | } |
49 | 49 | ||
50 | void PluginLoader::releaseInterface( QUnknownInterface* iface ) { | 50 | void PluginLoader::releaseInterface( QUnknownInterface* iface ) { |
51 | if ( libs.contains( iface ) ) { | 51 | if ( libs.contains( iface ) ) { |
52 | iface->release(); | 52 | iface->release(); |
53 | delete libs[iface]; | 53 | delete libs[iface]; |
54 | libs.remove( iface ); // we only handle pointers so even if the object is not valid the address-space is | 54 | libs.remove( iface ); // we only handle pointers so even if the object is not valid the address-space is |
55 | } | 55 | } |
56 | } | 56 | } |
57 | 57 | ||
58 | } | 58 | } |
59 | 59 | ||
60 | /* small hack ;) */ | 60 | /* small hack ;) */ |
61 | using namespace Opie; | 61 | using namespace Opie; |