aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/highlightdice.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-07-11 00:45:44 +0200
committerRenaud G <renaud@rolisteam.org>2020-08-21 22:51:43 +0200
commit8087429c108c4f6bef5f792ce256b8d5b8b69101 (patch)
treed847b1acadb3d4ac7166bda415794f61816de682 /highlightdice.cpp
parent35d019ec86f272d4189852a3e69ede403c415a8c (diff)
downloadOneRoll-8087429c108c4f6bef5f792ce256b8d5b8b69101.tar.gz
OneRoll-8087429c108c4f6bef5f792ce256b8d5b8b69101.zip
Rework exporting
Diffstat (limited to 'highlightdice.cpp')
-rw-r--r--highlightdice.cpp28
1 files changed, 22 insertions, 6 deletions
diff --git a/highlightdice.cpp b/highlightdice.cpp
index d180a8d..d0c9faa 100644
--- a/highlightdice.cpp
+++ b/highlightdice.cpp
@@ -19,14 +19,20 @@
***************************************************************************/
#include "include/highlightdice.h"
-HighLightDice::HighLightDice(QList<qint64> result, bool isHighlighted, QString color, bool displayed, quint64 faces)
- : m_result(result), m_hasHighlight(isHighlighted), m_color(color), m_displayed(displayed), m_faces(faces)
+HighLightDice::HighLightDice(QList<qint64> result, bool isHighlighted, QString color, bool displayed, quint64 faces,
+ const QString& uuid)
+ : m_result(result)
+ , m_hasHighlight(isHighlighted)
+ , m_color(color)
+ , m_displayed(displayed)
+ , m_faces(faces)
+ , m_uuid(uuid)
{
}
HighLightDice::~HighLightDice() {}
-QList<qint64> HighLightDice::getResult() const
+QList<qint64> HighLightDice::result() const
{
return m_result;
}
@@ -46,7 +52,7 @@ void HighLightDice::setHighlight(bool hasHighlight)
m_hasHighlight= hasHighlight;
}
-QString HighLightDice::getColor() const
+QString HighLightDice::color() const
{
return m_color;
}
@@ -56,7 +62,7 @@ void HighLightDice::setColor(const QString& color)
m_color= color;
}
-bool HighLightDice::getDisplayed() const
+bool HighLightDice::displayed() const
{
return m_displayed;
}
@@ -66,7 +72,7 @@ void HighLightDice::setDisplayed(bool displayed)
m_displayed= displayed;
}
-quint64 HighLightDice::getFaces() const
+quint64 HighLightDice::faces() const
{
return m_faces;
}
@@ -92,3 +98,13 @@ QString HighLightDice::getResultString() const
return QStringLiteral("%2 [%1]").arg(list.join(",")).arg(totalScore);
}
}
+
+QString HighLightDice::uuid() const
+{
+ return m_uuid;
+}
+
+void HighLightDice::setUuid(const QString& uuid)
+{
+ m_uuid= uuid;
+}