|
|
@ -62,7 +62,7 @@ TQString RDBManager::compareAtTime(Backup backup, TQDateTime date)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
// Adds the listener
|
|
|
|
// Adds the listener
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -89,7 +89,7 @@ TQString RDBManager::listChangedSince(Backup backup, TQDateTime date)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
// Adds a listener
|
|
|
|
// Adds a listener
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -116,7 +116,7 @@ TQString RDBManager::listAtTime(Backup backup, TQDateTime date)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
// Adds a listener
|
|
|
|
// Adds a listener
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -144,7 +144,7 @@ TQValueList<TQDateTime> RDBManager::incrementList(Backup backup)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
// Adds a listener
|
|
|
|
// Adds a listener
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -214,8 +214,8 @@ void RDBManager::slotRestoreBackup(Backup backup,TQDateTime time)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.source())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.source())));
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdErr(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdErr(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -239,7 +239,7 @@ bool RDBManager::isRDB()
|
|
|
|
*proc << "-V";
|
|
|
|
*proc << "-V";
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -264,7 +264,7 @@ TQString RDBManager::RDBVersion()
|
|
|
|
*proc << "-V";
|
|
|
|
*proc << "-V";
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
@ -329,8 +329,8 @@ void RDBManager::doBackup(Backup backup)
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
*proc << TQString(TQFile::encodeName(TDEProcess::quote(backup.dest())));
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
// Adds a listener (for output recording)
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
RDBListener *listen = new RDBListener();
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStdout(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdOut(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)),listen,TQT_SLOT(receivedStdErr(TDEProcess *,char *,int)));
|
|
|
|
connect(proc,TQ_SIGNAL(receivedStderr(TDEProcess *,char *,int)),listen,TQ_SLOT(receivedStdErr(TDEProcess *,char *,int)));
|
|
|
|
// Starts the process
|
|
|
|
// Starts the process
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
if ( !proc->start(TDEProcess::Block, TDEProcess::AllOutput) )
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|
kdDebug() << "Error starting rdiff-backup" << endl;
|
|
|
|