add event key code base

This commit is contained in:
chatlanin
2023-03-05 16:08:51 +03:00
parent f81f4e5e78
commit 3d6f90f0d9
4 changed files with 64 additions and 31 deletions

View File

@@ -2,11 +2,17 @@
namespace rrr
{
file::file(std::filesystem::path path_, file_type type_, bool is_link_) : id { ++hack::utils::counter<int>::id }, path { path_ }, type { type_ }, is_link { is_link_ } {}
file::file(std::filesystem::path path_, file_type type_, bool is_link_, bool is_hidden_) :
id{ ++hack::utils::counter<int>::id }, path{ path_ }, type{ type_ }, is_link{ is_link_ }, is_hidden{ is_hidden_ } {}
file::file(file&& f) : id { ++hack::utils::counter<int>::id }, path { std::move(f.path) }, type { std::move(f.type) }, is_link { std::move(f.is_link) }, is_mark { std::move(f.is_mark) } {}
file::file(file&& f) :
id{ ++hack::utils::counter<int>::id }, path{ std::move(f.path) },
type{ std::move(f.type) }, is_link{ std::move(f.is_link) },
is_hidden{ std::move(f.is_hidden) }, is_mark{ std::move(f.is_mark) } {}
file::file(const file& f) : id { ++hack::utils::counter<int>::id }, path { f.path }, type { f.type }, is_link { f.is_link }, is_mark { f.is_mark } {}
file::file(const file& f) :
id{ ++hack::utils::counter<int>::id }, path{ f.path }, type{ f.type }, is_link{ f.is_link },
is_hidden{ f.is_hidden }, is_mark{ f.is_mark } {}
file& file::operator=(const file& other)
{
@@ -15,6 +21,7 @@ namespace rrr
path = other.path;
type = other.type;
is_link = other.is_link;
is_hidden = other.is_hidden;
is_mark = other.is_mark;
id = ++hack::utils::counter<int>::id ;
return *this;