mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-25 18:32:22 +00:00
30 lines
549 B
C++
30 lines
549 B
C++
#ifndef RULESET_H_INCLUDED
|
|
#define RULESET_H_INCLUDED
|
|
|
|
#include "def.h"
|
|
|
|
enum class RulesetType
|
|
{
|
|
SurgeRuleset,
|
|
QuantumultX,
|
|
ClashDomain,
|
|
ClashIpCidr,
|
|
ClashClassic
|
|
};
|
|
|
|
struct RulesetConfig
|
|
{
|
|
String Group;
|
|
//RulesetType Type = RulesetType::SurgeRuleset;
|
|
String Url;
|
|
Integer Interval = 86400;
|
|
bool operator==(const RulesetConfig &r) const
|
|
{
|
|
return Group == r.Group && Url == r.Url && Interval == r.Interval;
|
|
}
|
|
};
|
|
|
|
using RulesetConfigs = std::vector<RulesetConfig>;
|
|
|
|
#endif // RULESET_H_INCLUDED
|