LibrePCB Developers Documentation
|
#include <resource.h>
Public Types | |
enum class | Event |
typedef Slot< Resource, Event > | OnEditedSlot |
Public Member Functions | |
Resource ()=delete | |
Resource (const Resource &other) noexcept | |
Resource (const SExpression &node) | |
Resource (const ElementName &name, const QString &mimeType, const QUrl &url) noexcept | |
~Resource () noexcept | |
const ElementName & | getName () const noexcept |
const QString & | getMediaType () const noexcept |
const QUrl & | getUrl () const noexcept |
void | setName (const ElementName &name) noexcept |
void | setMediaType (const QString &type) noexcept |
void | setUrl (const QUrl &url) noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. | |
bool | operator== (const Resource &rhs) const noexcept |
bool | operator!= (const Resource &rhs) const noexcept |
Resource & | operator= (const Resource &rhs) noexcept |
Public Attributes | |
Signal< Resource, Event > | onEdited |
Private Attributes | |
ElementName | mName |
QString | mMediaType |
QUrl | mUrl |
The Resource class.
typedef Slot<Resource, Event> OnEditedSlot |
|
strong |
|
delete |
|
explicit |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |