blob: 6731dd3cde55d1139924deeca2695cb8ae80bdbb (
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
33
34
35
|
#include "apactor.h"
APActor::APActor() {}
APActor::APActor(const QString url) {
object_url = url;
}
const QString APActor::get_url() {
return object_url;
}
QString APActor::get_html_render(HtmlRenderDetails render_info) {
// TODO: could be made nicer with profile images
return object_url;
}
const QString APActor::get_plain_render() {
return object_url;
}
QString APActorList::get_html_render(HtmlRenderDetails render_info) {
// have something basic for the moment
QString text;
for (APActor elem : *this)
text.append(elem.get_plain_render() + ", ");
if (text.isEmpty())
text = "<em>(empty)</em>";
else
text.chop(2); // remove leftover ", "
return text;
}
|