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

The Repository class provides access to a LibrePCB API server. More...

#include <repository.h>

+ Inheritance diagram for Repository:
+ Collaboration diagram for Repository:

Signals

void libraryListReceived (const QJsonArray &libs)
 
void errorWhileFetchingLibraryList (const QString &errorMsg)
 

Public Member Functions

 Repository ()=delete
 
 Repository (const Repository &other) noexcept
 
 Repository (const QUrl &url) noexcept
 
 Repository (const SExpression &node)
 
 ~Repository () noexcept
 
bool isValid () const noexcept
 
const QUrl & getUrl () const noexcept
 
bool setUrl (const QUrl &url) noexcept
 
void requestLibraryList () const noexcept
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
Repositoryoperator= (const Repository &rhs)=delete
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Member Functions

void requestLibraryList (const QUrl &url) const noexcept
 
void requestedDataReceived (const QByteArray &data) noexcept
 

Private Attributes

QUrl mUrl
 

Additional Inherited Members

- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

Detailed Description

The Repository class provides access to a LibrePCB API server.

Author
ubruhin
Date
2016-08-10

Constructor & Destructor Documentation

Repository ( )
delete
Repository ( const Repository other)
explicitnoexcept
Repository ( const QUrl &  url)
explicitnoexcept
Repository ( const SExpression node)
explicit

+ Here is the call graph for this function:

~Repository ( )
noexcept

Member Function Documentation

bool isValid ( ) const
inlinenoexcept
const QUrl& getUrl ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

bool setUrl ( const QUrl &  url)
noexcept
void requestLibraryList ( ) const
noexcept

+ Here is the caller graph for this function:

void serialize ( SExpression root) const
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ Here is the call graph for this function:

Repository& operator= ( const Repository rhs)
delete
void libraryListReceived ( const QJsonArray &  libs)
signal

+ Here is the caller graph for this function:

void errorWhileFetchingLibraryList ( const QString &  errorMsg)
signal

+ Here is the caller graph for this function:

void requestLibraryList ( const QUrl &  url) const
privatenoexcept

+ Here is the call graph for this function:

void requestedDataReceived ( const QByteArray &  data)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

QUrl mUrl
private

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