summaryrefslogtreecommitdiff
path: root/include/resource.h
blob: ea4eda8381b49a4b713093ec1f2ab4d0b7744836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef RESOURCE_H
#define RESOURCE_H

#include <QString>

class Resource
{
public:
   Resource(const Resource &other);
   Resource();
   Resource &operator=(const Resource &other);

   ~Resource();

   QString type() const;
   void setType(const QString type);
   bool isOptional() const;
   void setOptional(bool resourceIsOptional=true);
   bool isShared() const;
   void setShared(bool shared=true);
   quint32 id() const;
   void setId(quint32 newId);

   bool operator==(const Resource &other);
private:
   QString name;
   bool optional;
   bool shared;
   quint32 identifier;
};

#endif