~diegosarmentero/clickmanager-plugin/x-click-token-support

« back to all changes in this revision

Viewing changes to tests/fakeprocess.h

  • Committer: Diego Sarmentero
  • Date: 2013-09-10 19:01:19 UTC
  • Revision ID: diego.sarmentero@gmail.com-20130910190119-5zlm3s38txxpzipg
adding files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef FAKEPROCESS_H
 
2
#define FAKEPROCESS_H
 
3
 
 
4
#include <QObject>
 
5
#include <QString>
 
6
#include <QStringList>
 
7
 
 
8
class FakeProcess : public QObject
 
9
{
 
10
    Q_OBJECT
 
11
public:
 
12
    explicit FakeProcess(QObject *parent = 0);
 
13
 
 
14
    void start(QString command, QStringList args);
 
15
    void startDetached(QString command, QStringList args);
 
16
    QString readAllStandardOutput();
 
17
    
 
18
signals:
 
19
    void readyReadStandardOutput();
 
20
    
 
21
private:
 
22
    QString m_content;
 
23
    
 
24
};
 
25
 
 
26
#endif // FAKEPROCESS_H