18#ifndef PROJECTUSAGETRACKER_H
19#define PROJECTUSAGETRACKER_H
21#include <QElapsedTimer>
48 void toXml(QDomElement &parent_element)
const;
49 void fromXml(
const QDomElement &parent_element);
qint64 m_seconds_spent
Definition projectusagetracker.h:52
void setEnabled(bool enabled)
ProjectUsageTracker::setEnabled Enable or disable time tracking for this project. Disabling while cur...
Definition projectusagetracker.cpp:56
ProjectUsageTracker()=default
void setActive(bool active)
ProjectUsageTracker::setActive Tell the tracker whether this project's tab is currently the active on...
Definition projectusagetracker.cpp:77
bool m_active
Definition projectusagetracker.h:54
bool isEnabled() const
Definition projectusagetracker.h:43
qint64 secondsSpent() const
ProjectUsageTracker::secondsSpent.
Definition projectusagetracker.cpp:27
void toXml(QDomElement &parent_element) const
ProjectUsageTracker::toXml Append a <usage> child element to parent_element with the current accumula...
Definition projectusagetracker.cpp:98
void resetSecondsSpent()
ProjectUsageTracker::resetSecondsSpent Zero the accumulated time. If the tracker is currently timing,...
Definition projectusagetracker.cpp:41
bool m_enabled
Definition projectusagetracker.h:53
QElapsedTimer m_elapsed_timer
Definition projectusagetracker.h:55
void fromXml(const QDomElement &parent_element)
ProjectUsageTracker::fromXml Read the <usage> child element of parent_element, if any.
Definition projectusagetracker.cpp:112