diff -r 8ab6687fb94c -r 3adadc800673 smsprotocols/smsstack/gsmu/src/Gsmuelem.cpp --- a/smsprotocols/smsstack/gsmu/src/Gsmuelem.cpp Thu May 27 14:05:07 2010 +0300 +++ b/smsprotocols/smsstack/gsmu/src/Gsmuelem.cpp Fri Jun 11 14:49:29 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -19,6 +19,12 @@ @file */ + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "GsmuelemTraces.h" +#endif + #include #include #include "Gsmumain.h" @@ -182,7 +188,7 @@ CSmsCommandData* CSmsCommandData::NewL(TSmsFirstOctet& aFirstOctet) { - LOGGSMU1("CSmsCommandData::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_NEWL_1, "CSmsCommandData::NewL()"); CSmsCommandData* commanddata=new(ELeave) CSmsCommandData(aFirstOctet); CleanupStack::PushL(commanddata); @@ -207,7 +213,7 @@ */ CSmsCommandData* CSmsCommandData::DuplicateL() const { - LOGGSMU1("CSmsCommandData::DuplicateL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_DUPLICATEL_1, "CSmsCommandData::DuplicateL()"); CSmsCommandData* smsCommandData = CSmsCommandData::NewL(iFirstOctet); CleanupStack::PushL(smsCommandData); @@ -228,7 +234,7 @@ CSmsInformationElement& CSmsCommandData::InformationElement(TInt aIndex) const { - LOGGSMU1("CSmsCommandData::InformationElement()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_INFORMATIONELEMENT_1, "CSmsCommandData::InformationElement()"); CSmsInformationElement* ie=iInformationElementArray[aIndex]; return *ie; @@ -240,7 +246,7 @@ // Ignore in code coverage - not used in SMS stack and not exported // but cannot be removed as impacts public header. BULLSEYE_OFF - LOGGSMU1("CSmsCommandData::InformationElementPtr()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_INFORMATIONELEMENTPTR_1, "CSmsCommandData::InformationElementPtr()"); return iInformationElementArray[aIndex]; BULLSEYE_RESTORE } @@ -248,7 +254,7 @@ TBool CSmsCommandData::InformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier, TInt& aIndex) const { - LOGGSMU1("CSmsCommandData::InformationElementIndex()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_INFORMATIONELEMENTINDEX_1, "CSmsCommandData::InformationElementIndex()"); TBool found=EFalse; TInt count=NumInformationElements(); @@ -264,7 +270,7 @@ void CSmsCommandData::AddInformationElementL(const TSmsId aIdentifier,const TDesC8& aData) { - LOGGSMU1("CSmsCommandData::AddInformationElementL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_ADDINFORMATIONELEMENTL_1, "CSmsCommandData::AddInformationElementL()"); // // Currently there is no restriction on how many instances of an information element can be @@ -284,7 +290,7 @@ void CSmsCommandData::RemoveInformationElement(TInt aIndex) { - LOGGSMU1("CSmsCommandData::RemoveInformationElement()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_REMOVEINFORMATIONELEMENT_1, "CSmsCommandData::RemoveInformationElement()"); // Since iInformationElementArray[aIndex] is removed from iInformationElementArray, no double free issue. // coverity[double_free] delete iInformationElementArray[aIndex]; @@ -300,7 +306,7 @@ TPtrC8 CSmsCommandData::Data() const { - LOGGSMU1("CSmsCommandData::Data()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_DATA_1, "CSmsCommandData::Data()"); TPtrC8 ptr; ptr.Set(iBuffer->Des()); @@ -310,7 +316,7 @@ void CSmsCommandData::SetDataL(const TDesC8& aData) { - LOGGSMU1("CSmsCommandData::SetDataL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_SETDATAL_1, "CSmsCommandData::SetDataL()"); TInt length=aData.Length(); __ASSERT_DEBUG(length<=KSmsMaxDataSize,Panic(KGsmuPanicCommandDataLengthTooLong)); @@ -324,7 +330,7 @@ TUint8* CSmsCommandData::EncodeL(TUint8* aPtr) const { - LOGGSMU1("CSmsCommandData::EncodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_ENCODEL_1, "CSmsCommandData::EncodeL()"); __ASSERT_DEBUG(iBuffer->Length()<=MaxDataLength(),Panic(KGsmuPanicCommandDataBufferTooLong)); TSmsOctet datalength=iBuffer->Length()+TSmsOctet(TotalHeaderLengthInUDLUnits()); @@ -349,7 +355,7 @@ void CSmsCommandData::DecodeL(TGsmuLex8& aPdu) { - LOGGSMU1("CSmsCommandData::DecodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_DECODEL_1, "CSmsCommandData::DecodeL()"); iInformationElementArray.ResetAndDestroy(); const TBool headerPresent=HeaderPresent(); @@ -417,7 +423,7 @@ TInt CSmsCommandData::HeaderLength() const { - LOGGSMU1("CSmsCommandData::HeaderLength()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSCOMMANDDATA_HEADERLENGTH_1, "CSmsCommandData::HeaderLength()"); TInt headerLength=0; for (TInt i=0; iDes(); } // CSmsInformationElement::Data @@ -3123,7 +3124,7 @@ */ EXPORT_C const TDesC8& CSmsInformationElement::Data() const { - LOGGSMU1("CSmsInformationElement::Data()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSINFORMATIONELEMENT_DATA1_1, "CSmsInformationElement::Data()"); return *iData; } // CSmsInformationElement::Data @@ -3143,7 +3144,7 @@ TUint8* CSmsInformationElement::EncodeL(TUint8* aPtr) const { - LOGGSMU1("CSmsInformationElement::EncodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSINFORMATIONELEMENT_ENCODEL_1, "CSmsInformationElement::EncodeL()"); TSmsOctet id=iIdentifier; aPtr=id.EncodeL(aPtr); @@ -3157,7 +3158,7 @@ void CSmsInformationElement::DecodeL(TGsmuLex8& aPdu) { - LOGGSMU1("CSmsInformationElement::DecodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSINFORMATIONELEMENT_DECODEL_1, "CSmsInformationElement::DecodeL()"); TSmsOctet id; id.DecodeL(aPdu); @@ -3264,7 +3265,7 @@ void CSmsInformationElement::ConstructL(const TDesC8& aData) { - LOGGSMU1("CSmsInformationElement::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSINFORMATIONELEMENT_CONSTRUCTL_1, "CSmsInformationElement::ConstructL()"); NewDataL(aData.Length()); iData->Des().Copy(aData); @@ -3273,7 +3274,7 @@ void CSmsInformationElement::NewDataL(TInt aLength) { - LOGGSMU1("CSmsInformationElement::NewDataL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSINFORMATIONELEMENT_NEWDATAL_1, "CSmsInformationElement::NewDataL()"); HBufC8* data=HBufC8::NewL(aLength); delete iData; @@ -3284,7 +3285,7 @@ TUint CSmsInformationElement::Length()const { - LOGGSMU1("CSmsInformationElement::Length()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSINFORMATIONELEMENT_LENGTH_1, "CSmsInformationElement::Length()"); return 2+iData->Length(); // 2 stands for IEID and IEDL } // CSmsInformationElement::Length @@ -3305,7 +3306,7 @@ */ TBool TSmsInformationElementCategories::TranslateCategoryToIndex(TInformationElementId aId, TInt& aIndex) { - LOGGSMU1("CSmsMessage::TranslateCategoryToIndex"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSMSINFORMATIONELEMENTCATEGORIES_TRANSLATECATEGORYTOINDEX_1, "CSmsMessage::TranslateCategoryToIndex"); TBool rc = ETrue; @@ -3384,7 +3385,7 @@ else { rc = EFalse; - LOGGSMU3("CSmsMessage::TranslateCategoryToIndex id = %d, found = %d", aId, rc); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSMSINFORMATIONELEMENTCATEGORIES_TRANSLATECATEGORYTOINDEX_2, "CSmsMessage::TranslateCategoryToIndex id = %d, found = %d", aId, rc); } return rc; } // TSmsInformationElementCategories::TranslateCategoryToIndex @@ -3405,7 +3406,7 @@ */ TBool TSmsInformationElementCategories::GetCategoryDefinition(TInformationElementId aId, TInformationElementCategory& aCategory) { - LOGGSMU1("TSmsInformationElementCategories::GetCategoryDefinition"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSMSINFORMATIONELEMENTCATEGORIES_GETCATEGORYDEFINITION_1, "TSmsInformationElementCategories::GetCategoryDefinition"); TInt index; if (TranslateCategoryToIndex(aId,index)) @@ -3414,7 +3415,7 @@ } else { - LOGGSMU2("TSmsInformationElementCategories::GetCategoryDefinition, Failure, aId = %d", aId); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TSMSINFORMATIONELEMENTCATEGORIES_GETCATEGORYDEFINITION_2, "TSmsInformationElementCategories::GetCategoryDefinition, Failure, aId = %d", aId); return EFalse; } @@ -3436,7 +3437,7 @@ CSmsUserData* CSmsUserData::NewL(CCnvCharacterSetConverter& aCharacterSetConverter,RFs& aFs,TSmsFirstOctet& aFirstOctet,const TSmsDataCodingScheme& aDataCodingScheme) { - LOGGSMU1("CSmsUserData::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_NEWL_1, "CSmsUserData::NewL()"); CSmsUserData* userdata=new(ELeave) CSmsUserData(aCharacterSetConverter,aFs,aFirstOctet,aDataCodingScheme); CleanupStack::PushL(userdata); @@ -3465,7 +3466,7 @@ */ EXPORT_C CSmsInformationElement& CSmsUserData::InformationElement(TInt aIndex) const { - LOGGSMU1("CSmsUserData::InformationElement()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_INFORMATIONELEMENT_1, "CSmsUserData::InformationElement()"); return *iInformationElementArray[aIndex]; } // CSmsUserData::InformationElement @@ -3473,7 +3474,7 @@ CSmsInformationElement*& CSmsUserData::InformationElementPtr(TInt aIndex) { - LOGGSMU1("CSmsUserData::InformationElementPtr()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_INFORMATIONELEMENTPTR_1, "CSmsUserData::InformationElementPtr()"); return iInformationElementArray[aIndex]; } // CSmsUserData::InformationElementPtr @@ -3493,7 +3494,7 @@ */ EXPORT_C TBool CSmsUserData::InformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier,TInt& aIndex) const { - LOGGSMU1("CSmsUserData::InformationElementIndex()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_INFORMATIONELEMENTINDEX_1, "CSmsUserData::InformationElementIndex()"); TBool found=EFalse; TInt count=NumInformationElements(); @@ -3521,7 +3522,7 @@ */ EXPORT_C TBool CSmsUserData::InformationElementLastIndex(CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier,TInt& aIndex) const { - LOGGSMU1("CSmsUserData::InformationElementLastIndex()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_INFORMATIONELEMENTLASTINDEX_1, "CSmsUserData::InformationElementLastIndex()"); TBool found=EFalse; TInt count=NumInformationElements(); @@ -3548,7 +3549,7 @@ */ void CSmsUserData::InformationElementIndicesL(CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier, CArrayFixFlat& aIndices) const { - LOGGSMU1("CSmsUserData::InformationElementIndicesL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_INFORMATIONELEMENTINDICESL_1, "CSmsUserData::InformationElementIndicesL()"); aIndices.Reset(); @@ -3571,7 +3572,7 @@ */ TBool CSmsUserData::EmsInformationElementWillFitL(CEmsInformationElement* aIe,CSmsEMSBufferSegmenter& aSeg,TUint& aCharsAddedToCurrentPDU) { - LOGGSMU1("CSmsUserData::EmsInformationElementWillFitL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_EMSINFORMATIONELEMENTWILLFITL_1, "CSmsUserData::EmsInformationElementWillFitL()"); // Before using an EmsInformationElement polymorphically as an SmsIE, // we need to make sure that the IE has been encoded @@ -3604,7 +3605,7 @@ */ TBool CSmsUserData::ControlInformationElementWillFitL(CSmsInformationElement* aIe) { - LOGGSMU1("CSmsUserData::ControlInformationElementWillFitL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_CONTROLINFORMATIONELEMENTWILLFITL_1, "CSmsUserData::ControlInformationElementWillFitL()"); if (aIe == NULL) { @@ -3667,7 +3668,7 @@ */ EXPORT_C void CSmsUserData::AddInformationElementL(TSmsId aIdentifier,const TDesC8& aData) { - LOGGSMU1("CSmsUserData::AddInformationElementL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_ADDINFORMATIONELEMENTL_1, "CSmsUserData::AddInformationElementL"); if ((aIdentifier >= 0x21) && (aIdentifier <= 0x23) || (aIdentifier >= 0x26) && (aIdentifier <= 0x6F) || @@ -3692,7 +3693,7 @@ */ void CSmsUserData::UpdateInformationElementArrayL(TSmsId aIdentifier,const TDesC8& aData) { - LOGGSMU1("CSmsUserData::UpdateInformationElementsL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_1, "CSmsUserData::UpdateInformationElementsL"); TInt count=NumInformationElements(); if(!CEmsFactory::Supported(aIdentifier)) @@ -3714,7 +3715,7 @@ { if (InformationElement(i).Identifier() == CSmsInformationElement::ESmsIEISpecialSMSMessageIndication) { - LOGGSMU3("CSmsUserData::AddInformationElementL1 category = %d, identifier = %d",category,aIdentifier); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_2, "CSmsUserData::AddInformationElementL1 category = %d, identifier = %d",category,aIdentifier); //if Msg type is the same, swap with the most recent value if ((InformationElement(i).Data()[0] & ((TUint8) EGsmSmsSpecialMessageIndicationTypeMask)) == @@ -3725,7 +3726,7 @@ } else { - LOGGSMU4("CSmsUserData::AddInformationElementL3 category = %d, identifier = %d, data = %S",category,aIdentifier, &aData); + OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_3, "CSmsUserData::AddInformationElementL3 category = %d, identifier = %d, data = %s",category,aIdentifier, aData); User::Leave(KErrArgument); } break; @@ -3734,18 +3735,18 @@ case TSmsInformationElementCategories::ECtrlMandatoryIn1stPDUOnly: case TSmsInformationElementCategories::ECtrlSingleInstanceOnly: { - LOGGSMU3("CSmsUserData::AddInformationElementL4 category = %d, identifier = %d",category,aIdentifier); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_4, "CSmsUserData::AddInformationElementL4 category = %d, identifier = %d",category,aIdentifier); User::Leave(KErrAlreadyExists); break; } case TSmsInformationElementCategories::ECtrlMultipleInstancesAllowed: { - LOGGSMU3("CSmsUserData::AddInformationElementL5 category = %d, identifier = %d",category,aIdentifier); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_5, "CSmsUserData::AddInformationElementL5 category = %d, identifier = %d",category,aIdentifier); break; } case TSmsInformationElementCategories::ECtrlMandatoryInEveryPDUButWithValueSpecificToPDU: { - LOGGSMU3("CSmsUserData::AddInformationElementL6 category = %d, identifier = %d",category,aIdentifier); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_6, "CSmsUserData::AddInformationElementL6 category = %d, identifier = %d",category,aIdentifier); User::Leave(KErrAlreadyExists); // currently the email header is updated in: // void CSmsMessage::DecodeBufferL(CArrayPtr& aSmsPDUArray,CSmsBufferBase& aBuffer) @@ -3753,7 +3754,7 @@ } default: { - LOGGSMU3("CSmsUserData::AddInformationElementL8 category = %d, identifier = %d",category,aIdentifier); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_UPDATEINFORMATIONELEMENTARRAYL_7, "CSmsUserData::AddInformationElementL8 category = %d, identifier = %d",category,aIdentifier); User::Leave(KErrNotSupported); break; } @@ -3772,7 +3773,7 @@ void CSmsUserData::AddEmsInformationElementL(CEmsInformationElement* aIe) { - LOGGSMU1("CSmsUserData::AddEmsInformationElementL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_ADDEMSINFORMATIONELEMENTL_1, "CSmsUserData::AddEmsInformationElementL()"); // Before using an EmsInformationElement polymorphically as an SmsIE, // we need to make sure that the IE has been encoded @@ -3790,7 +3791,7 @@ */ EXPORT_C void CSmsUserData::RemoveInformationElement(TInt aIndex) { - LOGGSMU1("CSmsUserData::RemoveInformationElement()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_REMOVEINFORMATIONELEMENT_1, "CSmsUserData::RemoveInformationElement()"); // Since iInformationElementArray[aIndex] pointer is removed from iInformationElementArray, there is no double free issue. // coverity[double_free] delete iInformationElementArray[aIndex]; @@ -3806,7 +3807,7 @@ TInt CSmsUserData::MaxPackedUDUnitsInBodyRemaining() const { - LOGGSMU1("CSmsUserData::MaxPackedUDUnitsInBodyRemaining()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_MAXPACKEDUDUNITSINBODYREMAINING_1, "CSmsUserData::MaxPackedUDUnitsInBodyRemaining()"); TInt totalHeaderLengthInUDLUnits=TotalHeaderLengthInUDLUnits(); TInt maxPackedUDUnitsInBody=0; @@ -3832,7 +3833,7 @@ TInt CSmsUserData::MaxPackedUDUnitsInBodyRemaining(TUint aIELen) const { - LOGGSMU1("CSmsUserData::MaxPackedUDUnitsInBodyRemaining()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_MAXPACKEDUDUNITSINBODYREMAINING1_1, "CSmsUserData::MaxPackedUDUnitsInBodyRemaining()"); TInt totalHeaderLengthInUDLUnits=TotalHeaderLengthInUDLUnits(aIELen); TInt maxPackedUDUnitsInBody=0; @@ -3861,7 +3862,7 @@ */ EXPORT_C TInt CSmsUserData::MaxBodyLengthInChars() const { - LOGGSMU1("CSmsUserData::MaxBodyLengthInChars()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_MAXBODYLENGTHINCHARS_1, "CSmsUserData::MaxBodyLengthInChars()"); TInt totalheaderlengthinudlunits=TotalHeaderLengthInUDLUnits(); TInt maxbodylengthinchars=0; @@ -3889,7 +3890,7 @@ break; } default: - LOGGSMU1("CSmsUserData::MaxBodyLengthInChars() WARNING! default case has been reached"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_MAXBODYLENGTHINCHARS_2, "CSmsUserData::MaxBodyLengthInChars() WARNING! default case has been reached"); break; } } @@ -3905,7 +3906,7 @@ */ EXPORT_C TPtrC8 CSmsUserData::Body() const { - LOGGSMU1("CSmsUserData::Body()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_BODY_1, "CSmsUserData::Body()"); return iBody->Des(); } // CSmsUserData::Body @@ -3919,7 +3920,7 @@ */ EXPORT_C void CSmsUserData::SetBodyL(const TDesC8& aBody) { - LOGGSMU1("CSmsUserData::SetBodyL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_SETBODYL_1, "CSmsUserData::SetBodyL()"); //Some tests fail with this line in, despite it being a valid condition! //__ASSERT_DEBUG(aBody.Length() <= MaxBodyLengthInChars(), User::Leave(KErrTooBig)); @@ -3931,7 +3932,7 @@ void CSmsUserData::AppendBodyL(const TDesC8& aBody) { - LOGGSMU1("CSmsUserData::AppendBodyL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_APPENDBODYL_1, "CSmsUserData::AppendBodyL()"); if (iBody) { @@ -3964,7 +3965,7 @@ */ EXPORT_C TBool CSmsUserData::IsSupportedL(TChar aChar) { - LOGGSMU1("CSmsUserData::IsSupportedL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_ISSUPPORTEDL_1, "CSmsUserData::IsSupportedL()"); CSmsAlphabetConverter* converter=CSmsAlphabetConverter::NewLC(iCharacterSetConverter,iFs,iDataCodingScheme.Alphabet(),IsBinaryData()); TBool result=converter->IsSupportedL(aChar); @@ -3991,7 +3992,7 @@ EXPORT_C TBool CSmsUserData::IsSupportedL(const TDesC& aDes, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstUnconvertibleCharacter) const { - LOGGSMU1("[1] CSmsUserData::IsSupportedL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_ISSUPPORTEDL1_1, "[1] CSmsUserData::IsSupportedL()"); CSmsAlphabetConverter* converter=CSmsAlphabetConverter::NewLC(iCharacterSetConverter,iFs,iDataCodingScheme.Alphabet(),IsBinaryData()); TBool result=converter->IsSupportedL(aDes, aNumberOfUnconvertibleCharacters, @@ -4028,7 +4029,7 @@ TInt& aNumberRequiringAlternativeEncoding, TInt& aIndexOfFirstUnconvertibleCharacter) const { - LOGGSMU1("[2] CSmsUserData::IsSupportedL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CSMSUSERDATA_ISSUPPORTEDL2_1, "[2] CSmsUserData::IsSupportedL()"); CSmsAlphabetConverter* converter=CSmsAlphabetConverter::NewLC(iCharacterSetConverter,iFs,iDataCodingScheme.Alphabet(),IsBinaryData()); TBool result=converter->IsSupportedL(aDes, aEncoding, @@ -4044,7 +4045,7 @@ TUint8* CSmsUserData::EncodeL(TUint8* aPtr) const { - LOGGSMU1("CSmsUserData::EncodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_ENCODEL_1, "CSmsUserData::EncodeL()"); __ASSERT_DEBUG(0<=MaxPackedUDUnitsInBodyRemaining(),Panic(KGsmuPanicUserDataBodyTooLong)); // Encode the user data length @@ -4078,7 +4079,7 @@ void CSmsUserData::DecodeL(TGsmuLex8& aPdu, TBool aAcceptTruncation) { - LOGGSMU1("CSmsUserData::DecodeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_DECODEL1_1, "CSmsUserData::DecodeL()"); // Reset current data iInformationElementArray.ResetAndDestroy(); @@ -4182,7 +4183,7 @@ void CSmsUserData::ConstructL() { - LOGGSMU1("CSmsUserData::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_CONSTRUCTL_1, "CSmsUserData::ConstructL()"); NewBodyL(0); } // CSmsUserData::ConstructL @@ -4196,7 +4197,7 @@ CSmsUserData* CSmsUserData::DuplicateL(TSmsFirstOctet& aFirstOctet, const TSmsDataCodingScheme& aDataCodingScheme) const { - LOGGSMU1("CSmsUserData::DuplicateL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_DUPLICATEL_1, "CSmsUserData::DuplicateL()"); CSmsUserData* userdata = CSmsUserData::NewL(iCharacterSetConverter, iFs, aFirstOctet, aDataCodingScheme); @@ -4230,7 +4231,7 @@ TInt CSmsUserData::HeaderLength() const { - LOGGSMU1("CSmsUserData::HeaderLength()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_HEADERLENGTH_1, "CSmsUserData::HeaderLength()"); TInt numinformationelements=NumInformationElements(); TInt headerlength=0; @@ -4242,7 +4243,7 @@ TInt CSmsUserData::TotalHeaderLengthInUDLUnits() const { - LOGGSMU1("CSmsUserData::TotalHeaderLengthInUDLUnits()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_TOTALHEADERLENGTHINUDLUNITS_1, "CSmsUserData::TotalHeaderLengthInUDLUnits()"); TInt totalheaderlengthinudlunits=0; if (iInformationElementArray.Count()>0) @@ -4268,7 +4269,7 @@ break; } default: - LOGGSMU1("CSmsUserData::TotalHeaderLengthInUDLUnits() WARNING default case has been reached"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_TOTALHEADERLENGTHINUDLUNITS_2, "CSmsUserData::TotalHeaderLengthInUDLUnits() WARNING default case has been reached"); break; } } @@ -4279,7 +4280,7 @@ TInt CSmsUserData::TotalHeaderLengthInUDLUnits(TInt aIElen) const { - LOGGSMU1("CSmsUserData::TotalHeaderLengthInUDLUnits()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_TOTALHEADERLENGTHINUDLUNITS1_1, "CSmsUserData::TotalHeaderLengthInUDLUnits()"); TInt totalheaderlengthinudlunits=0; TInt totalheaderlength=aIElen; @@ -4318,7 +4319,7 @@ TInt CSmsUserData::BodyLengthInUDLUnits() const { - LOGGSMU1("CSmsUserData::BodyLengthInUDLUnits()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_BODYLENGTHINUDLUNITS_1, "CSmsUserData::BodyLengthInUDLUnits()"); return iBody->Des().Length(); } // CSmsUserData::BodyLengthInUDLUnits @@ -4326,7 +4327,7 @@ void CSmsUserData::NewBodyL(TInt aLength) { - LOGGSMU1("CSmsUserData::NewBodyL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_NEWBODYL_1, "CSmsUserData::NewBodyL()"); HBufC8* body=HBufC8::NewL(aLength); @@ -4339,7 +4340,7 @@ TBool CSmsUserData::HeaderPresent() const { - LOGGSMU1("CSmsUserData::HeaderPresent()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_HEADERPRESENT_1, "CSmsUserData::HeaderPresent()"); return (iFirstOctet&TSmsFirstOctet::ESmsUDHIMask)==TSmsFirstOctet::ESmsUDHIHeaderPresent; } // CSmsUserData::HeaderPresent @@ -4347,7 +4348,7 @@ void CSmsUserData::SetHeaderPresent(TBool aHeaderPresent) { - LOGGSMU1("CSmsUserData::SetHeaderPresent()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_SETHEADERPRESENT_1, "CSmsUserData::SetHeaderPresent()"); iFirstOctet=aHeaderPresent? (iFirstOctet&(~TSmsFirstOctet::ESmsUDHIMask))|TSmsFirstOctet::ESmsUDHIHeaderPresent: (iFirstOctet&(~TSmsFirstOctet::ESmsUDHIMask))|TSmsFirstOctet::ESmsUDHIHeaderNotPresent; } // CSmsUserData::SetHeaderPresent @@ -4355,7 +4356,7 @@ TBool CSmsUserData::IsBinaryData() const { - LOGGSMU1("CSmsUserData::IsBinaryData()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSMSUSERDATA_ISBINARYDATA_1, "CSmsUserData::IsBinaryData()"); TInt index=0; return (iDataCodingScheme.TextCompressed()) || @@ -4377,7 +4378,7 @@ */ EXPORT_C void TGsmSmsTypeOfAddress::ConvertToETelMM(NMobilePhone::TMobileTON& aTon,NMobilePhone::TMobileNPI& aNpi) const { - LOGGSMU1("TGsmSmsTypeOfAddress::ConvertToETelMM()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TGSMSMSTYPEOFADDRESS_CONVERTTOETELMM_1, "TGsmSmsTypeOfAddress::ConvertToETelMM()"); switch (TON()) { @@ -4473,7 +4474,7 @@ */ EXPORT_C void TGsmSmsTypeOfAddress::SetFromETelMM(NMobilePhone::TMobileTON aTon,NMobilePhone::TMobileNPI aNpi) { - LOGGSMU1("TGsmSmsTypeOfAddress::SetFromETelMM()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TGSMSMSTYPEOFADDRESS_SETFROMETELMM_1, "TGsmSmsTypeOfAddress::SetFromETelMM()"); switch (aTon) { @@ -4571,7 +4572,7 @@ */ EXPORT_C TVoiceMailInfoType CEnhancedVoiceMailBoxInformation::Type() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::Type()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_TYPE_1, "CEnhancedVoiceMailBoxInformation::Type()"); return iType; } // CEnhancedVoiceMailBoxInformation::Type @@ -4589,7 +4590,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetProfile(TSmsMessageProfileType aProfile) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetProfile()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETPROFILE_1, "CEnhancedVoiceMailBoxInformation::SetProfile()"); iProfile = aProfile; } // CEnhancedVoiceMailBoxInformation::SetProfile @@ -4607,7 +4608,7 @@ */ EXPORT_C TSmsMessageProfileType CEnhancedVoiceMailBoxInformation::Profile() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::Profile()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_PROFILE_1, "CEnhancedVoiceMailBoxInformation::Profile()"); return iProfile; } // CEnhancedVoiceMailBoxInformation::Profile @@ -4626,7 +4627,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetStorage(TBool aIsStored) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetStorage()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETSTORAGE_1, "CEnhancedVoiceMailBoxInformation::SetStorage()"); iStorage = aIsStored; } // CEnhancedVoiceMailBoxInformation::SetStorage @@ -4645,7 +4646,7 @@ */ EXPORT_C TBool CEnhancedVoiceMailBoxInformation::Store() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::Store()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_STORE_1, "CEnhancedVoiceMailBoxInformation::Store()"); return iStorage; } // CEnhancedVoiceMailBoxInformation::Store @@ -4664,7 +4665,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetAlmostMaximumCapacity(TBool aIsAlmostFull) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetAlmostMaximumCapacity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETALMOSTMAXIMUMCAPACITY_1, "CEnhancedVoiceMailBoxInformation::SetAlmostMaximumCapacity()"); iAlmostFull = aIsAlmostFull; } // CEnhancedVoiceMailBoxInformation::SetAlmostMaximumCapacity @@ -4683,7 +4684,7 @@ */ EXPORT_C TBool CEnhancedVoiceMailBoxInformation::AlmostMaximumCapacity() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::AlmostMaximumCapacity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_ALMOSTMAXIMUMCAPACITY_1, "CEnhancedVoiceMailBoxInformation::AlmostMaximumCapacity()"); return iAlmostFull; } // CEnhancedVoiceMailBoxInformation::AlmostMaximumCapacity @@ -4702,7 +4703,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetMaximumCapacity(TBool aIsFull) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetMaximumCapacity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETMAXIMUMCAPACITY_1, "CEnhancedVoiceMailBoxInformation::SetMaximumCapacity()"); iFull = aIsFull; } // CEnhancedVoiceMailBoxInformation::SetMaximumCapacity @@ -4721,7 +4722,7 @@ */ EXPORT_C TBool CEnhancedVoiceMailBoxInformation::MaximumCapacity() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::MaximumCapacity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_MAXIMUMCAPACITY_1, "CEnhancedVoiceMailBoxInformation::MaximumCapacity()"); return iFull; } // CEnhancedVoiceMailBoxInformation::MaximumCapacity @@ -4740,7 +4741,7 @@ */ EXPORT_C TBool CEnhancedVoiceMailBoxInformation::ExtensionIndicator() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::ExtensionIndicator()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_EXTENSIONINDICATOR_1, "CEnhancedVoiceMailBoxInformation::ExtensionIndicator()"); return iExtensionIndicator; } // CEnhancedVoiceMailBoxInformation::ExtensionIndicator @@ -4748,7 +4749,7 @@ void CEnhancedVoiceMailBoxInformation::NewBufferL(TInt aLength) { - LOGGSMU2("CEnhancedVoiceMailBoxInformation::NewBufferL, length = %d",aLength); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_NEWBUFFERL_1, "CEnhancedVoiceMailBoxInformation::NewBufferL, length = %d",aLength); HBufC* buffer=HBufC::NewL(aLength); delete iAccessAddress; @@ -4770,7 +4771,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetAccessAddressL(const TDesC& aAddress) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetAccessAddressL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETACCESSADDRESSL_1, "CEnhancedVoiceMailBoxInformation::SetAccessAddressL()"); TInt length=aAddress.Length(); NewBufferL(length); @@ -4793,7 +4794,7 @@ */ EXPORT_C TPtrC CEnhancedVoiceMailBoxInformation::AccessAddress() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::AccessAddress()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_ACCESSADDRESS_1, "CEnhancedVoiceMailBoxInformation::AccessAddress()"); TPtrC ptr; if (iAccessAddress) @@ -4814,7 +4815,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetParsedAccessAddressL(const TGsmSmsTelNumber& aParsedAddress) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetParsedAccessAddressL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETPARSEDACCESSADDRESSL_1, "CEnhancedVoiceMailBoxInformation::SetParsedAccessAddressL()"); iTypeOfAddress=aParsedAddress.iTypeOfAddress; DoSetParsedAddressL(aParsedAddress.iTelNumber); @@ -4833,7 +4834,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::ParsedAccessAddress(TGsmSmsTelNumber& aParsedAddress) const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::ParsedAccessAddress()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_PARSEDACCESSADDRESS_1, "CEnhancedVoiceMailBoxInformation::ParsedAccessAddress()"); aParsedAddress.iTypeOfAddress = iTypeOfAddress; @@ -4869,7 +4870,7 @@ void CEnhancedVoiceMailBoxInformation::DoSetParsedAddressL(const TDesC& aAddress) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::DoSetParsedAddressL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_DOSETPARSEDADDRESSL_1, "CEnhancedVoiceMailBoxInformation::DoSetParsedAddressL()"); TInt length=aAddress.Length(); if ((iTypeOfAddress.TON()==EGsmSmsTONInternationalNumber) && @@ -4900,7 +4901,7 @@ */ EXPORT_C void CEnhancedVoiceMailBoxInformation::SetNumberOfVoiceMessages(TUint8 aNumber) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::SetNumberOfVoiceMessages()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_SETNUMBEROFVOICEMESSAGES_1, "CEnhancedVoiceMailBoxInformation::SetNumberOfVoiceMessages()"); iNumberOfVoiceMessages=aNumber; } // CEnhancedVoiceMailBoxInformation::SetNumberOfVoiceMessages @@ -4918,7 +4919,7 @@ */ EXPORT_C TUint8 CEnhancedVoiceMailBoxInformation::NumberOfVoiceMessages() const { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::NumberOfVoiceMessages()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILBOXINFORMATION_NUMBEROFVOICEMESSAGES_1, "CEnhancedVoiceMailBoxInformation::NumberOfVoiceMessages()"); return iNumberOfVoiceMessages; } // CEnhancedVoiceMailBoxInformation::NumberOfVoiceMessages @@ -4933,7 +4934,7 @@ ((((TUint8) iFull) & EMask1Bit ) << 6) + (((TUint8) iExtensionIndicator ) << 7); - LOGGSMU2("CEnhancedVoiceMailBoxInformation::EncodeL 1st byte = %d",*aPtr); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_ENCODEL_1, "CEnhancedVoiceMailBoxInformation::EncodeL 1st byte = %d",*aPtr); aPtr++; // Create an address object to encode the mail box access address into the @@ -4967,7 +4968,7 @@ iFull = (TBool) ((Byte1 >> 6) & EMask1Bit); iExtensionIndicator = (TBool) ((Byte1 >> 7) & EMask1Bit); - LOGGSMU2("CEnhancedVoiceMailBoxInformation::DecodeL 1st byte = %d", Byte1); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_DECODEL_1, "CEnhancedVoiceMailBoxInformation::DecodeL 1st byte = %d", Byte1); // Create an address object to deccode the mail box access address from the // format required by 23.040 v6.5.0 section 9.1.2.5. @@ -5012,13 +5013,13 @@ CleanupStack::PopAndDestroy(decodedAddress); iNumberOfVoiceMessages = aVoiceMailInfo.GetL(); - LOGGSMU2("CEnhancedVoiceMailBoxInformation::DecodeL iNumberOfVoiceMessages = %d", iNumberOfVoiceMessages); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_DECODEL_2, "CEnhancedVoiceMailBoxInformation::DecodeL iNumberOfVoiceMessages = %d", iNumberOfVoiceMessages); } // CEnhancedVoiceMailBoxInformation::DecodeL CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation() { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_CTOR_1, "CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation()"); // Consider changing this over to a Panic. iType = EGsmSmsVoiceMailNotification; @@ -5034,7 +5035,7 @@ CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation(TVoiceMailInfoType aTVoiceMailInfoType) { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_CTOR1_1, "CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation()"); iType = aTVoiceMailInfoType; iOctet1Bit1 = EFalse; @@ -5059,7 +5060,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_CTOR2_1, "CEnhancedVoiceMailBoxInformation::CEnhancedVoiceMailBoxInformation"); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -5076,7 +5077,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailBoxInformation::operator=="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_OPERATOR_1, "CEnhancedVoiceMailBoxInformation::operator=="); Panic(KGsmuPanicMethodBodyNotImplemented); return EFalse; BULLSEYE_RESTORE @@ -5094,14 +5095,14 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailBoxInformation::operator="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_OPERATOR1_1, "CEnhancedVoiceMailBoxInformation::operator="); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } void CEnhancedVoiceMailBoxInformation::ConstructL() { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_CONSTRUCTL_1, "CEnhancedVoiceMailBoxInformation::ConstructL()"); NewBufferL(0); } // CEnhancedVoiceMailBoxInformation::ConstructL @@ -5109,14 +5110,14 @@ CEnhancedVoiceMailBoxInformation::~CEnhancedVoiceMailBoxInformation() { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::~CEnhancedVoiceMailBoxInformation"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_DTOR_1, "CEnhancedVoiceMailBoxInformation::~CEnhancedVoiceMailBoxInformation"); delete iAccessAddress; } // CEnhancedVoiceMailBoxInformation::ConstructL CEnhancedVoiceMailBoxInformation* CEnhancedVoiceMailBoxInformation::NewL() { - LOGGSMU1("CEnhancedVoiceMailBoxInformation::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILBOXINFORMATION_NEWL_1, "CEnhancedVoiceMailBoxInformation::NewL()"); CEnhancedVoiceMailBoxInformation* aCEnhancedVoiceMailBoxInformation=new(ELeave) CEnhancedVoiceMailBoxInformation(); CleanupStack::PushL(aCEnhancedVoiceMailBoxInformation); @@ -5138,7 +5139,7 @@ */ EXPORT_C void CVoiceMailNotification::SetMessageId(TUint16 aMessageId) { - LOGGSMU1("CVoiceMailNotification::SetMessageId()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETMESSAGEID_1, "CVoiceMailNotification::SetMessageId()"); iMessageId = aMessageId; } // CVoiceMailNotification::SetMessageId @@ -5156,7 +5157,7 @@ */ EXPORT_C TUint16 CVoiceMailNotification::MessageId() const { - LOGGSMU1("CVoiceMailNotification::MessageId()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_MESSAGEID_1, "CVoiceMailNotification::MessageId()"); return iMessageId; } // CVoiceMailNotification::MessageId @@ -5174,7 +5175,7 @@ */ EXPORT_C void CVoiceMailNotification::SetMessageLength(TUint8 aLength) { - LOGGSMU1("CVoiceMailNotification::SetMessageLength()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETMESSAGELENGTH_1, "CVoiceMailNotification::SetMessageLength()"); iMessageLength=aLength; } // CVoiceMailNotification::SetMessageLength @@ -5192,7 +5193,7 @@ */ EXPORT_C TUint8 CVoiceMailNotification::MessageLength() const { - LOGGSMU1("CVoiceMailNotification::MessageLength()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_MESSAGELENGTH_1, "CVoiceMailNotification::MessageLength()"); return iMessageLength; } // CVoiceMailNotification::MessageLength @@ -5212,7 +5213,7 @@ */ EXPORT_C void CVoiceMailNotification::SetRetentionDays(TUint8 aDays) { - LOGGSMU1("CVoiceMailNotification::SetRetentionDays()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETRETENTIONDAYS_1, "CVoiceMailNotification::SetRetentionDays()"); if (aDays > 31) { @@ -5237,7 +5238,7 @@ */ EXPORT_C TUint8 CVoiceMailNotification::RetentionDays() const { - LOGGSMU1("CVoiceMailNotification::RetentionDays()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_RETENTIONDAYS_1, "CVoiceMailNotification::RetentionDays()"); return iRetentionDays; } // CVoiceMailNotification::RetentionDays @@ -5256,7 +5257,7 @@ */ EXPORT_C void CVoiceMailNotification::SetPriorityIndication(TBool aPriority) { - LOGGSMU1("CVoiceMailNotification::SetPriorityIndication()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETPRIORITYINDICATION_1, "CVoiceMailNotification::SetPriorityIndication()"); iPriorityIndication=aPriority; } // CVoiceMailNotification::SetPriorityIndication @@ -5275,7 +5276,7 @@ */ EXPORT_C TBool CVoiceMailNotification::PriorityIndication() const { - LOGGSMU1("CVoiceMailNotification::PriorityIndication()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_PRIORITYINDICATION_1, "CVoiceMailNotification::PriorityIndication()"); return iPriorityIndication; } // CVoiceMailNotification::PriorityIndication @@ -5294,7 +5295,7 @@ */ EXPORT_C TBool CVoiceMailNotification::MessageExtensionIndication() const { - LOGGSMU1("CVoiceMailNotification::MessageExtensionIndication()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_MESSAGEEXTENSIONINDICATION_1, "CVoiceMailNotification::MessageExtensionIndication()"); return iMessageExtensionIndicator; } // CVoiceMailNotification::MessageExtensionIndication @@ -5302,7 +5303,7 @@ void CVoiceMailNotification::NewBufferL(TInt aLength) { - LOGGSMU1("CVoiceMailNotification::NewBufferL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_NEWBUFFERL_1, "CVoiceMailNotification::NewBufferL()"); HBufC* buffer=HBufC::NewL(aLength); delete iCallingLineIdentity; @@ -5323,7 +5324,7 @@ */ EXPORT_C void CVoiceMailNotification::SetCallingLineIdentityL(TDesC& aLineIdentity) { - LOGGSMU1("CVoiceMailNotification::SetCallingLineIdentityL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETCALLINGLINEIDENTITYL_1, "CVoiceMailNotification::SetCallingLineIdentityL()"); TInt length=aLineIdentity.Length(); NewBufferL(length); @@ -5346,7 +5347,7 @@ */ EXPORT_C TPtrC CVoiceMailNotification::CallingLineIdentity() const { - LOGGSMU1("CVoiceMailNotification::CallingLineIdentity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_CALLINGLINEIDENTITY_1, "CVoiceMailNotification::CallingLineIdentity()"); TPtrC ptr; if (iCallingLineIdentity) @@ -5367,7 +5368,7 @@ */ EXPORT_C void CVoiceMailNotification::SetParsedCallingLineIdentityL(TGsmSmsTelNumber& aParsedAddress) { - LOGGSMU1("CVoiceMailNotification::SetParsedCallingLineIdentityL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_SETPARSEDCALLINGLINEIDENTITYL_1, "CVoiceMailNotification::SetParsedCallingLineIdentityL()"); iTypeOfAddress=aParsedAddress.iTypeOfAddress; DoSetParsedAddressL(aParsedAddress.iTelNumber); @@ -5386,7 +5387,7 @@ */ EXPORT_C void CVoiceMailNotification::ParsedCallingLineIdentity(TGsmSmsTelNumber& aParsedAddress) const { - LOGGSMU1("CVoiceMailNotification::ParsedCallingLineIdentity()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_PARSEDCALLINGLINEIDENTITY_1, "CVoiceMailNotification::ParsedCallingLineIdentity()"); aParsedAddress.iTypeOfAddress = iTypeOfAddress; @@ -5422,7 +5423,7 @@ void CVoiceMailNotification::NewExtensionL(TInt aLength) { - LOGGSMU1("CVoiceMailNotification::NewExtensionL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_NEWEXTENSIONL_1, "CVoiceMailNotification::NewExtensionL()"); HBufC* buffer=HBufC::NewL(aLength); delete iExtension; @@ -5431,27 +5432,6 @@ iExtension->Des().FillZ(); } // CVoiceMailNotification::NewExtensionL - -/*void CVoiceMailNotification::SetExtension(TDesC& aExtension) - { - LOGGSMU1("CVoiceMailNotification::SetExtension()"); - - TInt length=aExtension.Length(); - NewExtensionL(length); - iExtension->Des().Copy(aExtension); - } // CVoiceMailNotification::SetExtension - -TPtrC CVoiceMailNotification::Extension() const - { - LOGGSMU1("CVoiceMailNotification::Extension()"); - - TPtrC ptr; - if (iExtension) - ptr.Set(iExtension->Des()); - return ptr; - }*/ - - /** * @internalComponent * @@ -5465,7 +5445,7 @@ */ TUint8 CVoiceMailNotification::SizeL(CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) { - LOGGSMU1("CVoiceMailNotification::SizeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_SIZEL_1, "CVoiceMailNotification::SizeL()"); const TUint8 KTotalSizeOfFixedLengthAttributes = 4; TUint8 size = KTotalSizeOfFixedLengthAttributes; @@ -5494,7 +5474,7 @@ // When changes are made to this function that affect the // number of bytes that are encoded, this should be reflected in // CVoiceMailNotification::SizeL() - LOGGSMU1("CVoiceMailNotification::EncodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_ENCODEL_1, "CVoiceMailNotification::EncodeL"); *aPtr = (TUint8) (iMessageId >> 8); // Message Id MSB @@ -5528,7 +5508,7 @@ void CVoiceMailNotification::DecodeL(TGsmuLex8& aVoiceMailInfo, CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) { - LOGGSMU1("CVoiceMailNotification::DecodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_DECODEL_1, "CVoiceMailNotification::DecodeL"); iMessageId = (((TUint16) aVoiceMailInfo.GetL()) << 8); iMessageId += ((TUint16) aVoiceMailInfo.GetL()); @@ -5599,7 +5579,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailNotification::CVoiceMailNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_CTOR_1, "CVoiceMailNotification::CVoiceMailNotification"); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -5616,7 +5596,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailNotification::operator=="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_OPERATOR_1, "CVoiceMailNotification::operator=="); Panic(KGsmuPanicMethodBodyNotImplemented); return EFalse; BULLSEYE_RESTORE @@ -5634,14 +5614,14 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailNotification::operator="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_OPERATOR1_1, "CVoiceMailNotification::operator="); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } CVoiceMailNotification::CVoiceMailNotification() { - LOGGSMU1("CVoiceMailNotification::CVoiceMailNotification()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_CTOR1_1, "CVoiceMailNotification::CVoiceMailNotification()"); iMessageId = 0; iMessageLength = 0; @@ -5662,7 +5642,7 @@ */ EXPORT_C CVoiceMailNotification::~CVoiceMailNotification() { - LOGGSMU1("CVoiceMailNotification::~CVoiceMailNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_DTOR_1, "CVoiceMailNotification::~CVoiceMailNotification"); delete iCallingLineIdentity; delete iExtension; } // CVoiceMailNotification::CVoiceMailNotification @@ -5670,7 +5650,7 @@ void CVoiceMailNotification::ConstructL() { - LOGGSMU1("CVoiceMailNotification::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_CONSTRUCTL_1, "CVoiceMailNotification::ConstructL()"); NewBufferL(0); NewExtensionL(0); @@ -5686,7 +5666,7 @@ */ EXPORT_C CVoiceMailNotification* CVoiceMailNotification::NewL() { - LOGGSMU1("CVoiceMailNotification::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILNOTIFICATION_NEWL_1, "CVoiceMailNotification::NewL()"); CVoiceMailNotification* aCVoiceMailNotification=new(ELeave) CVoiceMailNotification(); CleanupStack::PushL(aCVoiceMailNotification); @@ -5698,7 +5678,7 @@ void CVoiceMailNotification::DoSetParsedAddressL(const TDesC& aAddress) { - LOGGSMU1("CVoiceMailNotification::DoSetParsedAddressL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILNOTIFICATION_DOSETPARSEDADDRESSL_1, "CVoiceMailNotification::DoSetParsedAddressL()"); TInt length=aAddress.Length(); if ((iTypeOfAddress.TON()==EGsmSmsTONInternationalNumber) && @@ -5730,32 +5710,12 @@ */ EXPORT_C TUint8 CEnhancedVoiceMailNotification::NumberOfVoiceMails() { - LOGGSMU1("CEnhancedVoiceMailNotification::NumberOfVoiceMails()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILNOTIFICATION_NUMBEROFVOICEMAILS_1, "CEnhancedVoiceMailNotification::NumberOfVoiceMails()"); return (TUint8) iNotifications->Count(); } // CEnhancedVoiceMailNotification::NumberOfVoiceMails -/*void CEnhancedVoiceMailNotification::SetExtension(TDesC& aExtension) - { - LOGGSMU1("CEnhancedVoiceMailNotification::SetExtension()"); - - TInt length=aExtension.Length(); - NewExtensionL(length); - iExtension->Des().Copy(aExtension); - } // CEnhancedVoiceMailNotification::SetExtension - -TPtrC CEnhancedVoiceMailNotification::Extension() const - { - LOGGSMU1("CEnhancedVoiceMailNotification::Extension()"); - - TPtrC ptr; - if (iExtension) - ptr.Set(iExtension->Des()); - return ptr; - }*/ - - /** * @publishedAll * @@ -5771,7 +5731,7 @@ */ EXPORT_C RPointerArray& CEnhancedVoiceMailNotification::GetVoiceMailNotifications() { - LOGGSMU1("CEnhancedVoiceMailNotification::GetVoiceMailNotifications()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILNOTIFICATION_GETVOICEMAILNOTIFICATIONS_1, "CEnhancedVoiceMailNotification::GetVoiceMailNotifications()"); return *iNotifications; } // CEnhancedVoiceMailNotification::GetVoiceMailNotifications @@ -5779,7 +5739,7 @@ void CEnhancedVoiceMailNotification::NewExtensionL(TInt aLength) { - LOGGSMU1("CEnhancedVoiceMailNotification::NewExtensionL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_NEWEXTENSIONL_1, "CEnhancedVoiceMailNotification::NewExtensionL()"); HBufC* buffer=HBufC::NewL(aLength); delete iExtension; @@ -5798,7 +5758,7 @@ */ EXPORT_C CEnhancedVoiceMailNotification* CEnhancedVoiceMailNotification::NewL() { - LOGGSMU1("CEnhancedVoiceMailNotification::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILNOTIFICATION_NEWL_1, "CEnhancedVoiceMailNotification::NewL()"); CEnhancedVoiceMailNotification* aCEnhancedVoiceMailNotification=new(ELeave) CEnhancedVoiceMailNotification(); CleanupStack::PushL(aCEnhancedVoiceMailNotification); @@ -5826,7 +5786,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailNotification::CEnhancedVoiceMailNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_CTOR1_1, "CEnhancedVoiceMailNotification::CEnhancedVoiceMailNotification"); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -5843,7 +5803,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailNotification::operator=="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_OPERATOR_1, "CEnhancedVoiceMailNotification::operator=="); Panic(KGsmuPanicMethodBodyNotImplemented); return EFalse; BULLSEYE_RESTORE @@ -5861,7 +5821,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailNotification::operator="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_OPERATOR1_1, "CEnhancedVoiceMailNotification::operator="); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -5875,7 +5835,7 @@ */ EXPORT_C CEnhancedVoiceMailNotification::~CEnhancedVoiceMailNotification() { - LOGGSMU1("CEnhancedVoiceMailNotification::~CEnhancedVoiceMailNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILNOTIFICATION_DTOR_1, "CEnhancedVoiceMailNotification::~CEnhancedVoiceMailNotification"); delete iExtension; iNotifications->ResetAndDestroy(); iNotifications->Close(); @@ -5885,7 +5845,7 @@ void CEnhancedVoiceMailNotification::ConstructL() { - LOGGSMU1("CEnhancedVoiceMailNotification::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_CONSTRUCTL_1, "CEnhancedVoiceMailNotification::ConstructL()"); NewExtensionL(0); iNotifications = new (ELeave) RPointerArray(KMaxNumberOfNotifications); @@ -5894,7 +5854,7 @@ TUint8* CEnhancedVoiceMailNotification::EncodeL(TUint8* aCurrentPtr, CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) const { - LOGGSMU1("CEnhancedVoiceMailNotification::EncodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_ENCODEL_1, "CEnhancedVoiceMailNotification::EncodeL"); TUint8* startPtr = aCurrentPtr; @@ -5930,7 +5890,7 @@ void CEnhancedVoiceMailNotification::DecodeL(TGsmuLex8& aVoiceMailInfo, CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) { - LOGGSMU1("CEnhancedVoiceMailNotification::DecodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILNOTIFICATION_DECODEL_1, "CEnhancedVoiceMailNotification::DecodeL"); CEnhancedVoiceMailBoxInformation::DecodeL(aVoiceMailInfo, aCharacterSetConverter, aFs); @@ -5967,7 +5927,7 @@ */ EXPORT_C void CVoiceMailDeletion::SetMessageId(TUint16 aMessageId) { - LOGGSMU1("CVoiceMailDeletion::SetMessageId()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILDELETION_SETMESSAGEID_1, "CVoiceMailDeletion::SetMessageId()"); iMessageId=aMessageId; } // CVoiceMailDeletion::SetMessageId @@ -5987,7 +5947,7 @@ */ EXPORT_C TUint16 CVoiceMailDeletion::MessageId() const { - LOGGSMU1("CVoiceMailDeletion::MessageId()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILDELETION_MESSAGEID_1, "CVoiceMailDeletion::MessageId()"); return iMessageId; } // CVoiceMailDeletion::MessageId @@ -6006,7 +5966,7 @@ */ EXPORT_C TBool CVoiceMailDeletion::MessageExtensionIndication() const { - LOGGSMU1("CVoiceMailDeletion::MessageExtensionIndication()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILDELETION_MESSAGEEXTENSIONINDICATION_1, "CVoiceMailDeletion::MessageExtensionIndication()"); return iExtensionIndicator; } // CVoiceMailDeletion::MessageExtensionIndication @@ -6014,7 +5974,7 @@ TUint8 CVoiceMailDeletion::SizeL() { - LOGGSMU1("CVoiceMailDeletion::SizeL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_SIZEL_1, "CVoiceMailDeletion::SizeL()"); const TUint8 KSizeOfVoiceMailDeletion = 3; return KSizeOfVoiceMailDeletion; @@ -6026,7 +5986,7 @@ // When changes are made which affect the // number of bytes encoded, this should be // reflected in VoiceMailDeletion::SizeL() - LOGGSMU1("CVoiceMailDeletion::EncodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_ENCODEL_1, "CVoiceMailDeletion::EncodeL"); *aPtr = (TUint8) (iMessageId >> 8); aPtr++; @@ -6040,7 +6000,7 @@ void CVoiceMailDeletion::DecodeL(TGsmuLex8& aVoiceMailInfo) { - LOGGSMU1("CVoiceMailDeletion::DecodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_DECODEL_1, "CVoiceMailDeletion::DecodeL"); iMessageId = (((TUint16) aVoiceMailInfo.GetL()) << 8) + ((TUint16) aVoiceMailInfo.GetL()); @@ -6073,7 +6033,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailDeletion::CVoiceMailDeletion"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_CTOR1_1, "CVoiceMailDeletion::CVoiceMailDeletion"); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -6090,7 +6050,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailDeletion::operator=="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_OPERATOR_1, "CVoiceMailDeletion::operator=="); Panic(KGsmuPanicMethodBodyNotImplemented); return EFalse; BULLSEYE_RESTORE @@ -6108,7 +6068,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CVoiceMailDeletion::operator="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_OPERATOR1_1, "CVoiceMailDeletion::operator="); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -6122,7 +6082,7 @@ */ EXPORT_C CVoiceMailDeletion::~CVoiceMailDeletion() { - LOGGSMU1("CVoiceMailDeletion::~CVoiceMailDeletion"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILDELETION_DTOR_1, "CVoiceMailDeletion::~CVoiceMailDeletion"); delete iExtension; } // CVoiceMailDeletion::operator @@ -6130,7 +6090,7 @@ void CVoiceMailDeletion::ConstructL() { - LOGGSMU1("CVoiceMailDeletion::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_CONSTRUCTL_1, "CVoiceMailDeletion::ConstructL()"); NewBufferL(0); } // CVoiceMailDeletion::ConstructL @@ -6138,7 +6098,7 @@ void CVoiceMailDeletion::NewBufferL(TInt aLength) { - LOGGSMU1("CVoiceMailDeletion::NewBufferL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CVOICEMAILDELETION_NEWBUFFERL_1, "CVoiceMailDeletion::NewBufferL()"); HBufC* buffer=HBufC::NewL(aLength); delete iExtension; @@ -6157,7 +6117,7 @@ */ EXPORT_C CVoiceMailDeletion* CVoiceMailDeletion::NewL() { - LOGGSMU1("CVoiceMailDeletion::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CVOICEMAILDELETION_NEWL_1, "CVoiceMailDeletion::NewL()"); CVoiceMailDeletion* voiceMailDeletion=new(ELeave) CVoiceMailDeletion(); CleanupStack::PushL(voiceMailDeletion); @@ -6167,31 +6127,9 @@ } // CVoiceMailDeletion::NewL -/* -void CVoiceMailDeletion::SetExtension(TDesC& aExtension) - { - LOGGSMU1("CVoiceMailDeletion::SetExtension()"); - - TInt length=aExtension.Length(); - NewBufferL(length); - iExtension->Des().Copy(aExtension); - } // CVoiceMailDeletion::SetExtension - - -TPtrC CVoiceMailDeletion::Extension() const - { - LOGGSMU1("CVoiceMailDeletion::Extension()"); - - TPtrC ptr; - if (iExtension) - ptr.Set(iExtension->Des()); - return ptr; - }*/ - - void CEnhancedVoiceMailDeleteConfirmations::NewExtensionL(TInt aLength) { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::NewExtensionL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_NEWEXTENSIONL_1, "CEnhancedVoiceMailDeleteConfirmations::NewExtensionL()"); HBufC* buffer=HBufC::NewL(aLength); delete iExtension; @@ -6216,7 +6154,7 @@ */ EXPORT_C CEnhancedVoiceMailDeleteConfirmations::~CEnhancedVoiceMailDeleteConfirmations() { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::~CEnhancedVoiceMailDeleteConfirmations"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILDELETECONFIRMATIONS_DTOR_1, "CEnhancedVoiceMailDeleteConfirmations::~CEnhancedVoiceMailDeleteConfirmations"); delete iExtension; iVoiceMailDeletions->ResetAndDestroy(); @@ -6237,7 +6175,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::CEnhancedVoiceMailDeleteConfirmations"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_CTOR1_1, "CEnhancedVoiceMailDeleteConfirmations::CEnhancedVoiceMailDeleteConfirmations"); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } @@ -6254,7 +6192,7 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::operator=="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_OPERATOR_1, "CEnhancedVoiceMailDeleteConfirmations::operator=="); Panic(KGsmuPanicMethodBodyNotImplemented); return EFalse; BULLSEYE_RESTORE @@ -6272,14 +6210,14 @@ { // Ignore in code coverage - not intended to be used BULLSEYE_OFF - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::operator="); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_OPERATOR1_1, "CEnhancedVoiceMailDeleteConfirmations::operator="); Panic(KGsmuPanicMethodBodyNotImplemented); BULLSEYE_RESTORE } void CEnhancedVoiceMailDeleteConfirmations::ConstructL() { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::ConstructL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_CONSTRUCTL_1, "CEnhancedVoiceMailDeleteConfirmations::ConstructL()"); NewExtensionL(0); @@ -6296,7 +6234,7 @@ */ EXPORT_C CEnhancedVoiceMailDeleteConfirmations* CEnhancedVoiceMailDeleteConfirmations::NewL() { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::NewL()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILDELETECONFIRMATIONS_NEWL_1, "CEnhancedVoiceMailDeleteConfirmations::NewL()"); CEnhancedVoiceMailDeleteConfirmations* aCEnhancedVoiceMailDeleteConfirmations=new(ELeave) CEnhancedVoiceMailDeleteConfirmations(); CleanupStack::PushL(aCEnhancedVoiceMailDeleteConfirmations); @@ -6319,7 +6257,7 @@ */ EXPORT_C TUint8 CEnhancedVoiceMailDeleteConfirmations::NumberOfDeletes() { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::NumberOfDeletes()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILDELETECONFIRMATIONS_NUMBEROFDELETES_1, "CEnhancedVoiceMailDeleteConfirmations::NumberOfDeletes()"); return iVoiceMailDeletions->Count(); } // CEnhancedVoiceMailDeleteConfirmations::NumberOfDeletes @@ -6341,39 +6279,15 @@ */ EXPORT_C RPointerArray& CEnhancedVoiceMailDeleteConfirmations::GetVoiceMailDeletions() { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::GetVoiceMailDeletions()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CENHANCEDVOICEMAILDELETECONFIRMATIONS_GETVOICEMAILDELETIONS_1, "CEnhancedVoiceMailDeleteConfirmations::GetVoiceMailDeletions()"); return *iVoiceMailDeletions; } // CEnhancedVoiceMailDeleteConfirmations::GetVoiceMailDeletions -/* -void CEnhancedVoiceMailDeleteConfirmations::SetExtension(TDesC& aExtension) - { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::SetExtension()"); - - TInt length=aExtension.Length(); - NewBufferL(length); - iExtension->Des().Copy(aExtension); - } // CEnhancedVoiceMailDeleteConfirmations::SetExtension - - -TPtrC CEnhancedVoiceMailDeleteConfirmations::Extension() const - { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::Extension()"); - - TPtrC ptr; - if (iExtension) - { - ptr.Set(iExtension->Des()); - } - return ptr; - }*/ - - TUint8* CEnhancedVoiceMailDeleteConfirmations::EncodeL(TUint8* aCurrentPtr, CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) const { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::EncodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_ENCODEL_1, "CEnhancedVoiceMailDeleteConfirmations::EncodeL"); TUint8* startPtr = aCurrentPtr; @@ -6412,7 +6326,7 @@ void CEnhancedVoiceMailDeleteConfirmations::DecodeL(TGsmuLex8& aVoiceMailInfo, CCnvCharacterSetConverter& aCharacterSetConverter, RFs& aFs) { - LOGGSMU1("CEnhancedVoiceMailDeleteConfirmations::DecodeL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CENHANCEDVOICEMAILDELETECONFIRMATIONS_DECODEL_1, "CEnhancedVoiceMailDeleteConfirmations::DecodeL"); CEnhancedVoiceMailBoxInformation::DecodeL(aVoiceMailInfo, aCharacterSetConverter, aFs);