2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
2024-01-07 10:49:16 +01:00
|
|
|
#ifndef RESOURCE_H
|
|
|
|
#define RESOURCE_H
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
2024-01-07 10:49:16 +01:00
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
#include "object/reference.h"
|
|
|
|
|
|
|
|
#include "psignal.h"
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
class Resource : public Reference {
|
|
|
|
SFW_OBJECT(Resource, Reference);
|
|
|
|
|
|
|
|
public:
|
|
|
|
Signal changed;
|
|
|
|
|
|
|
|
void emit_changed();
|
|
|
|
|
|
|
|
virtual Error load(const String &path);
|
|
|
|
virtual Error save(const String &path);
|
|
|
|
|
|
|
|
Resource();
|
|
|
|
virtual ~Resource();
|
|
|
|
};
|
|
|
|
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
2024-01-07 10:49:16 +01:00
|
|
|
#endif
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|