LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RepositoryLibraryListWidgetItem Class Referencefinal

The RepositoryLibraryListWidgetItem class. More...

#include <repositorylibrarylistwidgetitem.h>

Inherits QWidget.

+ Collaboration diagram for RepositoryLibraryListWidgetItem:

Signals

void checkedChanged (bool checked)
 
void libraryAdded (const FilePath &libDir, bool select)
 

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 updateInstalledStatus () 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
 

Private Attributes

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

Detailed Description

The RepositoryLibraryListWidgetItem class.

Author
ubruhin
Date
2016-09-25

Constructor & Destructor Documentation

RepositoryLibraryListWidgetItem ( workspace::Workspace ws,
const QJsonObject &  obj 
)
noexcept

+ Here is the call graph for this function:

Member Function Documentation

const tl::optional<Uuid>& getUuid ( ) const
inlinenoexcept
const QSet<Uuid>& getDependencies ( ) const
inlinenoexcept
bool isChecked ( ) const
noexcept
void setChecked ( bool  checked)
noexcept

+ Here is the caller graph for this function:

void updateInstalledStatus ( )
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void startDownloadIfSelected ( )
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void checkedChanged ( bool  checked)
signal

+ Here is the caller graph for this function:

void libraryAdded ( const FilePath libDir,
bool  select 
)
signal

+ Here is the caller graph for this function:

void downloadFinished ( bool  success,
const QString &  errMsg 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void iconReceived ( const QByteArray &  data)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

workspace::Workspace& mWorkspace
private
QJsonObject mJsonObject
private
tl::optional<Uuid> mUuid
private
tl::optional<Version> mVersion
private
bool mIsRecommended
private
QSet<Uuid> mDependencies
private
QScopedPointer<Ui::RepositoryLibraryListWidgetItem> mUi
private
QScopedPointer<LibraryDownload> mLibraryDownload
private

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