void SessionManager::configFromModule( const Module* mod ) { AttribMap* attribs = mod->attributes(); if( attribs == 0 ) { return; } VarDef* value = attribs->findAttrib( FALCON_WOPI_SESSION_TO_ATTRIB ); if( value != 0 && value->isInteger() ) { m_nSessionTimeout = (uint32) value->asInteger(); } }
void CoreWopi::configFromModule( const Module* mod ) { AttribMap* attribs = mod->attributes(); if( attribs == 0 ) { return; } VarDef* value = attribs->findAttrib( FALCON_WOPI_PDATADIR_ATTRIB ); if( value != 0 && value->isString() ) { wopi()->dataLocation( *value->asString() ); } }