mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement push method
This commit is contained in:
parent
336ded6a76
commit
b3c00d29be
2 changed files with 25 additions and 6 deletions
|
|
@ -31,9 +31,20 @@ History::~History()
|
|||
|
||||
// Actions
|
||||
void History::push(
|
||||
const Glib::ustring & VALUE
|
||||
const Glib::ustring & REQUEST
|
||||
) {
|
||||
// @TODO
|
||||
if (memory.empty() || memory.back().request != REQUEST)
|
||||
{
|
||||
memory.push_back(
|
||||
{
|
||||
REQUEST,
|
||||
std::time(
|
||||
nullptr
|
||||
),
|
||||
true
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void History::refresh()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue