src/modelobject.h

changeset 2
2bdc3ac5e77c
equal deleted inserted replaced
1:51d14b0c68c0 2:2bdc3ac5e77c
1 #pragma once
2 #include <QString>
3 #include <QStringView>
4 #include "uuid.h"
5
6 class ModelObject
7 {
8 public:
9 ModelObject();
10 virtual ~ModelObject();
11
12 const Uuid id;
13 virtual void toString(QTextStream &out) = 0;
14 private:
15
16 };
17
18 class Comment : public ModelObject
19 {
20 Comment(QStringView text);
21
22 private:
23 QStringView storedText;
24 };

mercurial