10 #ifndef YATISHDBSQLITE_H 11 #define YATISHDBSQLITE_H 13 #include <wx/listctrl.h> 61 bool ReadDates (
long, wxDateTime&, wxDateTime&);
65 bool RecordTimeslot (
long,
const wxDateTime&,
const wxDateTime&,
int,
int,
int);
75 #endif // YATISHDBSQLITE_H bool StopTimeslot()
Stops current timeslot.
long Activity(long)
Reads the activity_id in a record of yatish_timeslot.
wxDateTime First()
Obtains the minimum time in column start from currently selected rows of table yatish_timeslot.
int RunningTimeslots()
Determines the number n of unfinished timeslots.
void SetLastDay(const wxDateTime &)
Sets private member lastDay (for future SQL queries).
long LastActivity()
Reads the last activity_id in yatish_timeslot.
bool ReadDates(long, wxDateTime &, wxDateTime &)
Reads the start and stop fields of a yatish_timeslot record.
bool RecordActivity(long, int, int, int)
Modifies or creates a record in the yatish_activity table.
void AddToFilter(tableID, int)
Add a condition to the WHERE clause of FillList().
yatishDBsqlite()
Mainly connects to the yatish.sqlite database.
void SetLimit(bool b, int i)
wxString FilteredTotal()
Writes the total and average durations of currently viewed timeslots.
bool StartTimeslot(int, int, int)
Starts a new row in the timeslot table.
void SetFirstDay(const wxDateTime &)
Sets private member firstDay (for future SQL queries).
bool Delete(tableID, long)
Marks a local record for deletion.
bool RecordTimeslot(long, const wxDateTime &, const wxDateTime &, int, int, int)
Modifies or creates a record in the yatish_timeslot table.
Interacts with yatish tables in a SQLite database.
int ChoiceSelector(tableID, long)
Finds the proper index for selection in a wxChoice.
bool RecordProject(long, const wxString &, int)
Modifies or creates a record in the yatish_project table.
bool FillList(wxListCtrl *, tableID)
Fills a wxListCtrl.
bool RecordName(tableID, long, const wxString &)
Modifies or creates a record with only one field (called name).
wxDateTime Last()
Obtains the maximum time in column start from currently selected rows of table yatish_timeslot.
bool FillChoice(wxChoice *, tableID)
Fills a wxChoice.
wxString ReadName(tableID, long)
Reads a wxString from the name column.
Provides a few basic methods and (static) members to interact with yatish tables. ...