contentstorage/casrv/casrvmgr/src/casrvmanager.cpp
changeset 94 dbb8300717f7
parent 85 7feec50967db
child 102 8b8b34fa9751
equal deleted inserted replaced
93:82b66994846c 94:dbb8300717f7
    83 
    83 
    84     LoadPluginsL();
    84     LoadPluginsL();
    85     }
    85     }
    86 
    86 
    87 // ---------------------------------------------------------------------------
    87 // ---------------------------------------------------------------------------
       
    88 //
       
    89 // ---------------------------------------------------------------------------
       
    90 //
       
    91 EXPORT_C TInt CCaSrvManager::LoadOperationErrorCodeL()
       
    92     {
       
    93     return iErrorCode;
       
    94     }
       
    95 
       
    96 // ---------------------------------------------------------------------------
    88 // CASpaPluginManager::LoadPluginsL
    97 // CASpaPluginManager::LoadPluginsL
    89 // Load plugins implementations
    98 // Load plugins implementations
    90 // ---------------------------------------------------------------------------
    99 // ---------------------------------------------------------------------------
    91 //
   100 //
    92 void CCaSrvManager::LoadPluginsL()
   101 void CCaSrvManager::LoadPluginsL()
   104     CCaSrvPlugin* plug;
   113     CCaSrvPlugin* plug;
   105     for( TInt i = 0; i < infoArray.Count(); i++ )
   114     for( TInt i = 0; i < infoArray.Count(); i++ )
   106         {
   115         {
   107         // Slice off first sub-section in the data section
   116         // Slice off first sub-section in the data section
   108         TUid current_plugin = infoArray[i]->ImplementationUid();
   117         TUid current_plugin = infoArray[i]->ImplementationUid();
   109         plug = CCaSrvPlugin::NewL( current_plugin, iPluginParams );
   118         TRAPD(err, plug = CCaSrvPlugin::NewL( current_plugin, iPluginParams ));
       
   119         if( KErrNone==iErrorCode )
       
   120         	{
       
   121         	// remember error code only if it wasn't set yet
       
   122         	iErrorCode = err;
       
   123         	}
   110         CleanupStack::PushL( plug );
   124         CleanupStack::PushL( plug );
   111         TInt32 key = current_plugin.iUid;
   125         TInt32 key = current_plugin.iUid;
   112         iPluginMap.InsertL( key, plug );
   126         iPluginMap.InsertL( key, plug );
   113         CleanupStack::Pop( plug );
   127         CleanupStack::Pop( plug );
   114         plug = NULL;
   128         plug = NULL;
   115         }
   129         }
   116     CleanupStack::PopAndDestroy( &infoArray );
   130     CleanupStack::PopAndDestroy( &infoArray );
   117     }
   131     }
   118 
   132 
       
   133 
   119 // End of file
   134 // End of file