LibrePCB Developers Documentation
AssemblyVariant Class Referencefinal

The AssemblyVariant class. More...

#include <assemblyvariant.h>

+ Collaboration diagram for AssemblyVariant:

Public Types

enum class  Event
 
typedef Slot< AssemblyVariant, EventOnEditedSlot
 

Public Member Functions

 AssemblyVariant ()=delete
 
 AssemblyVariant (const AssemblyVariant &other) noexcept
 
 AssemblyVariant (const SExpression &node)
 
 AssemblyVariant (const Uuid &uuid, const FileProofName &name, const QString &description)
 
 ~AssemblyVariant () noexcept
 
const UuidgetUuid () const noexcept
 
const FileProofNamegetName () const noexcept
 
const QString & getDescription () const noexcept
 
QString getDisplayText () const noexcept
 
void setName (const FileProofName &name) noexcept
 
void setDescription (const QString &description) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
AssemblyVariantoperator= (const AssemblyVariant &rhs)=delete
 
bool operator== (const AssemblyVariant &rhs)=delete
 

Public Attributes

Signal< AssemblyVariant, EventonEdited
 

Private Attributes

Uuid mUuid
 
FileProofName mName
 
QString mDescription
 

Detailed Description

The AssemblyVariant class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
NameChanged 
DescriptionChanged 

Constructor & Destructor Documentation

◆ AssemblyVariant() [1/4]

AssemblyVariant ( )
delete

◆ AssemblyVariant() [2/4]

AssemblyVariant ( const AssemblyVariant other)
noexcept

◆ AssemblyVariant() [3/4]

AssemblyVariant ( const SExpression node)
explicit

◆ AssemblyVariant() [4/4]

AssemblyVariant ( const Uuid uuid,
const FileProofName name,
const QString &  description 
)

◆ ~AssemblyVariant()

~AssemblyVariant ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getName()

const FileProofName & getName ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDescription()

const QString & getDescription ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDisplayText()

QString getDisplayText ( ) const
noexcept

◆ setName()

void setName ( const FileProofName name)
noexcept

◆ setDescription()

void setDescription ( const QString &  description)
noexcept

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:

◆ operator=()

AssemblyVariant & operator= ( const AssemblyVariant rhs)
delete

◆ operator==()

bool operator== ( const AssemblyVariant rhs)
delete

Member Data Documentation

◆ onEdited

◆ mUuid

Uuid mUuid
private

◆ mName

FileProofName mName
private

◆ mDescription

QString mDescription
private

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