fort/src/ui/conf/app.cpp

35 lines
893 B
C++
Raw Normal View History

2023-01-22 17:17:28 +00:00
#include "app.h"
2023-04-04 09:22:41 +00:00
2023-12-10 09:13:11 +00:00
bool App::isFlagsEqual(const App &o) const
2023-12-04 16:52:11 +00:00
{
2023-12-10 09:13:11 +00:00
return isBaseFlagsEqual(o) && isExtraFlagsEqual(o);
2023-12-04 16:52:11 +00:00
}
2023-12-10 09:13:11 +00:00
bool App::isBaseFlagsEqual(const App &o) const
2023-04-04 09:22:41 +00:00
{
2023-12-03 09:06:43 +00:00
return isWildcard == o.isWildcard && useGroupPerm == o.useGroupPerm
2023-12-10 09:13:11 +00:00
&& applyChild == o.applyChild && killChild == o.killChild && lanOnly == o.lanOnly;
}
bool App::isExtraFlagsEqual(const App &o) const
{
return logBlocked == o.logBlocked && logConn == o.logConn && blocked == o.blocked
&& killProcess == o.killProcess;
2023-04-04 09:22:41 +00:00
}
2023-12-10 09:13:11 +00:00
bool App::isOptionsEqual(const App &o) const
{
return isFlagsEqual(o) && groupIndex == o.groupIndex && appOriginPath == o.appOriginPath
&& appPath == o.appPath && endTime == o.endTime;
}
bool App::isNameEqual(const App &o) const
{
return appName == o.appName;
}
bool App::isProcWild() const
{
return applyChild || killChild || killProcess;
}