| 46 | } |
| 47 | |
| 48 | bool FilterConfiguration::Save(PCWSTR path) { |
| 49 | IniFile file(path); |
| 50 | CString text; |
| 51 | |
| 52 | int i = 1; |
| 53 | for (auto& filter : _filters) { |
| 54 | text.Format(L"Filter%d", i); |
| 55 | file.WriteString(text, L"Type", filter.Name.c_str()); |
| 56 | file.WriteInt(text, L"Action", (int)filter.Action); |
| 57 | file.WriteInt(text, L"DefaultAction", (int)filter.Action); |
| 58 | file.WriteBool(text, L"Enabled", filter.Enabled); |
| 59 | file.WriteString(text, L"Parameters", filter.Parameters.c_str()); |
| 60 | i++; |
| 61 | } |
| 62 | |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | bool FilterConfiguration::Load(PCWSTR path) { |
| 67 | IniFile file(path); |
nothing calls this directly
no test coverage detected