qpCliente = new GCLPrincipal(&cliente);
qpCliente = new qpcgui::GCLPrincipal(&cliente);
int main( int argc, char **argv ){	QPCApplication app(argc, argv);	QApplication::setStyle("plastik");		sbqpcliente::QPLOGGER.salvarLog(SBLogger::QP_INFO, SBLogger::CLIENTE, QObject::tr("Iniciando QPCliente"));		QString splash = sbqpcliente::GUIDATADIR + QString("qapital-splash-2004-08-31.png");		QPixmap pixmap( splash );    	QSplashScreen *pantalla = new QSplashScreen( pixmap );      	pantalla->show();	pantalla->message(QObject::tr("Iniciando aplicacion..."));	QFile configFile( sbqpcliente::CONFIGRC +  QString("QPCConfig.xml"));	QXmlInputSource sourceXML(configFile);	configFile.close();		QPCConfigHandler *handler = new QPCConfigHandler;	QXmlSimpleReader reader;    	reader.setContentHandler( handler );			if ( ! reader.parse( sourceXML ) )	{		std::cout << QObject::tr("Error en la configuracion del cliente") << std::endl;	}				ClnRed cliente ( handler->obtenerQPSHost(), handler->obtenerQPSPuerto() );	pantalla->message(QObject::tr("creando interfaz..."));	//GCLMdiMainWindow *qpCliente;	QMainWindow *qpCliente = 0;	switch ( int opt = handler->obtenerTipoDeInterfaz() )	{		case SBGui::MenuBased:		{			std::cout << "Iniciando MenuBased" << std::endl;			qpCliente = new GCLPrincipal(&cliente);		}		break;		case SBGui::MDIBased:		{			std::cout << "Iniciando MDIBased" << std::endl;			qpCliente = new GCLMdiMainWindow();		}		break;		default:		{			std::cout << "Tipo de interfaz desconocido " << opt << std::endl;			qpCliente = new GCLMdiMainWindow();		}		break;	}		app.setMainWidget( qpCliente );			QObject::connect( qApp, SIGNAL( lastWindowClosed() ), &cliente, SLOT( clnCerrarConexion() ) );		pantalla->finish( qpCliente );    	delete pantalla;		return app.exec();}