void MoeContentPlugin::startImpl(QString _loader) { QUrl loader = _loader.isEmpty() ? QUrl("loaders://native.js") : MoeUrl::locate(_loader, "loaders://"); engine()->setApplicationName(metaObject()->className()); MoeUrl::setDefaultContext(path()); { MoeResourceRequest::reset(); MoeResourceRequest* initRequest = new MoeResourceRequest(loader); connect(initRequest, SIGNAL(receivedString(QString)), engine(), SLOT(eval(QString))); connect(initRequest, SIGNAL(error(QString)), engine(), SLOT(abort(QString))); connect(initRequest, SIGNAL(completed(bool)), engine(), SLOT(deleteLater()), Qt::QueuedConnection); } }
void ValgrindPart::loadOutput() { QString fName = KFileDialog::getOpenFileName(QString::null, "*", 0, i18n("Open Valgrind Output")); if ( fName.isEmpty() ) return; QFile f( fName ); if ( !f.open( IO_ReadOnly ) ) { KMessageBox::sorry( 0, i18n("Could not open valgrind output: %1").arg(fName) ); return; } clear(); getActiveFiles(); QTextStream stream( &f ); while ( !stream.atEnd() ) { receivedString( stream.readLine() + "\n" ); } f.close(); }
void ValgrindPart::receivedStderr( KProcess*, char* msg, int len ) { receivedString( QString::fromLocal8Bit( msg, len ) ); }
void Telos2101Driver::callerIdData(int line,const char *pnum) { if(strlen(pnum)>0) { emit receivedString(id(),BusDriver::PhoneElement,line,QString(pnum)); } }