diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
commit | 5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch) | |
tree | 9b70e8be47a390f8f4d56ead812ab0c9dad88709 /kio/tests/kdirwatchtest.cpp | |
parent | c17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff) | |
download | tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kio/tests/kdirwatchtest.cpp')
-rw-r--r-- | kio/tests/kdirwatchtest.cpp | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/kio/tests/kdirwatchtest.cpp b/kio/tests/kdirwatchtest.cpp deleted file mode 100644 index c741b20f0..000000000 --- a/kio/tests/kdirwatchtest.cpp +++ /dev/null @@ -1,82 +0,0 @@ - /* - This file is or will be part of KDE desktop environment - - Copyright 1998 Sven Radej <sven@lisa.exp.univie.ac.at> - - It is licensed under GPL version 2. - - If it is part of KDE libraries than this file is licensed under - LGPL version 2. - */ - -#include <tqfile.h> - -#include <kdebug.h> -#include <kcmdlineargs.h> - -#include "kdirwatchtest.h" - -static const KCmdLineOptions options[] = -{ - {"+[directory ...]", "Directory(ies) to watch", 0}, - KCmdLineLastOption -}; - - -int main (int argc, char **argv) -{ - TDECmdLineArgs::init(argc, argv, "KDirWatchTest", - "Test for KDirWatch", "1.0"); - TDECmdLineArgs::addCmdLineOptions( options ); - TDEApplication::addCmdLineOptions(); - - TDEApplication a; - TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - - myTest testObject; - - KDirWatch *dirwatch1 = KDirWatch::self(); - KDirWatch *dirwatch2 = new KDirWatch; - - testObject.connect(dirwatch1, TQT_SIGNAL( dirty( const TQString &)), TQT_SLOT( dirty( const TQString &)) ); - testObject.connect(dirwatch1, TQT_SIGNAL( created( const TQString &)), TQT_SLOT( created( const TQString &)) ); - testObject.connect(dirwatch1, TQT_SIGNAL( deleted( const TQString &)), TQT_SLOT( deleted( const TQString &)) ); - - if (args->count() >0) { - for(int i = 0; i < args->count(); i++) { - kdDebug() << "Watching: " << args->arg(i) << endl; - dirwatch2->addDir( TQFile::decodeName( args->arg(i))); - } - } - - TQString home = TQString(getenv ("HOME")) + "/"; - TQString desk = home + "Desktop/"; - kdDebug() << "Watching: " << home << endl; - dirwatch1->addDir(home); - kdDebug() << "Watching file: " << home << "foo " << endl; - dirwatch1->addFile(home+"foo"); - kdDebug() << "Watching: " << desk << endl; - dirwatch1->addDir(desk); - TQString test = home + "test/"; - kdDebug() << "Watching: (but skipped) " << test << endl; - dirwatch1->addDir(test); - - dirwatch1->startScan(); - dirwatch2->startScan(); - - if(!dirwatch1->stopDirScan(home)) - kdDebug() << "stopDirscan: " << home << " error!" << endl; - if(!dirwatch1->restartDirScan(home)) - kdDebug() << "restartDirScan: " << home << "error!" << endl; - if (!dirwatch1->stopDirScan(test)) - kdDebug() << "stopDirScan: error" << endl; - - KDirWatch::statistics(); - - delete dirwatch2; - - KDirWatch::statistics(); - - return a.exec(); -} -#include "kdirwatchtest.moc" |