multimediacommsengine/mmcesrv/mmceserver/tsrc/ut_server/stubs/src/sipprofile.cpp
branchRCL_3
changeset 18 91f50911ea81
parent 0 1bce908db942
child 42 817c922b90eb
--- a/multimediacommsengine/mmcesrv/mmceserver/tsrc/ut_server/stubs/src/sipprofile.cpp	Tue May 11 16:34:40 2010 +0300
+++ b/multimediacommsengine/mmcesrv/mmceserver/tsrc/ut_server/stubs/src/sipprofile.cpp	Tue May 25 13:07:26 2010 +0300
@@ -191,7 +191,7 @@
 	    }
 	if( aParam == KSIPProfileId )
 		{
-		aVal = 1;
+		aVal = ContextId();
 		}
 	return ret;
 	}	
@@ -279,7 +279,7 @@
 // -----------------------------------------------------------------------------
 //	
 CSIPProfile::CSIPProfile():
-	iEnabled(EFalse)
+	iEnabled(EFalse), iContextId(1)
 	{
 	}
 
@@ -307,6 +307,11 @@
 	{
 	return ETrue;
 	}
+
+void CSIPProfile::SetContextId(TInt aContextId)
+	{
+	iContextId = aContextId;
+	}
 	
 // -----------------------------------------------------------------------------
 // CSIPProfile::ContextId
@@ -314,7 +319,7 @@
 //	
 TUint32 CSIPProfile::ContextId() const
 	{
-	return 1;
+	return iContextId;
 	}
 
 // -----------------------------------------------------------------------------