20#ifndef LIBREPCB_CORE_RESOURCE_H
21#define LIBREPCB_CORE_RESOURCE_H
26#include "../serialization/serializableobjectlist.h"
27#include "../types/elementname.h"
63 const QUrl& url)
noexcept;
74 void setUrl(
const QUrl& url)
noexcept;
88 return !(*
this == rhs);
103 static constexpr const char*
tagname =
"resource";
The Resource class.
Definition: resource.h:45
void setUrl(const QUrl &url) noexcept
Definition: resource.cpp:77
QUrl mUrl
Definition: resource.h:95
void setName(const ElementName &name) noexcept
Definition: resource.cpp:63
Resource & operator=(const Resource &rhs) noexcept
Definition: resource.cpp:107
const ElementName & getName() const noexcept
Definition: resource.h:67
Event
Definition: resource.h:50
ElementName mName
Definition: resource.h:93
QString mMediaType
Definition: resource.h:94
void setMediaType(const QString &type) noexcept
Definition: resource.cpp:70
const QString & getMediaType() const noexcept
Definition: resource.h:68
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: resource.cpp:88
bool operator==(const Resource &rhs) const noexcept
Definition: resource.cpp:100
~Resource() noexcept
Definition: resource.cpp:56
const QUrl & getUrl() const noexcept
Definition: resource.h:69
Signal< Resource, Event > onEdited
Definition: resource.h:55
bool operator!=(const Resource &rhs) const noexcept
Definition: resource.h:87
Slot< Resource, Event > OnEditedSlot
Definition: resource.h:56
The SExpression class.
Definition: sexpression.h:69
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition: signalslot.h:170
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84
Definition: resource.h:102
static constexpr const char * tagname
Definition: resource.h:103