added request.last_item ezc function

master
Tomasz Sowa 2 years ago
parent 619936c12e
commit 175dd17416

@ -55,10 +55,10 @@ Request::Request()
void Request::fields()
{
field(L"dirs", dir_tab);
field(L"is_item", is_item);
field(L"current_dir", &Request::current_dir);
field(L"", L"dirs", dir_tab);
field(L"", L"is_item", is_item);
field(L"", L"current_dir", &Request::current_dir);
field(L"", L"last_item", &Request::last_item_wrapper);
}
@ -395,6 +395,10 @@ void Request::current_dir(morm::Wrapper & wrapper)
}
void Request::last_item_wrapper(morm::Wrapper & wrapper)
{
wrapper.model = last_item;
}

@ -453,6 +453,7 @@ private:
void current_dir(morm::Wrapper & wrapper);
void last_item_wrapper(morm::Wrapper & wrapper);
MORM_MEMBER_FIELD(Request)

Loading…
Cancel
Save