Changeset 11 for psi

Show
Ignore:
Timestamp:
09/05/06 01:08:29 (2 years ago)
Author:
dmik
Message:

Tools/GPG: Added OS/2-related defines (experimental, needs testing).

Location:
psi/trunk/src/tools/openpgp
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • psi/trunk/src/tools/openpgp/gpgop.cpp

    r2 r11  
    540540QString GpgOp::fixIncomingLines(const QString &str) 
    541541{ 
    542 #ifdef Q_WS_WIN 
     542#if defined(Q_WS_WIN) || defined(Q_OS_OS2) 
    543543        QString out; 
    544544        for(int n = 0; n < (int)str.length(); ++n) { 
     
    558558QString GpgOp::fixOutgoingLines(const QString &str) 
    559559{ 
    560 #ifdef Q_WS_WIN 
     560#if defined(Q_WS_WIN) || defined(Q_OS_OS2) 
    561561        QString out; 
    562562        for(int n = 0; n < (int)str.length(); ++n) { 
  • psi/trunk/src/tools/openpgp/gpgproc/gpgproc.cpp

    r2 r11  
    1111#include"qpipe.h" 
    1212 
     13#if defined(Q_WS_WIN) || defined(Q_OS_OS2) 
     14#include<qprocess.h> 
    1315#ifdef Q_WS_WIN 
    14 #include<qprocess.h> 
    1516#include<windows.h> 
     17#endif 
    1618#else 
    1719#include<unistd.h> 
     
    3032        SafeDelete sd; 
    3133 
    32 #ifdef Q_WS_WIN 
     34#if defined(Q_WS_WIN) || defined(Q_OS_OS2) 
    3335        QProcess *proc; 
    3436#else 
     
    171173        }*/ 
    172174 
    173 #ifdef Q_WS_WIN 
     175#if defined(Q_WS_WIN) || defined(Q_OS_OS2) 
    174176        d->proc = new QProcess; 
    175177#else 
     
    214216        d->proc->setArguments(fullargs); 
    215217 
    216 #ifndef Q_WS_WIN 
     218#if !defined(Q_WS_WIN) && !defined(Q_OS_OS2) 
    217219        QValueList<int> plist; 
    218220        plist += d->pipeAux.writeEnd().id(); 
     
    221223        d->proc->setClosePipeList(plist); 
    222224#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. 
    223230 
    224231        connect(d->proc, SIGNAL(readyReadStdout()), SLOT(proc_readyReadStdout()));