diff -r d39add9822e2 -r 5bfc169077b2 browserutilities/browsertelservice/src/BrowserTelService.cpp --- a/browserutilities/browsertelservice/src/BrowserTelService.cpp Tue Feb 02 00:56:45 2010 +0200 +++ b/browserutilities/browsertelservice/src/BrowserTelService.cpp Fri Mar 19 09:52:28 2010 +0200 @@ -22,20 +22,19 @@ #include // For phonebook API -#include // Phonebook Contact -#include // Phonebook Engine -#include // Phonebook field types -#include -#include // Phonebook editor +//#include // Phonebook Contact +//#include // Phonebook Engine +//#include // Phonebook field types +//#include +//#include // Phonebook editor // For searching a matching number from contact's db -#include +//#include #include #include // #include #include -#include #include // For email API @@ -66,7 +65,7 @@ // Const file name for make call #include -#include +#include #include #include @@ -81,6 +80,8 @@ const TInt KParseArrayAllocation = 10; const TInt KTimerDelay = 2500000; +//constants +const TUid KUidMsgTypeSMTP = {0x10001028}; // 268439592 _LIT( KValidDTMFChars,"w/p*#0123456789ABCDabcd," ); _LIT( KDTMFWaitChars, "/wp,*#" ); @@ -1381,7 +1382,7 @@ { TELSERVICE_ENTERFN( "AddPBEntryL()" ) - CPbkContactEngine* pbkEngine = CPbkContactEngine::NewL(); +/* CPbkContactEngine* pbkEngine = CPbkContactEngine::NewL(); CleanupStack::PushL( pbkEngine ); // Make sure a resource file is available @@ -1480,7 +1481,7 @@ CleanupStack::PopAndDestroy( 3 ); // contactItem, pbkResourceFile, pbkEngine TELSERVICE_LEAVEFN( "AddPBEntryL()" ) - +*/ return KErrNone; } @@ -2352,7 +2353,7 @@ HBufC* matchingName = NULL; // Create phonebook engine - CPbkContactEngine* pbkEngine = CPbkContactEngine::NewL(); +/* CPbkContactEngine* pbkEngine = CPbkContactEngine::NewL(); CleanupStack::PushL( pbkEngine ); // Make sure a resource file is available @@ -2376,7 +2377,7 @@ } CleanupStack::PopAndDestroy( 3 ); // idArray, pbkResourceFile, pbkEngine - +*/ TELSERVICE_LEAVEFN("SearchPbForMatchL()") return matchingName; @@ -2395,7 +2396,7 @@ CContactIdArray* idArray = NULL; - if( aMatchType == EPhoneNumber ) +/* if( aMatchType == EPhoneNumber ) { idArray = aPbkEngine.MatchPhoneNumberL( aToMatch, aToMatch.Length() ); } @@ -2411,7 +2412,7 @@ CleanupStack::PopAndDestroy( findFrom ); } - CleanupStack::PushL( idArray ); + CleanupStack::PushL( idArray ); */ TELSERVICE_LEAVEFN( "SearchPbForMatchLC()" ) return idArray; } @@ -2679,7 +2680,7 @@ aNewContact = ETrue; - if( idArrayPhoneNr->Count() && aNumber.Length() ) +/* if( idArrayPhoneNr->Count() && aNumber.Length() ) { // Open existing if ( ShowDialogL( aNumber, EConfirmAddToPb ) ) @@ -2717,7 +2718,7 @@ CleanupStack::PopAndDestroy( 2 ); // idArrayEmail,idArrayPhoneNr CleanupStack::PushL( contactItem ); - +*/ return contactItem; } @@ -2733,7 +2734,7 @@ { if( aFieldValue.Length() ) { - TPbkContactItemField *dataField = aContactItem->FindField( aField ); + /* TPbkContactItemField *dataField = aContactItem->FindField( aField ); if( !dataField ) { @@ -2761,7 +2762,7 @@ { aFormIndex = aContactItem->FindFieldIndex( *dataField ); } - } + }*/ } }