voiceui/pbkinfoviewimpl/src/pbkinfoviewsindhandler.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 9 fc313e1df071
--- a/voiceui/pbkinfoviewimpl/src/pbkinfoviewsindhandler.cpp	Wed Apr 14 15:58:44 2010 +0300
+++ b/voiceui/pbkinfoviewimpl/src/pbkinfoviewsindhandler.cpp	Tue May 11 16:14:47 2010 +0300
@@ -505,14 +505,40 @@
 // ----------------------------------------------------------------------------
 // CPbkInfoViewSindHandler::FieldIdL
 // Returns an field id for the contact field.
+// @param aIndex index for the voice tag. 0 <= aIndex <= VoiceTagCount() - 1
 // @return TInt the field id
 // ----------------------------------------------------------------------------
-TInt CPbkInfoViewSindHandler::FieldIdL( )
-	{
+TInt CPbkInfoViewSindHandler::FieldIdL( TInt aIndex )
+	{    
+    RUBY_DEBUG_BLOCK( "CPbkInfoViewSindHandler::FieldIdL" );
+    
+    __ASSERT_ALWAYS( aIndex >= 0 && aIndex < VoiceTagCount(),
+                     User::Leave( KErrArgument ) );
+        
+    iPbkHandler->FindContactFieldL( iTagArray[aIndex] );
+    
 	return iPbkHandler->FieldIdL();
 	}
 
 // ----------------------------------------------------------------------------
+// CPbkInfoViewSindHandler::LabelL
+// Returns label for the contact field.
+// @param aIndex index for the voice tag. 0 <= aIndex <= VoiceTagCount() - 1
+// @return TPtrC the tag label
+// ----------------------------------------------------------------------------
+TPtrC CPbkInfoViewSindHandler::LabelL( TInt aIndex )
+    {
+    RUBY_DEBUG_BLOCK( "CPbkInfoViewSindHandler::LabelL" );
+    
+    __ASSERT_ALWAYS( aIndex >= 0 && aIndex < VoiceTagCount(),
+                     User::Leave( KErrArgument ) );
+        
+    iPbkHandler->FindContactFieldL( iTagArray[aIndex] );
+    
+    return iPbkHandler->LabelL();
+    }
+
+// ----------------------------------------------------------------------------
 // CPbkInfoViewSindHandler::CreateVoiceTagListL
 // Fetches voice tag list from vas db.
 // @param aContactId Contact id for the contact whose voice tags are