blob: 09ad0237b96f0a43efeb66e9d0bd0c945ccaeb09 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#include "dcevent.h"
DcEvent::DcEvent(QObject *parent)
: QObject{parent}
{
}
DcEvent::DcEvent(dc_event_t *event)
: m_event{event}
{
}
DcEvent::~DcEvent()
{
dc_event_unref(m_event);
}
int
DcEvent::getId()
{
return dc_event_get_id(m_event);
}
int
DcEvent::getData1Int()
{
return dc_event_get_data1_int(m_event);
}
int
DcEvent::getData2Int()
{
return dc_event_get_data2_int(m_event);
}
QString
DcEvent::getData2Str()
{
char *data2 = dc_event_get_data2_str(m_event);
QString result{data2};
dc_str_unref(data2);
return result;
}
uint32_t
DcEvent::getAccountId()
{
return dc_event_get_account_id(m_event);
}
|