[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    kded and KGenericFactory
From:       Pupeno <pupeno () kde ! org>
Date:       2003-03-01 3:27:27
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I tried to use KGenericFactory to make the kded module but I couldn't make it 
work:
This is the constructor of the class: 

KTTSD::KTTSD(const QCString &obj) : KDEDModule(obj)

and this is what I tried:

typedef KGenericFactory<KTTSD, QCstring&> KTTSDFactory;
K_EXPORT_COMPONENT_FACTORY( kttsd, KTTSDFactory("kttsd") );

and then I modified the construtor to be:

KTTSD::KTTSD(const QCString &obj, const char*&, const QStringList&) : 
KDEDModule(obj)

but it didn't work giving me this error:

/usr/include/kde/kgenericfactory.tcc: In instantiation of 
`KDEPrivate::QWidgetInheritanceTest<QCString&>':
/usr/include/kde/kgenericfactory.tcc:136:   instantiated from 
`KDEPrivate::ConcreteFactory<KTTSD, QCString&>'
/usr/include/kde/kgenericfactory.h:170:   instantiated from `QObject* 
KGenericFactory<Product, ParentType>::createObject(QObject*, const char*, 
const char*, const QStringList&) [with Product = KTTSD, ParentType = 
QCString&]'
/usr/lib/qt3-gcc3.2/include/qstringlist.h:55:   instantiated from here
/usr/include/kde/kgenericfactory.tcc:136: forming pointer to reference type `
   QCString&'
/usr/include/kde/kgenericfactory.tcc:136: enumerator value for `Result' not
   integer constant
/usr/include/kde/kgenericfactory.tcc:70: forming pointer to reference type `
   QCString&'
/usr/include/kde/kgenericfactory.tcc: In static member function `static
   Product* KDEPrivate::ConcreteFactory<Product, ParentType>::create(QWidget*,
   const char*, QObject*, const char*, const QStringList&,
   KDEPrivate::Type2Type<QObject>) [with Product = KTTSD, ParentType =
   QCString&]':
/usr/include/kde/kgenericfactory.tcc:128:   instantiated from `static Product* 
KDEPrivate::ConcreteFactory<Product, ParentType>::create(QWidget*, const 
char*, QObject*, const char*, const char*, const QStringList&) [with Product 
= KTTSD, ParentType = QCString&]'
/usr/include/kde/kgenericfactory.h:170:   instantiated from `QObject* 
KGenericFactory<Product, ParentType>::createObject(QObject*, const char*, 
const char*, const QStringList&) [with Product = KTTSD, ParentType = 
QCString&]'
/usr/lib/qt3-gcc3.2/include/qstringlist.h:55:   instantiated from here
/usr/include/kde/kgenericfactory.tcc:160: forming pointer to reference type `
   QCString&'
/usr/include/kde/kgenericfactory.tcc:161: `p' undeclared (first use this
   function)
/usr/include/kde/kgenericfactory.tcc:161: (Each undeclared identifier is
   reported only once for each function it appears in.)
make: *** [kttsd.lo] Error 1

And here I'm lost, what can I do ? is it posible ?
- -- 
Pupeno: pupeno@kde.org
KDE Accessibility co-maintainer
http://accessibility.kde.org
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+YCihLr8z5XzmSDQRAn4JAJ992sL6w27lBdl4nx22tOF9BlME1ACg2MKh
BG9tJRD+gLNn81+WoMOwDoo=
=EShJ
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic