LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

enum Severity
strong

Message severity type (higher numer = higher severity)

Enumerator
Hint 
Warning 
Error 

Constructor & Destructor Documentation

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

Member Function Documentation

Severity getSeverity ( ) const
inlinenoexcept
const QPixmap& getSeverityPixmap ( ) const
inlinenoexcept
const QString& getMessage ( ) const
inlinenoexcept
const QString& getDescription ( ) const
inlinenoexcept
T* as ( )
inlinenoexcept
const T* as ( ) const
inlinenoexcept
QPixmap getSeverityPixmap ( Severity  severity)
staticnoexcept
bool operator== ( const LibraryElementCheckMessage rhs) const
noexcept
bool operator!= ( const LibraryElementCheckMessage rhs) const
noexcept
bool operator< ( const LibraryElementCheckMessage rhs) const
noexcept

Member Data Documentation

Severity mSeverity
protected
QPixmap mSeverityPixmap
protected
QString mMessage
protected
QString mDescription
protected

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