aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-06-03 10:59:53 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-06-03 11:13:51 +0200
commit4c097f9669a28420da74b159a4d61e509da80d33 (patch)
treebd6c5a1a5448190a86ab34f0f96f2756a2e13a99 /src/qt/guiutil.h
parent522a8fa3777486725f06d6bbf5694b9cd32cbcce (diff)
parent65f78a111ff52c2212cc0a423662e7a41d1206dd (diff)
downloadbitcoin-4c097f9669a28420da74b159a4d61e509da80d33.tar.xz
Merge pull request #4225
65f78a1 Qt: Add GUI view of peer information. #4133 (Ashley Holman)
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 4f9416d1af..ea6b7de872 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -173,6 +173,12 @@ namespace GUIUtil
/* Convert OS specific boost path to QString through UTF-8 */
QString boostPathToQString(const boost::filesystem::path &path);
+ /* Convert seconds into a QString with days, hours, mins, secs */
+ QString formatDurationStr(int secs);
+
+ /* Format CNodeStats.nServices bitmask into a user-readable string */
+ QString formatServicesStr(uint64_t mask);
+
} // namespace GUIUtil
#endif // GUIUTIL_H