示例#1
0
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();
   }
}
示例#2
0
文件: wopi.cpp 项目: Klaim/falcon
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() );
   }
}