LibrePCB Developers Documentation
LibraryElementCheckMessage Class Reference

The LibraryElementCheckMessage class. More...

#include <libraryelementcheckmessage.h>

+ Inheritance diagram for LibraryElementCheckMessage:
+ Collaboration diagram for LibraryElementCheckMessage:

Public Types

enum  Severity
 Message severity type (higher numer = higher severity) More...
 

Public Member Functions

 LibraryElementCheckMessage ()=delete
 
Severity getSeverity () const noexcept
 
const QPixmap & getSeverityPixmap () const noexcept
 
const QString & getMessage () const noexcept
 
const QString & getDescription () const noexcept
 
template<typename T >
T * as () noexcept
 
template<typename T >
const T * as () const noexcept
 
bool operator== (const LibraryElementCheckMessage &rhs) const noexcept
 
bool operator!= (const LibraryElementCheckMessage &rhs) const noexcept
 
bool operator< (const LibraryElementCheckMessage &rhs) const noexcept
 

Static Public Member Functions

static QPixmap getSeverityPixmap (Severity severity) noexcept
 

Protected Member Functions

 LibraryElementCheckMessage (const LibraryElementCheckMessage &other) noexcept
 
 LibraryElementCheckMessage (Severity severity, const QString &msg, const QString &description) noexcept
 
virtual ~LibraryElementCheckMessage () noexcept
 

Protected Attributes

Severity mSeverity
 
QPixmap mSeverityPixmap
 
QString mMessage
 
QString mDescription
 

Detailed Description

Member Enumeration Documentation

◆ Severity

enum Severity
strong

Message severity type (higher numer = higher severity)

Enumerator
Hint 
Warning 
Error 

Constructor & Destructor Documentation

◆ LibraryElementCheckMessage() [1/3]

+ Here is the caller graph for this function:

◆ LibraryElementCheckMessage() [2/3]

LibraryElementCheckMessage ( const LibraryElementCheckMessage other)
protectednoexcept

◆ LibraryElementCheckMessage() [3/3]

LibraryElementCheckMessage ( Severity  severity,
const QString &  msg,
const QString &  description 
)
protectednoexcept

◆ ~LibraryElementCheckMessage()

~LibraryElementCheckMessage ( )
protectedvirtualnoexcept
+ Here is the caller graph for this function:

Member Function Documentation

◆ getSeverity()

Severity getSeverity ( ) const
inlinenoexcept

◆ getSeverityPixmap() [1/2]

const QPixmap& getSeverityPixmap ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMessage()

const QString& getMessage ( ) const
inlinenoexcept

◆ getDescription()

const QString& getDescription ( ) const
inlinenoexcept

◆ as() [1/2]

T* as ( )
inlinenoexcept

◆ as() [2/2]

const T* as ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ getSeverityPixmap() [2/2]

QPixmap getSeverityPixmap ( Severity  severity)
staticnoexcept

◆ operator==()

bool operator== ( const LibraryElementCheckMessage rhs) const
noexcept
+ Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const LibraryElementCheckMessage rhs) const
noexcept
+ Here is the caller graph for this function:

◆ operator<()

bool operator< ( const LibraryElementCheckMessage rhs) const
noexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mSeverity

Severity mSeverity
protected

◆ mSeverityPixmap

QPixmap mSeverityPixmap
protected

◆ mMessage

QString mMessage
protected

◆ mDescription

QString mDescription
protected

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