summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opiecore/oplugins/oplugins.cpp10
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
@@ -8,6 +8,7 @@
8 8
9using Opie::Core::OPluginItem; 9using Opie::Core::OPluginItem;
10using Opie::Core::OGenericPluginLoader; 10using Opie::Core::OGenericPluginLoader;
11using Opie::Core::OPluginLoader;
11 12
12void debugLst( const OPluginItem::List& lst ) { 13void debugLst( const OPluginItem::List& lst ) {
13 for ( OPluginItem::List::ConstIterator it = lst.begin(); it != lst.end(); ++it ) 14 for ( OPluginItem::List::ConstIterator it = lst.begin(); it != lst.end(); ++it )
@@ -30,6 +31,15 @@ int main( void ) {
30 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 31 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) {
31 QUnknownInterface* iface = loader.load( *it, IID_TodayPluginInterface ); 32 QUnknownInterface* iface = loader.load( *it, IID_TodayPluginInterface );
32 } 33 }
34
35 OPluginLoader loader2("today",true);
36 OPluginItem::List lst2 = loader2.allAvailable( true );
37 debugLst( lst2 );
38
39 for( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ){
40 TodayPluginInterface* iface = loader2.load<TodayPluginInterface>( *it, IID_TodayPluginInterface );
41 }
42
33 43
34 /* 44 /*
35 * now it's autodelete so cleaned up for us 45 * now it's autodelete so cleaned up for us