summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-07-28 04:02:22 (UTC)
committer llornkcor <llornkcor>2004-07-28 04:02:22 (UTC)
commite98e9106df225b9e19a45a6f0e44193b1d018461 (patch) (unidiff)
tree2f2238d1f9549dd4fb645551abf88480a11d2dc3
parent347acd6001e00d0e57c4917f9a741ab887caf4cd (diff)
downloadopie-e98e9106df225b9e19a45a6f0e44193b1d018461.zip
opie-e98e9106df225b9e19a45a6f0e44193b1d018461.tar.gz
opie-e98e9106df225b9e19a45a6f0e44193b1d018461.tar.bz2
use copyfile method that doesnt squish filenames into latin1, so copying files with extended characters doesn't fail after ir receive
Diffstat (more/less context) (ignore 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
@@ -7,6 +7,7 @@ using namespace OpieObex;
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 */
@@ -195,8 +196,13 @@ QString OtherHandler::targetName( const QString& file ) {
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}