From dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 26 Jan 2013 13:17:21 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- kresources/testresources.cpp | 81 -------------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 kresources/testresources.cpp (limited to 'kresources/testresources.cpp') diff --git a/kresources/testresources.cpp b/kresources/testresources.cpp deleted file mode 100644 index 515563172..000000000 --- a/kresources/testresources.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include -#include -#include -#include - -#include "resource.h" -#include "manager.h" - -using namespace KRES; - -class TestResource : public Resource -{ - public: - TestResource() : Resource( 0 ) {} - -}; - -class TestSubResource : public TestResource -{ - public: - TestSubResource() : TestResource() {} - - void dump() const - { - kdDebug() << "TestSubResource" << endl; - TestResource::dump(); - } -}; - -int main( int argc, char **argv ) -{ - TDEAboutData aboutData( "testresources", "Kresource Test", "0" ); - TDECmdLineArgs::init( argc, argv, &aboutData ); - - TDEApplication app; - - Manager manager( "test" ); - - TestResource *resource1 = new TestResource; - resource1->setResourceName( "One" ); - manager.add( resource1 ); - - TestResource *resource2 = new TestSubResource; - resource2->setResourceName( "Two" ); - manager.add( resource2 ); - - TestResource *resource3 = new TestSubResource; - resource3->setResourceName( "Three" ); - manager.add( resource3 ); - - kdDebug() << "LIST ALL:" << endl; - Manager::Iterator it; - for( it = manager.begin(); it != manager.end(); ++it ) { - (*it)->dump(); - } - - resource2->setActive( false ); - resource3->setActive( true ); - - kdDebug() << "LIST ACTIVE" << endl; - Manager::ActiveIterator it2; - for( it2 = manager.activeBegin(); it2 != manager.activeEnd(); ++it2 ) { - (*it2)->dump(); - } - - resource1->setActive( false ); - resource2->setActive( true ); - resource3->setActive( true ); - - kdDebug() << "LIST ACTIVE" << endl; - for( it2 = manager.activeBegin(); it2 != manager.activeEnd(); ++it2 ) { - (*it2)->dump(); - } - - kdDebug() << "LIST ALL" << endl; - for( it = manager.begin(); it != manager.end(); ++it ) { - (*it)->dump(); - } - - -} -- cgit v1.2.3