Simple service crash

Vitaly V. Ch vitaly.v.ch at gmail.com
Tue Nov 6 02:41:57 PST 2007


Thanks.

call qdbusxml2cpp in follow form fix problem:

qdbusxml2cpp -v -i sim300_dbus.h -l MainClass -a
sim300_dbus_adaptor.h:sim300_dbus_adaptor.cpp
com.i_zum.jukebox.sim300.xml


On Nov 6, 2007 10:33 AM, Thiago Macieira <thiago at kde.org> wrote:
> Em Monday 05 November 2007 17:44:56 Vitaly V. Ch escreveu:
> > Sim300Adaptor::get_money_cusd(QString&)':
> > sim300_dbus_adaptor.cpp:52: warning: control reaches end of non-void
> > function
> > sim300_dbus_adaptor.cpp: In member function 'QString
> > Sim300Adaptor::get_money_atd(QString&)':
> > sim300_dbus_adaptor.cpp:46: warning: control reaches end of non-void
> > function
> > sim300_dbus_adaptor.cpp: In member function 'QString
> > Sim300Adaptor::get_csq(uchar&, uchar&)':
> > sim300_dbus_adaptor.cpp:40: warning: control reaches end of non-void
> > function
>
> Fix these first. You forgot to edit the file.
>
> Adaptor files are meant to be modified if you don't use the -l classname
> option. I recommend that you do.
>
> If you do, change the command-line to generate the adaptor to be:
> $ qdbusxml2cpp -l MainClass -i sim300_dbus.h -a
> sim300_dbus_adaptor.h:sim300_dbus_adaptor.cpp com.i_zum.jukebox.sim300.xml
>
> Which results in the following errors when compiling:
> sim300_dbus.h: In member function 'QString Sim300Adaptor::get_csq(uchar&,
> uchar&)':
> sim300_dbus.h:41: error: 'QString MainClass::get_csq(uchar&, uchar&)' is
> private
> sim300_dbus_adaptor.cpp:39: error: within this context
> sim300_dbus.h: In member function 'QString
> Sim300Adaptor::get_money_atd(QString&)':
> sim300_dbus.h:42: error: 'QString MainClass::get_money_atd(QString&)' is
> private
> sim300_dbus_adaptor.cpp:45: error: within this context
> sim300_dbus.h: In member function 'QString
> Sim300Adaptor::get_money_cusd(QString&)':
> sim300_dbus.h:43: error: 'QString MainClass::get_money_cusd(QString&)' is
> private
> sim300_dbus_adaptor.cpp:51: error: within this context
>
>
> --
>
>  Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   PGP/GPG: 0x6EF45358; fingerprint:
>   E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>


More information about the dbus mailing list