diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-15 22:24:13 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-15 22:24:13 +0900 |
| commit | 567e063ea934ef12aa05a5d5b2598c1d6f52890e (patch) | |
| tree | 8596de87f2a9865ea66582c080abfc8268e68f01 /src/convert_sqlite3.cpp | |
| parent | 1953eddce24dfef0e41764e04a72b34d29d01130 (diff) | |
| download | krecipes-567e063ea934ef12aa05a5d5b2598c1d6f52890e.tar.gz krecipes-567e063ea934ef12aa05a5d5b2598c1d6f52890e.zip | |
Use TDEProcIO class
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/convert_sqlite3.cpp')
| -rw-r--r-- | src/convert_sqlite3.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/convert_sqlite3.cpp b/src/convert_sqlite3.cpp index ddb144e..6e663ad 100644 --- a/src/convert_sqlite3.cpp +++ b/src/convert_sqlite3.cpp @@ -17,7 +17,7 @@ #include <tdeglobal.h> #include <tdeconfig.h> #include <tdemessagebox.h> -#include <kprocio.h> +#include <tdeprocio.h> //FIXME: Some messages should be given to the user about success/failure, but that can't be done in the 0.8.x branch due to i18n. @@ -30,14 +30,14 @@ ConvertSQLite3::ConvertSQLite3( const TQString &db_file ) : TQObject(), error(fa file = config->readEntry("DBFile"); } - KProcIO *p = new KProcIO; + TDEProcIO *p = new TDEProcIO; p->setUseShell(true); //sqlite OLD.DB .dump | sqlite3 NEW.DB *p << "sqlite" << file << ".dump" << "|" << "sqlite3" << file+".new"; - TQApplication::connect( p, TQ_SIGNAL(readReady(KProcIO*)), this, TQ_SLOT(processOutput(KProcIO*)) ); + TQApplication::connect( p, TQ_SIGNAL(readReady(TDEProcIO*)), this, TQ_SLOT(processOutput(TDEProcIO*)) ); bool success = p->start( TDEProcess::Block, true ); if ( !success ) { @@ -77,7 +77,7 @@ ConvertSQLite3::~ConvertSQLite3() { } -void ConvertSQLite3::processOutput( KProcIO* p ) +void ConvertSQLite3::processOutput( TDEProcIO* p ) { TQString error_str, buffer; while ( p->readln(buffer) != -1 ) { |
