File: cgpgproc.h

package info (click to toggle)
gpgkeys 0.3.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 276 kB
  • ctags: 241
  • sloc: cpp: 2,007; makefile: 53
file content (49 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * GPG Keys 
 * cgpgproc.h
 * (c) 2001 Peter Mathiasson <peter@mathiasson.nu>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2, as
 * published by the Free Software Foundation
 */

#ifndef __CGPGPROC_H__
#define __CGPGPROC_H__

#include <qobject.h>
#include <qstring.h>
#include <qprocess.h>

class QStringList;

class CGPGProc : public QObject
{
    
    Q_OBJECT

public:
    CGPGProc( QObject *parent = 0 );
    bool import( const QString importData );

    static int run( QObject *parent, const QStringList args, const QString stdin = QString::null,
                    bool terminal = FALSE );

    enum {
        RUNFAILED,
        OK,
        ERROR,
        ALREADYRUNNING
    };

    int owner;

signals:
    void message( QString msg, int timeout );

private:
    QProcess *proc;

};

#endif // __CGPGPROC_H__