LibrePCB Developers Documentation
RepositoryLibraryListWidgetItem Class Referencefinal

The RepositoryLibraryListWidgetItem class. More...

#include <repositorylibrarylistwidgetitem.h>

Inherits QWidget.

+ Collaboration diagram for RepositoryLibraryListWidgetItem:

Signals

void checkedChanged (bool checked)
 

Public Member Functions

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

Private Member Functions

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

Private Attributes

workspace::WorkspacemWorkspace
 
QJsonObject mJsonObject
 
tl::optional< UuidmUuid
 
tl::optional< VersionmVersion
 
bool mIsRecommended
 
QSet< UuidmDependencies
 
QScopedPointer< Ui::RepositoryLibraryListWidgetItem > mUi
 
QScopedPointer< LibraryDownloadmLibraryDownload
 

Detailed Description

Constructor & Destructor Documentation

◆ RepositoryLibraryListWidgetItem() [1/3]

◆ RepositoryLibraryListWidgetItem() [2/3]

◆ RepositoryLibraryListWidgetItem() [3/3]

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

◆ ~RepositoryLibraryListWidgetItem()

Member Function Documentation

◆ getUuid()

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

◆ 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=()

◆ 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 call graph for this function:
+ 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::Workspace& mWorkspace
private

◆ mJsonObject

QJsonObject mJsonObject
private

◆ mUuid

tl::optional<Uuid> mUuid
private

◆ mVersion

tl::optional<Version> mVersion
private

◆ mIsRecommended

bool mIsRecommended
private

◆ mDependencies

QSet<Uuid> mDependencies
private

◆ mUi

QScopedPointer<Ui::RepositoryLibraryListWidgetItem> mUi
private

◆ mLibraryDownload

QScopedPointer<LibraryDownload> mLibraryDownload
private

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