~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to cutestuff/openpgp/gpgproc/sprocess.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include"sprocess.h"
 
2
 
 
3
#include<unistd.h>
 
4
 
 
5
//----------------------------------------------------------------------------
 
6
// SProcess
 
7
//----------------------------------------------------------------------------
 
8
SProcess::SProcess()
 
9
:JProcess()
 
10
{
 
11
        setChildStartingHandler(childStarting);
 
12
}
 
13
 
 
14
SProcess::~SProcess()
 
15
{
 
16
}
 
17
 
 
18
void SProcess::setClosePipeList(const QValueList<int> &list)
 
19
{
 
20
        pipeList = list;
 
21
}
 
22
 
 
23
void SProcess::childStarting(JProcess *p)
 
24
{
 
25
        SProcess *that = (SProcess *)p;
 
26
        // close all pipes
 
27
        for(QValueList<int>::ConstIterator it = that->pipeList.begin(); it != that->pipeList.end(); ++it) {
 
28
                int x = *it;
 
29
                close(x);
 
30
        }
 
31
}