summaryrefslogtreecommitdiff
path: root/FacilityEngine.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-03-21 11:01:59 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-03-21 11:01:59 +0100
commite297dbd8052ef4e66f069e2dd1865ae7fa8af28e (patch)
tree342fea0a2f6f33b8b62dad2d1729f8209da1a1ba /FacilityEngine.h
parent8f9f382e1c97cab2e72e97495650c73ac4b97314 (diff)
Imported Upstream version 0.3.1.0
Diffstat (limited to 'FacilityEngine.h')
-rw-r--r--FacilityEngine.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/FacilityEngine.h b/FacilityEngine.h
index 221f801..d5a6145 100644
--- a/FacilityEngine.h
+++ b/FacilityEngine.h
@@ -12,6 +12,7 @@
#include <QVariant>
#include <QString>
#include <QStringList>
+#include <QHash>
#include "interface/FacilityInterface.h"
#include "Environment.h"
@@ -39,15 +40,9 @@ public:
bool haveFunctionality(const QString &fonctionnality);
/// \brief call the fonctionnality
QVariant callFunctionality(const QString &fonctionnality,const QStringList &args=QStringList());
+ /// \brief Do the simplified time
+ QString simplifiedRemainingTime(const quint32 &seconds);
private:
- //translated string
- QString Translation_Copy_engine;
- QString Translation_Copy;
- QString Translation_Move;
- QString Translation_Pause;
- QString Translation_Resume;
- QString Translation_Skip;
- QString Translation_Unlimited;
//undirect translated string
QString Translation_perSecond;
QString Translation_tooBig;
@@ -60,8 +55,14 @@ private:
QString Translation_EB;
QString Translation_ZB;
QString Translation_YB;
+ //simplified remaining time
+ QString Translation_SimplifiedRemaningTime_LessThan10s;
+ QString Translation_SimplifiedRemaningTime_AboutSeconds;
+ QString Translation_SimplifiedRemaningTime_AboutMinutes;
+ QString Translation_SimplifiedRemaningTime_AboutHours;
//internal fonction
QString adaptString(const float &nb);
+ QHash<QString,QString> translations;
public slots:
/// \brief To force the text re-translation
void retranslate();