Changeset 11
- Timestamp:
- Sep 5, 2006, 1:08:29 AM (19 years ago)
- Location:
- psi/trunk/src/tools/openpgp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
psi/trunk/src/tools/openpgp/gpgop.cpp
r2 r11 540 540 QString GpgOp::fixIncomingLines(const QString &str) 541 541 { 542 #if def Q_WS_WIN542 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 543 543 QString out; 544 544 for(int n = 0; n < (int)str.length(); ++n) { … … 558 558 QString GpgOp::fixOutgoingLines(const QString &str) 559 559 { 560 #if def Q_WS_WIN560 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 561 561 QString out; 562 562 for(int n = 0; n < (int)str.length(); ++n) { -
psi/trunk/src/tools/openpgp/gpgproc/gpgproc.cpp
r2 r11 11 11 #include"qpipe.h" 12 12 13 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 14 #include<qprocess.h> 13 15 #ifdef Q_WS_WIN 14 #include<qprocess.h>15 16 #include<windows.h> 17 #endif 16 18 #else 17 19 #include<unistd.h> … … 30 32 SafeDelete sd; 31 33 32 #if def Q_WS_WIN34 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 33 35 QProcess *proc; 34 36 #else … … 171 173 }*/ 172 174 173 #if def Q_WS_WIN175 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 174 176 d->proc = new QProcess; 175 177 #else … … 214 216 d->proc->setArguments(fullargs); 215 217 216 #if ndef Q_WS_WIN218 #if !defined(Q_WS_WIN) && !defined(Q_OS_OS2) 217 219 QValueList<int> plist; 218 220 plist += d->pipeAux.writeEnd().id(); … … 221 223 d->proc->setClosePipeList(plist); 222 224 #endif 225 /// @todo (dmik) 226 // On Unix, it is done when SProcess is destructed. On OS/2 as well as on 227 // Win32, SProcess is not used, but we use the same QPipe implelentation 228 // on OS/2 as Unix does, so we need to use the similar technuque to close 229 // them... Need to investigate this file (i.e. usage) in detail. 223 230 224 231 connect(d->proc, SIGNAL(readyReadStdout()), SLOT(proc_readyReadStdout()));
Note:
See TracChangeset
for help on using the changeset viewer.