~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/kdedcop/mainclass.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%{CPP_TEMPLATE}
2
 
 
3
 
#include "mainclass.h"
4
 
 
5
 
 
6
 
MainClass::MainClass()
7
 
 : DCOPDemoIface(),
8
 
   DCOPObject("mainclass"), /* this is the object name DCOP will expose */
9
 
   m_intValue(0)
10
 
{
11
 
}
12
 
 
13
 
MainClass::~MainClass()
14
 
{
15
 
}
16
 
 
17
 
void MainClass::setStrVal(const QString & str) {
18
 
    m_strValue = str;
19
 
}
20
 
 
21
 
void MainClass::setIntVal(int val) {
22
 
    m_intValue = val;
23
 
}
24
 
 
25
 
QString MainClass::strVal() const {
26
 
    return m_strValue;
27
 
}
28
 
 
29
 
int MainClass::intVal() const {
30
 
    return m_intValue;
31
 
}