Changed KKJ class to use private member implementation
[ptas] / src / kkj.cpp
1 #include "kkj.h"
2 #include "kkj_p.h"
3
4 KKJPrivate::~KKJPrivate()
5 {
6 }
7
8 void KKJPrivate::init(unsigned int northing, unsigned int easting)
9 {
10     this->northing = northing;
11     this->easting = easting;
12 }
13
14
15 KKJ::KKJ(unsigned int northing, unsigned int easting) :
16         d_ptr(new KKJPrivate)
17 {
18     Q_D(KKJ);
19     d->q_ptr = this;
20     d->init(northing, easting);
21 }
22
23 KKJ::KKJ(KKJPrivate &dd, unsigned int northing, unsigned int easting) :
24         d_ptr(&dd)
25 {
26     Q_D(KKJ);
27     d->q_ptr = this;
28     d->init(northing, easting);
29 }
30
31 KKJ::~KKJ()
32 {
33 }
34
35 unsigned int KKJ::northing() const
36 {
37     Q_D(const KKJ);
38     return d->northing;
39 }
40
41 unsigned int KKJ::easting() const
42 {
43     Q_D(const KKJ);
44     return d->easting;
45 }