11#ifndef MGCONFITEM_STUB
22#define MGCONFITEM_STUB
33
4- #include " mgconfitem .h"
4+ #include " mdconfitem .h"
55#include < stubbase.h>
66
77
88// 1. DECLARE STUB
99// FIXME - stubgen is not yet finished
10- class MGConfItemStub : public StubBase {
10+ class MDConfItemStub : public StubBase {
1111 public:
12- virtual void MGConfItemConstructor (const QString &key, QObject *parent);
13- virtual void MGConfItemDestructor ();
12+ virtual void MDConfItemConstructor (const QString &key, QObject *parent);
13+ virtual void MDConfItemDestructor ();
1414 virtual QString key () const ;
1515 virtual QVariant value () const ;
1616 virtual QVariant value (const QVariant &def) const ;
@@ -19,75 +19,75 @@ class MGConfItemStub : public StubBase {
1919};
2020
2121// 2. IMPLEMENT STUB
22- void MGConfItemStub::MGConfItemConstructor (const QString &key, QObject *parent) {
22+ void MDConfItemStub::MDConfItemConstructor (const QString &key, QObject *parent) {
2323 Q_UNUSED (key);
2424 Q_UNUSED (parent);
2525
2626}
27- void MGConfItemStub::MGConfItemDestructor () {
27+ void MDConfItemStub::MDConfItemDestructor () {
2828
2929}
30- QString MGConfItemStub ::key () const {
30+ QString MDConfItemStub ::key () const {
3131 stubMethodEntered (" key" );
3232 return stubReturnValue<QString>(" key" );
3333}
3434
35- QVariant MGConfItemStub ::value () const {
35+ QVariant MDConfItemStub ::value () const {
3636 stubMethodEntered (" value" );
3737 return stubReturnValue<QVariant>(" value" );
3838}
3939
40- QVariant MGConfItemStub ::value (const QVariant &def) const {
40+ QVariant MDConfItemStub ::value (const QVariant &def) const {
4141 QList<ParameterBase*> params;
4242 params.append ( new Parameter<const QVariant & >(def));
4343 stubMethodEntered (" value" ,params);
4444 return stubReturnValue<QVariant>(" value" );
4545}
4646
47- void MGConfItemStub ::set (const QVariant &val) {
47+ void MDConfItemStub ::set (const QVariant &val) {
4848 QList<ParameterBase*> params;
4949 params.append ( new Parameter<const QVariant & >(val));
5050 stubMethodEntered (" set" ,params);
5151}
5252
53- void MGConfItemStub ::unset () {
53+ void MDConfItemStub ::unset () {
5454 stubMethodEntered (" unset" );
5555}
5656
5757
5858
5959// 3. CREATE A STUB INSTANCE
60- MGConfItemStub gDefaultMGConfItemStub ;
61- MGConfItemStub* gMGConfItemStub = &gDefaultMGConfItemStub ;
60+ MDConfItemStub gDefaultMDConfItemStub ;
61+ MDConfItemStub* gMDConfItemStub = &gDefaultMDConfItemStub ;
6262
6363
6464// 4. CREATE A PROXY WHICH CALLS THE STUB
65- MGConfItem::MGConfItem (const QString &key, QObject *parent) {
66- gMGConfItemStub -> MGConfItemConstructor (key, parent);
65+ MDConfItem::MDConfItem (const QString &key, QObject *parent) {
66+ gMDConfItemStub -> MDConfItemConstructor (key, parent);
6767}
6868
69- MGConfItem ::~MGConfItem () {
70- gMGConfItemStub -> MGConfItemDestructor ();
69+ MDConfItem ::~MDConfItem () {
70+ gMDConfItemStub -> MDConfItemDestructor ();
7171}
7272
73- QString MGConfItem ::key () const {
74- return gMGConfItemStub ->key ();
73+ QString MDConfItem ::key () const {
74+ return gMDConfItemStub ->key ();
7575}
7676
77- QVariant MGConfItem ::value () const {
78- return gMGConfItemStub ->value ();
77+ QVariant MDConfItem ::value () const {
78+ return gMDConfItemStub ->value ();
7979}
8080
81- QVariant MGConfItem ::value (const QVariant &def) const {
82- return gMGConfItemStub ->value (def);
81+ QVariant MDConfItem ::value (const QVariant &def) const {
82+ return gMDConfItemStub ->value (def);
8383}
8484
85- void MGConfItem ::set (const QVariant &val) {
86- gMGConfItemStub ->set (val);
85+ void MDConfItem ::set (const QVariant &val) {
86+ gMDConfItemStub ->set (val);
8787}
8888
89- void MGConfItem ::unset () {
90- gMGConfItemStub ->unset ();
89+ void MDConfItem ::unset () {
90+ gMDConfItemStub ->unset ();
9191}
9292
9393
0 commit comments