Ignore:
Timestamp:
Sep 5, 2006, 1:08:29 AM (19 years ago)
Author:
dmik
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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()));
Note: See TracChangeset for help on using the changeset viewer.