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

The FavoriteProjectsModel class. More...

#include <favoriteprojectsmodel.h>

Inherits QAbstractListModel.

+ Collaboration diagram for FavoriteProjectsModel:

Public Member Functions

 FavoriteProjectsModel ()=delete
 
 FavoriteProjectsModel (const FavoriteProjectsModel &other)=delete
 
 FavoriteProjectsModel (const Workspace &workspace) noexcept
 
 ~FavoriteProjectsModel () noexcept
 
bool isFavoriteProject (const FilePath &filepath) const noexcept
 
void addFavoriteProject (const FilePath &filepath) noexcept
 
void removeFavoriteProject (const FilePath &filepath) noexcept
 
void updateVisibleProjects () noexcept
 
FavoriteProjectsModeloperator= (const FavoriteProjectsModel &rhs)=delete
 

Private Member Functions

void save () noexcept
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 

Private Attributes

const WorkspacemWorkspace
 
QScopedPointer< SmartSExprFilemFile
 
QList< FilePathmAllProjects
 
QList< FilePathmVisibleProjects
 

Detailed Description

Constructor & Destructor Documentation

FavoriteProjectsModel ( const FavoriteProjectsModel other)
delete
FavoriteProjectsModel ( const Workspace workspace)
explicitnoexcept

+ Here is the call graph for this function:

~FavoriteProjectsModel ( )
noexcept

Member Function Documentation

bool isFavoriteProject ( const FilePath filepath) const
noexcept
void addFavoriteProject ( const FilePath filepath)
noexcept
void removeFavoriteProject ( const FilePath filepath)
noexcept
void updateVisibleProjects ( )
noexcept

+ Here is the call graph for this function:

FavoriteProjectsModel& operator= ( const FavoriteProjectsModel rhs)
delete
void save ( )
privatenoexcept

+ Here is the call graph for this function:

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
private
QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
private

Member Data Documentation

const Workspace& mWorkspace
private
QScopedPointer<SmartSExprFile> mFile
private
QList<FilePath> mAllProjects
private
QList<FilePath> mVisibleProjects
private

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