mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-24 10:33:15 +08:00
33 lines
811 B
C++
33 lines
811 B
C++
#pragma once
|
|
|
|
#include "include/global/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;
|
|
int landing_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
|