Files
nekoray/db/Group.hpp
2023-07-24 13:58:28 +09:00

32 lines
766 B
C++

#pragma once
#include "main/NekoGui.hpp"
#include "ProxyEntity.hpp"
namespace NekoGui {
class Group : public JsonStore {
public:
int id = -1;
bool archive = false;
bool skip_auto_update = false;
QString name = "";
QString url = "";
QString info = "";
qint64 sub_last_update = 0;
int front_proxy_id = -1;
// list ui
bool manually_column_width = false;
QList<int> column_width;
QList<int> order;
Group();
// 按 id 顺序
[[nodiscard]] QList<std::shared_ptr<ProxyEntity>> Profiles() const;
// 按 显示 顺序
[[nodiscard]] QList<std::shared_ptr<ProxyEntity>> ProfilesWithOrder() const;
};
} // namespace NekoGui