LibrePCB Developers Documentation
OnlineLibraryListWidgetItem Class Referencefinal

The OnlineLibraryListWidgetItem class. More...

#include <onlinelibrarylistwidgetitem.h>

Inherits QWidget.

+ Collaboration diagram for OnlineLibraryListWidgetItem:

Signals

void checkedChanged (bool checked)
 

Public Member Functions

 OnlineLibraryListWidgetItem ()=delete
 
 OnlineLibraryListWidgetItem (const OnlineLibraryListWidgetItem &other)=delete
 
 OnlineLibraryListWidgetItem (Workspace &ws, const QJsonObject &obj) noexcept
 
 ~OnlineLibraryListWidgetItem () noexcept
 
const tl::optional< Uuid > & getUuid () const noexcept
 
const QString & getName () const noexcept
 
const QSet< Uuid > & getDependencies () const noexcept
 
bool isChecked () const noexcept
 
void setChecked (bool checked) noexcept
 
void startDownloadIfSelected () noexcept
 
OnlineLibraryListWidgetItemoperator= (const OnlineLibraryListWidgetItem &rhs)=delete
 

Private Member Functions

void downloadFinished (bool success, const QString &errMsg) noexcept
 
void iconReceived (const QByteArray &data) noexcept
 
void updateInstalledStatus () noexcept
 

Private Attributes

WorkspacemWorkspace
 
QJsonObject mJsonObject
 
tl::optional< UuidmUuid
 
QString mName
 
tl::optional< VersionmVersion
 
bool mIsRecommended
 
QSet< UuidmDependencies
 
QScopedPointer< Ui::OnlineLibraryListWidgetItem > mUi
 
QScopedPointer< LibraryDownloadmLibraryDownload
 
bool mAutoCheck
 

Detailed Description

Constructor & Destructor Documentation

◆ OnlineLibraryListWidgetItem() [1/3]

◆ OnlineLibraryListWidgetItem() [2/3]

◆ OnlineLibraryListWidgetItem() [3/3]

OnlineLibraryListWidgetItem ( Workspace ws,
const QJsonObject &  obj 
)
noexcept
+ Here is the call graph for this function:

◆ ~OnlineLibraryListWidgetItem()

Member Function Documentation

◆ getUuid()

const tl::optional< Uuid > & getUuid ( ) const
inlinenoexcept

◆ getName()

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

◆ getDependencies()

const QSet< Uuid > & getDependencies ( ) const
inlinenoexcept

◆ isChecked()

bool isChecked ( ) const
noexcept

◆ setChecked()

void setChecked ( bool  checked)
noexcept
+ Here is the caller graph for this function:

◆ startDownloadIfSelected()

void startDownloadIfSelected ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

OnlineLibraryListWidgetItem & operator= ( const OnlineLibraryListWidgetItem rhs)
delete

◆ checkedChanged

void checkedChanged ( bool  checked)
signal
+ Here is the caller graph for this function:

◆ downloadFinished()

void downloadFinished ( bool  success,
const QString &  errMsg 
)
privatenoexcept
+ Here is the caller graph for this function:

◆ iconReceived()

void iconReceived ( const QByteArray &  data)
privatenoexcept
+ Here is the caller graph for this function:

◆ updateInstalledStatus()

void updateInstalledStatus ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

Workspace& mWorkspace
private

◆ mJsonObject

QJsonObject mJsonObject
private

◆ mUuid

tl::optional<Uuid> mUuid
private

◆ mName

QString mName
private

◆ mVersion

tl::optional<Version> mVersion
private

◆ mIsRecommended

bool mIsRecommended
private

◆ mDependencies

QSet<Uuid> mDependencies
private

◆ mUi

QScopedPointer<Ui::OnlineLibraryListWidgetItem> mUi
private

◆ mLibraryDownload

QScopedPointer<LibraryDownload> mLibraryDownload
private

◆ mAutoCheck

bool mAutoCheck
private

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