~ubuntu-branches/ubuntu/raring/kgpg/raring-updates

« back to all changes in this revision

Viewing changes to transactions/kgpgdecrypt.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-04-03 08:52:03 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120403085203-1ijjak47r3tszi0d
Tags: 4:4.8.2-0ubuntu1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2010,2011 Rolf Eike Beer <kde@opensource.sf-tec.de>
 
2
 * Copyright (C) 2010,2011,2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
3
3
 */
4
4
 
5
5
/***************************************************************************
13
13
 
14
14
#include "kgpgdecrypt.h"
15
15
 
 
16
#include "gpgproc.h"
16
17
#include "kgpgsettings.h"
17
18
 
18
19
#include <KLocale>
48
49
{
49
50
        QStringList ret;
50
51
 
51
 
        ret << QLatin1String("--decrypt");
 
52
        ret << QLatin1String("--decrypt") << QLatin1String("--command-fd=0");
52
53
 
53
54
        if (!m_outFilename.isEmpty())
54
55
                ret << QLatin1String("-o") << m_outFilename;
127
128
                        m_plainLength = line.mid(26).toInt(&ok);
128
129
                        if (!ok)
129
130
                                m_plainLength = -1;
 
131
                } else if (line == QLatin1String("[GNUPG:] BEGIN_DECRYPTION")) {
 
132
                        // close the command channel (if any) to signal GnuPG that it
 
133
                        // can start sending the output.
 
134
                        getProcess()->closeWriteChannel();
130
135
                }
131
136
        }
132
137