QScriptValue REcmaFont::getFileName (QScriptContext* context, QScriptEngine* engine) { //REcmaHelper::functionStart("REcmaFont::getFileName", context, engine); //qDebug() << "ECMAScript WRAPPER: REcmaFont::getFileName"; //QCoreApplication::processEvents(); QScriptValue result = engine->undefinedValue(); // public function: can be called from ECMA wrapper of ECMA shell: RFont* self = getSelf("getFileName", context); //Q_ASSERT(self!=NULL); if (self==NULL) { return REcmaHelper::throwError("self is NULL", context); } if( context->argumentCount() == 0 ){ // prepare arguments: // end of arguments // call C++ function: // return type 'QString' QString cppResult = self->getFileName(); // return type: QString // standard Type result = QScriptValue(cppResult); } else { return REcmaHelper::throwError("Wrong number/types of arguments for RFont.getFileName().", context); } //REcmaHelper::functionEnd("REcmaFont::getFileName", context, engine); return result; }