Rabbit Remote Control 0.1.0-bate8
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CSecurityLevel Class Reference

Security level. More...

#include <Stats.h>

Inheritance diagram for CSecurityLevel:
Inheritance graph
[legend]
Collaboration diagram for CSecurityLevel:
Collaboration graph
[legend]

Public Types

enum  Level {
  No = 0x8000 , Risk = 0x00 , Authentication = 0x01 , SecureChannel = 0x02 ,
  Proxy = 0x04 , Gateway = 0x08 , Redirect = 0x010 , SecureMask = Authentication | SecureChannel ,
  NormalMask = Proxy | Gateway | Redirect , RiskyMask = ~SecureMask
}
 

Signals

void sigSecurityLevel (Levels level)
 Triggered when the security level changes.
 

Public Member Functions

 CSecurityLevel (Levels level=Level::No, QObject *parent=nullptr)
 
virtual Levels GetLevel () const
 
virtual QString GetString () const
 
virtual QColor GetColor () const
 
virtual QString GetUnicodeIcon () const
 
virtual QIcon GetIcon () const
 

Static Public Member Functions

static QString GetString (const Levels &level)
 
static QString GetUnicodeIcon (const Levels &level)
 COperate::GetSecurityLevelUnicodeIcon.
 
static QIcon GetIcon (const Levels &level)
 
static QColor GetColor (const Levels &level)
 

Private Attributes

Levels m_Level
 

Detailed Description

Security level.

Definition at line 79 of file Stats.h.

Member Enumeration Documentation

◆ Level

enum CSecurityLevel::Level

Definition at line 83 of file Stats.h.

Constructor & Destructor Documentation

◆ CSecurityLevel()

CSecurityLevel::CSecurityLevel ( Levels  level = Level::No,
QObject *  parent = nullptr 
)

Definition at line 125 of file Stats.cpp.

◆ ~CSecurityLevel()

CSecurityLevel::~CSecurityLevel ( )

Definition at line 131 of file Stats.cpp.

Member Function Documentation

◆ GetColor() [1/2]

QColor CSecurityLevel::GetColor ( ) const
virtual

Definition at line 144 of file Stats.cpp.

◆ GetColor() [2/2]

QColor CSecurityLevel::GetColor ( const Levels &  level)
static

Definition at line 240 of file Stats.cpp.

◆ GetIcon() [1/2]

QIcon CSecurityLevel::GetIcon ( ) const
virtual

Definition at line 154 of file Stats.cpp.

◆ GetIcon() [2/2]

QIcon CSecurityLevel::GetIcon ( const Levels &  level)
static

Definition at line 251 of file Stats.cpp.

◆ GetLevel()

CSecurityLevel::Levels CSecurityLevel::GetLevel ( ) const
virtual

Definition at line 134 of file Stats.cpp.

◆ GetString() [1/2]

QString CSecurityLevel::GetString ( ) const
virtual

Definition at line 139 of file Stats.cpp.

◆ GetString() [2/2]

QString CSecurityLevel::GetString ( const Levels &  level)
static

Definition at line 159 of file Stats.cpp.

◆ GetUnicodeIcon() [1/2]

QString CSecurityLevel::GetUnicodeIcon ( ) const
virtual

Definition at line 149 of file Stats.cpp.

◆ GetUnicodeIcon() [2/2]

QString CSecurityLevel::GetUnicodeIcon ( const Levels &  level)
static

COperate::GetSecurityLevelUnicodeIcon.

Parameters
level
Returns
符号  Unicode 编码 说明 含义
🔓 U+1F513 开锁 未加密、无保护
🔐 U+1F510 带钥匙的锁(关闭) 安全(有保护)
🔒 U+1F512 闭锁 安全(已锁定)
🔏 U+1F50F 带笔的锁 隐私模式
U+26A0 警告 不安全警告
U+274C 红叉 错误、不安全
🛡 U+1F6E1 盾牌 有保护(安全)
🔴 U+1F534 红圈 危险、警告
🟡 U+1F7E1 黄圈 注意、谨慎
🟢 U+1F7E2 绿圈 安全

Definition at line 223 of file Stats.cpp.

Member Data Documentation

◆ m_Level

Levels CSecurityLevel::m_Level
private

Definition at line 121 of file Stats.h.


The documentation for this class was generated from the following files: