author | zecke <zecke> | 2004-05-28 14:19:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-05-28 14:19:47 (UTC) |
commit | 8db08a3d320e48924d0ccd78d2bd177e316fff90 (patch) (side-by-side diff) | |
tree | d748e7a6e92f1bc18c1a8935b6a1f12ece4c892c /libopie2/examples/opiecore/oplugins/oplugins.cpp | |
parent | 130d8d2699232848ff2a89a1ab563f924ca39f4f (diff) | |
download | opie-8db08a3d320e48924d0ccd78d2bd177e316fff90.zip opie-8db08a3d320e48924d0ccd78d2bd177e316fff90.tar.gz opie-8db08a3d320e48924d0ccd78d2bd177e316fff90.tar.bz2 |
Show OPluginLoader usage... forgot to commit it.
No wonder why Harlekin didn't find it
Diffstat (limited to 'libopie2/examples/opiecore/oplugins/oplugins.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/examples/opiecore/oplugins/oplugins.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libopie2/examples/opiecore/oplugins/oplugins.cpp b/libopie2/examples/opiecore/oplugins/oplugins.cpp index 4aa2da5..26623be 100644 --- a/libopie2/examples/opiecore/oplugins/oplugins.cpp +++ b/libopie2/examples/opiecore/oplugins/oplugins.cpp @@ -9,4 +9,5 @@ using Opie::Core::OPluginItem; using Opie::Core::OGenericPluginLoader; +using Opie::Core::OPluginLoader; void debugLst( const OPluginItem::List& lst ) { @@ -31,4 +32,13 @@ int main( void ) { QUnknownInterface* iface = loader.load( *it, IID_TodayPluginInterface ); } + + OPluginLoader loader2("today",true); + OPluginItem::List lst2 = loader2.allAvailable( true ); + debugLst( lst2 ); + + for( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ){ + TodayPluginInterface* iface = loader2.load<TodayPluginInterface>( *it, IID_TodayPluginInterface ); + } + /* |