author | mickeyl <mickeyl> | 2005-01-29 14:23:27 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-29 14:23:27 (UTC) |
commit | 20b3de56573b9e86c6b6041faf684adc8cbb2a45 (patch) (side-by-side diff) | |
tree | e0d91c84dee46d1cce3b0d68fd2c10c3dd7ce3a1 /libopie2/examples/opiecore/oplugins | |
parent | 555b999359a5aad999eaaf48632ce85f25125b85 (diff) | |
download | opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.zip opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.tar.gz opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.tar.bz2 |
examples to where they belong
Diffstat (limited to 'libopie2/examples/opiecore/oplugins') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/examples/opiecore/oplugins/.cvsignore | 3 | ||||
-rw-r--r-- | libopie2/examples/opiecore/oplugins/oplugins.cpp | 47 | ||||
-rw-r--r-- | libopie2/examples/opiecore/oplugins/oplugins.pro | 11 |
3 files changed, 0 insertions, 61 deletions
diff --git a/libopie2/examples/opiecore/oplugins/.cvsignore b/libopie2/examples/opiecore/oplugins/.cvsignore deleted file mode 100644 index 514e011..0000000 --- a/libopie2/examples/opiecore/oplugins/.cvsignore +++ b/dev/null @@ -1,3 +0,0 @@ -oplugins -Makefile -.moc diff --git a/libopie2/examples/opiecore/oplugins/oplugins.cpp b/libopie2/examples/opiecore/oplugins/oplugins.cpp deleted file mode 100644 index 26623be..0000000 --- a/libopie2/examples/opiecore/oplugins/oplugins.cpp +++ b/dev/null @@ -1,47 +0,0 @@ -/* - * You may copy, modify and or distribute without any limitation - */ -#include <opie2/odebug.h> -#include <opie2/opluginloader.h> - -#include <opie2/todayplugininterface.h> - -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 ) - odebug << "Name " << (*it).name() << " " << (*it).path() << " " << (*it).position() << oendl; -} - - -int main( void ) { - OGenericPluginLoader loader( "today", true ); - loader.setAutoDelete( true ); - - odebug << "IS in Safe Mode" << loader.isInSafeMode() << oendl; - - OPluginItem::List lst = loader.allAvailable( true ); - debugLst( lst ); - - lst = loader.filtered( true ); - debugLst( lst ); - - 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<TodayPluginInterface>( *it, IID_TodayPluginInterface ); - } - - - /* - * now it's autodelete so cleaned up for us - */ -} diff --git a/libopie2/examples/opiecore/oplugins/oplugins.pro b/libopie2/examples/opiecore/oplugins/oplugins.pro deleted file mode 100644 index 03f8e4d..0000000 --- a/libopie2/examples/opiecore/oplugins/oplugins.pro +++ b/dev/null @@ -1,11 +0,0 @@ -TEMPLATE = app -CONFIG += qt warn_on - -SOURCES = oplugins.cpp - -INCLUDEPATH += $(OPIEDIR)/include -DEPENDSPATH += $(OPIEDIR)/include - -LIBS += -lopiecore2 - -include( $(OPIEDIR)/include.pro ) |