diff -r 73a1feb507fb -r bc78a40cd63c tsrc/propertystub/src/e32property.cpp --- a/tsrc/propertystub/src/e32property.cpp Tue Aug 31 15:12:07 2010 +0300 +++ b/tsrc/propertystub/src/e32property.cpp Wed Sep 01 12:31:01 2010 +0100 @@ -16,18 +16,12 @@ */ #include "e32property.h" -#include "mussessionproperties.h" -#include "mussesseioninformationapi.h" #include static RArray iIntProperty; static TInt iErrorCode = KErrNone; static RProperty::TPropertyCalledFunctions iCalledFunction = RProperty::ENone; -// Large enough to store maximum length descriptor for RProperty -static TBuf iString = KNullDesC(); -static TBuf iVideoCodecList = KNullDesC(); -static TBuf iSessionRecipient = KNullDesC(); -static TBuf iEngineName = KNullDesC(); +static TName iString = KNullDesC(); static TInt iValue = KErrNotFound; @@ -84,7 +78,6 @@ return error; } - TInt RProperty::Get( TUid /*aCategory*/, TUint /*aKey*/, TDes8& aValue) { // This is not widely used in Mush , so who cares in stub. @@ -92,26 +85,10 @@ return iErrorCode; } - -TInt RProperty::Get( TUid /*aCategory*/, TUint aKey, TDes16& aValue ) +TInt RProperty::Get( TUid /*aCategory*/, TUint /*aKey*/, TDes16& aValue ) { - if ( aKey == NMusSessionInformationApi::KMUSCallProvider ) - { - aValue = iEngineName; - } - else if ( aKey == NMusSessionApi::KVideoCodecs ) - { - aValue = iVideoCodecList; - } - else if ( aKey == NMusSessionApi::KRemoteSipAddress ) - { - aValue = iSessionRecipient; - } - else - { - aValue = iString; - } - + // This is not widely used in Mush , so who cares in stub. + aValue = iString; return iErrorCode; } @@ -141,27 +118,10 @@ return iErrorCode; } - -TInt RProperty::Set( TUid /*aCategory*/, TUint aKey, const TDesC& aValue ) +TInt RProperty::Set( TUid /*aCategory*/, TUint /*aKey*/, const TDesC& aValue ) { - - if ( aKey == NMusSessionInformationApi::KMUSCallProvider ) - { - iEngineName = aValue; - } - - else if ( aKey == NMusSessionApi::KVideoCodecs ) - { - iVideoCodecList = aValue; - } - else if ( aKey == NMusSessionApi::KRemoteSipAddress ) - { - iSessionRecipient = aValue; - } - else - { - iString = aValue; - } + // This is not widely used in Mush , so who cares in stub. + iString = aValue; return iErrorCode; } @@ -233,7 +193,7 @@ iErrorCode = KErrNone; iCalledFunction = RProperty::ENone; iString = KNullDesC(); - iEngineName = KNullDesC(); iValue = KErrNotFound; } +