karmstorage.h
Singleton to store/retrieve KArm data to/from persistent storage.
Definition: karmstorage.h:68
bool isNewStorage(const Preferences *preferences) const
Check if iCalendar file name in the preferences has changed since the last call to load.
Definition: karmstorage.cpp:373
TQString loadFromFlatFile(TaskView *taskview, const TQString &filename)
Read tasks and their total times from a text file (legacy storage).
Definition: karmstorage.cpp:384
TQString loadFromFlatFileCumulative(TaskView *taskview, const TQString &filename)
Reads tasks and their total times from text file (legacy).
Definition: karmstorage.cpp:467
void setName(const Task *task, const TQString &oldname)
Log a change to a task name.
Definition: karmstorage.h:219
bool isEmpty()
Check if the iCalendar file currently loaded has any Todos in it.
Definition: karmstorage.cpp:365
bool bookTime(const Task *task, const TQDateTime &startDateTime, long durationInSeconds)
Book time to a task.
Definition: karmstorage.cpp:1059
TQString addTask(const Task *task, const Task *parent)
Add this task from iCalendar file.
Definition: karmstorage.cpp:704
void startTimer(const Task *task)
Log the event that a timer has started for a task.
Definition: karmstorage.h:230
void stopTimer(const Task *task, TQDateTime when=TQDateTime::currentDateTime())
Log the event that the timer has stopped for this task.
Definition: karmstorage.cpp:1052
TQString report(TaskView *taskview, const ReportCriteria &rc)
Output a report based on contents of ReportCriteria.
Definition: karmstorage.cpp:873
TQValueList< HistoryEvent > getHistory(const TQDate &from, const TQDate &to)
Return a list of start/stop events for the given date range.
Definition: karmstorage.cpp:1153
void changeTime(const Task *task, const long deltaSeconds)
Log the change in a task's time.
Definition: karmstorage.cpp:1079
void addComment(const Task *task, const TQString &comment)
Log a new comment for this task.
Definition: karmstorage.cpp:758
Provide an interface to the configuration options for the program.
Definition: preferences.h:17