From 022222fca2224f5f41c6fc932cfdfc0313c8a8f0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 31 Dec 2023 14:34:28 +0100 Subject: [PATCH] Added Resource. --- sfw/object/resource.cpp | 8 ++++++++ sfw/object/resource.h | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sfw/object/resource.cpp create mode 100644 sfw/object/resource.h diff --git a/sfw/object/resource.cpp b/sfw/object/resource.cpp new file mode 100644 index 0000000..3cf06eb --- /dev/null +++ b/sfw/object/resource.cpp @@ -0,0 +1,8 @@ +#include "resource.h" + +Resource::Resource() : + Reference() { +} + +Resource::~Resource() { +} diff --git a/sfw/object/resource.h b/sfw/object/resource.h new file mode 100644 index 0000000..ccfc598 --- /dev/null +++ b/sfw/object/resource.h @@ -0,0 +1,20 @@ +#ifndef RESOURCE_H +#define RESOURCE_H + +#include "reference.h" + +#include "psignal.h" + +class Resource : public Reference { + SFW_OBJECT(Resource, Reference); + +public: + Signal changed; + + void emit_changed(); + + Resource(); + virtual ~Resource(); +}; + +#endif \ No newline at end of file