diff -r 33a5d2bbf6fc -r 73a1feb507fb tsrc/propertystub/src/e32property.cpp --- a/tsrc/propertystub/src/e32property.cpp Thu Aug 19 09:51:39 2010 +0300 +++ b/tsrc/propertystub/src/e32property.cpp Tue Aug 31 15:12:07 2010 +0300 @@ -16,12 +16,18 @@ */ #include "e32property.h" +#include "mussessionproperties.h" +#include "mussesseioninformationapi.h" #include static RArray iIntProperty; static TInt iErrorCode = KErrNone; static RProperty::TPropertyCalledFunctions iCalledFunction = RProperty::ENone; -static TName iString = KNullDesC(); +// 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 TInt iValue = KErrNotFound; @@ -78,6 +84,7 @@ return error; } + TInt RProperty::Get( TUid /*aCategory*/, TUint /*aKey*/, TDes8& aValue) { // This is not widely used in Mush , so who cares in stub. @@ -85,10 +92,26 @@ return iErrorCode; } -TInt RProperty::Get( TUid /*aCategory*/, TUint /*aKey*/, TDes16& aValue ) + +TInt RProperty::Get( TUid /*aCategory*/, TUint aKey, TDes16& aValue ) { - // This is not widely used in Mush , so who cares in stub. - aValue = iString; + if ( aKey == NMusSessionInformationApi::KMUSCallProvider ) + { + aValue = iEngineName; + } + else if ( aKey == NMusSessionApi::KVideoCodecs ) + { + aValue = iVideoCodecList; + } + else if ( aKey == NMusSessionApi::KRemoteSipAddress ) + { + aValue = iSessionRecipient; + } + else + { + aValue = iString; + } + return iErrorCode; } @@ -118,10 +141,27 @@ return iErrorCode; } -TInt RProperty::Set( TUid /*aCategory*/, TUint /*aKey*/, const TDesC& aValue ) + +TInt RProperty::Set( TUid /*aCategory*/, TUint aKey, const TDesC& aValue ) { - // This is not widely used in Mush , so who cares in stub. - iString = aValue; + + if ( aKey == NMusSessionInformationApi::KMUSCallProvider ) + { + iEngineName = aValue; + } + + else if ( aKey == NMusSessionApi::KVideoCodecs ) + { + iVideoCodecList = aValue; + } + else if ( aKey == NMusSessionApi::KRemoteSipAddress ) + { + iSessionRecipient = aValue; + } + else + { + iString = aValue; + } return iErrorCode; } @@ -193,7 +233,7 @@ iErrorCode = KErrNone; iCalledFunction = RProperty::ENone; iString = KNullDesC(); + iEngineName = KNullDesC(); iValue = KErrNotFound; } -