summaryrefslogtreecommitdiff
path: root/core/obex/receiver.cpp
Unidiff
Diffstat (limited to 'core/obex/receiver.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/obex/receiver.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/obex/receiver.cpp b/core/obex/receiver.cpp
index 8885256..d4ae323 100644
--- a/core/obex/receiver.cpp
+++ b/core/obex/receiver.cpp
@@ -4,12 +4,13 @@ using namespace OpieObex;
4 4
5/* OPIE */ 5/* OPIE */
6#include <opie2/odebug.h> 6#include <opie2/odebug.h>
7#include <qpe/applnk.h> 7#include <qpe/applnk.h>
8#include <qpe/qpeapplication.h> 8#include <qpe/qpeapplication.h>
9#include <qpe/qcopenvelope_qws.h> 9#include <qpe/qcopenvelope_qws.h>
10#include <qpe/filemanager.h>
10using namespace Opie::Core; 11using namespace Opie::Core;
11 12
12/* QT */ 13/* QT */
13#include <qfileinfo.h> 14#include <qfileinfo.h>
14#include <qlabel.h> 15#include <qlabel.h>
15#include <qtextview.h> 16#include <qtextview.h>
@@ -192,11 +193,16 @@ QString OtherHandler::targetName( const QString& file ) {
192 return newFile; 193 return newFile;
193} 194}
194 195
195/* fast cpy */ 196/* fast cpy */
196void OtherHandler::copy(const QString& src, const QString& file) { 197void OtherHandler::copy(const QString& src, const QString& file) {
197 owarn << "src " << src << ", dest " << file << "" << oendl; 198 owarn << "src " << src << ", dest " << file << "" << oendl;
198 QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )). 199 FileManager *fm;
199 arg( Global::shellQuote( file ) ); 200 if(!fm->copyFile(src,file)) {
200 ::system( cmd.latin1() ); 201 owarn << "Copy failed" << oendl;
202 }
203
204// QString cmd = QString("mv %1 %2").arg( Global::shellQuote( src )).
205// arg( Global::shellQuote( file ) );
206// ::system( cmd.latin1() );
201 // done 207 // done
202} 208}