23 #include <ccsclientconversation.h> |
23 #include <ccsclientconversation.h> |
24 #include <ccsconversationentry.h> |
24 #include <ccsconversationentry.h> |
25 #include <ccsdefs.h> |
25 #include <ccsdefs.h> |
26 #include <telconfigcrkeys.h> // KCRUidTelephonyConfiguration |
26 #include <telconfigcrkeys.h> // KCRUidTelephonyConfiguration |
27 #include <centralrepository.h> |
27 #include <centralrepository.h> |
28 |
28 #include <xqconversions.h> |
29 // USER INCLUDE FILES |
29 // USER INCLUDE FILES |
30 #include "ccsconversationcache.h" |
30 #include "ccsconversationcache.h" |
31 #include "ccsconversationcachehelper.h" |
31 #include "ccsconversationcachehelper.h" |
32 #include "ccsconversationcontact.h" |
32 #include "ccsconversationcontact.h" |
33 #include "ccsconversation.h" |
33 #include "ccsconversation.h" |
34 #include "ccscontactsmanager.h" |
34 #include "ccscontactsmanager.h" |
35 #include "ccscontactsresolver.h" |
35 #include "ccscontactsresolver.h" |
36 #include "ccsconversationevent.h" |
36 #include "ccsconversationevent.h" |
37 #include "ccsserver.h" |
37 #include "ccsserver.h" |
38 #include "s60qconversions.h" |
|
39 #include "ccsdebug.h" |
38 #include "ccsdebug.h" |
40 |
39 |
41 // ============================== MEMBER FUNCTIONS ============================ |
40 // ============================== MEMBER FUNCTIONS ============================ |
42 |
41 |
43 // ---------------------------------------------------------------------------- |
42 // ---------------------------------------------------------------------------- |
511 |
510 |
512 for (int i = 0; i < totalPhoneNumber; i++) |
511 for (int i = 0; i < totalPhoneNumber; i++) |
513 { |
512 { |
514 QString phoneNumber = phoneNumberList.at(i); |
513 QString phoneNumber = phoneNumberList.at(i); |
515 HBufC* phoneNumber_s60 = |
514 HBufC* phoneNumber_s60 = |
516 S60QConversions::qStringToS60Desc(phoneNumber); |
515 XQConversions::qStringToS60Desc(phoneNumber); |
517 TInt cIndex = FindConversation(*phoneNumber_s60); |
516 TInt cIndex = FindConversation(*phoneNumber_s60); |
518 if (cIndex != KErrNotFound) |
517 if (cIndex != KErrNotFound) |
519 { |
518 { |
520 if (conversationIndex.Find(cIndex) == KErrNotFound) |
519 if (conversationIndex.Find(cIndex) == KErrNotFound) |
521 { |
520 { |
551 RArray<TInt> conversationIndex; |
550 RArray<TInt> conversationIndex; |
552 for (int i=0; i < countNumberList ; i++) |
551 for (int i=0; i < countNumberList ; i++) |
553 { |
552 { |
554 QString phoneNumber = phoneNumberList.at(i); |
553 QString phoneNumber = phoneNumberList.at(i); |
555 HBufC* phoneNumber_s60 = |
554 HBufC* phoneNumber_s60 = |
556 S60QConversions::qStringToS60Desc(phoneNumber); |
555 XQConversions::qStringToS60Desc(phoneNumber); |
557 |
556 |
558 TInt cIndex = FindConversation(*phoneNumber_s60); |
557 TInt cIndex = FindConversation(*phoneNumber_s60); |
559 if ( cIndex != KErrNotFound ) |
558 if ( cIndex != KErrNotFound ) |
560 { |
559 { |
561 conversationIndex.InsertInOrder(cIndex); |
560 conversationIndex.InsertInOrder(cIndex); |