Redesign RSS subsystem

This commit is contained in:
Vladimir Golovnev (Glassez)
2017-03-07 16:10:42 +03:00
parent 090a2edc1a
commit 989a70fe60
64 changed files with 5116 additions and 4727 deletions

View File

@@ -32,22 +32,22 @@
class TriStateBool
{
public:
enum ValueType
{
Undefined = -1,
False = 0,
True = 1
};
static const TriStateBool Undefined;
static const TriStateBool False;
static const TriStateBool True;
TriStateBool();
TriStateBool(bool b);
TriStateBool(ValueType value);
TriStateBool() = default;
TriStateBool(const TriStateBool &other) = default;
operator ValueType() const;
operator bool() const;
explicit TriStateBool(int value);
explicit operator int() const;
TriStateBool &operator=(const TriStateBool &other) = default;
bool operator==(const TriStateBool &other) const;
bool operator!=(const TriStateBool &other) const;
private:
ValueType m_value;
int m_value = -1; // Undefined by default
};
#endif // TRISTATEBOOL_H