diff -r 26645d81f48d -r cc28652e0254 traceservices/tracefw/ulogger/src/uloggerserver/uloggerserver.cpp --- a/traceservices/tracefw/ulogger/src/uloggerserver/uloggerserver.cpp Tue Aug 31 16:57:14 2010 +0300 +++ b/traceservices/tracefw/ulogger/src/uloggerserver/uloggerserver.cpp Wed Sep 01 12:39:58 2010 +0100 @@ -276,7 +276,7 @@ TInt ret= KErrNone; //check configuration file in user path (\\ulogger\\uloggerconfig.ini) - ret = GetInstalledInputPluginsL(activePluginsArray); + ret = GetInstalledInputPlugins(activePluginsArray); if(ret==KErrNone) { ret = KErrNotFound; @@ -334,7 +334,7 @@ return KErrNotFound; else { - TInt ret = GetValuesL(aMediaName,aListBuffer); + TInt ret = GetValues(aMediaName,aListBuffer); if(ret == KErrNotFound) //this error indicate that there is no section in config file, plug-in exists ret = KErrNone; return ret; @@ -347,7 +347,7 @@ Function to get values from the configuration file (i.e. for filters,plugin settings) This should leave with KErrNotFound if it cannot find the configuration file */ -TInt CULoggerServer::GetValuesL(const TDesC8 &aSectionName, RArray& aListBuffer) +TInt CULoggerServer::GetValues(const TDesC8 &aSectionName, RArray& aListBuffer) { TPtrC8 key; TPtrC8 val; @@ -386,7 +386,7 @@ @return KErrNone, if successful, otherwise one of the other system-wide error codes. */ -TInt CULoggerServer::SetActiveFilterL(RArray aCategory, TInt aFilterType) +TInt CULoggerServer::SetActiveFilter(RArray aCategory, TInt aFilterType) { TInt error = KErrNone; if(aFilterType == 1) @@ -490,7 +490,7 @@ @return KErrNone, if successful, otherwise one of the other system-wide error codes. */ -TInt CULoggerServer::SetBufferSizeL(TInt aSize) +TInt CULoggerServer::SetBufferSize(TInt aSize) { if(aSize > KMaxBufferSize || aSize < 1) return KErrArgument; @@ -532,7 +532,7 @@ @return KErrNone, if successful, otherwise one of the other system-wide error codes. */ -TInt CULoggerServer::SetDataNotificationSizeL(TInt aSize) +TInt CULoggerServer::SetDataNotificationSize(TInt aSize) { if(aSize > KMaxDnsSize || aSize < 0) return KErrArgument; @@ -644,7 +644,7 @@ RArray aValues; if(aFilterType == 1) { - ret = GetValuesL(KPrimaryFilterSection,aValues); + ret = GetValues(KPrimaryFilterSection,aValues); if(ret==KErrNone) { TInt i =0; @@ -664,7 +664,7 @@ } else if(aFilterType == 2) { - ret = GetValuesL(KSecondaryFilterSection,aValues); + ret = GetValues(KSecondaryFilterSection,aValues); if(ret==KErrNone) { TInt i =0; @@ -739,7 +739,7 @@ -TInt CULoggerServer::GetInstalledInputPluginsL(RArray& aListBuffer) +TInt CULoggerServer::GetInstalledInputPlugins(RArray& aListBuffer) { #if defined(__LIGHTLOGGER_ENABLED) && defined(__VERBOSE_MODE) __MARK_METHOD("CULoggerServer::GetInstalledControlPlugins") @@ -773,7 +773,7 @@ */ TInt CULoggerServer::GetActiveOutputPlugin(RArray& aListBuffer) { - TInt errCode = GetValuesL(KActiveSection,aListBuffer); + TInt errCode = GetValues(KActiveSection,aListBuffer); //plugins are received as, e.g. '1 uloggerfileplugin' (.ini file syntax) //we have to remove number from array for(TInt i=0; i& aListBuffer) { - return GetValuesL(KActiveControlSection,aListBuffer); + return GetValues(KActiveControlSection,aListBuffer); } /** @@ -884,7 +884,7 @@ if(iBtraceOpen == EFalse) { if(iIsBooting) - error = TraceSettingsOnBootL(); + error = TraceSettingsOnBoot(); else error = iTrace.Open(); @@ -1015,8 +1015,9 @@ Gets the Trace settings on boot @return none */ -TInt CULoggerServer::TraceSettingsOnBootL() +TInt CULoggerServer::TraceSettingsOnBoot() { + TInt trace = FALSE; RArray category; @@ -1026,9 +1027,9 @@ TInt bufferSize = iTrace.BufferSize(); //To get the buffer size set at boot if(bufferSize <= 0 && bufferSize > KMaxBufferSize) - SetBufferSizeL(KMaxBufferSize); //Update config + SetBufferSize(KMaxBufferSize); //Update config else - SetBufferSizeL(bufferSize); //Update config + SetBufferSize(bufferSize); //Update config for(TUint i=0; iCreatePackage((void*)result.Ptr(), result.Length()); @@ -1435,7 +1436,7 @@ TInt bufSize; TLex8 lex(aArguments[0]); if((errCode = lex.Val(bufSize)) == KErrNone) - errCode = SetBufferSizeL(bufSize); + errCode = SetBufferSize(bufSize); } else errCode = KErrArgument; @@ -1484,7 +1485,7 @@ TInt dns; TLex8 lex(aArguments[0]); if((errCode = lex.Val(dns)) == KErrNone) - errCode = SetDataNotificationSizeL(dns); + errCode = SetDataNotificationSize(dns); else errCode = KErrArgument; } @@ -1936,7 +1937,7 @@ #endif RArray tmpArray; - errCode = GetInstalledInputPluginsL(tmpArray); + errCode = GetInstalledInputPlugins(tmpArray); result.Num(errCode); data = inputData->CreatePackage((void*)result.Ptr(), result.Length()); @@ -2014,7 +2015,7 @@ TInt errCode = 0; CPlugin::TPluginInterface interfaceId; //assign filter value - interfaceId = (aFilter == EOutputPluginFilter ? MOutputPlugin::iInterfaceId : MInputPlugin::iInterfaceId); + aFilter==EOutputPluginFilter ? interfaceId=MOutputPlugin::iInterfaceId : interfaceId=MInputPlugin::iInterfaceId; //filter plugins TInt i=0; @@ -2055,7 +2056,7 @@ if(aPluginFilter == EOutputPluginFilter) GetInstalledOutputPlugins(pluginsArray); else if(aPluginFilter == EInputPluginFilter) - GetInstalledInputPluginsL(pluginsArray); + GetInstalledInputPlugins(pluginsArray); for(TInt i=0; i