summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kdedcop/mainclass.cpp
blob: a5e0d6a567bc3876ece4830c0bbca6e4ed7a0a45 (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 TQString & str) {
    m_strValue = str;
}

void MainClass::setIntVal(int val) {
    m_intValue = val;
}

TQString MainClass::strVal() const {
    return m_strValue;
}

int MainClass::intVal() const {
    return m_intValue;
}