comparison: src/modelobject.h
src/modelobject.h
- changeset 3
- 55a55a9ec2c2
- parent 2
- 2bdc3ac5e77c
- child 4
- 68988ebc2a68
equal
deleted
inserted
replaced
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 }; |
|