Rabbit Remote Control
0.1.0-bate6
Loading...
Searching...
No Matches
Src
ParameterCompone
ParameterFilter.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#pragma once
4
#include <QSet>
5
#include "Parameter.h"
6
7
class
CParameterFilter
:
public
CParameter
8
{
9
Q_OBJECT
10
11
public
:
12
explicit
CParameterFilter
(QObject *parent =
nullptr
,
13
const
QString& szPrefix = QString());
14
15
virtual
bool
contains(
const
QString& szKey);
16
17
int
AddKey(
const
QString& szKey);
18
int
RemoveKey(
const
QString& szKey);
19
int
Clear();
20
virtual
bool
isEmpty();
21
int
OnProcess(std::function<
int
(
const
QString& key)> cb,
bool
bErrExit =
false
);
22
23
private
:
24
QSet<QString> m_Key;
25
26
protected
:
27
virtual
int
OnLoad(QSettings &set)
override
;
28
virtual
int
OnSave(QSettings &set)
override
;
29
};
CParameterFilter
Definition
ParameterFilter.h:8
CParameter
Parameter interface.
Definition
Parameter.h:209
Author: Kang Lin (kl222@126.com)
Copyright (c) Kang Lin Studios All Rights Reserved