From 8db08a3d320e48924d0ccd78d2bd177e316fff90 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 28 May 2004 14:19:47 +0000 Subject: Show OPluginLoader usage... forgot to commit it. No wonder why Harlekin didn't find it --- 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 @@ -8,6 +8,7 @@ using Opie::Core::OPluginItem; using Opie::Core::OGenericPluginLoader; +using Opie::Core::OPluginLoader; void debugLst( const OPluginItem::List& lst ) { for ( OPluginItem::List::ConstIterator it = lst.begin(); it != lst.end(); ++it ) @@ -30,6 +31,15 @@ int main( void ) { for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 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( *it, IID_TodayPluginInterface ); + } + /* * now it's autodelete so cleaned up for us -- cgit v0.9.0.2