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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - .lcov.total - src/imitatepass.h</title>
<link rel="stylesheet" type="text/css" href="../gcov.css">
</head>
<body>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">src</a> - imitatepass.h<span style="font-size: 80%;"> (source / <a href="imitatepass.h.func-sort-c.html">functions</a>)</span></td>
<td width="5%"></td>
<td width="15%"></td>
<td width="10%" class="headerCovTableHead">Hit</td>
<td width="10%" class="headerCovTableHead">Total</td>
<td width="15%" class="headerCovTableHead">Coverage</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">.lcov.total</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntry">1</td>
<td class="headerCovTableEntry">7</td>
<td class="headerCovTableEntryLo">14.3 %</td>
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2018-06-12 11:27:04</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntry">2</td>
<td class="headerCovTableEntry">8</td>
<td class="headerCovTableEntryLo">25.0 %</td>
</tr>
<tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
<table cellpadding=0 cellspacing=0 border=0>
<tr>
<td><br></td>
</tr>
<tr>
<td>
<pre class="sourceHeading"> Line data Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum"> 1 </span> : #ifndef IMITATEPASS_H</a>
<span class="lineNum"> 2 </span> : #define IMITATEPASS_H
<span class="lineNum"> 3 </span> :
<span class="lineNum"> 4 </span> : #include "pass.h"
<span class="lineNum"> 5 </span> : #include "simpletransaction.h"
<span class="lineNum"> 6 </span> :
<span class="lineNum"> 7 </span> : /*!
<span class="lineNum"> 8 </span> : \class ImitatePass
<span class="lineNum"> 9 </span> : \brief Imitates pass features when pass is not enabled or available
<a name="10"><span class="lineNum"> 10 </span> : */</a>
<span class="lineNum"> 11 </span> : class ImitatePass : public Pass, private simpleTransaction {
<span class="lineNum"> 12 </span><span class="lineNoCov"> 0 : Q_OBJECT</span>
<span class="lineNum"> 13 </span> :
<span class="lineNum"> 14 </span> : bool removeDir(const QString &dirName);
<span class="lineNum"> 15 </span> :
<span class="lineNum"> 16 </span> : void GitCommit(const QString &file, const QString &msg);
<span class="lineNum"> 17 </span> :
<span class="lineNum"> 18 </span> : void executeGit(PROCESS id, const QStringList &args,
<span class="lineNum"> 19 </span> : QString input = QString(), bool readStdout = true,
<span class="lineNum"> 20 </span> : bool readStderr = true);
<span class="lineNum"> 21 </span> : void executeGpg(PROCESS id, const QStringList &args,
<span class="lineNum"> 22 </span> : QString input = QString(), bool readStdout = true,
<span class="lineNum"> 23 </span> : bool readStderr = true);
<span class="lineNum"> 24 </span> :
<span class="lineNum"> 25 </span> : class transactionHelper {
<span class="lineNum"> 26 </span> : simpleTransaction *m_transaction;
<span class="lineNum"> 27 </span> : PROCESS m_result;
<a name="28"><span class="lineNum"> 28 </span> : </a>
<span class="lineNum"> 29 </span> : public:
<span class="lineNum"> 30 </span><span class="lineNoCov"> 0 : transactionHelper(simpleTransaction *trans, PROCESS result)</span>
<span class="lineNum"> 31 </span><span class="lineNoCov"> 0 : : m_transaction(trans), m_result(result) {</span>
<a name="32"><span class="lineNum"> 32 </span><span class="lineNoCov"> 0 : m_transaction->transactionStart();</span></a>
<span class="lineNum"> 33 </span><span class="lineNoCov"> 0 : }</span>
<span class="lineNum"> 34 </span><span class="lineNoCov"> 0 : ~transactionHelper() { m_transaction->transactionEnd(m_result); }</span>
<span class="lineNum"> 35 </span> : };
<span class="lineNum"> 36 </span> :
<span class="lineNum"> 37 </span> : protected:
<span class="lineNum"> 38 </span> : virtual void finished(int id, int exitCode, const QString &out,
<span class="lineNum"> 39 </span> : const QString &err) Q_DECL_OVERRIDE;
<span class="lineNum"> 40 </span> :
<span class="lineNum"> 41 </span> : virtual void executeWrapper(PROCESS id, const QString &app,
<span class="lineNum"> 42 </span> : const QStringList &args, QString input,
<span class="lineNum"> 43 </span> : bool readStdout = true,
<span class="lineNum"> 44 </span> : bool readStderr = true) Q_DECL_OVERRIDE;
<span class="lineNum"> 45 </span> :
<a name="46"><span class="lineNum"> 46 </span> : public:</a>
<span class="lineNum"> 47 </span> : ImitatePass();
<span class="lineNum"> 48 </span><span class="lineCov"> 8 : virtual ~ImitatePass() {}</span>
<span class="lineNum"> 49 </span> : virtual void GitInit() Q_DECL_OVERRIDE;
<span class="lineNum"> 50 </span> : virtual void GitPull() Q_DECL_OVERRIDE;
<span class="lineNum"> 51 </span> : virtual void GitPull_b() Q_DECL_OVERRIDE;
<span class="lineNum"> 52 </span> : virtual void GitPush() Q_DECL_OVERRIDE;
<span class="lineNum"> 53 </span> : virtual void Show(QString file) Q_DECL_OVERRIDE;
<span class="lineNum"> 54 </span> : virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
<span class="lineNum"> 55 </span> : virtual void Insert(QString file, QString value,
<span class="lineNum"> 56 </span> : bool overwrite = false) Q_DECL_OVERRIDE;
<span class="lineNum"> 57 </span> : virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
<span class="lineNum"> 58 </span> : virtual void Init(QString path, const QList<UserInfo> &list) Q_DECL_OVERRIDE;
<span class="lineNum"> 59 </span> :
<span class="lineNum"> 60 </span> : void reencryptPath(QString dir);
<span class="lineNum"> 61 </span> : signals:
<span class="lineNum"> 62 </span> : void startReencryptPath();
<span class="lineNum"> 63 </span> : void endReencryptPath();
<span class="lineNum"> 64 </span> :
<span class="lineNum"> 65 </span> : // Pass interface
<span class="lineNum"> 66 </span> : public:
<span class="lineNum"> 67 </span> : void Move(const QString src, const QString dest,
<span class="lineNum"> 68 </span> : const bool force = false) Q_DECL_OVERRIDE;
<span class="lineNum"> 69 </span> : void Copy(const QString src, const QString dest,
<span class="lineNum"> 70 </span> : const bool force = false) Q_DECL_OVERRIDE;
<span class="lineNum"> 71 </span> : };
<span class="lineNum"> 72 </span> :
<span class="lineNum"> 73 </span> : #endif // IMITATEPASS_H
</pre>
</td>
</tr>
</table>
<br>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.13</a></td></tr>
</table>
<br>
</body>
</html>
|