-rw-r--r-- | libopie2/opiecore/oapplicationfactory.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libopie2/opiecore/oapplicationfactory.h b/libopie2/opiecore/oapplicationfactory.h index 8516565..8cb0ddd 100644 --- a/libopie2/opiecore/oapplicationfactory.h +++ b/libopie2/opiecore/oapplicationfactory.h @@ -45,24 +45,26 @@ ---- And KGenericFactor et all from Simon Hausmann <tronical@kde.org> */ #include <qstring.h> #include <qmetaobject.h> #include <qtopia/qcom.h> #include <qtopia/applicationinterface.h> +#include <opie2/odebug.h> + namespace Opie { namespace Core { struct NullType; template <class T, class U> struct Typelist { typedef T Head; typedef U Tail; }; template< typename T1 = NullType, typename T2 = NullType, typename T3 = NullType, @@ -119,26 +121,31 @@ struct OApplicationFactory : public ApplicationInterface { else return QS_FALSE; (*iface)->addRef(); return QS_OK; } /* * */ virtual QWidget *createMainWindow( const QString& appName, QWidget* parent, const char* name, Qt::WFlags f ) { if (appName == Product::appName() ) return new Product(parent, name, f ); - else + else{ + odebug << "Application Name = " << appName.latin1() << oendl; + odebug << "ProductName = " << Product::appName().latin1() << oendl; + odebug << "The application name is not equal to the product name!" << oendl; + odebug << "Please compare TARGET entry in the project file (*.pro) and the call of the OApplicationFactory< productName >" << oendl; return 0l; + } } virtual QStringList applications()const { QStringList list; list << Product::appName() ; return list; } Q_REFCOUNT }; |