blob: 8f33411414866291a1740ac92115cf07937bd189 (
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
|
%{CPP_TEMPLATE}
#include "mainclass.h"
MainClass::MainClass()
: DCOPDemoIface(),
DCOPObject("mainclass"), /* this is the object name DCOP will expose */
m_intValue(0)
{
}
MainClass::~MainClass()
{
}
void MainClass::setStrVal(const QString & str) {
m_strValue = str;
}
void MainClass::setIntVal(int val) {
m_intValue = val;
}
QString MainClass::strVal() const {
return m_strValue;
}
int MainClass::intVal() const {
return m_intValue;
}
|