phoneuis/easydialing/src/easydialingcontactdata.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 3 8871b09be73b
--- a/phoneuis/easydialing/src/easydialingcontactdata.cpp	Thu Jul 15 18:38:16 2010 +0300
+++ b/phoneuis/easydialing/src/easydialingcontactdata.cpp	Thu Aug 19 09:54:27 2010 +0300
@@ -26,7 +26,7 @@
 // ---------------------------------------------------------------------------
 //
 CEasyDialingContactData::CEasyDialingContactData(MVPbkContactLink* aContactLink)
-        : iContactLink(aContactLink), iThumbnail(NULL),iFav(EFalse), iLoaded(EFalse)
+        : iContactLink(aContactLink), iThumbnail(NULL), iFav(EFalse), iLoaded(EFalse)
     {
     }
 
@@ -64,10 +64,7 @@
 //
 void CEasyDialingContactData::SetThumbnail(CFbsBitmap* aThumbnail)
     {
-    if (iThumbnail)
-        {
-        delete iThumbnail;
-        }
+    delete iThumbnail;
     iThumbnail = aThumbnail;
     }
 
@@ -90,6 +87,42 @@
     }
 
 // ---------------------------------------------------------------------------
+// CEasyDialingContactData::IsSimContact
+// ---------------------------------------------------------------------------
+//
+TBool CEasyDialingContactData::IsSimContact()
+    {
+    return iSimContact;
+    }
+
+// ---------------------------------------------------------------------------
+// CEasyDialingContactData::SetSimContact
+// ---------------------------------------------------------------------------
+//
+void CEasyDialingContactData::SetSimContact(TBool aSim)
+    {
+    iSimContact = aSim;
+    }
+
+// ---------------------------------------------------------------------------
+// CEasyDialingContactData::IsSdnContact
+// ---------------------------------------------------------------------------
+//
+TBool CEasyDialingContactData::IsSdnContact()
+    {
+    return iSdnContact;
+    }
+
+// ---------------------------------------------------------------------------
+// CEasyDialingContactData::SetSimContact
+// ---------------------------------------------------------------------------
+//
+void CEasyDialingContactData::SetSdnContact(TBool aSdn)
+    {
+    iSdnContact = aSdn;
+    }
+
+// ---------------------------------------------------------------------------
 // CEasyDialingContactData::IsLoaded
 // ---------------------------------------------------------------------------
 //
@@ -179,7 +212,4 @@
     iUniEditorAvailable = aVailable;
     }
 
-
-
-
-
+// end of file