A Morse Code Training Application. https://bits.sigpipe.me/projects/cutecw/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
744 B

#ifndef MORSESTAT_H
#define MORSESTAT_H
#include <QObject>
#include <QtCore/QSettings>
class MorseStat : public QObject
{
Q_OBJECT
public:
explicit MorseStat(QObject *parent = 0);
const int maxTimeCount;
float getAverageTime();
int getTryCount();
int getGoodCount();
int getGoodPercentage(int minStartingGood = 0);
void addStat(float newtime, bool successful);
private:
void addTime(float newtime);
signals:
public slots:
void saveStats(QSettings &settings, const QString &statSetName);
void loadStats(QSettings &settings, const QString &statSetName);
private:
int m_tryCount;
int m_goodCount;
QList<float> m_timeList;
};
#endif // MORSESTAT_H