Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DapCash Wallet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DapCash
DapCash Wallet
Commits
f9f0d28f
Commit
f9f0d28f
authored
5 years ago
by
littletux89@gmail.com
Browse files
Options
Downloads
Patches
Plain Diff
[+] Added process.
parent
ca965490
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
Cellframe clone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.cpp
+11
-2
11 additions, 2 deletions
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.cpp
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.h
+3
-0
3 additions, 0 deletions
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.h
with
14 additions
and
2 deletions
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.cpp
+
11
−
2
View file @
f9f0d28f
...
...
@@ -50,6 +50,15 @@ QVariant DapAddWalletCommand::respondToClient(const QVariant &arg1, const QVaria
Q_UNUSED
(
arg8
)
Q_UNUSED
(
arg9
)
Q_UNUSED
(
arg10
)
return
5
;
QByteArray
result
;
QProcess
process
;
process
.
start
(
QString
(
"%1 wallet new -w %2"
).
arg
(
CLI_PATH
).
arg
(
arg1
.
toString
()));
process
.
waitForFinished
(
-
1
);
result
=
process
.
readAll
();
QStringList
res
=
QString
::
fromLatin1
(
result
).
split
(
" "
);
QStringList
list
;
list
.
append
(
arg1
.
toString
());
list
.
append
(
res
.
at
(
res
.
size
()
-
1
).
trimmed
());
return
result
.
isEmpty
()
?
QStringList
()
:
list
;
}
This diff is collapsed.
Click to expand it.
libCellFrameDashboardCommon/Handlers/DapAddWalletCommand.h
+
3
−
0
View file @
f9f0d28f
...
...
@@ -9,6 +9,9 @@
#ifndef DAPADDWALLETCOMMAND_H
#define DAPADDWALLETCOMMAND_H
#include
<QProcess>
#include
<QString>
#include
"DapAbstractCommand.h"
class
DapAddWalletCommand
:
public
DapAbstractCommand
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment