# HG changeset patch # User William Roberts # Date 1279812845 -3600 # Node ID 4a4ca69db3088c89f846076bb66614ba576604eb # Parent e023f3f775db1a073a47b6cb51f7b2ac76e3f95d# Parent 993ab30e92fc58f4b9c3ef82b68d0909083aa26a Catchup to latest Symbian^4 diff -r e023f3f775db -r 4a4ca69db308 browserplugin/cpixnpplugin/group/cpixnpplugin.mmp --- a/browserplugin/cpixnpplugin/group/cpixnpplugin.mmp Fri Jun 11 16:24:16 2010 +0100 +++ b/browserplugin/cpixnpplugin/group/cpixnpplugin.mmp Thu Jul 22 16:34:05 2010 +0100 @@ -38,8 +38,6 @@ APP_LAYER_SYSTEMINCLUDE SYSTEMINCLUDE /epoc32/include/libc SYSTEMINCLUDE /epoc32/include/ecom -SYSTEMINCLUDE /epoc32/include/CPixSearch -//SYSTEMINCLUDE /epoc32/include/domain/middleware USERINCLUDE ../inc USERINCLUDE ../inc/idl diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/applications/src/applicationsplugin.cpp --- a/harvesterplugins/applications/src/applicationsplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/applications/src/applicationsplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -135,10 +135,14 @@ OstTraceExt1( TRACE_NORMAL, CAPPLICATIONSPLUGIN_ADDWIDGETINFOL, "CApplicationsPlugin::AddWidgetInfoL;PATH=%S", &temp ); //GetWidgetPropertyValueL returns CWidgetPropertyValue* which in turn has an operator to convert to TDesC - aDocument->AddFieldL(KApplicationFieldCaption, *(iWidgetRegistry.GetWidgetPropertyValueL( aUid, EBundleDisplayName )), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + aDocument->AddFieldL(KApplicationFieldCaption, *(iWidgetRegistry.GetWidgetPropertyValueL( aUid, EBundleDisplayName )), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); - iWidgetRegistry.GetWidgetBundleName( aUid, temp ); - aDocument->AddExcerptL( temp ); + //For applications, no content to go into exceprt field. + //For more info, check the appclass-hierarchy.txt + //iWidgetRegistry.GetWidgetBundleName( aUid, temp ); + //aDocument->AddExcerptL( temp ); + aDocument->AddExcerptL( KNullDesC ); + OstTraceExt1( TRACE_NORMAL, DUP1_CAPPLICATIONSPLUGIN_ADDWIDGETINFOL, "CApplicationsPlugin::AddWidgetInfoL;DisplayName=%S", &temp ); CPIXLOGSTRING2("AddApplicationInfo(): DisplayName = %S ", &temp ); } @@ -150,9 +154,26 @@ TBuf docidString = aAppInfo.iUid.Name(); //This returns stuff in the form "[UID]". So remove the brackets. docidString = docidString.Mid( KUidStartIndex, KUidEndIndex ); - aDocument->AddFieldL(KApplicationFieldCaption, aAppInfo.iShortCaption, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); - aDocument->AddFieldL(KApplicationFieldAbsolutePath, aAppInfo.iFullName, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); - aDocument->AddExcerptL( aAppInfo.iCaption ); + //We index the exe name (without extension), only if the title is not present. + if( aAppInfo.iShortCaption.Compare(KNullDesC) ) + { + aDocument->AddFieldL(KApplicationFieldCaption, aAppInfo.iShortCaption, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + } + else + { + //Find the *last* location of '\' and remove the .exe to get just the filename. + TInt location = aAppInfo.iFullName.LocateReverse('\\'); + if( location > 0 ) + { + TInt lengthOfNameWithoutExtention = aAppInfo.iFullName.Length() -location -1; //-1 to increment one past '\'. + TPtrC appName = aAppInfo.iFullName.Right( lengthOfNameWithoutExtention ); + aDocument->AddFieldL(KApplicationFieldAbsolutePath, appName.Left( appName.Length() -4 /*remove ".exe"*/), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + } + } + //For applications, no content to go into exceprt field, for more info, check the appclass-hierarchy.txt + //aDocument->AddExcerptL( aAppInfo.iCaption ); + aDocument->AddExcerptL( KNullDesC ); + OstTraceExt2( TRACE_NORMAL, _ADDAPPLICATIONINFOL, "::AddApplicationInfoL;UID=%S;PATH=%S", &docidString, &aAppInfo.iFullName ); OstTraceExt2( TRACE_NORMAL, DUP1__ADDAPPLICATIONINFOL, "::AddApplicationInfoL;Excerpt=%S;Caption=%S", &aAppInfo.iCaption, &aAppInfo.iShortCaption ); @@ -176,6 +197,9 @@ ret = cap().iAppIsHidden; } + //This commented code is left here as the following functionality may need to be + //returned if and when this or similar APIs are available for 10.1 + //Application should not be listed hidden in application shell. // TBuf uidResult; // if( iHiddenApplicationsRepository->Get( KMenuHideApplication, uidResult ) == KErrNone ) diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/applications/traces/OstTraceDefinitions.h --- a/harvesterplugins/applications/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/applications/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/bookmarks/src/bookmarksplugin.cpp --- a/harvesterplugins/bookmarks/src/bookmarksplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/bookmarks/src/bookmarksplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -36,7 +36,7 @@ const TInt KHarvestingDelay = 1000; /** Number of bookmarks to process in one active scheduler cycle */ const TInt KBookmarksPerRunL = 1; -_LIT(KExcerptDelimiter, " "); +//_LIT(KExcerptDelimiter, " "); /** Bookmark list size for dynamic array*/ const TInt KBookmarkListSize = 100; @@ -69,7 +69,8 @@ { if (iAsynchronizer) iAsynchronizer->CancelCallback(); - iFavoritesNotifier->Cancel(); + if ( iFavoritesNotifier ) + iFavoritesNotifier->Cancel(); delete iFavoritesNotifier; delete iAsynchronizer; delete iIndexer; @@ -270,14 +271,16 @@ OstTraceExt1( TRACE_NORMAL, DUP1_CBOOKMARKSPLUGIN_DOINDEXINGL, "CBookmarksPlugin::DoIndexingL();domain=%S", domain ); CPIXLOGSTRING2("CBookmarksPlugin::DoIndexingL(): domain = %S", &domain ); } + + //For bookmarks, only URL should go into exceprt field. + //For more info, check the appclass-hierarchy.txt + //Add Excerpt as it is must have field. What should be excerpt in bookmarks ? - HBufC* excerpt = HBufC::NewLC(aItem->Url().Length() + aItem->Name().Length() + 1); + HBufC* excerpt = HBufC::NewLC( aItem->Url().Length() + 1 ); TPtr ptr = excerpt->Des(); - ptr.Append(aItem->Name()); - ptr.Append(KExcerptDelimiter); - ptr.Append(aItem->Url()); - index_item->AddExcerptL(*excerpt); - CleanupStack::PopAndDestroy(excerpt); + ptr.Append( aItem->Url() ); + index_item->AddExcerptL( *excerpt ); + CleanupStack::PopAndDestroy( excerpt ); // Send for indexing TRAPD(err, iIndexer->AddL(*index_item)); diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/bookmarks/traces/OstTraceDefinitions.h --- a/harvesterplugins/bookmarks/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/bookmarks/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/calendar/inc/ccalendarplugin.h --- a/harvesterplugins/calendar/inc/ccalendarplugin.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/calendar/inc/ccalendarplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -40,7 +40,12 @@ _LIT(KCalendarLocationField, "Location"); _LIT(KCalendarStartTimeField, "StartTime"); _LIT(KCalendarEndTimeField, "EndTime"); +_LIT(KCalenderCompletedField, "CompletedDate"); _LIT(KCalendarAttendeesField, "Attendees"); +_LIT(KCalendarPriorityField, "Priority"); +_LIT(KCalendarPriorityHigh, "High"); +_LIT(KCalendarPriorityMedium, "Normal"); +_LIT(KCalendarPriorityLow, "Low"); class CCalendarPlugin : public CIndexingPlugin, public MDelayedCallbackObserver, public MCalProgressCallBack, public MCalChangeCallBack2 { diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/calendar/src/ccalendarplugin.cpp --- a/harvesterplugins/calendar/src/ccalendarplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/calendar/src/ccalendarplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -40,9 +40,7 @@ /** The delay between harvesting chunks. */ const TInt KHarvestingDelay = 2000; - -_LIT(KCalendarTimeFormat,"%F%/0%Y%M%D%H%T"); // Locale independent YYYYMMDDHHSS - +_LIT(KCalendarTimeFormat,"%04d %02d %02d %02d %02d"); // --------------------------------------------------------------------------- // CMessagePlugin::NewL // --------------------------------------------------------------------------- @@ -352,6 +350,7 @@ { if (!iIndexer) return; + OstTrace1( TRACE_NORMAL, CCALENDARPLUGIN_CREATEENTRYL, "CCalendarPlugin::CreateEntryL();Uid=%d", aLocalUid ); CPIXLOGSTRING2("CCalendarPlugin::CreateEntryL(): Uid = %d.", aLocalUid); @@ -387,24 +386,58 @@ index_item->AddFieldL(KCalendarSummaryField, entry->SummaryL()); index_item->AddFieldL(KCalendarDescriptionField, entry->DescriptionL()); index_item->AddFieldL(KCalendarLocationField, entry->LocationL()); + + TUint priority = entry->PriorityL(); + + switch(priority) + { + case 1: + index_item->AddFieldL(KCalendarPriorityField, KCalendarPriorityHigh); + break; + case 2: + index_item->AddFieldL(KCalendarPriorityField, KCalendarPriorityMedium); + break; + case 3: + index_item->AddFieldL(KCalendarPriorityField, KCalendarPriorityLow); + break; + default: + index_item->AddFieldL(KCalendarPriorityField, KNullDesC); + break; + } TBuf<30> dateString; - - TTime startTime = entry->StartTimeL().TimeUtcL(); - startTime.FormatL(dateString, KCalendarTimeFormat); + TDateTime datetime = entry->StartTimeL().TimeUtcL().DateTime(); + dateString.Format( KCalendarTimeFormat, datetime.Year(), + TInt(datetime.Month()+ 1), + datetime.Day() + 1, + datetime.Hour()+ 1, + datetime.Minute()); index_item->AddFieldL(KCalendarStartTimeField, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); - TTime endTime = entry->EndTimeL().TimeUtcL(); - endTime.FormatL(dateString, KCalendarTimeFormat); + TDateTime endTime = entry->EndTimeL().TimeUtcL().DateTime(); + dateString.Format( KCalendarTimeFormat, endTime.Year(), + TInt(endTime.Month()+ 1), + endTime.Day() + 1, + endTime.Hour()+ 1, + endTime.Minute()); index_item->AddFieldL(KCalendarEndTimeField, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); - + + TTime completedTime = entry->CompletedTimeL().TimeUtcL(); + if( completedTime != Time::NullTTime() && CCalEntry::ETodo == entry->EntryTypeL()) + { + TDateTime compTime = completedTime.DateTime(); + dateString.Format( KCalendarTimeFormat, compTime.Year(), + TInt(compTime.Month()+ 1), + compTime.Day() + 1, + compTime.Hour()+ 1, + compTime.Minute()); + index_item->AddFieldL(KCalenderCompletedField, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + } index_item->AddFieldL(KMimeTypeField, KMimeTypeCalendar, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); - TInt excerptLength = 3 + entry->SummaryL().Length() + entry->DescriptionL().Length() + entry->LocationL().Length(); + TInt excerptLength = 1 /*single 1-character delimiters*/ + entry->DescriptionL().Length() + entry->LocationL().Length(); HBufC* excerpt = HBufC::NewLC(excerptLength); TPtr excerptDes = excerpt->Des(); - excerptDes.Copy(entry->SummaryL()); - excerptDes.Append(KExcerptDelimiter); excerptDes.Append(entry->DescriptionL()); excerptDes.Append(KExcerptDelimiter); excerptDes.Append(entry->LocationL()); diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/calendar/traces/OstTraceDefinitions.h --- a/harvesterplugins/calendar/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/calendar/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/contacts/inc/ccontactsplugin.h --- a/harvesterplugins/contacts/inc/ccontactsplugin.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/contacts/inc/ccontactsplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -25,6 +25,7 @@ #include #include #include "delayedcallback.h" +#include "cdocumentfield.h" class CSearchDocument; class CContactItemFieldSet; @@ -53,14 +54,23 @@ _LIT(KContactsSIPIDField, "SIPID"); _LIT(KContactsSpouseField, "Spouse"); _LIT(KContactsChildrenField, "Children"); -_LIT(KContactsClassField, "Class"); +//_LIT(KContactsClassField, "Class"); _LIT(KContactsPrefixField, "Prefix"); _LIT(KContactsAdditionalNameField, "AdditionalName"); _LIT(KContactsFaxField, "Fax"); -_LIT(KContactsGivenNamePronunciationField, "GivenNamePronunciation"); -_LIT(KContactsFamilyNamePronunciationField, "FamilyNamePronunciation"); -_LIT(KContactsCompanyNamePronunciationField, "CompanyNamePronunciation"); - +_LIT(KContactsDepartmentName, "Departmant"); +_LIT(KContactIMAddress, "IMAddress"); +_LIT(KContactServiceProvider, "ServiceProvider"); +_LIT(KContactAssistant, "Assistant"); +_LIT(KContactAnniversary, "Anniversary"); +_LIT(KContactBirthday, "Birthday"); +_LIT(KDateSeparator, "-"); +const TInt KDateFieldLength = 10; +const TInt KDayPosition = 8; +const TInt KMonthPosition = 5; +const TInt KYearPosition = 0; +const TInt KDayLength = 2; +const TInt KYearLength = 4; class CContactsPlugin : public CIndexingPlugin, public MContactDbObserver, public MDelayedCallbackObserver { @@ -93,14 +103,23 @@ /** * Adds information field (if available) */ - void AddFieldL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName ); - + void AddFieldL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName, const TInt aConfig = CDocumentField::EStoreYes | CDocumentField::EIndexTokenized); + + /** + * Gets the date from anniversary text field + */ + void GetDateL(const TDesC& aTime, TDes& aDateString); /** * Adds to excerpt */ void AddToExcerptL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName ); /** + * Helper function: adds information field to the document and to the excerpt field(if available) + */ + void AddFieldToDocumentAndExcerptL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName, const TInt aConfig = CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + + /** * Creates the actual contact book index item */ void CreateContactIndexItemL(TInt aContentId, TCPixActionType aActionType); @@ -123,6 +142,11 @@ // CPix database CCPixIndexer* iIndexer; +//for helping with testing. +#ifdef HARVESTERPLUGINTESTER_FRIEND + friend class CHarvesterPluginTester; +#endif + #ifdef __PERFORMANCE_DATA TTime iStartTime; TTime iCompleteTime; diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/contacts/src/ccontactsplugin.cpp --- a/harvesterplugins/contacts/src/ccontactsplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/contacts/src/ccontactsplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -39,7 +39,8 @@ const TInt KContactsPerRunL = 1; _LIT(KExcerptDelimiter, " "); - +_LIT(KTimeFormat, "%D%N%Y%1 %2 %3"); //Date, Month name and Year format + // ----------------------------------------------------------------------------- // CContactsPlugin::NewL() // ----------------------------------------------------------------------------- @@ -77,16 +78,15 @@ // CContactsPlugin::~CContactsPlugin() { - if (iAsynchronizer) - iAsynchronizer->CancelCallback(); + if( iAsynchronizer ) iAsynchronizer->CancelCallback(); delete iAsynchronizer; iContacts = NULL; delete iChangeNotifier; delete iDatabase; delete iIndexer; - - if (iExcerpt) - delete iExcerpt; + //delete NULL is safe - so no need to test nullity of iExceprt (which routinely + //keeps getting deleted in the plugin). + delete iExcerpt; } // ----------------------------------------------------------------------------- @@ -150,6 +150,7 @@ { case EContactDbObserverEventContactChanged: case EContactDbObserverEventGroupChanged: + case EContactDbObserverEventOwnCardChanged: OstTrace1( TRACE_NORMAL, DUP3_CCONTACTSPLUGIN_HANDLEDATABASEEVENTL, "CContactsPlugin::HandleDatabaseEventL;Monitored update id=%d", aEvent.iContactId ); CPIXLOGSTRING2("CContactsPlugin::DelayedCallbackL(): Monitored update id=%d.", aEvent.iContactId); #ifdef __PERFORMANCE_DATA @@ -163,6 +164,7 @@ case EContactDbObserverEventContactDeleted: case EContactDbObserverEventGroupDeleted: + case EContactDbObserverEventOwnCardDeleted: OstTrace1( TRACE_NORMAL, CCONTACTSPLUGIN_HANDLEDATABASEEVENTL, "CContactsPlugin::HandleDatabaseEventL();Monitored delete id=%d", aEvent.iContactId ); CPIXLOGSTRING2("CContactsPlugin::DelayedCallbackL(): Monitored delete id=%d.", aEvent.iContactId); #ifdef __PERFORMANCE_DATA @@ -249,7 +251,7 @@ // PhoneNumber values), then the FieldNames of non-first values are appended a // number. // --------------------------------------------------------------------------- -void CContactsPlugin::AddFieldL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName) +void CContactsPlugin::AddFieldL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName, const TInt aConfig) { HBufC* fieldName = HBufC::NewLC(aFieldName.Length() + 3); // +3 so can append variable 'i'. TPtr fieldNamePtr = fieldName->Des(); @@ -264,13 +266,34 @@ fieldNamePtr.AppendNum(i); } CContactItemField& additionalField = aFieldSet[findpos]; - CContactTextField* fieldText = additionalField.TextStorage(); - if (fieldText && fieldText->Text() != KNullDesC) - aDocument.AddFieldL(fieldNamePtr, fieldText->Text(), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized); + if( additionalField.StorageType() == KStorageTypeDateTime) + { + CContactDateField* fieldDate = additionalField.DateTimeStorage(); + if (fieldDate) + { + TBuf<30> dateString; + fieldDate->Time().FormatL(dateString, KTimeFormat); + aDocument.AddFieldL(fieldNamePtr, dateString, aConfig); + } + else + aDocument.AddFieldL(fieldNamePtr, KNullDesC, aConfig); + } else - aDocument.AddFieldL(fieldNamePtr, KNullDesC, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized); - - findpos = aFieldSet.FindNext(aFieldId, findpos+1); + { + CContactTextField* fieldText = additionalField.TextStorage(); + if (fieldText && fieldText->Text() != KNullDesC && aFieldId != KUidContactFieldAnniversary) + aDocument.AddFieldL(fieldNamePtr, fieldText->Text(), aConfig); + else if (fieldText && aFieldId == KUidContactFieldAnniversary) + { + TBuf<30> dateString; + GetDateL(fieldText->Text(), dateString); + aDocument.AddFieldL(fieldNamePtr, dateString, aConfig); + } + else + aDocument.AddFieldL(fieldNamePtr, KNullDesC, aConfig); + } + findpos = aFieldSet.FindNext(aFieldId, findpos+1); + } CleanupStack::PopAndDestroy(fieldName); } @@ -280,7 +303,7 @@ // CContactsPlugin::AddToExcerptL // Adds more text to excerpt // --------------------------------------------------------------------------- -void CContactsPlugin::AddToExcerptL(CSearchDocument& /*aDocument*/, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& /*aFieldName*/ ) +void CContactsPlugin::AddToExcerptL(CSearchDocument& /*aDocument*/, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& /*aFieldName*/) { // Find field TInt findpos = aFieldSet.Find( aFieldId ); @@ -300,6 +323,17 @@ } } +// --------------------------------------------------------------------------- +// Helper: Adds the field to the document AND to the exceprt field. +// This function helps avoid calling two functions explicitly for most fields. +// This function needs to be a member function as it has to call member functions. +// Improvement: AddFieldL need to be a member function - can be refactored. +// --------------------------------------------------------------------------- +void CContactsPlugin::AddFieldToDocumentAndExcerptL(CSearchDocument& aDocument, CContactItemFieldSet& aFieldSet, TUid aFieldId, const TDesC& aFieldName, const TInt aConfig ) + { + AddFieldL( aDocument, aFieldSet, aFieldId, aFieldName, aConfig ); + AddToExcerptL( aDocument, aFieldSet, aFieldId, aFieldName ); + } // --------------------------------------------------------------------------- // CContactsPlugin::CreateMessageIndexItemL @@ -307,6 +341,8 @@ // void CContactsPlugin::CreateContactIndexItemL(TInt aContentId, TCPixActionType aActionType ) { + //indexer is created only when StartPlugin() is called. Don't create contact + //if index is not ready. if (!iIndexer) return; @@ -333,52 +369,59 @@ } else//If the contact item is a regular contact. { - CContactItemFieldSet& fieldSet = contact->CardFields(); - AddFieldL( *index_item, fieldSet, KUidContactFieldGivenName, KContactsGivenNameField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldFamilyName, KContactsFamilyNameField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldCompanyName, KContactsCompanyNameField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldPhoneNumber, KContactsPhoneNumberField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldAddress, KContactsAddressField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldNote, KContactsNoteField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldJobTitle, KContactsJobTitleField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldSecondName, KContactsSecondNameField ); - - AddFieldL( *index_item, fieldSet, KUidContactFieldPrefixName, KContactsPrefixField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldSuffixName, KContactsSuffixField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldAdditionalName, KContactsAdditionalNameField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldEMail, KContactsEMailField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldUrl, KContactsUrlField ); - - AddFieldL( *index_item, fieldSet, KUidContactFieldPostOffice, KContactsPostOfficeField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldExtendedAddress, KContactsExtendedAddressField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldLocality, KContactsLocalityField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldRegion, KContactsRegionField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldPostcode, KContactsPostcodeField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldCountry, KContactsCountryField ); - - AddFieldL( *index_item, fieldSet, KUidContactFieldSIPID, KContactsSIPIDField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldSpouse, KContactsSpouseField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldChildren, KContactsChildrenField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldClass, KContactsClassField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldFax, KContactsFaxField ); - - AddFieldL( *index_item, fieldSet, KUidContactFieldGivenNamePronunciation, KContactsGivenNamePronunciationField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldFamilyNamePronunciation, KContactsFamilyNamePronunciationField ); - AddFieldL( *index_item, fieldSet, KUidContactFieldCompanyNamePronunciation, KContactsCompanyNamePronunciationField ); - //left: Birthday; Anniversary (date kind of type), Picture, Logo.. - if (iExcerpt) { delete iExcerpt; iExcerpt = NULL; } iExcerpt = HBufC::NewL(2); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldGivenName, KContactsGivenNameField ); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldFamilyName, KContactsFamilyNameField ); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldPhoneNumber, KContactsPhoneNumberField ); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldCompanyName, KContactsCompanyNameField ); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldLocality, KContactsLocalityField ); - AddToExcerptL( *index_item, fieldSet, KUidContactFieldCountry, KContactsCountryField ); + + CContactItemFieldSet& fieldSet = contact->CardFields(); + + //For contacts, all fields __except__ GivenName and FamilyName should be added to excerpt. + //See appclass-hierarchy.txt for details. + /* The order of fields in excerpt is as below. The order in this case + * is the order of fields shown when you 'Edit' the contact. + */ + AddFieldL( *index_item, fieldSet, KUidContactFieldGivenName, KContactsGivenNameField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + AddFieldL( *index_item, fieldSet, KUidContactFieldFamilyName, KContactsFamilyNameField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField:: EIndexFreeText ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldPhoneNumber, KContactsPhoneNumberField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldEMail, KContactsEMailField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldSIPID, KContactsSIPIDField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldCompanyName, KContactsCompanyNameField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldJobTitle, KContactsJobTitleField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldNote, KContactsNoteField ); + + /* The following fields are not displayed when 'Edit'-ing the contact. + * The order here is arbitrary. + */ + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldAddress, KContactsAddressField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldSecondName, KContactsSecondNameField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldPrefixName, KContactsPrefixField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldSuffixName, KContactsSuffixField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldAdditionalName, KContactsAdditionalNameField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldUrl, KContactsUrlField ); + + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldPostOffice, KContactsPostOfficeField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldExtendedAddress, KContactsExtendedAddressField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldLocality, KContactsLocalityField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldRegion, KContactsRegionField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldPostcode, KContactsPostcodeField ); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldCountry, KContactsCountryField ); + + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldSpouse, KContactsSpouseField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldChildren, KContactsChildrenField, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + //AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldClass, KContactsClassField ); //sync field + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldFax, KContactsFaxField ); + + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldAssistant, KContactAssistant, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldDepartmentName, KContactsDepartmentName, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldIMAddress, KContactIMAddress); + AddFieldToDocumentAndExcerptL( *index_item, fieldSet, KUidContactFieldServiceProvider, KContactServiceProvider); + + AddFieldL( *index_item, fieldSet, KUidContactFieldBirthday, KContactBirthday); + AddFieldL( *index_item, fieldSet, KUidContactFieldAnniversary, KContactAnniversary); index_item->AddExcerptL(*iExcerpt); } @@ -435,6 +478,31 @@ } // --------------------------------------------------------------------------- +// CContactsPlugin::GetDateL +// --------------------------------------------------------------------------- +// +void CContactsPlugin::GetDateL(const TDesC& aTime, TDes& aDateString) + { + TTime time; + //aTime is of the form yyyy-mm-dd. + //aDateString is of the form dd Month(spelled out) Year. + //example: i/p: 2010-10-10; o/p: 10 October 2010. + if( aTime.Length() >= KDateFieldLength) + { + aDateString.Copy(aTime.Mid( KDayPosition, KDayLength )); + aDateString.Append(KDateSeparator); + aDateString.Append(aTime.Mid( KMonthPosition, KDayLength )); + aDateString.Append(KDateSeparator); + aDateString.Append(aTime.Mid( KYearPosition, KYearLength )); + TInt err = time.Parse(aDateString); + if ( err >= KErrNone) + { + time.FormatL(aDateString, KTimeFormat); + } + } + } + +// --------------------------------------------------------------------------- // CContactsPlugin::UpdatePerformaceDataL // --------------------------------------------------------------------------- // diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/contacts/traces/OstTraceDefinitions.h --- a/harvesterplugins/contacts/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/contacts/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/file/fastfindfileserverplugin/traces/OstTraceDefinitions.h --- a/harvesterplugins/file/fastfindfileserverplugin/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/file/fastfindfileserverplugin/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/file/src/cfileplugin.cpp --- a/harvesterplugins/file/src/cfileplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/file/src/cfileplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -116,7 +116,7 @@ _S("awb"),_S("mid"), _S("midi"), _S("spmid"), _S("rng"), _S("mxmf"), _S("wav"), _S("au"), _S("nrt"), _S("mka"),_S("jp2"), _S("j2k"), _S("jpx"), _S("rm"), _S("rmvb"),_S("ota"), _S("wbmp"), _S("wmf"),_S("otb"), - _S("rv"), _S("mkv"), _S("ra"),_S("tif"), _S("tiff")}; + _S("rv"), _S("mkv"), _S("asf"),_S("ra"),_S("tif"), _S("tiff")}; const TInt count = sizeof( KMediaExt ) / sizeof( TText* ); @@ -630,7 +630,8 @@ if (pos > 0) { fileFoldername.Copy(aFilePath.Mid(pos+1)); - index_item->AddFieldL(KNameField, fileFoldername); + index_item->AddFieldL(KNameField, fileFoldername, + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); } //check for the extension, for folders names store the extension field as NULL @@ -640,7 +641,7 @@ if( file.ExtPresent()) { TPtrC extension = file.Ext(); - index_item->AddFieldL(KExtensionField, extension); + index_item->AddFieldL(KExtensionField, extension, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); } index_item->AddFieldL(KMimeTypeField, KMimeTypeFile, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); } @@ -650,8 +651,9 @@ index_item->AddFieldL(KMimeTypeField, KMimeTypeFolder, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); } + //Only content to be added to exceprt field. See appclass-hierarchy.txt //Add excerpt field - index_item->AddExcerptL(aFilePath); + //index_item->AddExcerptL(aFilePath); CleanupStack::Pop(index_item); return index_item; diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/file/traces/OstTraceDefinitions.h --- a/harvesterplugins/file/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/file/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/group/bld.inf --- a/harvesterplugins/group/bld.inf Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/group/bld.inf Thu Jul 22 16:34:05 2010 +0100 @@ -18,7 +18,7 @@ #include "../messaging/group/bld.inf" #include "../file/group/bld.inf" #include "../calendar/group/bld.inf" -#include "../bookmarks/group/bld.inf" +//#include "../bookmarks/group/bld.inf" #include "../applications/group/bld.inf" #include "../notes/group/bld.inf" #include "../media/group/bld.inf" diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/inc/s60performance.h --- a/harvesterplugins/inc/s60performance.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/inc/s60performance.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,20 +1,17 @@ /* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* ============================================================================== +* Name : s60performance.h +* Part of : SearchServer +* Interface : +* Description : +* Version : * -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* +* Copyright (c) 2008 Nokia Corporation. +* This material, including documentation and any related +* computer programs, is protected by copyright controlled by +* Nokia Corporation. +* ============================================================================== */ - // Uncomment to get harvester plugin performance logs //MACRO __PERFORMANCE_DATA diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp --- a/harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/audio/src/cpixmediaaudiodoc.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -24,11 +24,13 @@ #include #include "harvesterserverlogger.h" #include "OstTraceDefinitions.h" +#include "csearchdocument.h" #ifdef OST_TRACE_COMPILER_IN_USE #include "cpixmediaaudiodocTraces.h" #endif - +_LIT( KFormatDateTime, "%04d %02d %02d %02d %02d"); // yyyy mm dd hh mm +_LIT( KExcerptFormat, "%04d/%02d/%02d %02d:%02d"); // ----------------------------------------------------------------------------- // CCPIXDocFetcher::NewL() // ----------------------------------------------------------------------------- @@ -92,53 +94,251 @@ CPIXLOGSTRING("START CCPIXMediaAudioDoc::GetCpixDocumentL"); //Get basic document CSearchDocument* index_item = CCPIXDocFetcher::GetCpixDocumentL(aObject,aAppClass,aObjectDef); - //URI and Excerpt is done add additional properties here + //Reset Excerpt and append + ResetExcerpt(); + TInt slashpos = GetUri().LocateReverse('\\'); + TPtrC name = GetUri().Mid( (slashpos+1) ); + AddToFieldExcerptL(name); //Add name to excerpt field + //additional properties here CMdEProperty* property(NULL); + CMdEPropertyDef& artistPropDef1 = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty ); + if(aObject.Property( artistPropDef1, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KArtistProperty, + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value());//Add artist to excerpt + } CMdEPropertyDef& albumPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumProperty ); if(aObject.Property( albumPropDef, property )!= KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property); AddFiledtoDocumentL(*index_item, MdeConstants::Audio::KAlbumProperty, - textProperty->Value()); + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value());//Add Album to excerpt } + CMdEPropertyDef& artistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KAlbumArtistProperty ); if(aObject.Property( artistPropDef, property ) != KErrNotFound) - { - //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; - AddFiledtoDocumentL(*index_item, - MdeConstants::Audio::KAlbumArtistProperty, - textProperty->Value()); - } + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::Audio::KAlbumArtistProperty, + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value());//Add Albumartist to excerpt + } + //orginal artist property CMdEPropertyDef& origartistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KOriginalArtistProperty ); if(aObject.Property( origartistPropDef, property ) != KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, MdeConstants::Audio::KOriginalArtistProperty, - textProperty->Value()); - } + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value());//Add Original to excerpt + } + //Get composer property CMdEPropertyDef& composerPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Audio::KComposerProperty ); if(aObject.Property( composerPropDef, property ) != KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, MdeConstants::Audio::KComposerProperty, - textProperty->Value()); + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value());//Add composer to excerpt } - CMdEPropertyDef& artistPropDef1 = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty ); - if(aObject.Property( artistPropDef1, property ) != KErrNotFound) + //Get author property + CMdEPropertyDef& authorPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KAuthorProperty ); + if(aObject.Property( authorPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KAuthorProperty, + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value()); + } + //Get comment property + CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty ); + if(aObject.Property( commentPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCommentProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + + //Get description property + CMdEPropertyDef& descriprionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDescriptionProperty ); + if(aObject.Property( descriprionPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDescriptionProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + //Copyright property + CMdEPropertyDef& copyrightPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCopyrightProperty ); + if(aObject.Property( copyrightPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCopyrightProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + //Get genre property + CMdEPropertyDef& genrePropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KGenreProperty ); + if(aObject.Property( genrePropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KGenreProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + + //Size property + CMdEPropertyDef& sizePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KSizeProperty); + if(aObject.Property( sizePropDef, property )!= KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyUint32 ) + { + CMdEUint32Property& sizeProperty = static_cast < CMdEUint32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%u"), sizeProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::Object::KSizeProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + AddToFieldExcerptL(buf); + } + } + + //Get legal property + CMdEPropertyDef& legalPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KLegalProperty ); + if(aObject.Property( legalPropDef, property ) != KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, - MdeConstants::MediaObject::KArtistProperty, - textProperty->Value()); - } + MdeConstants::MediaObject::KLegalProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + //Get track property + CMdEPropertyDef& trackPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KTrackProperty ); + if(aObject.Property( trackPropDef, property ) != KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyUint16 ) + { + CMdEUint16Property& trackProperty = static_cast < CMdEUint16Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%d"), trackProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KTrackProperty, + buf); + } + } + // Capturedate property + CMdEPropertyDef& captureDatePropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCaptureDateProperty); + if(aObject.Property( captureDatePropDef, property ) != KErrNotFound) + { + //Add field to document + if(EPropertyTime == property->Def().PropertyType()) + { + CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); + TDateTime time = timeProperty.Value().DateTime(); + TBuf<32> buf; + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCaptureDateProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); + } + } + //Get LastModifiedDate property + CMdEPropertyDef& dateTimePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KLastModifiedDateProperty); + if(aObject.Property( dateTimePropDef, property ) != KErrNotFound) + { + //Add field to document + if(EPropertyTime == property->Def().PropertyType()) + { + CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); + TDateTime time = timeProperty.Value().DateTime(); + TBuf<32> buf; + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + + AddFiledtoDocumentL(*index_item, + MdeConstants::Object::KLastModifiedDateProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); + } + } + //Get duration property + CMdEPropertyDef& durationPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDurationProperty ); + if(aObject.Property( durationPropDef, property ) != KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyReal32 ) + { + CMdEReal32Property& durationProperty = static_cast < CMdEReal32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%f"), durationProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDurationProperty, + buf ); + } + } + if( iExcerpt ) + { + index_item->AddExcerptL(*iExcerpt); + } CPIXLOGSTRING("END CCPIXMediaAudioDoc::GetCpixDocumentL"); OstTraceFunctionExit0( CCPIXMEDIAAUDIODOC_GETCPIXDOCUMENTL_EXIT ); return index_item; diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/audio/traces/OstTraceDefinitions.h --- a/harvesterplugins/media/audio/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/audio/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/image/src/cpixmediaimagedoc.cpp --- a/harvesterplugins/media/image/src/cpixmediaimagedoc.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/image/src/cpixmediaimagedoc.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -24,13 +24,14 @@ #include #include "harvesterserverlogger.h" #include "OstTraceDefinitions.h" +#include "csearchdocument.h" #ifdef OST_TRACE_COMPILER_IN_USE #include "cpixmediaimagedocTraces.h" #endif -_LIT( KFormatDateTime, "%04d-%02d-%02dT%02d:%02d:%02dZ"); // yyyy-mm-ddThh:mm:ssZ - +_LIT( KFormatDateTime, "%04d %02d %02d %02d %02d"); // yyyy mm dd hh mm +_LIT( KExcerptFormat, "%04d/%02d/%02d %02d:%02d"); //yyyy/mm/dd hh:mm // ----------------------------------------------------------------------------- // CCPIXDocFetcher::NewL() // ----------------------------------------------------------------------------- @@ -94,19 +95,124 @@ //Get basic document CPIXLOGSTRING("START CCPIXMediaImageDoc::GetCpixDocumentL"); CSearchDocument* index_item = CCPIXDocFetcher::GetCpixDocumentL(aObject,aAppClass,aObjectDef); - //URI and Excerpt is done add additional properties here + ResetExcerpt(); //Reset excerpt initially + //URI and Excerpt is done add additional properties here CMdEProperty* property(NULL); + + CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty ); + if(aObject.Property( titlePropDef, property ) != KErrNotFound) + { + //Add field to document excerpt. + CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + AddToFieldExcerptL(textProperty->Value()); + } + //Get user comment field CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty ); if(aObject.Property( commentPropDef, property )!= KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, MdeConstants::MediaObject::KCommentProperty, textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); } - CMdEPropertyDef& dateTimePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Image::KDateTimeOriginalProperty); + + //Get user description field + CMdEPropertyDef& descriptionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDescriptionProperty ); + if(aObject.Property( descriptionPropDef, property )!= KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDescriptionProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + + //Get user copyright field + CMdEPropertyDef& copyRightPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCopyrightProperty ); + if(aObject.Property( copyRightPropDef, property )!= KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCopyrightProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + + //Get user genre field + CMdEPropertyDef& genrePropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KGenreProperty ); + if(aObject.Property( genrePropDef, property )!= KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KGenreProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + + //Get legal property field + CMdEPropertyDef& legalPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KLegalProperty ); + if(aObject.Property( legalPropDef, property )!= KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KLegalProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + //Size property + CMdEPropertyDef& sizePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KSizeProperty); + if(aObject.Property( sizePropDef, property )!= KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyUint32 ) + { + CMdEUint32Property& sizeProperty = static_cast < CMdEUint32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%u"), sizeProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::Object::KSizeProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + AddToFieldExcerptL(buf); + } + } + //Get DateTimeOrginal property + CMdEPropertyDef& dateTimeOrgPropDef = aObjectDef.GetPropertyDefL(MdeConstants::Image::KDateTimeOriginalProperty); + if(aObject.Property( dateTimeOrgPropDef, property ) != KErrNotFound) + { + //Add field to document + if(EPropertyTime == property->Def().PropertyType()) + { + CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); + TDateTime time = timeProperty.Value().DateTime(); + TBuf<32> buf; + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddFiledtoDocumentL(*index_item, + MdeConstants::Image::KDateTimeOriginalProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); + } + } + //Get LastModifiedDate property + CMdEPropertyDef& dateTimePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KLastModifiedDateProperty); if(aObject.Property( dateTimePropDef, property ) != KErrNotFound) { //Add field to document @@ -115,18 +221,30 @@ CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); TDateTime time = timeProperty.Value().DateTime(); TBuf<32> buf; - buf.Format( KFormatDateTime, time.Year(), - time.Month() + 1, - time.Day() + 1, - time.Hour(), - time.Minute(), - time.Second() ); + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddFiledtoDocumentL(*index_item, - MdeConstants::Image::KDateTimeOriginalProperty, + MdeConstants::Object::KLastModifiedDateProperty, buf, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); } } + if( iExcerpt ) + { + index_item->AddExcerptL(*iExcerpt); + } + //Latitude error currently /* TODO- Bhuvi Location is a seperate object for each image object if any such relation * exist it has to be searched from Relation table and from there we have to open diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/image/traces/OstTraceDefinitions.h --- a/harvesterplugins/media/image/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/image/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/mediautils/inc/cpixdocfetcher.h --- a/harvesterplugins/media/mediautils/inc/cpixdocfetcher.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/mediautils/inc/cpixdocfetcher.h Thu Jul 22 16:34:05 2010 +0100 @@ -94,6 +94,12 @@ * @param aExtension reference of descriptor buffer to be filled with file extension */ void GetExtension(const TDesC& aUri, TDes& aExtension); + + /* + * Add the value to excerpt field + * @param TDesC& aExcerptValue excerpt value + */ + void AddToFieldExcerptL(const TDesC& aExcerptValue); protected: /* * second phase constructor ConstructL @@ -103,6 +109,13 @@ * Default constructor */ CCPIXDocFetcher(); //Default constructor + /* + * reset the excerpt + */ + void ResetExcerpt(); + + // Excerpt field + HBufC* iExcerpt; private: /* * Convert URI to Absolute URI diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/mediautils/src/cpixdocfetcher.cpp --- a/harvesterplugins/media/mediautils/src/cpixdocfetcher.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/mediautils/src/cpixdocfetcher.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -27,6 +27,7 @@ #define CPIX_MIMETYPE_FIELD L"_mimetype" #define LCPIX_MIMETYPE_FIELD L"_mimetype" +const TInt KInitialExcerptLength = 5; const TInt KStartPosition = 2; //Start position of absolute path const TInt KDrivePosition = 0; //Drive position in object Uri const TInt KMaxMediaLength = 14; @@ -36,6 +37,7 @@ _LIT(KNameField, "Name"); _LIT(KMediaIdField, "MediaId"); _LIT(KExtensionField, "Extension"); +_LIT(KExcerptDelimiter, " "); // ----------------------------------------------------------------------------- // CCPIXDocFetcher::NewL() @@ -67,6 +69,7 @@ CCPIXDocFetcher::~CCPIXDocFetcher() { iFs.Close(); + delete iExcerpt; } // ----------------------------------------------------------------------------- @@ -77,6 +80,7 @@ { //Heap variables if any User::LeaveIfError(iFs.Connect()); + iExcerpt = NULL; } // ----------------------------------------------------------------------------- @@ -89,6 +93,19 @@ } // ----------------------------------------------------------------------------- +// CCPIXDocFetcher::ResetExcerpt() +// ----------------------------------------------------------------------------- +// +void CCPIXDocFetcher::ResetExcerpt() + { + if(iExcerpt) + { + delete iExcerpt; + iExcerpt = NULL; + } + } + +// ----------------------------------------------------------------------------- // CCPIXDocFetcher::GetCpixDocumentL() // ----------------------------------------------------------------------------- // @@ -109,7 +126,8 @@ //Uri is our Document ID AddFiledtoDocumentL(*index_item, KNameField, //URI as Name field - name); + name, + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); //Store media ID for client to generate path and launch corresponding Item TBuf mediaBuf; @@ -126,42 +144,53 @@ //Get the media file extension and store TBuf extension; GetExtension(aObject.Uri(),extension); - AddFiledtoDocumentL( *index_item, KExtensionField, extension ); + AddFiledtoDocumentL( *index_item, KExtensionField, extension, + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); CMdEProperty* property(NULL); CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty ); + /*Requirement Excerpt should have all item specific field in priority order so has to be handled + *at plugin specific document handler + */ if(aObject.Property( titlePropDef, property ) != KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); if(textProperty->Value() != KNullDesC) { AddFiledtoDocumentL(*index_item, MdeConstants::Object::KTitleProperty, - textProperty->Value()); - index_item->AddExcerptL(textProperty->Value()); - } - else - { - index_item->AddExcerptL(aObject.Uri()); + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); } } - else - { - //No property title - index_item->AddExcerptL(aObject.Uri()); - } + //Item type as MIME type CMdEPropertyDef& mimeTypePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KItemTypeProperty); if(aObject.Property( mimeTypePropDef, property )!= KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, _L(CPIX_MIMETYPE_FIELD), textProperty->Value(), CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); } + //Get ratings field + CMdEPropertyDef& ratingsPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KRatingProperty ); + if(aObject.Property( ratingsPropDef, property )!= KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyInt32 ) + { + CMdEInt32Property& ratingProperty = static_cast < CMdEInt32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%d"), ratingProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KRatingProperty, + buf ); + } + } CleanupStack::Pop(index_item);//pop up } CPIXLOGSTRING("END CCPIXDocFetcher::GetCpixDocumentL"); @@ -214,6 +243,30 @@ } // ----------------------------------------------------------------------------- +// CCPIXDocFetcher::AddToFieldExcerptL() +// ----------------------------------------------------------------------------- +// +void CCPIXDocFetcher::AddToFieldExcerptL(const TDesC& aExcerptValue) + { + if(!iExcerpt) + { + iExcerpt = HBufC::NewL(KInitialExcerptLength); + } + if(aExcerptValue.Compare(KNullDesC) != 0)//value is not Null + { + TInt currentSize = iExcerpt->Size(); + TInt newSize = currentSize + aExcerptValue.Size() + 1; + if(newSize > currentSize) //New size is bigger so we have to reallocate + { + iExcerpt = iExcerpt->ReAllocL(newSize); + } + TPtr ptr = iExcerpt->Des(); + ptr.Append(aExcerptValue); + ptr.Append(KExcerptDelimiter); + } + } + +// ----------------------------------------------------------------------------- // CCPIXDocFetcher::SetAbsoluteURI() // ----------------------------------------------------------------------------- // diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/video/src/cpixmediavideodoc.cpp --- a/harvesterplugins/media/video/src/cpixmediavideodoc.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/video/src/cpixmediavideodoc.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -24,11 +24,13 @@ #include #include "harvesterserverlogger.h" #include "OstTraceDefinitions.h" +#include "csearchdocument.h" #ifdef OST_TRACE_COMPILER_IN_USE #include "cpixmediavideodocTraces.h" #endif - +_LIT( KFormatDateTime, "%04d %02d %02d %02d %02d"); // yyyy mm dd hh mm +_LIT( KExcerptFormat, "%04d/%02d/%02d %02d:%02d"); //yyyy/mm/dd hh:mm // ----------------------------------------------------------------------------- // CCPIXDocFetcher::NewL() // ----------------------------------------------------------------------------- @@ -92,54 +94,233 @@ //Get basic document CPIXLOGSTRING("CCPIXMediaVideoDoc::GetCpixDocumentL()"); CSearchDocument* index_item = CCPIXDocFetcher::GetCpixDocumentL(aObject,aAppClass,aObjectDef); + ResetExcerpt(); //Reset excerpt initially + TInt slashpos = GetUri().LocateReverse('\\'); + TPtrC name = GetUri().Mid( (slashpos+1) ); + + CMdEProperty* property(NULL); + //Add Name field to document excerpt, ONLY if title field is not empty. + CMdEPropertyDef& titlePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty ); + if(aObject.Property( titlePropDef, property ) != KErrNotFound) + { + CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + if( textProperty->Value().Compare(KNullDesC) > 0 )AddToFieldExcerptL(name); //Add name to excerpt field + } + //URI and Excerpt is done add additional properties here - CMdEProperty* property(NULL); + CMdEPropertyDef& descriptionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDescriptionProperty ); + if(aObject.Property( descriptionPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDescriptionProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } CMdEPropertyDef& artistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty ); if(aObject.Property( artistPropDef, property )!= KErrNotFound) { //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); AddFiledtoDocumentL(*index_item, MdeConstants::MediaObject::KArtistProperty, - textProperty->Value()); + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value()); } CMdEPropertyDef& authorPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KAuthorProperty ); if(aObject.Property( authorPropDef, property ) != KErrNotFound) { - //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; - AddFiledtoDocumentL(*index_item, + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, MdeConstants::MediaObject::KAuthorProperty, - textProperty->Value()); + textProperty->Value(), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + AddToFieldExcerptL(textProperty->Value()); + } + + CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty ); + if(aObject.Property( commentPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCommentProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); } + + //Get description property + CMdEPropertyDef& descriprionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDescriptionProperty ); + if(aObject.Property( descriprionPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDescriptionProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + CMdEPropertyDef& copyrightPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCopyrightProperty ); if(aObject.Property( copyrightPropDef, property ) != KErrNotFound) { - //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; - AddFiledtoDocumentL(*index_item, + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, MdeConstants::MediaObject::KCopyrightProperty, textProperty->Value()); - } - CMdEPropertyDef& descriptionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDescriptionProperty ); - if(aObject.Property( descriptionPropDef, property ) != KErrNotFound) + AddToFieldExcerptL(textProperty->Value()); + } + //Get genre property + CMdEPropertyDef& genrePropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KGenreProperty ); + if(aObject.Property( genrePropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KGenreProperty, + textProperty->Value()); + AddToFieldExcerptL(textProperty->Value()); + } + //Size property + CMdEPropertyDef& sizePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KSizeProperty); + if(aObject.Property( sizePropDef, property )!= KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyUint32 ) + { + CMdEUint32Property& sizeProperty = static_cast < CMdEUint32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%u"), sizeProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::Object::KSizeProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + AddToFieldExcerptL(buf); + } + } + //Get resolution property + CMdEPropertyDef& resolutionPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KResolutionUnitProperty ); + if(aObject.Property( resolutionPropDef, property ) != KErrNotFound) { - //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; - AddFiledtoDocumentL(*index_item, - MdeConstants::MediaObject::KDescriptionProperty, - textProperty->Value()); + //Add field to document + if( property->Def().PropertyType() == EPropertyUint16 ) + { + CMdEUint16Property& resolutionProperty = static_cast < CMdEUint16Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%d"), resolutionProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KResolutionUnitProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + } + } + //Get legal property + CMdEPropertyDef& legalPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KLegalProperty ); + if(aObject.Property( legalPropDef, property ) != KErrNotFound) + { + //Add field to document + CMdETextProperty* textProperty = static_cast< CMdETextProperty* > (property ); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KLegalProperty, + textProperty->Value()); + } + //Get track property + CMdEPropertyDef& trackPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KTrackProperty ); + if(aObject.Property( trackPropDef, property ) != KErrNotFound) + { + //Add field to document + if( property->Def().PropertyType() == EPropertyUint16 ) + { + CMdEUint16Property& trackProperty = static_cast < CMdEUint16Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%d"), trackProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KTrackProperty, + buf); + } } - CMdEPropertyDef& commentPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCommentProperty ); - if(aObject.Property( commentPropDef, property ) != KErrNotFound) + // Capturedate property + CMdEPropertyDef& captureDatePropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KCaptureDateProperty); + if(aObject.Property( captureDatePropDef, property ) != KErrNotFound) + { + //Add field to document + if(EPropertyTime == property->Def().PropertyType()) + { + CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); + TDateTime time = timeProperty.Value().DateTime(); + TBuf<32> buf; + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KCaptureDateProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); + } + } + //Get LastModifiedDate property + CMdEPropertyDef& dateTimePropDef = aObjectDef.GetPropertyDefL(MdeConstants::Object::KLastModifiedDateProperty); + if(aObject.Property( dateTimePropDef, property ) != KErrNotFound) + { + //Add field to document + if(EPropertyTime == property->Def().PropertyType()) + { + CMdETimeProperty& timeProperty = static_cast < CMdETimeProperty& > (*property); + TDateTime time = timeProperty.Value().DateTime(); + TBuf<32> buf; + buf.Format( KFormatDateTime, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + + AddFiledtoDocumentL(*index_item, + MdeConstants::Object::KLastModifiedDateProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + //Format for excerpt field + buf.Format( KExcerptFormat, time.Year(), + time.Month() + 1, + time.Day() + 1, + time.Hour(), + time.Minute()); + AddToFieldExcerptL(buf); + } + } + //Get duration property + CMdEPropertyDef& durationPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KDurationProperty ); + if(aObject.Property( durationPropDef, property ) != KErrNotFound) { - //Add field to document - CMdETextProperty* textProperty = ( CMdETextProperty* ) property; - AddFiledtoDocumentL(*index_item, - MdeConstants::MediaObject::KCommentProperty, - textProperty->Value()); + //Add field to document + if( property->Def().PropertyType() == EPropertyReal32 ) + { + CMdEReal32Property& durationProperty = static_cast < CMdEReal32Property& > (*property ); + TBuf<32> buf; + buf.Format(_L("%f"), durationProperty.Value()); + AddFiledtoDocumentL(*index_item, + MdeConstants::MediaObject::KDurationProperty, + buf, + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); + } } + if( iExcerpt ) + { + index_item->AddExcerptL(*iExcerpt); + } OstTraceFunctionExit0( CCPIXMEDIAVIDEODOC_GETCPIXDOCUMENTL_EXIT ); return index_item; } - diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/media/video/traces/OstTraceDefinitions.h --- a/harvesterplugins/media/video/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/media/video/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/qtemailfetcher/bwins/qtemailfetcheru.def --- a/harvesterplugins/messaging/email/qtemailfetcher/bwins/qtemailfetcheru.def Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/qtemailfetcher/bwins/qtemailfetcheru.def Thu Jul 22 16:34:05 2010 +0100 @@ -2,24 +2,25 @@ ?processMessages@QEmailFetcher@@QAEXH@Z @ 1 NONAME ; void QEmailFetcher::processMessages(int) ?tr@QEmailFetcher@@SA?AVQString@@PBD0@Z @ 2 NONAME ; class QString QEmailFetcher::tr(char const *, char const *) ?StartHarvesting@QEmailFetcher@@QAEXXZ @ 3 NONAME ; void QEmailFetcher::StartHarvesting(void) - ?getStaticMetaObject@QEmailFetcher@@SAABUQMetaObject@@XZ @ 4 NONAME ; struct QMetaObject const & QEmailFetcher::getStaticMetaObject(void) - ??1QEmailFetcher@@UAE@XZ @ 5 NONAME ; QEmailFetcher::~QEmailFetcher(void) - ?processNextMailbox@QEmailFetcher@@AAEXXZ @ 6 NONAME ; void QEmailFetcher::processNextMailbox(void) - ?trUtf8@QEmailFetcher@@SA?AVQString@@PBD0H@Z @ 7 NONAME ; class QString QEmailFetcher::trUtf8(char const *, char const *, int) - ??_EQEmailFetcher@@UAE@I@Z @ 8 NONAME ; QEmailFetcher::~QEmailFetcher(unsigned int) - ?NotifyHarvestingComplete@QEmailFetcher@@AAEXXZ @ 9 NONAME ; void QEmailFetcher::NotifyHarvestingComplete(void) - ?handleMessageEvent@QEmailFetcher@@QAEXW4MessageEvent@@_K1V?$QList@_K@@@Z @ 10 NONAME ; void QEmailFetcher::handleMessageEvent(enum MessageEvent, unsigned long long, unsigned long long, class QList) - ?initialize@QEmailFetcher@@CAXPAV1@@Z @ 11 NONAME ; void QEmailFetcher::initialize(class QEmailFetcher *) - ?trUtf8@QEmailFetcher@@SA?AVQString@@PBD0@Z @ 12 NONAME ; class QString QEmailFetcher::trUtf8(char const *, char const *) - ?qt_metacall@QEmailFetcher@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 13 NONAME ; int QEmailFetcher::qt_metacall(enum QMetaObject::Call, int, void * *) - ?tr@QEmailFetcher@@SA?AVQString@@PBD0H@Z @ 14 NONAME ; class QString QEmailFetcher::tr(char const *, char const *, int) - ?staticMetaObject@QEmailFetcher@@2UQMetaObject@@B @ 15 NONAME ; struct QMetaObject const QEmailFetcher::staticMetaObject - ?handleMailboxesListed@QEmailFetcher@@QAEXH@Z @ 16 NONAME ; void QEmailFetcher::handleMailboxesListed(int) - ?emailServiceIntialized@QEmailFetcher@@QAEX_N@Z @ 17 NONAME ; void QEmailFetcher::emailServiceIntialized(bool) - ?processNextFolder@QEmailFetcher@@AAEXXZ @ 18 NONAME ; void QEmailFetcher::processNextFolder(void) - ?qt_metacast@QEmailFetcher@@UAEPAXPBD@Z @ 19 NONAME ; void * QEmailFetcher::qt_metacast(char const *) - ?newInstance@QEmailFetcher@@SAPAV1@AAVMEmailItemObserver@@@Z @ 20 NONAME ; class QEmailFetcher * QEmailFetcher::newInstance(class MEmailItemObserver &) - ?handleMailFoldersListed@QEmailFetcher@@QAEXH@Z @ 21 NONAME ; void QEmailFetcher::handleMailFoldersListed(int) - ??0QEmailFetcher@@AAE@AAVMEmailItemObserver@@@Z @ 22 NONAME ; QEmailFetcher::QEmailFetcher(class MEmailItemObserver &) + ?initialize@QEmailFetcher@@AAEXXZ @ 4 NONAME ; void QEmailFetcher::initialize(void) + ?getStaticMetaObject@QEmailFetcher@@SAABUQMetaObject@@XZ @ 5 NONAME ; struct QMetaObject const & QEmailFetcher::getStaticMetaObject(void) + ??1QEmailFetcher@@UAE@XZ @ 6 NONAME ; QEmailFetcher::~QEmailFetcher(void) + ?getSearchDocumentL@QEmailFetcher@@AAEPAVCSearchDocument@@ABVNmApiMessageEnvelope@EmailClientApi@@_K1@Z @ 7 NONAME ; class CSearchDocument * QEmailFetcher::getSearchDocumentL(class EmailClientApi::NmApiMessageEnvelope const &, unsigned long long, unsigned long long) + ?processNextMailbox@QEmailFetcher@@AAEXXZ @ 8 NONAME ; void QEmailFetcher::processNextMailbox(void) + ?trUtf8@QEmailFetcher@@SA?AVQString@@PBD0H@Z @ 9 NONAME ; class QString QEmailFetcher::trUtf8(char const *, char const *, int) + ??_EQEmailFetcher@@UAE@I@Z @ 10 NONAME ; QEmailFetcher::~QEmailFetcher(unsigned int) + ?NotifyHarvestingComplete@QEmailFetcher@@AAEXXZ @ 11 NONAME ; void QEmailFetcher::NotifyHarvestingComplete(void) + ?handleMessageEvent@QEmailFetcher@@QAEXW4NmApiMessageEvent@EmailClientApi@@_K1V?$QList@_K@@@Z @ 12 NONAME ; void QEmailFetcher::handleMessageEvent(enum EmailClientApi::NmApiMessageEvent, unsigned long long, unsigned long long, class QList) + ?trUtf8@QEmailFetcher@@SA?AVQString@@PBD0@Z @ 13 NONAME ; class QString QEmailFetcher::trUtf8(char const *, char const *) + ?qt_metacall@QEmailFetcher@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 14 NONAME ; int QEmailFetcher::qt_metacall(enum QMetaObject::Call, int, void * *) + ?tr@QEmailFetcher@@SA?AVQString@@PBD0H@Z @ 15 NONAME ; class QString QEmailFetcher::tr(char const *, char const *, int) + ?staticMetaObject@QEmailFetcher@@2UQMetaObject@@B @ 16 NONAME ; struct QMetaObject const QEmailFetcher::staticMetaObject + ?handleMailboxesListed@QEmailFetcher@@QAEXH@Z @ 17 NONAME ; void QEmailFetcher::handleMailboxesListed(int) + ?emailServiceIntialized@QEmailFetcher@@QAEX_N@Z @ 18 NONAME ; void QEmailFetcher::emailServiceIntialized(bool) + ?processNextFolder@QEmailFetcher@@AAEXXZ @ 19 NONAME ; void QEmailFetcher::processNextFolder(void) + ?qt_metacast@QEmailFetcher@@UAEPAXPBD@Z @ 20 NONAME ; void * QEmailFetcher::qt_metacast(char const *) + ?newInstance@QEmailFetcher@@SAPAV1@AAVMEmailItemObserver@@@Z @ 21 NONAME ; class QEmailFetcher * QEmailFetcher::newInstance(class MEmailItemObserver &) + ?handleMailFoldersListed@QEmailFetcher@@QAEXH@Z @ 22 NONAME ; void QEmailFetcher::handleMailFoldersListed(int) ?metaObject@QEmailFetcher@@UBEPBUQMetaObject@@XZ @ 23 NONAME ; struct QMetaObject const * QEmailFetcher::metaObject(void) const + ??0QEmailFetcher@@AAE@AAVMEmailItemObserver@@@Z @ 24 NONAME ; QEmailFetcher::QEmailFetcher(class MEmailItemObserver &) diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/qtemailfetcher/eabi/qtemailfetcheru.def --- a/harvesterplugins/messaging/email/qtemailfetcher/eabi/qtemailfetcheru.def Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/qtemailfetcher/eabi/qtemailfetcheru.def Thu Jul 22 16:34:05 2010 +0100 @@ -1,5 +1,5 @@ EXPORTS - _ZN13QEmailFetcher10initializeEPS_ @ 1 NONAME + _ZN13QEmailFetcher10initializeEv @ 1 NONAME _ZN13QEmailFetcher11newInstanceER18MEmailItemObserver @ 2 NONAME _ZN13QEmailFetcher11qt_metacallEN11QMetaObject4CallEiPPv @ 3 NONAME _ZN13QEmailFetcher11qt_metacastEPKc @ 4 NONAME @@ -7,19 +7,20 @@ _ZN13QEmailFetcher15processMessagesEi @ 6 NONAME _ZN13QEmailFetcher16staticMetaObjectE @ 7 NONAME DATA 16 _ZN13QEmailFetcher17processNextFolderEv @ 8 NONAME - _ZN13QEmailFetcher18handleMessageEventE12MessageEventyy5QListIyE @ 9 NONAME - _ZN13QEmailFetcher18processNextMailboxEv @ 10 NONAME - _ZN13QEmailFetcher19getStaticMetaObjectEv @ 11 NONAME - _ZN13QEmailFetcher21handleMailboxesListedEi @ 12 NONAME - _ZN13QEmailFetcher22emailServiceIntializedEb @ 13 NONAME - _ZN13QEmailFetcher23handleMailFoldersListedEi @ 14 NONAME - _ZN13QEmailFetcher24NotifyHarvestingCompleteEv @ 15 NONAME - _ZN13QEmailFetcherC1ER18MEmailItemObserver @ 16 NONAME - _ZN13QEmailFetcherC2ER18MEmailItemObserver @ 17 NONAME - _ZN13QEmailFetcherD0Ev @ 18 NONAME - _ZN13QEmailFetcherD1Ev @ 19 NONAME - _ZN13QEmailFetcherD2Ev @ 20 NONAME - _ZNK13QEmailFetcher10metaObjectEv @ 21 NONAME - _ZTI13QEmailFetcher @ 22 NONAME - _ZTV13QEmailFetcher @ 23 NONAME + _ZN13QEmailFetcher18getSearchDocumentLERKN14EmailClientApi20NmApiMessageEnvelopeEyy @ 9 NONAME + _ZN13QEmailFetcher18handleMessageEventEN14EmailClientApi17NmApiMessageEventEyy5QListIyE @ 10 NONAME + _ZN13QEmailFetcher18processNextMailboxEv @ 11 NONAME + _ZN13QEmailFetcher19getStaticMetaObjectEv @ 12 NONAME + _ZN13QEmailFetcher21handleMailboxesListedEi @ 13 NONAME + _ZN13QEmailFetcher22emailServiceIntializedEb @ 14 NONAME + _ZN13QEmailFetcher23handleMailFoldersListedEi @ 15 NONAME + _ZN13QEmailFetcher24NotifyHarvestingCompleteEv @ 16 NONAME + _ZN13QEmailFetcherC1ER18MEmailItemObserver @ 17 NONAME + _ZN13QEmailFetcherC2ER18MEmailItemObserver @ 18 NONAME + _ZN13QEmailFetcherD0Ev @ 19 NONAME + _ZN13QEmailFetcherD1Ev @ 20 NONAME + _ZN13QEmailFetcherD2Ev @ 21 NONAME + _ZNK13QEmailFetcher10metaObjectEv @ 22 NONAME + _ZTI13QEmailFetcher @ 23 NONAME + _ZTV13QEmailFetcher @ 24 NONAME diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.cpp --- a/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -17,18 +17,30 @@ #include "qtemailfetcher.h" #include -#include -//#include //If we happen to use QThread::yieldCurrentThread() +#include +#include +#include +#include +#include +#include //Symbian specific details; picked up from cemailplugin.cpp. //Refactor it to cpixmaindefs.h _LIT(KMsgBaseAppClassGeneric, "root msg email"); _LIT(KMsgSubject, "Subject"); +_LIT(KMsgSender, "Sender"); _LIT(KMsgRecipients, "Recipients"); _LIT(KMsgBody, "Body"); +_LIT(KMailBoxId, "MailBoxId"); +_LIT(KFolderId, "FolderId"); +_LIT(KHasAttachment, "HasAttachment"); +_LIT(KMailBoxName, "MailBoxName"); +//_LIT(KFolderName, "FolderName"); _LIT(KMimeTypeField, CPIX_MIMETYPE_FIELD); _LIT(KMimeTypeMsg, "Messages"); +_LIT(KAttachment, "Attachment"); +_LIT(KSentTime, "SentTime"); //------------------------------------------------------------------------------ QEmailFetcher::QEmailFetcher( MEmailItemObserver& aObserver ) @@ -41,28 +53,36 @@ iCurrentMailboxIndex( 0 ), iCurrentFolderIndex( 0 ) { + qDebug() << "QEmailFetcher::QEmailFetcher"; } //------------------------------------------------------------------------------ QEmailFetcher::~QEmailFetcher() { + if ( iEmailEventNotifier ) + iEmailEventNotifier->cancel(); + iMailBoxes.clear(); + iFolders.clear(); delete iEmailEventNotifier; delete iEmailService; - delete iMailBoxListings; + delete iEnvelopeListing; delete iMailFolderList; + delete iMailBoxListings; } //------------------------------------------------------------------------------ QEmailFetcher* QEmailFetcher::newInstance( MEmailItemObserver& aObserver ){ QEmailFetcher* emailFetcher = NULL; - + qDebug() << "QEmailFetcher::newInstance :START"; //Leak free init. try{ - QEmailFetcher* emailFetcher = new QEmailFetcher( aObserver ); - emailFetcher->iEmailService = new NmEmailService( emailFetcher ); - emailFetcher->iEmailEventNotifier = new NmEventNotifier( emailFetcher ); - emailFetcher->iMailBoxListings = new NmMailboxListing( emailFetcher ); + emailFetcher = new QEmailFetcher( aObserver ); + emailFetcher->iEmailService = new NmApiEmailService( emailFetcher ); + emailFetcher->iEmailEventNotifier = new NmApiEventNotifier( emailFetcher ); + emailFetcher->iMailBoxListings = new NmApiMailboxListing( emailFetcher ); + emailFetcher->initialize( ); //Do the rest of the init. }catch(...){ //cleanup. + qDebug() << "QEmailFetcher::newInstance ( Catch Block)"; delete emailFetcher; delete emailFetcher->iEmailService; delete emailFetcher->iEmailEventNotifier; @@ -71,33 +91,42 @@ emailFetcher->iEmailEventNotifier = NULL; emailFetcher->iMailBoxListings = NULL; throw; //rethrow the exception to caller. - } - initialize( emailFetcher ); //Do the rest of the init. + } + qDebug() << "QEmailFetcher::newInstance :END"; return emailFetcher; //returns only if not null. } //------------------------------------------------------------------------------ -void QEmailFetcher::initialize( QEmailFetcher* aThis ){ - //The use of 'aThis' is because the current function is static. - connect( aThis->iEmailService, SIGNAL(initialized(bool)), - aThis, SLOT(emailServiceIntialized(bool)) ); - aThis->iEmailService->initialise(); - aThis->connect( aThis->iEmailEventNotifier, - SIGNAL(messageEvent(MessageEvent, quint64, quint64, QList)), - aThis, - SLOT(handleMessageEvent(MessageEvent, quint64, quint64, QList)) ); +void QEmailFetcher::initialize( ){ + qDebug() << "QEmailFetcher::initialize :START"; + connect( iEmailService, SIGNAL(initialized(bool)), + this, SLOT(emailServiceIntialized(bool)) ); + iEmailService->initialise(); + //Monitor for Message changes + connect( iEmailEventNotifier, + SIGNAL(messageEvent(EmailClientApi::NmApiMessageEvent, quint64, quint64, QList)), + this, + SLOT(handleMessageEvent(EmailClientApi::NmApiMessageEvent, quint64, quint64, QList)) ); + //Start the monitoring + iEmailEventNotifier->start(); + qDebug() << "QEmailFetcher::Started monitoring for Email message event"; + qDebug() << "QEmailFetcher::initialize :END"; } //------------------------------------------------------------------------------ void QEmailFetcher::emailServiceIntialized(bool aAllOk){ + qDebug() << "QEmailFetcher::emailServiceIntialized :START aAllOk = " << aAllOk; if( aAllOk ){ - connect( iMailBoxListings, SIGNAL(mailboxesListed(int)), this, SLOT(handleMailboxesListed(int)) ); + connect( iMailBoxListings, SIGNAL(mailboxesListed(qint32)), this, SLOT(handleMailboxesListed(qint32)) ); } + qDebug() << "QEmailFetcher::emailServiceIntialized :END"; } //------------------------------------------------------------------------------ void QEmailFetcher::StartHarvesting(){ - iMailBoxListings->start(); + qDebug() << "QEmailFetcher::StartHarvesting :START"; + bool ret = iMailBoxListings->start(); + qDebug() << "QEmailFetcher::StartHarvesting :END return = " << ret; } //------------------------------------------------------------------------------ @@ -114,75 +143,129 @@ } //------------------------------------------------------------------------------ -// TODO Remove this code if qt_QString2TPtrC works. -// TODO If this function is used, remember to release memory. -// Ownership with caller. -//HBufC* qt_QString2HBufC(const QString& aString) -//{ -// HBufC *buffer; -//#ifdef QT_NO_UNICODE -// TPtrC8 ptr(reinterpret_cast(aString.toLocal8Bit().constData())); -//#else -// TPtrC16 ptr(qt_QString2TPtrC(aString)); -//#endif -// buffer = q_check_ptr(HBufC::New(ptr.Length())); -// buffer->Des().Copy(ptr); -// return buffer; -//} +CSearchDocument* getPartialSearchDocument( quint64 aEnvelopeId ) { + qDebug() << "getPartialSearchDocument :START"; + CSearchDocument* doc = 0; + QT_TRAP_THROWING( + //Use qt_Qstring2TPtrC since we are working with const EmailMessageEnvelope. + doc = CSearchDocument::NewL( qt_QString2TPtrC( QString().setNum( aEnvelopeId ) ), + KMsgBaseAppClassGeneric ); + ); + qDebug() << "getPartialSearchDocument :END"; + return doc; + } +} //anonymous namespace +//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -//Private free function creates CSearchDocument from EMailMessageEnvelope. -CSearchDocument* getSearchDocument( const NmMessageEnvelope& aEnvelope ){ - QList toList; +CSearchDocument* QEmailFetcher::getSearchDocumentL( const NmApiMessageEnvelope& aEnvelope ,quint64 aMailboxId, quint64 aFolderId ){ + QList toList; + qDebug() << "QEmailFetcher::getSearchDocumentL :START"; + //We need ALL the recipients in a SINGLE field. + //Need to cast away const-ness since the get method is unfortunately not const. - const_cast(aEnvelope).getToRecipients( toList ); - - //We need ALL the recipients in a SINGLE field. + const_cast(aEnvelope).getToRecipients( toList ); QString recipients = ""; for( int i=0; i(aEnvelope).getCcRecipients( toList ); + for( int i=0; i(aEnvelope).getPlainTextBody( body ); + const_cast(aEnvelope).getPlainTextBody( body ); QString msgBody = body.content(); - + qDebug() << "QEmailFetcher::Body of mail using paintextAPI:"<< aEnvelope.plainText() ; CSearchDocument* doc = 0; QT_TRAP_THROWING( //Use qt_Qstring2TPtrC since we are working with const EmailMessageEnvelope. doc = CSearchDocument::NewL( qt_QString2TPtrC( QString().setNum( aEnvelope.id() ) ), KMsgBaseAppClassGeneric ); - doc->AddFieldL( KMimeTypeField, KMimeTypeMsg, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); - doc->AddFieldL( KMsgSubject, qt_QString2TPtrC( aEnvelope.subject() ), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); - doc->AddFieldL( KMsgRecipients, qt_QString2TPtrC( recipients ), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); - doc->AddFieldL( KMsgBody, qt_QString2TPtrC( msgBody ), CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); - //TODO: What should go in here? - doc->AddExcerptL( KNullDesC ); + //Add the sender details + doc->AddFieldL( KMsgSender, qt_QString2TPtrC( const_cast(aEnvelope).sender() ), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); + //Add the Mimetype + doc->AddFieldL( KMimeTypeField, KMimeTypeMsg, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized ); + //Add the Subject field + doc->AddFieldL( KMsgSubject, qt_QString2TPtrC( aEnvelope.subject() ), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + //Add the recipients list (Includes To and CC fields) + doc->AddFieldL( KMsgRecipients, qt_QString2TPtrC( recipients ), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + //Add the email body + doc->AddFieldL( KMsgBody, qt_QString2TPtrC( msgBody ), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + //Add the mailboxid + doc->AddFieldL( KMailBoxId, qt_QString2TPtrC( QString().setNum( aMailboxId ) ), + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized | CDocumentField::EAggregateNo ); + //Add the folder Id + doc->AddFieldL( KFolderId, qt_QString2TPtrC( QString().setNum( aFolderId ) ), + CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized | CDocumentField::EAggregateNo ); + //Add the attachment field. This field will be added only if there is any attachment.Details of the attachment + //are not added due to lack of email application support. + if ( aEnvelope.hasAttachments() ) + doc->AddFieldL( KHasAttachment, KAttachment, CDocumentField::EStoreYes | CDocumentField::EIndexTokenized); + //Add mailbox name + NmApiMailbox aMailBox; + iEmailService->getMailbox( aMailboxId, aMailBox ); + doc->AddFieldL( KMailBoxName, qt_QString2TPtrC(aMailBox.name()) , + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText ); + + // Sent date time KSentTime + QDateTime time = aEnvelope.sentTime(); + doc->AddFieldL( KSentTime, qt_QString2TPtrC(time.toString ()) , + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized ); + //TODO : Foldername is not harvested as there is no API exposed from email application to get the foldername based on folderID. + //This feature will be implemented as soon as we get supporting API's from Email team + + //Adding subject and body to the excerpt. + QString excerpt ; + excerpt = aEnvelope.subject(); + excerpt += msgBody ; + doc->AddExcerptL( qt_QString2TPtrC(excerpt) ); ); + qDebug() << "QEmailFetcher::getSearchDocumentL :END"; return doc; } -} //anonymous namespace + //------------------------------------------------------------------------------ -//Just to avoid duplication of the following two lines. void QEmailFetcher::NotifyHarvestingComplete(){ + qDebug() << "QEmailFetcher::NotifyHarvestingComplete :START"; iCurrentMailboxIndex = iCurrentFolderIndex = 0; + //Free the iMailBoxes and iFolders + iMailBoxes.clear(); + iFolders.clear(); QT_TRAP_THROWING( iEmailObserver.HarvestingCompleted() ); + qDebug() << "QEmailFetcher::NotifyHarvestingComplete :END"; return; } //------------------------------------------------------------------------------ -void QEmailFetcher::handleMailboxesListed(int aCount){ +void QEmailFetcher::handleMailboxesListed(qint32 aCount){ + qDebug() << "QEmailFetcher::handleMailboxesListed :START"; iCurrentMailboxIndex = 0; - if( aCount == NmMailboxListing::MailboxListingFailed ) { + if( aCount == NmApiMailboxListing::MailboxListingFailed ) { NotifyHarvestingComplete(); + qDebug() << "QEmailFetcher::handleMailboxesListed :MailboxListingFailed"; return; } if( aCount>0 && iMailBoxListings->getMailboxes( iMailBoxes ) ){ //Already set to NULL in constructor, so safe to call delete first time. + qDebug() << "QEmailFetcher::handleMailboxesListed :processNextMailbox"; processNextMailbox(); }else{ + qDebug() << "QEmailFetcher::handleMailboxesListed :Harvesting Completed"; NotifyHarvestingComplete(); return; } @@ -204,30 +287,38 @@ //Recommendation: Use option 4. void QEmailFetcher::processNextMailbox(){ + qDebug() << "QEmailFetcher::processNextMailbox :START"; //No more mailboxes, notify completion. if( iCurrentMailboxIndex >= iMailBoxes.count() ) { NotifyHarvestingComplete(); + qDebug() << "QEmailFetcher::processNextMailbox :END (harvesting completed)"; return; } - //More mailboxes available. delete iMailFolderList; iMailFolderList = NULL; - iMailFolderList = new NmFolderListing( this, iMailBoxes.at( iCurrentMailboxIndex++ ).id() ); - connect( iMailFolderList, SIGNAL(foldersListed()), this, SLOT(handleMailFoldersListed()) ); - const int waitForSeconds = 30; //TODO Move this constant out of here if needed elsewhere - QTimer::singleShot( waitForSeconds, iMailFolderList, SLOT( start()) ); + iMailFolderList = new NmApiFolderListing( this, iMailBoxes.at( iCurrentMailboxIndex++ ).id() ); + connect( iMailFolderList, SIGNAL(foldersListed( qint32 )), this, SLOT(handleMailFoldersListed( qint32)) ); + iMailFolderList->start(); + +// const int waitForSeconds = 30; //TODO Move this constant out of here if needed elsewhere +// QTimer::singleShot( waitForSeconds, iMailFolderList, SLOT( start()) ); + qDebug() << "QEmailFetcher::processNextMailbox :END (goto next mailbox)"; } //------------------------------------------------------------------------------ void QEmailFetcher::handleMailFoldersListed(int aCount){ - iCurrentFolderIndex = 0; - if( aCount == NmFolderListing::FolderListingFailed ){ + qDebug() << "QEmailFetcher::handleMailFoldersListed :START"; + iCurrentFolderIndex = 0; + if( aCount == NmApiFolderListing::FolderListingFailed ){ + qDebug() << "QEmailFetcher::handleMailFoldersListed :FolderListingFailed"; processNextMailbox(); return;//Don't proceed futher. } if( aCount && iMailFolderList->getFolders( iFolders ) ){ + qDebug() << "QEmailFetcher::handleMailFoldersListed :processNextFolder"; processNextFolder(); }else{ + qDebug() << "QEmailFetcher::handleMailFoldersListed :processNextMailbox"; processNextMailbox(); return; } @@ -235,64 +326,71 @@ //------------------------------------------------------------------------------ void QEmailFetcher::processNextFolder(){ + qDebug() << "QEmailFetcher::processNextFolder :START"; //No more folders in current mailbox. if( iCurrentFolderIndex >= iFolders.count() ) { + qDebug() << "QEmailFetcher::processNextFolder :processNextMailbox"; processNextMailbox(); return;//Don't proceed futher. } - //More folders to process. //Already set to NULL in constructor, so safe to call delete first time. delete iEnvelopeListing; iEnvelopeListing = NULL; - iEnvelopeListing= new NmEnvelopeListing( + iEnvelopeListing= new NmApiEnvelopeListing( this, iFolders.at( iCurrentFolderIndex++ ).id(), iMailBoxes.at( iCurrentMailboxIndex-1 ).id() ); //we have already incremented iMailboxIndex. - connect(iEnvelopeListing, SIGNAL(envelopesListed(int)),this,SLOT(processMessages(int))); + connect(iEnvelopeListing, SIGNAL(envelopesListed(qint32)),this,SLOT(processMessages(qint32))); iEnvelopeListing->start(); + qDebug() << "QEmailFetcher::processNextFolder :processNextFolder"; } //------------------------------------------------------------------------------ -void QEmailFetcher::processMessages(int aCount){ - if( aCount == NmEnvelopeListing::EnvelopeListingFailed ) { +void QEmailFetcher::processMessages(qint32 aCount){ + qDebug() << "QEmailFetcher::processMessages :START"; + if( aCount == NmApiEnvelopeListing::EnvelopeListingFailed ) { + qDebug() << "QEmailFetcher::processMessages :EnvelopeListingFailed"; processNextFolder(); return;//Don't proceed futher. } - QList envelopes; + QList envelopes; if ( aCount > 0 && iEnvelopeListing->getEnvelopes(envelopes) ) { for( int i=0; i aMessageList){ - NmMessageEnvelope envelope; +void QEmailFetcher::handleMessageEvent( EmailClientApi::NmApiMessageEvent aEvent, quint64 aMailboxId, quint64 aFolderId, QList aMessageList){ + NmApiMessageEnvelope envelope; + qDebug() << "QEmailFetcher::handleMessageEvent :START"; const int messageCount = aMessageList.count(); if( messageCount>0 ){ if( aEvent == MessageCreated || aEvent == MessageChanged ){ + qDebug() << "QEmailFetcher::handleMessageEvent :MessageCreated || MessageChanged"; for( int i=0; igetEnvelope( aMailboxId, aFolderId, aMessageList.at( i ), envelope ) ){ + qDebug() << "QEmailFetcher::handleMessageEvent :HandleDocumentL"; QT_TRAP_THROWING( - iEmailObserver.HandleDocumentL( getSearchDocument( envelope ), + iEmailObserver.HandleDocumentL( getSearchDocumentL( envelope, aMailboxId, aFolderId ), //Doing this simply avoids *duplicate* code for update action. aEvent == MessageCreated ? ECPixAddAction : ECPixUpdateAction ) ); } } } else if( aEvent == MessageDeleted ) { - //TODO We can do better. For delete, we dont have to create full document. Just the ID should be enough. - //We can have another function called getPartialSearchDocument so deletes will be faster. + qDebug() << "QEmailFetcher::handleMessageEvent :MessageDeleted"; for( int i=0; igetEnvelope( aMailboxId, aFolderId, aMessageList.at( i ), envelope ) ){ + qDebug() << "QEmailFetcher::handleMessageEvent :MessageDeleted : HandleDocumentL"; QT_TRAP_THROWING( - iEmailObserver.HandleDocumentL( getSearchDocument( envelope ), ECPixRemoveAction ) ); + iEmailObserver.HandleDocumentL( getPartialSearchDocument( aMessageList.at( i ) ), ECPixRemoveAction ) ); } } } - } } diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.h --- a/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.h Thu Jul 22 16:34:05 2010 +0100 @@ -32,6 +32,7 @@ #include #include #include +#include #include "memailitemobserver.h" using namespace EmailClientApi; @@ -56,34 +57,33 @@ private: QEmailFetcher(MEmailItemObserver& aObserver ); - static void initialize(QEmailFetcher* aThis); //helper (2nd phase constructor). + void initialize(); //helper (2nd phase constructor). void processNextMailbox(); void processNextFolder(); void processNextEnvelope(); void NotifyHarvestingComplete(); - + CSearchDocument* getSearchDocumentL( const NmApiMessageEnvelope& aEnvelope ,quint64 aMailboxId, quint64 aFolderId ); public slots: //public since they need to be called by *other* objects. void emailServiceIntialized( bool ); - void handleMailboxesListed( int ); - void handleMailFoldersListed( int ); - void processMessages( int ); + void handleMailboxesListed( qint32 ); + void handleMailFoldersListed( qint32 ); + void processMessages( qint32 ); //Connect to messageEvent signal - void handleMessageEvent( MessageEvent aEvent, quint64 mailboxId, quint64 folderId, QList messageList ); + void handleMessageEvent( EmailClientApi::NmApiMessageEvent aEvent, quint64 mailboxId, quint64 folderId, QList messageList ); private: MEmailItemObserver& iEmailObserver; //The parent/creator. Not owned. - NmEventNotifier* iEmailEventNotifier; //owned; triggers handleMessageEvent. - NmEmailService* iEmailService; //owned. - NmMailboxListing* iMailBoxListings; //owned. - NmFolderListing* iMailFolderList; //owned. - NmEnvelopeListing* iEnvelopeListing; //owned. - NmMessageEnvelope* iMessageListing; //owned. + NmApiEventNotifier* iEmailEventNotifier; //owned; triggers handleMessageEvent. + NmApiEmailService* iEmailService; //owned. + NmApiMailboxListing* iMailBoxListings; //owned. + NmApiFolderListing* iMailFolderList; //owned. + NmApiEnvelopeListing* iEnvelopeListing; //owned. //These are needed to asynchronously process *all* mailboxes/folders. int iCurrentMailboxIndex; int iCurrentFolderIndex; - QList iMailBoxes; - QList iFolders; + QList iMailBoxes; + QList iFolders; }; #endif //_QEMAILFETCHER_H diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.pro --- a/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/qtemailfetcher/qtemailfetcher.pro Thu Jul 22 16:34:05 2010 +0100 @@ -31,7 +31,7 @@ TARGET.VID = VID_DEFAULT TARGET.CAPABILITY = CAP_GENERAL_DLL -DRM VERSION = 1.0.0 - + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE INCLUDEPATH += ../inc HEADERS += ../inc/memailitemobserver.h diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/email/src/cemailplugin.cpp --- a/harvesterplugins/messaging/email/src/cemailplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/email/src/cemailplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -74,8 +74,10 @@ // CEmailPlugin* CEmailPlugin::NewL() { + CPIXLOGSTRING("CEmailPlugin::NewL : Start"); CEmailPlugin* instance = CEmailPlugin::NewLC(); CleanupStack::Pop(instance); + CPIXLOGSTRING("CEmailPlugin::NewL : End"); return instance; } @@ -85,9 +87,11 @@ // CEmailPlugin* CEmailPlugin::NewLC() { - CEmailPlugin* instance = new (ELeave)CEmailPlugin(); + CPIXLOGSTRING("CEmailPlugin::NewLC : Start"); + CEmailPlugin* instance = new (ELeave)CEmailPlugin(); CleanupStack::PushL(instance); instance->ConstructL(); + CPIXLOGSTRING("CEmailPlugin::NewLC : End"); return instance; } @@ -135,11 +139,13 @@ // void CEmailPlugin::StartPluginL() { + CPIXLOGSTRING("CEmailPlugin::StartPluginL : Start"); CPIXLOGSTRING2("currentDrive used is : %d", iCurrentDrive ); MountL(TDriveNumber(iCurrentDrive)); //Mount current drive //create instance of QEmailFetcher QT_TRYCATCH_LEAVING(iQEmailFetcher = QEmailFetcher::newInstance(*this)); // Define this base application class, use default location + CPIXLOGSTRING("CEmailPlugin::StartPluginL : End"); } // --------------------------------------------------------------------------- diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/group/bld.inf --- a/harvesterplugins/messaging/group/bld.inf Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/group/bld.inf Thu Jul 22 16:34:05 2010 +0100 @@ -16,4 +16,5 @@ */ PRJ_MMPFILES -#include "../smsmms/group/bld.inf" \ No newline at end of file +#include "../smsmms/group/bld.inf" +#include "../email/group/bld.inf" \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/inc/cmessagedatahandler.h --- a/harvesterplugins/messaging/smsmms/inc/cmessagedatahandler.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/inc/cmessagedatahandler.h Thu Jul 22 16:34:05 2010 +0100 @@ -35,7 +35,7 @@ class CMessageDataHandler : public CActive { -public: +public: /** * Construction * @return Harvester image plugin @@ -163,6 +163,9 @@ CPop3ClientMtm* iPop3Mtm; // client for opening pop3 CImap4ClientMtm* iImap4Mtm; // client for opening imap4 RFs iFs; +#ifdef HARVESTERPLUGINTESTER_FRIEND + friend class CHarvesterPluginTester; +#endif }; #endif // CMESSAGEDATAHANDLER_H diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/inc/cmessageharvester.h --- a/harvesterplugins/messaging/smsmms/inc/cmessageharvester.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/inc/cmessageharvester.h Thu Jul 22 16:34:05 2010 +0100 @@ -128,7 +128,11 @@ // UID of current folder searched TMsvId iCurrentFolder; // Current folder message items - CMsvEntrySelection* iChildren; + CMsvEntrySelection* iChildren; + +#ifdef HARVESTERPLUGINTESTER_FRIEND + friend class CHarvesterPluginTester; +#endif }; #endif // CMESSAGEHARVESTER_H diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/inc/cmessagemonitor.h --- a/harvesterplugins/messaging/smsmms/inc/cmessagemonitor.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/inc/cmessagemonitor.h Thu Jul 22 16:34:05 2010 +0100 @@ -114,7 +114,6 @@ TCPixActionType iAction; TMsvId iFolderId; }; - private: // Queue of documents to be indexed RArray iMessages; @@ -127,6 +126,9 @@ CMsvSession& iMsvSession; CMessagePlugin& iMessagePlugin; +#ifdef HARVESTERPLUGINTESTER_FRIEND + friend class CHarvesterPluginTester; +#endif }; #endif // CMESSAGEMONITOR_H diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/inc/cmessageplugin.h --- a/harvesterplugins/messaging/smsmms/inc/cmessageplugin.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/inc/cmessageplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -141,6 +141,10 @@ TInt iCurrentDrive; // CPix indexer CCPixIndexer* iIndexer[EDriveZ+1]; // EDriveZ enum value is 25, so add 1. + +#ifdef HARVESTERPLUGINTESTER_FRIEND + friend class CHarvesterPluginTester; +#endif #ifdef __PERFORMANCE_DATA TTime iStartTime; diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/src/cmessagedatahandler.cpp --- a/harvesterplugins/messaging/smsmms/src/cmessagedatahandler.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/src/cmessagedatahandler.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -12,7 +12,7 @@ * Contributors: * * Description: Harvester message plugin - * +* */ @@ -42,7 +42,7 @@ /** Number of symbols from MsgBody taken to excerpt */ -const TInt KMsgBodyExcerptSymbols = 90; +const TInt KMsgBodyExcerptSymbols = 160; // For Ucs2 detection const TInt KUtf8BomLength = 3; @@ -66,7 +66,8 @@ _LIT(KFolderField, FOLDER_FIELD); _LIT(KBodyField, BODY_FIELD); _LIT(KSubjectField, SUBJECT_FIELD); - +_LIT(KAttachmentField, ATTACHMENT_FIELD); +_LIT(KValueAttachment, "Attachment"); // ============================ MEMBER FUNCTIONS =============================== // --------------------------------------------------------------------------- @@ -197,16 +198,7 @@ if (iMessagePlugin.GetIndexer()) { TRAPD(err, iMessagePlugin.GetIndexer()->DeleteL(docid_str)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP1_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): Document deleted." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): Document deleted."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP2_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in deleting the doc=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in deleting the document.", err); - } + OstTrace1( TRACE_NORMAL, DUP7_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL():DeleteL;err=%d", err ); } return; } @@ -223,52 +215,17 @@ case EMsgTypeSms: { TRAPD(err, index_item = CreateSmsDocumentL(aMsvId, aFolderId)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP3_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): SMS document created." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): SMS document created."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP4_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in creating the sms doc=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in creating SMS document.", err); - } + OstTrace1( TRACE_NORMAL, DUP1_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): SMS document creation;err=%d", err ); break; } case EMsgTypeMms: { TRAPD(err, index_item = CreateMmsDocumentL(aMsvId, aFolderId)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP5_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): MMS document created." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): MMS document created."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP6_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in creating the mms doc=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in creating MMS document.", err); - } - break; - } - case EMsgTypeEmailPop3: - case EMsgTypeEmailImap4: - case EMsgTypeEmailSmtp: - { - TRAPD(err, index_item = CreateEmailDocumentL(aMsvId, aFolderId)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP7_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): E-mail document created." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): E-mail document created."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP8_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in ccreating the email doc=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in creating e-mail document.", err); - } + OstTrace1( TRACE_NORMAL, DUP2_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): MMS document created;err=%d", err ); break; } case EMsgTypeInvalid: - // For EMsgTypeDraft there is no way to tell if it was a SMS, MMS or email, + // For EMsgTypeDraft there is no way to tell if it was a SMS, MMS , // so don't create index_item. case EMsgTypeDraft: default: @@ -301,30 +258,12 @@ if (aActionType == ECPixAddAction) { TRAPD(err, iMessagePlugin.GetIndexer()->AddL(*index_item)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP10_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): Added." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): Added."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP11_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in Adding=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in adding.", err); - } + OstTrace1( TRACE_NORMAL, DUP3_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): Added;err=%d", err ); } else if (aActionType == ECPixUpdateAction) { TRAPD(err, iMessagePlugin.GetIndexer()->UpdateL(*index_item)); - if (err == KErrNone) - { - OstTrace0( TRACE_NORMAL, DUP12_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): Updated." ); - CPIXLOGSTRING("CMessageDataHandler::CreateMessageIndexItemL(): Updated."); - } - else - { - OstTrace1( TRACE_NORMAL, DUP13_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL;Error in Updating=%d", err ); - CPIXLOGSTRING2("CMessageDataHandler::CreateMessageIndexItemL(): Error %d in updating.", err); - } + OstTrace1( TRACE_NORMAL, DUP4_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML, "CMessageDataHandler::CreateMessageIndexItemL(): Updated;err=%d", err ); } } else @@ -358,7 +297,8 @@ TMsvId service = 0; iMsvSession.GetEntry(aMsvId, service, entry); HBufC *fromNameOrNumberBuf = entry.iDetails.AllocLC(); - index_item->AddFieldL(KFromField, *fromNameOrNumberBuf); + index_item->AddFieldL(KFromField, *fromNameOrNumberBuf, + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); // Add the recipients as content items TBuf<64> to_field; @@ -370,7 +310,8 @@ to_field = KToField; if (i>0) to_field.AppendNum(i); - index_item->AddFieldL(to_field, recipientArray.MdcaPoint(i)); + index_item->AddFieldL(to_field, recipientArray.MdcaPoint(i), + CDocumentField::EStoreYes | CDocumentField::EIndexTokenized | CDocumentField::EIndexFreeText); } // Add the body text as a content item @@ -436,6 +377,11 @@ CMsvStore* msvStore = iMmsMtm->Entry().ReadStoreL(); CleanupStack::PushL( msvStore ); MMsvAttachmentManager& attManager = msvStore->AttachmentManagerL(); + //Add attachment value field + TInt count = attManager.AttachmentCount(); + if (count > 0) + index_item->AddFieldL(KAttachmentField, KValueAttachment); + for ( TInt i = 0; i < attManager.AttachmentCount(); i++ ) { CMsvAttachment* attInfo = attManager.GetAttachmentInfoL(i); @@ -532,159 +478,75 @@ CleanupStack::Pop(index_item); return index_item; } - -// --------------------------------------------------------------------------- -// CMessageDataHandler::CreateEmailDocumentL -// --------------------------------------------------------------------------- -// -CSearchDocument* CMessageDataHandler::CreateEmailDocumentL(const TMsvId& aMsvId, const TMsvId& aFolderId) - { - // creating CSearchDocument object with unique ID for this application - TBuf docid_str; - docid_str.AppendNum(aMsvId); - CSearchDocument* index_item = CSearchDocument::NewLC(docid_str, _L(EMAILAPPCLASS)); - - // Open the message entry - CMsvEntry* message_entry = CMsvEntry::NewL(iMsvSession, aMsvId, TMsvSelectionOrdering()); - CleanupStack::PushL(message_entry); - - // Get body - CParaFormatLayer* paraFormatLayer = CParaFormatLayer::NewL(); - CleanupStack::PushL(paraFormatLayer); - CCharFormatLayer* charFormatLayer = CCharFormatLayer::NewL(); - CleanupStack::PushL(charFormatLayer); - CRichText* richtext = CRichText::NewL(paraFormatLayer, charFormatLayer); - CleanupStack::PushL(richtext); - CImEmailMessage* message_body = CImEmailMessage::NewLC(*message_entry); - message_body->GetBodyTextL(aMsvId, CImEmailMessage::EThisMessageOnly, *richtext, *paraFormatLayer, *charFormatLayer); - - // Read the message header - CMsvStore* message_store = message_entry->ReadStoreL(); - CleanupStack::PushL(message_store); - CImHeader* header = CImHeader::NewLC(); - header->RestoreL(*message_store); - - // Add from field - index_item->AddFieldL(KFromField, header->From()); - - // Add the ToRecipients as content items - TBuf<64> to_field; - for (TInt i = 0; i < header->ToRecipients().MdcaCount(); i++) - { - to_field = KToField; - if (i>0) - to_field.AppendNum(i); - index_item->AddFieldL(to_field, header->ToRecipients().MdcaPoint(i)); - } - - // Add the CcRecipients as content items - TBuf<64> cc_field; - for (TInt i = 0; i < header->CcRecipients().MdcaCount(); i++) - { - cc_field = KCcField; - if (i>0) - cc_field.AppendNum(i); - index_item->AddFieldL(cc_field, header->CcRecipients().MdcaPoint(i)); - } - - // Add the BccRecipients as content items - TBuf<64> bcc_field; - for (TInt i = 0; i < header->BccRecipients().MdcaCount(); i++) - { - bcc_field = KBccField; - if (i>0) - bcc_field.AppendNum(i); - index_item->AddFieldL(bcc_field, header->BccRecipients().MdcaPoint(i)); - } - - const TInt richTxtLen = (richtext->DocumentLength() < KMaxDocumentSize) ? richtext->DocumentLength() : KMaxDocumentSize; - HBufC* body_text = richtext->Read(0).Left(richTxtLen).AllocLC(); - - // Add subject - TPtrC subject(header->Subject()); - index_item->AddFieldL(KSubjectField, subject); - - // Add message body - index_item->AddFieldL(KBodyField, *body_text); - - // Add excerpt - HBufC* excerpt = CreateExcerptLC(header->From(), header->ToRecipients(), subject, *body_text, aFolderId); - index_item->AddExcerptL(*excerpt); - CleanupStack::PopAndDestroy(excerpt); - - // Cleanup everything last item message entry - CleanupStack::PopAndDestroy(8, message_entry); - - // Pop the item - CleanupStack::Pop(index_item); - return index_item; - } - // --------------------------------------------------------------------------- // CMessageDataHandler::CreateExcerptLC // --------------------------------------------------------------------------- // HBufC* CMessageDataHandler::CreateExcerptLC(const TDesC& aFromAddress, const CDesCArray& aRecipientArray, - const TDesC& aSubject, + const TDesC& /*aSubject*/, const TDesC& aBodyText, const TMsvId& aFolderId) { + //Note:Only From/To (as appropriate): and Body: fields to be added to excerpt for now. + //See appclass-hierarchy.txt for details. + _LIT(KEllipsis, "..."); _LIT(KSpace, " "); TInt excerptLength = KMsgBodyExcerptSymbols + KEllipsis().Length(); - TMsvEntry entry; - TMsvId service = 0; - iMsvSession.GetEntry(aFolderId, service, entry); - HBufC *folder_str = entry.iDetails.AllocLC(); - - excerptLength += folder_str->Length(); - excerptLength += KSpace().Length(); + //Not removing commented out code as this may come back into use in near future. +// TMsvEntry entry; +// TMsvId service = 0; +// iMsvSession.GetEntry(aFolderId, service, entry); +// HBufC *folder_str = entry.iDetails.AllocLC(); +// +// excerptLength += folder_str->Length(); +// excerptLength += KSpace().Length(); - if ((aFromAddress.Length() > 0) && (aFolderId == KMsvGlobalInBoxIndexEntryIdValue)) - { - excerptLength += aFromAddress.Length(); - excerptLength += KSpace().Length(); - } - if ((aRecipientArray.MdcaCount() > 0) && (aFolderId != KMsvGlobalInBoxIndexEntryIdValue)) - { - excerptLength += aRecipientArray.MdcaPoint(0).Length(); - excerptLength += KSpace().Length(); - } - if (aSubject.Length() > 0) - { - excerptLength += aSubject.Length(); - excerptLength += KSpace().Length(); - } + if( aFolderId == KMsvGlobalInBoxIndexEntryIdValue && aFromAddress.Length() > 0 ) + { + excerptLength += aFromAddress.Length(); + excerptLength += KSpace().Length(); + } + else if( aFolderId != KMsvGlobalInBoxIndexEntryIdValue && aRecipientArray.MdcaCount() > 0 ) + { + excerptLength += aRecipientArray.MdcaPoint(0).Length(); + excerptLength += KSpace().Length(); + } HBufC* excerpt = HBufC::NewL(excerptLength); TPtr excerptPtr = excerpt->Des(); - excerptPtr.Copy(*folder_str); - excerptPtr.Append(KSpace); + //Not removing commented out code as this may come back into use in near future. +// excerptPtr.Copy(*folder_str); +// excerptPtr.Append(KSpace); - if ((aFromAddress.Length() > 0) && (aFolderId == KMsvGlobalInBoxIndexEntryIdValue)) - { - excerptPtr.Append(aFromAddress); - excerptPtr.Append(KSpace); - } - if ((aRecipientArray.MdcaCount() > 0) && (aFolderId != KMsvGlobalInBoxIndexEntryIdValue)) - { - excerptPtr.Append(aRecipientArray.MdcaPoint(0)); - excerptPtr.Append(KSpace); - } - if (aSubject.Length() > 0) - { - excerptPtr.Append(aSubject); - excerptPtr.Append(KSpace); - } + //For inbox items, From: is present while for sent items To: is present. + if ((aFromAddress.Length() > 0) && (aFolderId == KMsvGlobalInBoxIndexEntryIdValue)) + { + excerptPtr.Append(aFromAddress); + excerptPtr.Append(KSpace); + } + else if ((aRecipientArray.MdcaCount() > 0) && (aFolderId != KMsvGlobalInBoxIndexEntryIdValue)) + { + excerptPtr.Append(aRecipientArray.MdcaPoint(0)); + excerptPtr.Append(KSpace); + } + + //Not deleting this code as it might have to be brought back into use + //in (possibly near) future. +// if (aSubject.Length() > 0) +// { +// excerptPtr.Append(aSubject); +// excerptPtr.Append(KSpace); +// } excerptPtr.Append(aBodyText.Left(KMsgBodyExcerptSymbols)); if (aBodyText.Length() > KMsgBodyExcerptSymbols) excerptPtr.Append(KEllipsis); - CleanupStack::PopAndDestroy(folder_str); +// CleanupStack::PopAndDestroy(folder_str); CleanupStack::PushL(excerpt); return excerpt; } diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/src/cmessageplugin.cpp --- a/harvesterplugins/messaging/smsmms/src/cmessageplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/src/cmessageplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -252,11 +252,8 @@ iObserver->RemoveHarvestingQueue(this, baseAppClass); // Delete the index object - if (iIndexer[aMedia]) - { - delete iIndexer[aMedia]; - iIndexer[aMedia] = NULL; - } + delete iIndexer[aMedia]; + iIndexer[aMedia] = NULL; // if the aActionType is EFFMmcDismount, then the // parameter aFilename is the baseAppClass of the Index database @@ -450,14 +447,15 @@ { User::Panic(_L("CMessagePlugin PANIC"), KErrServerTerminated); break; - } - case EMsvMtmGroupInstalled: - case EMsvMtmGroupDeInstalled: - case EMsvGeneralError: // not used after v5 - case EMsvServerReady: - case EMsvCorruptedIndexRebuilt: - case EMsvMediaIncorrect: - case EMsvCorruptedIndexRebuilding: + } + // Following commented only for decision coverage +// case EMsvMtmGroupInstalled: +// case EMsvMtmGroupDeInstalled: +// case EMsvGeneralError: // not used after v5 +// case EMsvServerReady: +// case EMsvCorruptedIndexRebuilt: +// case EMsvMediaIncorrect: +// case EMsvCorruptedIndexRebuilding: default: { break; @@ -485,24 +483,6 @@ CPIXLOGSTRING("CMessagePlugin:CalculateMessageType ### Mms Message ###"); ret = EMsgTypeMms; } - else if( aEntry.iMtm.iUid == KUidMsgTypeSMTP.iUid ) - { - OstTrace0( TRACE_NORMAL, DUP2_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType ### ESmtpEmail ###" ); - CPIXLOGSTRING("CMessagePlugin:CalculateMessageType ### ESmtpEmail ###"); - ret = EMsgTypeEmailSmtp; - } - else if( aEntry.iMtm.iUid == KUidMsgTypePOP3.iUid ) - { - OstTrace0( TRACE_NORMAL, DUP3_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType ### EPop3Email ###" ); - CPIXLOGSTRING("CMessagePlugin:CalculateMessageType ### EPop3Email ###"); - ret = EMsgTypeEmailPop3; - } - else if( aEntry.iMtm.iUid == KUidMsgTypeIMAP4.iUid ) - { - OstTrace0( TRACE_NORMAL, DUP4_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE, "CMessagePlugin:CalculateMessageType ### EImap4Email ###" ); - CPIXLOGSTRING("CMessagePlugin:CalculateMessageType ### EImap4Email ###"); - ret = EMsgTypeEmailImap4; - } // Add J.J #ifndef __SERIES60_30__ // Not supported before S60 3d FP1 else if ( aEntry.iMtm.iUid == KSenduiMtmUniMessageUid.iUid ) diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/traces/OstTraceDefinitions.h --- a/harvesterplugins/messaging/smsmms/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/traces/cmessagedatahandlerTraces.h --- a/harvesterplugins/messaging/smsmms/traces/cmessagedatahandlerTraces.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/traces/cmessagedatahandlerTraces.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,4 +1,4 @@ -// Created by TraceCompiler 2.1.2 +// Created by TraceCompiler 2.2.3 // DO NOT EDIT, CHANGES WILL BE LOST #ifndef __CMESSAGEDATAHANDLERTRACES_H__ @@ -19,15 +19,8 @@ #define DUP2_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860007 #define DUP3_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860008 #define DUP4_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860009 -#define DUP5_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000a -#define DUP6_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000b #define DUP7_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000c -#define DUP8_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000d #define DUP9_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000e -#define DUP10_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x86000f -#define DUP11_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860010 -#define DUP12_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860011 -#define DUP13_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860012 #define DUP14_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML 0x860013 #define CMESSAGEDATAHANDLER_RUNL 0x860014 #define CMESSAGEDATAHANDLER_RUNERROR 0x860015 diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/traces/cmessagemonitorTraces.h --- a/harvesterplugins/messaging/smsmms/traces/cmessagemonitorTraces.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/traces/cmessagemonitorTraces.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,4 +1,4 @@ -// Created by TraceCompiler 2.1.2 +// Created by TraceCompiler 2.2.3 // DO NOT EDIT, CHANGES WILL BE LOST #ifndef __CMESSAGEMONITORTRACES_H__ diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/traces/cmessagepluginTraces.h --- a/harvesterplugins/messaging/smsmms/traces/cmessagepluginTraces.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/traces/cmessagepluginTraces.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,4 +1,4 @@ -// Created by TraceCompiler 2.1.2 +// Created by TraceCompiler 2.2.3 // DO NOT EDIT, CHANGES WILL BE LOST #ifndef __CMESSAGEPLUGINTRACES_H__ @@ -27,9 +27,6 @@ #define DUP3_CMESSAGEPLUGIN_HANDLESESSIONEVENTL 0x860025 #define CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x860026 #define DUP1_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x860027 -#define DUP2_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x860028 -#define DUP3_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x860029 -#define DUP4_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x86002a #define DUP5_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x86002b #define DUP6_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x86002c #define DUP7_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE 0x86002d diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/messaging/smsmms/traces/fixed_id.definitions --- a/harvesterplugins/messaging/smsmms/traces/fixed_id.definitions Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/messaging/smsmms/traces/fixed_id.definitions Thu Jul 22 16:34:05 2010 +0100 @@ -40,10 +40,6 @@ [TRACE]TRACE_NORMAL[0x86]_CMESSAGEPLUGIN_HANDLESESSIONEVENTL=0x22 [TRACE]TRACE_NORMAL[0x86]_CMESSAGEPLUGIN_MOUNTL=0x21 [TRACE]TRACE_NORMAL[0x86]_CMESSAGEPLUGIN_STARTPLUGINL=0x20 -[TRACE]TRACE_NORMAL[0x86]_DUP10_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xf -[TRACE]TRACE_NORMAL[0x86]_DUP11_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x10 -[TRACE]TRACE_NORMAL[0x86]_DUP12_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x11 -[TRACE]TRACE_NORMAL[0x86]_DUP13_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x12 [TRACE]TRACE_NORMAL[0x86]_DUP14_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x13 [TRACE]TRACE_NORMAL[0x86]_DUP1_CMESSAGEDATAHANDLER_CONSTRUCTL=0x2 [TRACE]TRACE_NORMAL[0x86]_DUP1_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x6 @@ -53,22 +49,26 @@ [TRACE]TRACE_NORMAL[0x86]_DUP1_CMESSAGEPLUGIN_HANDLESESSIONEVENTL=0x23 [TRACE]TRACE_NORMAL[0x86]_DUP2_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x7 [TRACE]TRACE_NORMAL[0x86]_DUP2_CMESSAGEMONITOR_HANDLEMSGCREATEDCHANGEDL=0x19 -[TRACE]TRACE_NORMAL[0x86]_DUP2_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x28 [TRACE]TRACE_NORMAL[0x86]_DUP2_CMESSAGEPLUGIN_HANDLESESSIONEVENTL=0x24 [TRACE]TRACE_NORMAL[0x86]_DUP3_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x8 -[TRACE]TRACE_NORMAL[0x86]_DUP3_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x29 [TRACE]TRACE_NORMAL[0x86]_DUP3_CMESSAGEPLUGIN_HANDLESESSIONEVENTL=0x25 [TRACE]TRACE_NORMAL[0x86]_DUP4_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x9 [TRACE]TRACE_NORMAL[0x86]_DUP4_CMESSAGEMONITOR_HANDLEMSGCREATEDCHANGEDL=0x1a -[TRACE]TRACE_NORMAL[0x86]_DUP4_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x2a -[TRACE]TRACE_NORMAL[0x86]_DUP5_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xa [TRACE]TRACE_NORMAL[0x86]_DUP5_CMESSAGEMONITOR_HANDLEMSGCREATEDCHANGEDL=0x1b [TRACE]TRACE_NORMAL[0x86]_DUP5_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x2b -[TRACE]TRACE_NORMAL[0x86]_DUP6_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xb [TRACE]TRACE_NORMAL[0x86]_DUP6_CMESSAGEMONITOR_HANDLEMSGCREATEDCHANGEDL=0x1c [TRACE]TRACE_NORMAL[0x86]_DUP6_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x2c [TRACE]TRACE_NORMAL[0x86]_DUP7_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xc [TRACE]TRACE_NORMAL[0x86]_DUP7_CMESSAGEMONITOR_HANDLEMSGCREATEDCHANGEDL=0x1d [TRACE]TRACE_NORMAL[0x86]_DUP7_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x2d -[TRACE]TRACE_NORMAL[0x86]_DUP8_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xd [TRACE]TRACE_NORMAL[0x86]_DUP9_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xe +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP10_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xf +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP11_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x10 +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP12_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x11 +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP13_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0x12 +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP2_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x28 +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP3_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x29 +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP4_CMESSAGEPLUGIN_CALCULATEMESSAGETYPE=0x2a +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP5_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xa +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP6_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xb +[[OBSOLETE]][TRACE]TRACE_NORMAL[0x86]_DUP8_CMESSAGEDATAHANDLER_CREATEMESSAGEINDEXITEML=0xd diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/notes/src/notesplugin.cpp --- a/harvesterplugins/notes/src/notesplugin.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/notes/src/notesplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -53,7 +53,7 @@ _LIT(KNpdUpdateTime , "Date"); //Reference from CPix calender harvester plugin. -_LIT(KNotesTimeFormat , "%F%/0%Y%M%D%H%T"); // Locale independent YYYYMMDDHHMM +_LIT(KNotesTimeFormat,"%04d %02d %02d %02d %02d"); // --------------------------------------------------------------------------- // CNotesPlugin::NewL @@ -346,19 +346,25 @@ index_item->AddFieldL(KNpdMemo, entry->DescriptionL()); // Add Date fields TBuf<30> dateString; - TTime endTime = entry->EndTimeL().TimeUtcL(); - endTime.FormatL(dateString, KNotesTimeFormat); + TDateTime datetime = entry->EndTimeL().TimeUtcL().DateTime(); + dateString.Format( KNotesTimeFormat, datetime.Year(), + TInt(datetime.Month()+ 1), + datetime.Day() + 1, + datetime.Hour()+ 1, + datetime.Minute()); + index_item->AddFieldL(KNpdUpdateTime, dateString, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); index_item->AddFieldL(KMimeTypeField, KMimeTypeNotes, CDocumentField::EStoreYes | CDocumentField::EIndexUnTokenized); - TInt excerptLength = entry->DescriptionL().Length(); - HBufC* excerpt = HBufC::NewLC(excerptLength); - TPtr excerptDes = excerpt->Des(); - excerptDes.Append(entry->DescriptionL()); - - index_item->AddExcerptL(*excerpt); - CleanupStack::PopAndDestroy(excerpt); + //For notes, no content is expected in excerpt for now. + //See appclass-hierarchy.txt for details. +// TInt excerptLength = entry->DescriptionL().Length(); +// HBufC* excerpt = HBufC::NewLC(excerptLength); +// TPtr excerptDes = excerpt->Des(); +// excerptDes.Append(entry->DescriptionL()); +// index_item->AddExcerptL(*excerpt); +// CleanupStack::PopAndDestroy(excerpt); // Send for indexing if (aActionType == ECPixAddAction) diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/notes/traces/OstTraceDefinitions.h --- a/harvesterplugins/notes/traces/OstTraceDefinitions.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/notes/traces/OstTraceDefinitions.h Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #ifndef __OSTTRACEDEFINITIONS_H__ #define __OSTTRACEDEFINITIONS_H__ // OST_TRACE_COMPILER_IN_USE flag has been added by Trace Compiler diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/conf/harvesterplugintester.cfg --- a/harvesterplugins/tsrc/harvesterplugintester/conf/harvesterplugintester.cfg Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/conf/harvesterplugintester.cfg Thu Jul 22 16:34:05 2010 +0100 @@ -91,6 +91,111 @@ [Endtest] [Test] +title TestMessageMountNoIndexerL +create HarvesterPluginTester foobar +foobar TestMessageMountNoIndexerL +delete foobar +[Endtest] + +[Test] +title TestMessageIsMediaRemovableL +create HarvesterPluginTester foobar +foobar TestMessageIsMediaRemovableL 0 1 2 3 +delete foobar +[Endtest] + +[Test] +title TestMessageRunErrorL +create HarvesterPluginTester foobar +foobar TestMessageRunErrorL +delete foobar +[Endtest] + +[Test] +title TestQualifiedBaseAppClass +create HarvesterPluginTester foobar +foobar TestQualifiedBaseAppClass +delete foobar +[Endtest] + +[Test] +title TestHandleMsgMoved +create HarvesterPluginTester foobar +foobar TestHandleMsgMoved +delete foobar +[Endtest] + +[Test] +title TestMessageDataHandler +create HarvesterPluginTester foobar +foobar TestMessageDataHandler +delete foobar +[Endtest] + +[Test] +title TestMsgUnMount +create HarvesterPluginTester foobar +foobar TestMsgUnMount +delete foobar +[Endtest] + +[Test] +title TestFormFormBaseAppClass +create HarvesterPluginTester foobar +foobar TestFormFormBaseAppClass +delete foobar +[Endtest] + +[Test] +title TestMsgDelete +create HarvesterPluginTester foobar +foobar TestMsgDelete +delete foobar +[Endtest] + +[Test] +title TestMsgHandlesession +create HarvesterPluginTester foobar +foobar TestMsgHandlesession +delete foobar +[Endtest] + +[Test] +title TestMsgHandlesessionPanic +create HarvesterPluginTester foobar +foobar TestMsgHandlesessionPanic 0 +delete foobar +[Endtest] + +[Test] +title TestMsgHandlesessionPanic +create HarvesterPluginTester foobar +foobar TestMsgHandlesessionPanic 1 +delete foobar +[Endtest] + +[Test] +title TestMsgHandlesessionPanic +create HarvesterPluginTester foobar +foobar TestMsgHandlesessionPanic 2 +delete foobar +[Endtest] + +[Test] +title TestMsgOverwriteOrAddToQuere +create HarvesterPluginTester foobar +foobar TestMsgOverwriteOrAddToQuere +delete foobar +[Endtest] + +[Test] +title TestMsgMessageHarvester +create HarvesterPluginTester foobar +foobar TestMsgMessageHarvester +delete foobar +[Endtest] + +[Test] title TestAddBookmarkL create HarvesterPluginTester foobar foobar TestAddBookmarkL TestBookmark http:\/\/testbookmark.com testbookmark.com @@ -193,6 +298,13 @@ [Endtest] [Test] +title TestCreateAllContactFields +create HarvesterPluginTester foobar +foobar TestCreateAllContactFields And +delete foobar +[Endtest] + +[Test] title TestCreateContactIndexItemL_Edit create HarvesterPluginTester foobar foobar TestCreateContactIndexItemL_Edit update ContactNew ContactModified @@ -207,6 +319,48 @@ [Endtest] [Test] +title TestCreateContactIndexItemNoIndexerL +create HarvesterPluginTester foobar +foobar TestCreateContactIndexItemNoIndexerL +delete foobar +[Endtest] + +[Test] +title TestContactGetDateL +create HarvesterPluginTester foobar +foobar TestContactGetDateL 2010-11-30 +delete foobar +[Endtest] + +[Test] +title TestContactDelayedErrorL +create HarvesterPluginTester foobar +foobar TestContactDelayedErrorL +delete foobar +[Endtest] + +[Test] +title TestContactDelayedCallbackNoIContactsL +create HarvesterPluginTester foobar +foobar TestContactDelayedCallbackNoIContactsL +delete foobar +[Endtest] + +[Test] +title TestContactDelayedCallbackNoIObserverL +create HarvesterPluginTester foobar +foobar TestContactDelayedCallbackNoIObserverL +delete foobar +[Endtest] + +[Test] +title TestContactDelayedCallbackWrongCountL +create HarvesterPluginTester foobar +foobar TestContactDelayedCallbackWrongCountL +delete foobar +[Endtest] + +[Test] title TestCreateContactGroup create HarvesterPluginTester foobar foobar TestCreateContactGroup TestGroup @@ -249,6 +403,20 @@ [Endtest] [Test] +title TestAudioHarvestingUpdateIndex +create HarvesterPluginTester foobar +foobar TestAudioHarvestingUpdateIndex c:\data\eagle_landed.mp3 eagle_landed.mp3 testaudio.mp3 +delete foobar +[Endtest] + +[Test] +title TestAudioHarvestingDeleteIndex +create HarvesterPluginTester foobar +foobar TestAudioHarvestingDeleteIndex c:\data\eagle_landed.mp3 eagle_landed.mp3 +delete foobar +[Endtest] + +[Test] title TestMdsSyncController create HarvesterPluginTester foobar foobar TestMdsSyncController @@ -261,6 +429,7 @@ foobar TestVideoHarvestingIndex c:\data\Niagara.wmv Niagara.wmv delete foobar [Endtest] + [Test] title TestVideoHarvestingUpdateIndex create HarvesterPluginTester foobar @@ -278,21 +447,21 @@ [Test] title TestImageHarvestingAddIndex create HarvesterPluginTester foobar -foobar TestImageHarvestingAddIndex c:\data\Square.jpg Square.jpg +foobar TestImageHarvestingAddIndex c:\data\square.jpg square.jpg delete foobar [Endtest] [Test] title TestImageHarvestingUpdateIndex create HarvesterPluginTester foobar -foobar TestImageHarvestingUpdateIndex c:\data\Square.jpg Square.jpg Portrait.jpg +foobar TestImageHarvestingUpdateIndex c:\data\square.jpg square.jpg portrait.jpg delete foobar [Endtest] [Test] title TestImageHarvestingDeleteIndex create HarvesterPluginTester foobar -foobar TestImageHarvestingDeleteIndex c:\data\Square.jpg Square.jpg +foobar TestImageHarvestingDeleteIndex c:\data\square.jpg square.jpg delete foobar [Endtest] @@ -337,3 +506,17 @@ foobar TestImageMMCEventL 2 1 delete foobar [Endtest] + +[Test] +title TestStartEmailPlugin +create HarvesterPluginTester foobar +foobar TestStartEmailPlugin +delete foobar +[Endtest] + +[Test] +title TestHandleEmailDoc +create HarvesterPluginTester foobar +foobar TestHandleEmailDoc +delete foobar +[Endtest] diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/conf/square.jpg Binary file harvesterplugins/tsrc/harvesterplugintester/conf/square.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/group/bld.inf --- a/harvesterplugins/tsrc/harvesterplugintester/group/bld.inf Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/group/bld.inf Thu Jul 22 16:34:05 2010 +0100 @@ -33,6 +33,7 @@ ../conf/testfile.txt /epoc32/winscw/c/data/testfile.txt ../conf/eagle_landed.mp3 /epoc32/winscw/c/data/eagle_landed.mp3 ../conf/niagara.wmv /epoc32/winscw/c/data/niagara.wmv +../conf/square.jpg /epoc32/winscw/c/data/square.jpg //Note: Export for ROM build ../conf/testframework.ini z:/system/data/testframework.ini diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/group/harvesterplugintester.mmp --- a/harvesterplugins/tsrc/harvesterplugintester/group/harvesterplugintester.mmp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/group/harvesterplugintester.mmp Thu Jul 22 16:34:05 2010 +0100 @@ -39,6 +39,7 @@ OS_LAYER_SYSTEMINCLUDE SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/mmf/common +SYSTEMINCLUDE /epoc32/include/mw SOURCEPATH ../src @@ -77,6 +78,13 @@ // DEFFILE ?filename // AIF ?filename +//Used for adding friend classes for unit testing +//Example (in class header file): +//#ifdef HARVESTERPLUGINTESTER_FRIEND +// friend class CHarvesterPluginTester +//#endif +MACRO HARVESTERPLUGINTESTER_FRIEND + //------------------------Added for testing FilePlugin------------------- USERINCLUDE ./../../../file/inc USERINCLUDE ./../../../file/inc/monitorplugin @@ -206,6 +214,29 @@ SOURCE imageplugin.cpp //------------------End for image plugin ----------------------------- +//---------------Additions for Email plugin---------------------------- +USERINCLUDE ./../../../messaging/email/inc +USERINCLUDE ./../../../messaging/email/qtemailfetcher +SOURCEPATH ./../../../messaging/email/src + +SOURCE cemailplugin.cpp + +SYSTEMINCLUDE /epoc32/include/mw/QtCore +SYSTEMINCLUDE /epoc32/include/stdapis +SYSTEMINCLUDE /epoc32/include/stdapis/sys +SYSTEMINCLUDE . +SYSTEMINCLUDE /epoc32/include/stdapis/stlport + + +LIBRARY qtemailfetcher.lib +LIBRARY qtcore.lib +LIBRARY libstdcpp.lib + +OPTION CW -wchar_t on +MACRO _WCHAR_T_DECLARED +//EPOCALLOWDLLDATA +//------------------End for Eail plugin ----------------------------- + USERINCLUDE ../../../applications/traces USERINCLUDE ../../../bookmarks/traces USERINCLUDE ../../../calendar/traces diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/inc/ccalendarobserver.h --- a/harvesterplugins/tsrc/harvesterplugintester/inc/ccalendarobserver.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/inc/ccalendarobserver.h Thu Jul 22 16:34:05 2010 +0100 @@ -24,7 +24,7 @@ #include "calprogresscallback.h" _LIT8(KGuid, "AGlobalUid"); -class CCalendarObserver : public MCalProgressCallBack +class CCalendarObserver : public CBase, public MCalProgressCallBack { public: static CCalendarObserver* NewL(); @@ -41,6 +41,7 @@ TBool NotifyProgress(); void AddEntryL(); + void UpdateCalenderEntryL(); void DeleteEntryL(); void AddNoteL( TPtr8 aMemo); void DeleteNoteEntryL(); diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/inc/cmessagesessionobserver.h --- a/harvesterplugins/tsrc/harvesterplugintester/inc/cmessagesessionobserver.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/inc/cmessagesessionobserver.h Thu Jul 22 16:34:05 2010 +0100 @@ -20,7 +20,7 @@ #include -class CMessageSessionObserver : public MMsvSessionObserver +class CMessageSessionObserver : public CBase, public MMsvSessionObserver { public: static CMessageSessionObserver* NewL(); diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/inc/harvesterobserver.h --- a/harvesterplugins/tsrc/harvesterplugintester/inc/harvesterobserver.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/inc/harvesterobserver.h Thu Jul 22 16:34:05 2010 +0100 @@ -40,7 +40,7 @@ //from MIndexingService void AddHarvestingQueue(CIndexingPlugin* aPlugin, const TDesC& aQualifiedBaseAppClass, TBool aForceReharvest = EFalse); - void RemoveHarvestingQueue(CIndexingPlugin* /*aPlugin*/, const TDesC& /*aQualifiedBaseAppClass*/) {}; + void RemoveHarvestingQueue(CIndexingPlugin* /*aPlugin*/, const TDesC& /*aQualifiedBaseAppClass*/, TBool /*aRemovePersist = EFalse*/){}; void HarvestingCompleted(CIndexingPlugin* aPlugin, const TDesC& aQualifiedBaseAppClass, TInt aError); private: diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/inc/harvesterplugintester.h --- a/harvesterplugins/tsrc/harvesterplugintester/inc/harvesterplugintester.h Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/inc/harvesterplugintester.h Thu Jul 22 16:34:05 2010 +0100 @@ -51,7 +51,7 @@ // FORWARD DECLARATIONS //class ?FORWARD_CLASSNAME; class CHarvesterPluginTester; - +class CSearchDocument; // DATA TYPES //enum ?declaration //typedef ?declaration @@ -152,7 +152,7 @@ */ virtual TInt TestStartHarvesterL( CStifItemParser& aItem ); - virtual TInt TestFormBaseAppClass( CStifItemParser& aItem ); + virtual TInt TestFormBaseAppClassL( CStifItemParser& aItem ); virtual TInt TestDatabasePathL( CStifItemParser& aItem ); @@ -186,6 +186,12 @@ */ virtual TInt TestMessageHarvesterChangeDriveL( CStifItemParser& aItem ); + virtual TInt TestMessageRunErrorL( CStifItemParser& aItem ); + + virtual TInt TestMessageIsMediaRemovableL( CStifItemParser& aItem ); + + virtual TInt TestMessageMountNoIndexerL( CStifItemParser& aItem ); + virtual TInt TestStartBookmarksHarvesterL( CStifItemParser& aItem ); virtual TInt TestAddBookmarkL( CStifItemParser& aItem ); @@ -215,6 +221,20 @@ virtual TInt TestCreateContactIndexItemL( CStifItemParser& aItem ); + virtual TInt TestCreateContactIndexItemNoIndexerL( CStifItemParser& aItem ); + + virtual TInt TestContactGetDateL( CStifItemParser& aItem ); + + virtual TInt TestContactDelayedErrorL( CStifItemParser& aItem ); + + virtual TInt TestContactDelayedCallbackNoIContactsL( CStifItemParser& aItem ); + + virtual TInt TestContactDelayedCallbackNoIObserverL( CStifItemParser& aItem ); + + virtual TInt TestContactDelayedCallbackWrongCountL( CStifItemParser& aItem ); + + virtual TInt TestCreateAllContactFieldsL( CStifItemParser& aItem ); + virtual TInt TestCreateContactGroupL( CStifItemParser& aItem ); virtual TInt TestStartCalenderHarvesterL( CStifItemParser& aItem ); @@ -227,6 +247,10 @@ virtual TInt TestAudioHarvestingL( CStifItemParser& aItem ); + virtual TInt TestAudioHarvestingUpdateIndexL( CStifItemParser& aItem ); + + virtual TInt TestAudioHarvestingDeleteIndexL( CStifItemParser& aItem ); + virtual TInt TestMdsSyncControllerL( CStifItemParser& aItem ); virtual TInt TestBlacklistPluginL( CStifItemParser& aItem ); @@ -250,6 +274,32 @@ virtual TInt TestVideoMMCEventL( CStifItemParser& aItem ); virtual TInt TestImageMMCEventL( CStifItemParser& aItem ); + + virtual TInt TestStartEmailPluginL( CStifItemParser& aItem ); + + CSearchDocument* prepareemaildocument(); + + virtual TInt TestHandleEmailDocL( CStifItemParser& aItem ); + + virtual TInt TestQualifiedBaseAppClassL( CStifItemParser& ); + + virtual TAny TestHandleMsgMovedL( CStifItemParser& ); + + virtual TAny TestMessageDataHandlerL( CStifItemParser& ); + + virtual TInt TestMsgUnMountL( CStifItemParser& ); + + virtual TInt TestFormFormBaseAppClassL( CStifItemParser& ); + + virtual TInt TestMsgDeleteL( CStifItemParser& ); + + virtual TInt TestMsgHandlesessionL( CStifItemParser& ); + + virtual TInt TestMsgHandlesessionPanicL( CStifItemParser& aItem ); + + virtual TInt TestMsgOverwriteOrAddToQuereL( CStifItemParser& aItem ); + + virtual TInt TestMsgMessageHarvesterL( CStifItemParser& aItem ); /** * Method used to log version of test class */ diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe.mmp --- a/harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe.mmp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe.mmp Thu Jul 22 16:34:05 2010 +0100 @@ -32,20 +32,14 @@ #ifdef SBSV2 #if defined(__S60_) - OS_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal + OS_LAYER_SYSTEMINCLUDE #endif // __S60_ /* Source files */ SOURCEPATH ../src #else // SBSV2 not defined #if defined(__S60_) - MW_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal + MW_LAYER_SYSTEMINCLUDE #endif // __S60_ /* Source files */ diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe_nrm.mmp --- a/harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe_nrm.mmp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/src/capsmod_exe/group/capsmod_exe_nrm.mmp Thu Jul 22 16:34:05 2010 +0100 @@ -32,20 +32,14 @@ #ifdef SBSV2 #if defined(__S60_) - OSEXT_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal + OSEXT_LAYER_SYSTEMINCLUDE #endif // __S60_ /* Source files */ SOURCEPATH ../src #else // SBSV2 not defined #if defined(__S60_) - MW_LAYER_SYSTEMINCLUDE - #else // __S60_ not defined - SYSTEMINCLUDE /epoc32/include - SYSTEMINCLUDE /epoc32/include/internal + MW_LAYER_SYSTEMINCLUDE #endif // __S60_ /* Source files */ diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/src/ccalanderobserver.cpp --- a/harvesterplugins/tsrc/harvesterplugintester/src/ccalanderobserver.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/src/ccalanderobserver.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -65,7 +65,7 @@ void CCalendarObserver::AddEntryL() { - _LIT(KDescription,"Meeting is scheduled in 1st week of January"); + _LIT(KDescription,"Meeting"); const TDesC8& guidDes = KGuid; iUid = guidDes.AllocL(); CCalEntry* entry = CCalEntry::NewL(CCalEntry::EAppt, iUid, CCalEntry::EMethodNone, 0); @@ -94,6 +94,32 @@ CleanupStack::PopAndDestroy(entry); } +void CCalendarObserver::UpdateCalenderEntryL() + { + _LIT(KOldEntry,"Meeting"); + _LIT(KNewEntry,"Updated Meeting"); + + RPointerArray entryarray; + CleanupStack::PushL(TCleanupItem(DestroyRPointerArray, &entryarray)); + + iCalEntryView->FetchL(KGuid,entryarray); + for( int i = 0; i < entryarray.Count(); i++) + { + CCalEntry* entry = entryarray[i]; + if ( entry->EntryTypeL() == CCalEntry::EAppt ) + { + if ( entry->DescriptionL().Compare ( KOldEntry ) == 0) + { + entry->SetDescriptionL(KNewEntry); + break; + } + } + } + TInt numEntriesAdded = 0; + iCalEntryView->StoreL(entryarray, numEntriesAdded); + CleanupStack::PopAndDestroy(&entryarray); + } + void CCalendarObserver::AddNoteL( TPtr8 aMemo) { const TDesC8& guidDes = KGuid; diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp --- a/harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -109,30 +109,35 @@ TInt MessagingUtils::CreateMessageL(CMsvSession* aMsgSession, const TDesC& aMsgFrom, const TDesC& aMsgTo,const TDesC& aMsgBody) { + CSmsClientMtm* smsMtm = NULL; + TMsvId newMsgId = NULL; CClientMtmRegistry* mtmReg = CClientMtmRegistry::NewL( *aMsgSession ); - CSmsClientMtm* smsMtm = static_cast( mtmReg->NewMtmL( KUidMsgTypeSMS )); - smsMtm->SwitchCurrentEntryL( KMsvGlobalInBoxIndexEntryId ); - smsMtm->CreateMessageL( KUidMsgTypeSMS.iUid ); - TMsvId newMsgId = smsMtm->Entry().EntryId(); - smsMtm->AddAddresseeL( aMsgTo ); //to address if need - CMsvStore* messageStore = smsMtm->Entry().EditStoreL(); - CleanupStack::PushL( messageStore ); - CSmsHeader& header = smsMtm->SmsHeader(); - header.SetFromAddressL(aMsgFrom); - header.StoreL( *messageStore ); - CleanupStack::PopAndDestroy( messageStore ); - CRichText& body = smsMtm->Body(); - body.Reset(); - // Put 16bits stream stored in 8bits buffer back to 16bits buffer. - body.InsertL( 0, aMsgBody); - TMsvEntry entry = smsMtm->Entry().Entry(); - entry.SetInPreparation( EFalse ); - entry.SetVisible( ETrue ); - entry.iDate.HomeTime(); - entry.iDetails.Set(aMsgFrom); - entry.SetUnread( EFalse ); - smsMtm->Entry().ChangeL( entry ); - smsMtm->SaveMessageL(); + TRAPD(err,smsMtm = static_cast( mtmReg->NewMtmL( KUidMsgTypeSMS ))); + if( err == KErrNone) + { + smsMtm->SwitchCurrentEntryL( KMsvGlobalInBoxIndexEntryId ); + smsMtm->CreateMessageL( KUidMsgTypeSMS.iUid ); + newMsgId = smsMtm->Entry().EntryId(); + smsMtm->AddAddresseeL( aMsgTo ); //to address if need + CMsvStore* messageStore = smsMtm->Entry().EditStoreL(); + CleanupStack::PushL( messageStore ); + CSmsHeader& header = smsMtm->SmsHeader(); + header.SetFromAddressL(aMsgFrom); + header.StoreL( *messageStore ); + CleanupStack::PopAndDestroy( messageStore ); + CRichText& body = smsMtm->Body(); + body.Reset(); + // Put 16bits stream stored in 8bits buffer back to 16bits buffer. + body.InsertL( 0, aMsgBody); + TMsvEntry entry = smsMtm->Entry().Entry(); + entry.SetInPreparation( EFalse ); + entry.SetVisible( ETrue ); + entry.iDate.HomeTime(); + entry.iDetails.Set(aMsgFrom); + entry.SetUnread( EFalse ); + smsMtm->Entry().ChangeL( entry ); + smsMtm->SaveMessageL(); + } delete smsMtm; delete mtmReg; return newMsgId; @@ -164,7 +169,7 @@ TMsvAttachmentId attaId = KMsvNullIndexEntryId; RFs iFSsession; - iFSsession.Connect(); + User::LeaveIfError( iFSsession.Connect()); RFile testfile; CMsvMimeHeaders* mimeHeaders = CMsvMimeHeaders::NewL(); @@ -211,8 +216,8 @@ entry.SetUnread( EFalse ); iMmsClient->Entry().ChangeL( entry ); iMmsClient->SaveMessageL(); - delete iMmsClient; + iMmsClient = NULL; delete mtmReg; return newMsgId; } @@ -285,6 +290,7 @@ delete iSmtpClient; + iSmtpClient = NULL; delete mtmReg; return newMsgId; } diff -r e023f3f775db -r 4a4ca69db308 harvesterplugins/tsrc/harvesterplugintester/src/harvesterplugintesterblocks.cpp --- a/harvesterplugins/tsrc/harvesterplugintester/src/harvesterplugintesterblocks.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/harvesterplugins/tsrc/harvesterplugintester/src/harvesterplugintesterblocks.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -29,8 +29,11 @@ #include #include #include +#include #include "harvesterobserver.h" #include "cmessageplugin.h" +#include "cmessagemonitor.h" +#include "cmessageharvester.h" #include "cmessagesessionobserver.h" //For CMsvSession #include "ccpixsearcher.h" #include "bookmarksplugin.h" @@ -43,11 +46,12 @@ #include "mdsitementity.h" #include "cpixmdedbmanager.h" #include "cfolderrenamedharvester.h" -//#include "CBlacklistMgr.h" #include "videoplugin.h" #include "imageplugin.h" - +#include "cemailplugin.h" +#include "cmessagedatahandler.h" _LIT(KAppBasePath,"@c:root file content"); +_LIT(KEmailAppBasePath,"@c:root msg email"); _LIT(KAppBaseFolderFilePath,"@c:root file folder"); const TInt KMsgPluginBaseAppClassMaxLen = 64; @@ -56,10 +60,8 @@ #include #include "notesplugin.h" -//Test Uid for testing Blacklist manager - -//const TUid KTestUid = { 0x101D6348 }; - +_LIT( KemailId, "1" ); +_LIT(KMsgBaseAppClassGeneric, "root msg email"); #define MEDIA_QBASEAPPCLASS "@c:root media audio" #define LMEDIA_QBASEAPPCLASS L"@c:root media audio" #define VIDEO_QBASEAPPCLASS "@c:root media video" @@ -90,7 +92,7 @@ // First string is the function name used in TestScripter script file. // Second is the actual implementation member function. ENTRY( "TestStartHarvester", CHarvesterPluginTester::TestStartHarvesterL ), - ENTRY( "TestFormBaseAppClass", CHarvesterPluginTester::TestFormBaseAppClass ), + ENTRY( "TestFormBaseAppClass", CHarvesterPluginTester::TestFormBaseAppClassL ), ENTRY( "TestDatabasePath", CHarvesterPluginTester::TestDatabasePathL ), ENTRY( "TestCreateIndexItemL_Add", CHarvesterPluginTester::TestCreateIndexItemL ), ENTRY( "TestCreateIndexItemL_Update", CHarvesterPluginTester::TestCreateIndexItemL ), @@ -100,6 +102,19 @@ ENTRY( "TestMessaging", CHarvesterPluginTester::TestMessageHarvesterL ), ENTRY( "TestMessageHarvesting", CHarvesterPluginTester::TestMessageHarvesterWithMessageL ), ENTRY( "TestMessageDriveChange", CHarvesterPluginTester::TestMessageHarvesterChangeDriveL ), + ENTRY( "TestMessageRunErrorL", CHarvesterPluginTester::TestMessageRunErrorL ), + ENTRY( "TestMessageIsMediaRemovableL", CHarvesterPluginTester::TestMessageIsMediaRemovableL ), + ENTRY( "TestMessageMountNoIndexerL", CHarvesterPluginTester::TestMessageMountNoIndexerL ), + ENTRY( "TestQualifiedBaseAppClass", CHarvesterPluginTester::TestQualifiedBaseAppClassL ), + ENTRY( "TestHandleMsgMoved", CHarvesterPluginTester::TestHandleMsgMovedL ), + ENTRY( "TestMessageDataHandler", CHarvesterPluginTester::TestMessageDataHandlerL ), + ENTRY( "TestMsgUnMount", CHarvesterPluginTester::TestMsgUnMountL ), + ENTRY( "TestFormBaseAppClass", CHarvesterPluginTester::TestFormFormBaseAppClassL ), + ENTRY( "TestMsgDelete", CHarvesterPluginTester::TestMsgDeleteL ), + ENTRY( "TestMsgHandlesession", CHarvesterPluginTester::TestMsgHandlesessionL ), + ENTRY( "TestMsgHandlesessionPanic", CHarvesterPluginTester::TestMsgHandlesessionPanicL ), + ENTRY( "TestMsgOverwriteOrAddToQuere", CHarvesterPluginTester::TestMsgOverwriteOrAddToQuereL ), + ENTRY( "TestMsgMessageHarvester", CHarvesterPluginTester::TestMsgMessageHarvesterL ), ENTRY( "TestStartBookmarksHarvesterL", CHarvesterPluginTester::TestStartBookmarksHarvesterL ), ENTRY( "TestAddBookmarkL", CHarvesterPluginTester::TestAddBookmarkL ), ENTRY( "TestAddGetDomainL", CHarvesterPluginTester::TestAddGetDomainL ), @@ -113,14 +128,23 @@ ENTRY( "TestUpdateNoteL", CHarvesterPluginTester::TestUpdateNoteL ), ENTRY( "TestContactsHarvesting", CHarvesterPluginTester::TestStartContactsHarvesterL ), ENTRY( "TestCreateContactIndexItemL_Add", CHarvesterPluginTester::TestCreateContactIndexItemL ), + ENTRY( "TestCreateAllContactFields", CHarvesterPluginTester::TestCreateAllContactFieldsL ), ENTRY( "TestCreateContactIndexItemL_Edit", CHarvesterPluginTester::TestCreateContactIndexItemL ), ENTRY( "TestCreateContactIndexItemL_Delete", CHarvesterPluginTester::TestCreateContactIndexItemL ), + ENTRY( "TestCreateContactIndexItemL_NoIndexer", CHarvesterPluginTester::TestCreateContactIndexItemNoIndexerL ), + ENTRY( "TestContactGetDateL", CHarvesterPluginTester::TestContactGetDateL ), + ENTRY( "TestContactDelayedErrorL", CHarvesterPluginTester::TestContactDelayedErrorL ), + ENTRY( "TestContactDelayedCallbackNoIContactsL", CHarvesterPluginTester::TestContactDelayedCallbackNoIContactsL ), + ENTRY( "TestContactDelayedCallbackNoIObserverL", CHarvesterPluginTester::TestContactDelayedCallbackNoIObserverL ), + ENTRY( "TestContactDelayedCallbackWrongCountL", CHarvesterPluginTester::TestContactDelayedCallbackWrongCountL ), ENTRY( "TestCreateContactGroup", CHarvesterPluginTester::TestCreateContactGroupL ), ENTRY( "TestCalenderHarvesting", CHarvesterPluginTester::TestStartCalenderHarvesterL ), ENTRY( "TestCalenderEntry",CHarvesterPluginTester::TestCalenderEntryL ), ENTRY( "TestCreateMMS",CHarvesterPluginTester::TestCreateMmsL ), ENTRY( "TestCreateEmail",CHarvesterPluginTester::TestCreateEmailL ), ENTRY( "TestAudioHarvesting",CHarvesterPluginTester::TestAudioHarvestingL ), + ENTRY( "TestAudioHarvestingUpdateIndex",CHarvesterPluginTester::TestAudioHarvestingUpdateIndexL ), + ENTRY( "TestAudioHarvestingDeleteIndex",CHarvesterPluginTester::TestAudioHarvestingDeleteIndexL ), ENTRY( "TestMdsSyncController",CHarvesterPluginTester::TestMdsSyncControllerL ), //ENTRY( "TestBlacklistPlugin",CHarvesterPluginTester::TestBlacklistPluginL ), //ENTRY( "TestBlacklistPluginVersion",CHarvesterPluginTester::TestBlacklistPluginVersionL ), @@ -133,6 +157,8 @@ ENTRY( "TestAudioMMCEventL",CHarvesterPluginTester::TestAudioMMCEventL ), ENTRY( "TestVideoMMCEventL",CHarvesterPluginTester::TestVideoMMCEventL ), ENTRY( "TestImageMMCEventL",CHarvesterPluginTester::TestImageMMCEventL ), + ENTRY( "TestStartEmailPlugin",CHarvesterPluginTester::TestStartEmailPluginL ), + ENTRY( "TestHandleEmailDoc",CHarvesterPluginTester::TestHandleEmailDocL ), //ADD NEW ENTRY HERE // [test cases entries] - Do not remove }; @@ -153,6 +179,12 @@ else logger->Log( errorString ); } +CSearchDocument* CHarvesterPluginTester::prepareemaildocument() + { + CSearchDocument* doc = CSearchDocument::NewL( KemailId, + KMsgBaseAppClassGeneric ); + return doc; + } // Example test method function. // ----------------------------------------------------------------------------- TInt CHarvesterPluginTester::TestStartHarvesterL( CStifItemParser& /*aItem*/ ) @@ -171,11 +203,12 @@ iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete filePlugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } -TInt CHarvesterPluginTester::TestFormBaseAppClass( CStifItemParser& aItem ) +TInt CHarvesterPluginTester::TestFormBaseAppClassL( CStifItemParser& aItem ) { // Print to UI _LIT( KFilePluginBaseAppClass, "FormBaseAppClass" ); @@ -210,7 +243,7 @@ } delete filePlugin; delete iPluginTester; - + iPluginTester = NULL; doLog( iLog, error, KTestFormBaseAppClassNoError ); return error; } @@ -246,6 +279,7 @@ CleanupStack::PopAndDestroy( buffer ); delete filePlugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, error, KTestDatabasePathNoError ); return error; } @@ -257,15 +291,24 @@ ESearchTypeNoResultsExpected }; -TInt doSearch( const TDesC& aSearchString, const TDesC& aBaseAppClass, TSearchType aSearchType ) +TInt doSearchL( const TDesC& aSearchString, const TDesC& aBaseAppClass, TSearchType aSearchType ) { + _LIT(KHeaderPrefix, "$prefix(\""); + _LIT(KTrailerPrefix, "\")"); RSearchServerSession session; User::LeaveIfError( session.Connect() ); CCPixSearcher* searcher = CCPixSearcher::NewLC( session ); - searcher->OpenDatabaseL( aBaseAppClass ); - TInt docCount = searcher->SearchL( aSearchString, KNullDesC); + //Form prefix search query + searcher->OpenDatabaseL( aBaseAppClass ); + HBufC* searchbuf = HBufC::NewLC(KHeaderPrefix().Length() + aSearchString.Length() + KTrailerPrefix().Length()); + TPtr searchstring = searchbuf->Des(); + searchstring.Append(KHeaderPrefix); + searchstring.Append(aSearchString); + searchstring.Append(KTrailerPrefix); + TInt docCount = searcher->SearchL( searchstring, KNullDesC); + CleanupStack::PopAndDestroy( searchbuf ); CleanupStack::PopAndDestroy( searcher ); session.Close(); @@ -307,7 +350,7 @@ TPtrC searchString; while( aItem.GetNextString ( searchString ) == KErrNone && error == KErrNone ) { - error = doSearch( searchString, KAppBasePath, ESearchTypeResultsExpected ); + error = doSearchL( searchString, KAppBasePath, ESearchTypeResultsExpected ); } filePlugin->CreateContentIndexItemL( filePathName, ECPixRemoveAction ); } @@ -321,7 +364,7 @@ TPtrC searchString; while( aItem.GetNextString ( searchString ) == KErrNone && error == KErrNone ) { - error = doSearch( searchString, KAppBasePath, ESearchTypeNoResultsExpected ); + error = doSearchL( searchString, KAppBasePath, ESearchTypeNoResultsExpected ); } } } @@ -335,7 +378,7 @@ TPtrC searchString; while( aItem.GetNextString ( searchString ) == KErrNone && error == KErrNone ) { - error = doSearch( searchString, KAppBasePath, ESearchTypeResultsExpected ); + error = doSearchL( searchString, KAppBasePath, ESearchTypeResultsExpected ); } } } @@ -356,7 +399,7 @@ _LIT( KDirectoryToCreate, "C:\\data\\TestFolder\\" ); RFs fs; - fs.Connect(); + User::LeaveIfError( fs.Connect() ); TBool folderExists = BaflUtils::FolderExists(fs, KDirectoryToCreate); if(!folderExists) { @@ -366,12 +409,13 @@ if(error == KErrNone) { - error = doSearch( _L("TestFolder"), KAppBaseFolderFilePath, ESearchTypeResultsExpected ); + error = doSearchL( _L("TestFolder"), KAppBaseFolderFilePath, ESearchTypeResultsExpected ); fs.RmDir(KDirectoryToCreate); } fs.Close(); delete filePlugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, error, _L("Error: TestFolderCreateL") ); return error; @@ -381,7 +425,7 @@ { TInt error = KErrNone; RFs fs; - fs.Connect(); + User::LeaveIfError( fs.Connect() ); CFilePlugin* filePlugin = CFilePlugin::NewL(); CFolderRenamedHarvester* iFolderRenameHarvester = CFolderRenamedHarvester::NewL( *filePlugin, fs); @@ -405,7 +449,7 @@ } iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. - error = doSearch( _L("TestRenameFolder"), KAppBaseFolderFilePath, ESearchTypeResultsExpected ); + error = doSearchL( _L("TestRenameFolder"), KAppBaseFolderFilePath, ESearchTypeResultsExpected ); if(error == KErrNone) { @@ -416,13 +460,15 @@ User::After( (TTimeIntervalMicroSeconds32)35000000 ); //Search for the renamed directory - error = doSearch( _L("TestFolderRenamed"), KAppBaseFolderFilePath, ESearchTypeNoResultsExpected ); + error = doSearchL( _L("TestFolderRenamed"), KAppBaseFolderFilePath, ESearchTypeNoResultsExpected ); fs.RmDir(KDirectoryRenamed); delete filePlugin; delete iFolderRenameHarvester; + iFolderRenameHarvester = NULL; delete iPluginTester; + iPluginTester = NULL; fs.Close(); doLog( iLog, error, _L("Error: TestFolderRenameL") ); @@ -459,6 +505,7 @@ delete plugin; delete iPluginTester; + iPluginTester = NULL; delete sessionobserver; delete msgSession; doLog(iLog,KErrNone,KNoErrorString); @@ -500,6 +547,7 @@ delete plugin; delete iPluginTester; + iPluginTester = NULL; delete sessionobserver; delete msgSession; doLog(iLog,error,_L("Error in TestMessageHarvesterWithMessageL")); @@ -550,12 +598,231 @@ delete plugin; delete iPluginTester; + iPluginTester = NULL; delete sessionobserver; delete msgSession; doLog(iLog,error,_L("Error in TestMessageHarvesterChangeDriveL")); return error; } +//Only for coverage. +TInt CHarvesterPluginTester::TestMessageRunErrorL( CStifItemParser& /*aItem */) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + plugin->iMessageMonitor->RunError( KErrNone ); + delete plugin; + return KErrNone; + } +TInt CHarvesterPluginTester::TestQualifiedBaseAppClassL( CStifItemParser& ) + { + //For coverage + TDriveNumber drive ( EDriveA ); + _LIT( appcls1 ,"@c:root media image" ); + _LIT( appcls2 ,"@*:root media image" ); + _LIT( appcls3 ,"d:root media image" ); + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->MountL( EDriveC ); + TRAPD(err, plugin->StartHarvestingL(appcls1)); + delete plugin->iIndexer[EDriveC]; + plugin->iIndexer[EDriveC] = NULL; + TRAP(err, plugin->StartHarvestingL(appcls1)); + TRAP(err, plugin->StartHarvestingL(appcls2)); + TRAP(err, plugin->StartHarvestingL(appcls3)); + delete plugin; + delete iPluginTester; + return err; + } +TInt CHarvesterPluginTester::TestMsgUnMountL( CStifItemParser& ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->MountL(EDriveC); + plugin->UnMount( EDriveC ); + plugin->MountL(EDriveC); + plugin->UnMount( EDriveC , EFalse); + delete plugin; + delete iPluginTester; + return KErrNone; + } + +TAny CHarvesterPluginTester::TestHandleMsgMovedL( CStifItemParser& ) + { + const TMsvId id1 = 1; + CMsvEntrySelection* selection = new( ELeave ) CMsvEntrySelection; + // Current entry will be the one to send + selection->AppendL( id1 ); +// CMsvEntrySelection entry; + const long int ref = 2; + + const TMsvId id2 = 2; +// entry.AppendL(id1); + CMessagePlugin* plugin = CMessagePlugin::NewL(); + plugin->iMessageMonitor->HandleMsgMovedL(id1, id2, *selection); + selection->Reset(); + delete plugin; + } + +TAny CHarvesterPluginTester::TestMessageDataHandlerL( CStifItemParser& ) + { + CMessagePlugin* plugin3 = CMessagePlugin::NewL(); + _LIT8(Des1, "0xFFFFF"); + _LIT8(Des2, "0xF"); + _LIT8(Des3, "FFx0"); + _LIT8(Des4, "F"); + _LIT8(Des5, "0xFEFF"); + _LIT8(Des6, "0xFFFE"); + const TMsvId id1 = 1; + const TMsvId id2 = 2; + CMessageDataHandler* idatahandler = CMessageDataHandler::NewL( *plugin3, *(plugin3->iMsvSession) ); + idatahandler->CreateMessageIndexItemL(id1,ECPixAddAction,id1); + idatahandler->IsTextUcs2(Des1); + idatahandler->IsTextUcs2(Des2); + idatahandler->IsTextUcs2(Des3); + idatahandler->IsTextUcs2(Des4); + idatahandler->IsTextUcs2(Des5); + idatahandler->IsTextUcs2(Des6); + const TInt KUtf8BomLength = 3; + const TUint8 KUtf8Bom[KUtf8BomLength] = {0xEF, 0xBB, 0xBF}; + const TUint8 KUtf8Bom1[KUtf8BomLength+1] = {0xEF, 0x5, 0xF, 0xE}; + TPtrC8 ptr(KUtf8Bom, KUtf8BomLength); + TPtrC8 ptr1(KUtf8Bom1, KUtf8BomLength+1); + idatahandler->TextContainsUtf8Bom(ptr); + idatahandler->TextContainsUtf8Bom(ptr1); + idatahandler->DoCancel(); + idatahandler->RunError(0); + delete plugin3; + + } +TInt CHarvesterPluginTester::TestMessageMountNoIndexerL( CStifItemParser& ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + RSearchServerSession session; + User::LeaveIfError( session.Connect() ); + plugin->iIndexer[EDriveA] = CCPixIndexer::NewL( session ); + TRAPD( err, plugin->MountL( EDriveA, EFalse ) ); + TRAP( err, plugin->MountL( EDriveA, EFalse ) ); //For coverage + delete plugin->iIndexer[EDriveA]; + plugin->iIndexer[EDriveA] = NULL; + delete plugin; + return err; + } + +TInt CHarvesterPluginTester::TestMessageIsMediaRemovableL( CStifItemParser& aItem ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + TInt error; + TInt driveNumber = 0; + //TODO add a while loop. + while( aItem.GetNextInt( driveNumber ) == KErrNone ) + { + error = 0; + TDriveNumber number(static_cast(driveNumber) ); + TRAP( error, plugin->IsMediaRemovableL( number ) ); + if( error ) break; + } + delete plugin; + return error; + } + +TInt CHarvesterPluginTester::TestFormFormBaseAppClassL( CStifItemParser& /*aItem*/ ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + TBuf<20> appclass; + //To test proper case + plugin->FormBaseAppClass( EDriveA , appclass); + //To test failure case + plugin->FormBaseAppClass( (TDriveNumber)29 , appclass); + //cleanup + delete plugin; + return KErrNone; + } + +TInt CHarvesterPluginTester::TestMsgDeleteL( CStifItemParser& /*aItem*/ ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CMessageDataHandler* idatahandler = CMessageDataHandler::NewL( *plugin, *(plugin->iMsvSession) ); + const TMsvId id1 = 1; + RSearchServerSession session; + User::LeaveIfError( session.Connect() ); + plugin->iIndexer[plugin->iCurrentDrive] = CCPixIndexer::NewL( session ); + idatahandler->CreateMessageIndexItemL( id1, ECPixRemoveAction, id1 ); + delete idatahandler; + delete plugin; + session.Close(); + return KErrNone; + } + +TInt CHarvesterPluginTester::TestMsgHandlesessionL( CStifItemParser& /*aItem*/ ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->StartPluginL(); + TMsvId id = 1; + TDriveNumber drive1 = EDriveB; + TDriveNumber drive2 = EDriveC; + CMsvEntrySelection* selection = new( ELeave ) CMsvEntrySelection; + // Current entry will be the one to send + selection->AppendL( id ); + TRAPD(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvEntriesDeleted , (TAny*)selection ,NULL , NULL)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvEntriesMoved , (TAny*)selection ,NULL , NULL)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvEntriesMoved , (TAny*)selection ,(TAny*)selection , NULL)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvEntriesMoved , (TAny*)selection ,(TAny*)selection , (TAny*)selection)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvEntriesMoved , NULL ,(TAny*)selection , (TAny*)selection)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvMediaChanged , (TAny*)&drive1 ,(TAny*)&drive2 , NULL)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvMediaUnavailable , (TAny*)&drive2 ,NULL , NULL)); + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvMediaAvailable , (TAny*)&drive1 ,NULL , NULL)); + selection->Reset(); + delete plugin; + delete iPluginTester; + return err; + } + +TInt CHarvesterPluginTester::TestMsgHandlesessionPanicL( CStifItemParser& aItem ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->StartPluginL(); + TInt num = 0; + TInt err = KErrNone; + aItem.GetNextInt( num ); + if ( num == 0) + { + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvServerFailedToStart , NULL ,NULL , NULL)); + } + else if ( num ==1 ) + { + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvCloseSession , NULL ,NULL , NULL)); + } + else + TRAP(err , plugin->HandleSessionEventL(MMsvSessionObserver::EMsvServerTerminated , NULL ,NULL , NULL)); + + delete plugin; + delete iPluginTester; + return err; + } + +TInt CHarvesterPluginTester::TestMsgOverwriteOrAddToQuereL( CStifItemParser& /*aItem*/ ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + plugin->iMessageMonitor->OverwriteOrAddToQuereL( 1 , ECPixAddAction , 1 ); + plugin->iMessageMonitor->OverwriteOrAddToQuereL( 1 , ECPixAddAction , 1 ); + plugin->iMessageMonitor->RunL(); + delete plugin; + return KErrNone; + } + +TInt CHarvesterPluginTester::TestMsgMessageHarvesterL( CStifItemParser& /*aItem*/ ) + { + CMessagePlugin* plugin = CMessagePlugin::NewL(); + CMessageHarvester* messageHarvester = CMessageHarvester::NewL( *plugin, *(plugin->iMsvSession) ); + messageHarvester->RunError(KErrNone); + messageHarvester->HandleNextRequest(); + delete messageHarvester; + delete plugin; + return KErrNone; + } + TInt CHarvesterPluginTester::SearchForTextL(const TDesC& aQueryString, const TDesC& aBaseAppclass,const TDesC& aDefaultField) { TInt DocumentCount(KErrNotFound); @@ -580,6 +847,7 @@ iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -625,12 +893,12 @@ { error = aItem.GetNextString( string ); if( KErrNone == error ) - error = doSearch( string , _L( BOOKMARK_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( string , _L( BOOKMARK_QBASEAPPCLASS ), ESearchTypeResultsExpected ); } delete plugin; delete iPluginTester; - + iPluginTester = NULL; favoritesDb.Close(); favSession.Close(); @@ -668,6 +936,7 @@ iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete appsPlugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -684,6 +953,7 @@ delete appsPlugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -696,7 +966,8 @@ plugin->StartHarvestingL( _L(NOTES_QBASEAPPCLASS) ); iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete plugin; - delete iPluginTester; + delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -760,7 +1031,7 @@ session->AddNoteL(memo->Des()); plugin->StartHarvestingL( _L(NOTES_QBASEAPPCLASS) ); iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. - error = doSearch( aString2, _L(NOTES_QBASEAPPCLASS), ESearchTypeResultsExpected ); + error = doSearchL( aString2, _L(NOTES_QBASEAPPCLASS), ESearchTypeResultsExpected ); delete session; doLog( iLog, error, KNoErrorString ); @@ -768,6 +1039,7 @@ delete memo; delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -790,14 +1062,14 @@ session->AddNoteL( buf8->Des()); User::After( (TTimeIntervalMicroSeconds32)35000000 ); delete buf8; - error = doSearch( _L("TestNote"), _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( _L("TestNote"), _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); doLog( iLog, error, KSearchError ); if( error == KErrNone) { session->DeleteNoteEntryL(); User::After( (TTimeIntervalMicroSeconds32)35000000 ); //Delete the Note entry added previously and search for result - error = doSearch( _L("TestNote"), _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( _L("TestNote"), _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); //If the entery is succesfully deleted, make error to KErrNone.To show testcase success if(error == KErrNotFound) error = KErrNone; @@ -805,6 +1077,7 @@ delete session; delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, error, KSearchError ); return KErrNone; } @@ -829,7 +1102,7 @@ TBuf<20> oldsearchstring; oldsearchstring.Copy( oldString ); iPluginTester->iWaitForHarvester->Start(); - error = doSearch( oldsearchstring, _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( oldsearchstring, _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); doLog( iLog, error, KSearchError ); TBuf<20> newsearchstring; @@ -840,14 +1113,15 @@ session->UpdateNoteEntryL( oldbuf8->Des(), newbuf8->Des() ); plugin->StartHarvestingL( _L(NOTES_QBASEAPPCLASS) ); iPluginTester->iWaitForHarvester->Start(); - error = doSearch( newsearchstring, _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( newsearchstring, _L( NOTES_QBASEAPPCLASS ), ESearchTypeResultsExpected ); doLog( iLog, error, KSearchError ); delete newbuf8; delete oldbuf8; delete session; delete plugin; - delete iPluginTester; + delete iPluginTester; + iPluginTester = NULL; return error; } @@ -860,6 +1134,7 @@ iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -888,6 +1163,70 @@ return contactId; } +TInt CHarvesterPluginTester::TestContactDelayedCallbackNoIContactsL( CStifItemParser& /*aItem*/ ) + { + CContactsPlugin* plugin = CContactsPlugin::NewL(); + //for coverage + delete plugin->iContacts; + plugin->iContacts = NULL; + TRAPD( err, plugin->DelayedCallbackL( KErrNone ) ); + delete plugin; + return err; + } + +TInt CHarvesterPluginTester::TestContactDelayedCallbackNoIObserverL( CStifItemParser& /*aItem*/ ) + { + CContactsPlugin* plugin = CContactsPlugin::NewL(); + //for coverage + delete plugin->iObserver; + plugin->iObserver = NULL; + TRAPD( err, plugin->DelayedCallbackL( KErrNone ) ); + delete plugin; + return err; + } + +TInt CHarvesterPluginTester::TestContactDelayedCallbackWrongCountL( CStifItemParser& /*aItem*/ ) + { + //This case can happen if a contact was deleted while harvesting is going on. + CContactsPlugin* plugin = CContactsPlugin::NewL(); + plugin->iCurrentIndex = plugin->iContacts->Count()+1; + TRAPD( err, plugin->DelayedCallbackL( KErrNone ) ); + delete plugin; + return err; + } + +TInt CHarvesterPluginTester::TestContactDelayedErrorL(CStifItemParser& /*aItem*/) + { + CContactsPlugin* plugin = CContactsPlugin::NewL(); + plugin->DelayedError( KErrGeneral ); + delete plugin; + return KErrNone; + } + +TInt CHarvesterPluginTester::TestContactGetDateL( CStifItemParser& aItem ) + { + CContactsPlugin* plugin = CContactsPlugin::NewL(); + + TPtrC dateString; + TInt error = 0; + if( aItem.GetNextString ( dateString ) == KErrNone ) + { + TBuf<30> date; //Picked up 30 from contactsplugin.cpp file. + TRAP(error, plugin->GetDateL(dateString, date) ); + } + delete plugin; + return error; + } + +TInt CHarvesterPluginTester::TestCreateContactIndexItemNoIndexerL( CStifItemParser& /*aItem*/ ) + { + //Create contact plugin, call CreateContactIndexItemL without creating indexer. + CContactsPlugin* plugin = CContactsPlugin::NewL(); + TRAPD(err, plugin->CreateContactIndexItemL(0, ECPixUpdateAction) ); + delete plugin; + return err; + } + TInt CHarvesterPluginTester::TestCreateContactIndexItemL( CStifItemParser& aItem ) { TInt error = KErrNone; @@ -915,7 +1254,7 @@ aContactId = CreateNewContactL( *db, ContactName, _L("1234") ); iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. - error = doSearch( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); db->DeleteContactL(aContactId); } } @@ -925,27 +1264,34 @@ { TInt aContactId; //Add a contact first and later edit the contact + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); aContactId = CreateNewContactL( *db, ContactName, _L("123") ); - - CContactItem* contactItem = db->OpenContactL( aContactId ); - CleanupStack::PushL( contactItem ); - // First get the item's field set - CContactItemFieldSet& fieldSet=contactItem->CardFields(); - // Search the field set for the given name field - TInt index = fieldSet.Find( KUidContactFieldGivenName ); - CContactItemField &field= fieldSet[index]; + iPluginTester->iWaitForHarvester->Start(); if( aItem.GetNextString ( NewContactName ) == KErrNone ) - { - field.TextStorage()->SetTextL( NewContactName ); - // Commit the change back to database and clean up - db->CommitContactL( *contactItem ); + { + CContactCard* newCard = CContactCard::NewLC(); + // Create the firstName field and add the data to it + CContactItemField* firstName = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldGivenName ); + firstName->TextStorage()->SetTextL(NewContactName); + newCard->AddFieldL(*firstName); + CleanupStack::Pop(firstName); + + // Create the phoneNo field and add the data to it + CContactItemField* phoneNumber = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldPhoneNumber ); + phoneNumber->SetMapping(KUidContactFieldVCardMapTEL); + phoneNumber ->TextStorage()->SetTextL(_L("567")); + newCard->AddFieldL(*phoneNumber); + CleanupStack::Pop(phoneNumber); + + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); + CContactItem* contactItem = db->UpdateContactLC(aContactId, newCard); + iPluginTester->iWaitForHarvester->Start(); + + CleanupStack::PopAndDestroy(contactItem); + CleanupStack::PopAndDestroy(newCard); + + error = doSearchL( NewContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); } - CleanupStack::PopAndDestroy(contactItem); - - plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); - iPluginTester->iWaitForHarvester->Start(); - error = doSearch( NewContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); - db->DeleteContactL( aContactId ); } } if( IndexAction.Compare( KActionDelete ) == 0 ) @@ -955,24 +1301,100 @@ TInt aContactId; plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS)); //Add a contact to contactdatabase and later delete it - aContactId = CreateNewContactL( *db, ContactName, _L("123455")); - db->DeleteContactL(aContactId); - iPluginTester->iWaitForHarvester->Start(); - error = doSearch( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); - //If the contact is succesfully deleted, make error to KErrNone.To show testcase success - if(error == KErrNotFound) - error = KErrNone; + aContactId = CreateNewContactL( *db, ContactName, _L("123455")); + iPluginTester->iWaitForHarvester->Start(); + error = doSearchL( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + if(error == KErrNone) + { + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS)); + db->DeleteContactL(aContactId); + iPluginTester->iWaitForHarvester->Start(); + error = doSearchL( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeNoResultsExpected ); + } } } - } - + } delete db; delete plugin; delete iPluginTester; - + iPluginTester = NULL; doLog( iLog, error, KSearchError ); return KErrNone; } + +TInt CHarvesterPluginTester::TestCreateAllContactFieldsL( CStifItemParser& aItem ) + { + TInt error = KErrNone; + TPtrC ContactName; + _LIT( KBirthDate, "19970107:"); + _LIT( KSearchError, "Search Failed" ); + + CContactsPlugin* plugin = CContactsPlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->StartPluginL(); + CContactDatabase* db = CContactDatabase::OpenL(); + if( aItem.GetNextString ( ContactName ) == KErrNone ) + { + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); + CContactCard* newCard = CContactCard::NewLC(); + + // Create the firstName field and add the data to it + CContactItemField* firstName = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldGivenName ); + firstName->TextStorage()->SetTextL(ContactName); + newCard->AddFieldL(*firstName); + CleanupStack::Pop(firstName); + + CContactItemField* suffix = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldSuffixName ); + suffix->TextStorage()->SetTextL(_L("Mr")); + newCard->AddFieldL(*suffix); + CleanupStack::Pop(suffix); + + CContactItemField* assistant = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldAssistant ); + assistant->TextStorage()->SetTextL(_L("Jane")); + newCard->AddFieldL(*assistant); + CleanupStack::Pop(assistant); + + CContactItemField* department = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldDepartmentName ); + department->TextStorage()->SetTextL(_L("Services")); + newCard->AddFieldL(*department); + CleanupStack::Pop(department); + + CContactItemField* birthday = CContactItemField::NewLC( KStorageTypeDateTime, KUidContactFieldBirthday ); + TTime time(KBirthDate); + birthday->DateTimeStorage()->SetTime(time); + newCard->AddFieldL(*birthday); + CleanupStack::Pop(birthday); + + CContactItemField* anniversary = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldAnniversary ); + anniversary->TextStorage()->SetTextL(_L("2002-10-10")); + newCard->AddFieldL(*anniversary); + CleanupStack::Pop(anniversary); + + // Create the phoneNo field and add the data to it + CContactItemField* phoneNumber = CContactItemField::NewLC( KStorageTypeText, KUidContactFieldPhoneNumber ); + phoneNumber->TextStorage()->SetTextL(_L("1234")); + newCard->AddFieldL(*phoneNumber); + CleanupStack::Pop(phoneNumber); + + // Add newCard to the database + const TContactItemId contactId = db->AddNewContactL(*newCard); + CleanupStack::PopAndDestroy(newCard); + + iPluginTester->iWaitForHarvester->Start(); + + error = doSearchL( ContactName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + if( error == KErrNone ) + { + error = doSearchL( _L("jan"), _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + } + } + delete db; + delete plugin; + delete iPluginTester; + iPluginTester = NULL; + doLog( iLog, error, KSearchError ); + return error; + } TInt CHarvesterPluginTester::TestCreateContactGroupL( CStifItemParser& aItem ) { TInt error = KErrNone; @@ -990,13 +1412,29 @@ CContactItem* newitem = db->CreateContactGroupL( _L("TestGroup") ); db->AddContactToGroupL( aContactId, newitem->Id() ); iPluginTester->iWaitForHarvester->Start(); - error = doSearch( GroupName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( GroupName, _L( CONTACT_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + + //update the group by adding a new contact, to get update event + CContactGroup* group = static_cast(db->OpenContactLX(newitem->Id())); + CleanupStack::PushL(group); + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); + TInt aId = CreateNewContactL( *db, _L("Contact1"), _L("455") ); + db->AddContactToGroupL( aId, group->Id()); + db->CommitContactL(*group); + iPluginTester->iWaitForHarvester->Start(); + CleanupStack::PopAndDestroy(2); + + //Delete the group and its contacts + plugin->StartHarvestingL( _L(CONTACT_QBASEAPPCLASS) ); db->DeleteContactL(aContactId); + db->RemoveContactFromGroupL(aId, newitem->Id()); db->DeleteContactL( newitem->Id() ); + iPluginTester->iWaitForHarvester->Start(); } delete plugin; delete iPluginTester; + iPluginTester = NULL; delete db; doLog( iLog, error, KSearchError ); return KErrNone; @@ -1011,6 +1449,7 @@ iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, KErrNone, KNoErrorString ); return KErrNone; } @@ -1029,14 +1468,19 @@ session->AddEntryL(); iPluginTester->iWaitForHarvester->Start(); User::After((TTimeIntervalMicroSeconds32)30000000); - error = doSearch( _L("scheduled"), _L( CALENDAR_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( _L("Meeting"), _L( CALENDAR_QBASEAPPCLASS ), ESearchTypeResultsExpected ); doLog( iLog, error, KSearchError ); + // For update event + session->UpdateCalenderEntryL(); + plugin->StartHarvestingL( _L(CALENDAR_QBASEAPPCLASS) ); + iPluginTester->iWaitForHarvester->Start(); + plugin->StartHarvestingL( _L(CALENDAR_QBASEAPPCLASS) ); session->DeleteEntryL(); iPluginTester->iWaitForHarvester->Start(); //Delete the calender entry added previously and search for result - error = doSearch( _L("scheduled"), _L( CALENDAR_QBASEAPPCLASS ), ESearchTypeResultsExpected ); + error = doSearchL( _L("scheduled"), _L( CALENDAR_QBASEAPPCLASS ), ESearchTypeResultsExpected ); //If the entery is succesfully deleted, make error to KErrNone.To show testcase success if(error == KErrNotFound) @@ -1045,6 +1489,7 @@ delete session; delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, error, KSearchError ); return KErrNone; } @@ -1082,6 +1527,7 @@ MessagingUtils::RemoveMmsEntryL( msgSession, msgid ); delete plugin; delete iPluginTester; + iPluginTester = NULL; delete sessionobserver; delete msgSession; doLog(iLog,error,KSearchError); @@ -1113,6 +1559,7 @@ MessagingUtils::RemoveMmsEntryL( msgSession, msgid ); delete plugin; delete iPluginTester; + iPluginTester = NULL; delete sessionobserver; delete msgSession; doLog(iLog,error,KSearchError); @@ -1132,7 +1579,7 @@ plugin->StartPluginL(); //Initialize the Plugin //Copy file path RFs fileSession; - fileSession.Connect(); + User::LeaveIfError( fileSession.Connect() ); _LIT(KPathToMusic,"c:\\data\\music\\"); fileSession.Delete(_L("c:\\data\\music\\Eagle_Landed.mp3")); //Delete if already exist //pause harvester while copy @@ -1157,11 +1604,114 @@ doLog(iLog,error,_L("Error in TestAudioHarvestingL")); delete plugin; delete iPluginTester; + iPluginTester = NULL; fileSession.Close(); //End search return error; } +TInt CHarvesterPluginTester::TestAudioHarvestingUpdateIndexL( CStifItemParser& aItem ) + { + TInt error = KErrNone; + TPtrC filepath; + TPtrC filename; + TPtrC newFile; + TBuf srcPath(_L("c:\\data\\Sounds\\")); + TBuf desPath; + desPath.Copy( srcPath ); + CAudioPlugin* plugin = CAudioPlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->StartPluginL(); + RFs fSession; + User::LeaveIfError( fSession.Connect()); + CleanupClosePushL( fSession ); + if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) + { + srcPath.Append( filename ); + if( aItem.GetNextString(newFile) == KErrNone ) + { + desPath.Append( newFile ); + RHarvesterClient harvester; + User::LeaveIfError(harvester.Connect()); + harvester.Pause(); + TBool fileExist = BaflUtils::FileExists( fSession, srcPath ); + if(!fileExist) + { + BaflUtils::EnsurePathExistsL( fSession, srcPath );//Create folder + BaflUtils::CopyFile( fSession, filepath, srcPath ); + } + BaflUtils::RenameFile( fSession, srcPath, desPath ); + harvester.Resume(); + harvester.Close(); + plugin->StartHarvestingL( _L(MEDIA_QBASEAPPCLASS) ); + //wait for index to flush + iPluginTester->SetWaitTime( (TTimeIntervalMicroSeconds32)60000000 ); + //wait till video harvesting completes + iPluginTester->iWaitForHarvester->Start(); + TInt count = SearchForTextL(_L("testaudio"), _L(MEDIA_QBASEAPPCLASS), KNullDesC ); + if(count <= 0) + { + error = KErrNotFound; + } + doLog( iLog, error, _L("Error in TestAudioHarvestingUpdateIndexL") ); + } + } + else + doLog( iLog, KErrNotFound, _L("Error in TestAudioHarvestingUpdateIndexL") ); + CleanupStack::PopAndDestroy(); + delete plugin; + delete iPluginTester; + iPluginTester = NULL; + return error; + } +TInt CHarvesterPluginTester::TestAudioHarvestingDeleteIndexL( CStifItemParser& aItem ) + { + TInt error = KErrNone; + TPtrC filepath; + TPtrC filename; + TBuf srcPath(_L("c:\\data\\Sounds\\")); + CAudioPlugin* plugin = CAudioPlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); + plugin->StartPluginL(); + RFs fSession; + User::LeaveIfError( fSession.Connect()); + CleanupClosePushL( fSession ); + if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) + { + srcPath.Append( filename ); + RHarvesterClient harvester; + User::LeaveIfError(harvester.Connect()); + harvester.Pause(); + TBool fileExist = BaflUtils::FileExists( fSession, srcPath ); + if(!fileExist) + { + BaflUtils::EnsurePathExistsL( fSession, srcPath );//Create folder + BaflUtils::CopyFile( fSession, filepath, srcPath ); + } + BaflUtils::DeleteFile( fSession, srcPath ); + harvester.Resume(); + harvester.Close(); + plugin->StartHarvestingL( _L(MEDIA_QBASEAPPCLASS) ); + //wait for index to flush + iPluginTester->SetWaitTime( (TTimeIntervalMicroSeconds32)60000000 ); + //wait till video harvesting completes + iPluginTester->iWaitForHarvester->Start(); + TInt count = SearchForTextL(_L("eagle"), _L(MEDIA_QBASEAPPCLASS), KNullDesC ); + if(count <= 0) + { + // If the search is not found,then testcase is success + doLog( iLog, error, _L("Error in TestAudioHarvestingDeleteIndexL") ); + } + } + else + doLog( iLog, KErrNotFound, _L("Error in TestAudioHarvestingDeleteIndexL") ); + CleanupStack::PopAndDestroy(); + delete plugin; + delete iPluginTester; + iPluginTester = NULL; + return error; + } + TInt CHarvesterPluginTester::TestMdsSyncControllerL( CStifItemParser& /*aItem*/ ) { _LIT( KHarvesterPluginTester, "HarvesterPluginTester" ); @@ -1265,7 +1815,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect()); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1299,6 +1849,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; doLog( iLog, error, _L("Error in TestVideoHarvestingIndexL") ); return error; } @@ -1316,7 +1867,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect()); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1354,6 +1905,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -1367,7 +1919,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect()); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1401,6 +1953,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -1414,7 +1967,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect()); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1448,6 +2001,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -1464,7 +2018,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect()); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1501,6 +2055,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -1514,7 +2069,7 @@ CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( plugin ); plugin->StartPluginL(); RFs fSession; - fSession.Connect(); + User::LeaveIfError( fSession.Connect() ); CleanupClosePushL( fSession ); if((aItem.GetNextString(filepath)==KErrNone) && (aItem.GetNextString(filename) == KErrNone)) { @@ -1548,6 +2103,7 @@ CleanupStack::PopAndDestroy(); delete plugin; delete iPluginTester; + iPluginTester = NULL; return error; } @@ -1565,7 +2121,8 @@ //iPluginTester->iWaitForHarvester->Start(); //Start Wait AO and let it complete doLog(iLog,error,_L("Error in TestAudioMMCEventL")); delete plugin; - delete iPluginTester; + delete iPluginTester; + iPluginTester = NULL; //End search return err; } @@ -1584,7 +2141,8 @@ //iPluginTester->iWaitForHarvester->Start(); //Start Wait AO and let it complete doLog(iLog,error,_L("Error in TestVideoMMCEventL")); delete plugin; - delete iPluginTester; + delete iPluginTester; + iPluginTester = NULL; //End search return err; } @@ -1603,9 +2161,47 @@ //iPluginTester->iWaitForHarvester->Start(); //Start Wait AO and let it complete doLog(iLog,error,_L("Error in TestImageMMCEventL")); delete plugin; - delete iPluginTester; + delete iPluginTester; + iPluginTester = NULL; //End search return err; } +TInt CHarvesterPluginTester::TestStartEmailPluginL( CStifItemParser& /*aItem*/ ) + { + _LIT( KHarvesterPluginTester, "HarvesterPluginTester: %S" ); + _LIT( KExample, "In TestStartEmailPluginL" ); + TestModuleIf().Printf( 0, KHarvesterPluginTester, KExample ); + + // Print to log file + iLog->Log( KExample ); + CEmailPlugin* emailPlugin = CEmailPlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( emailPlugin ); + emailPlugin->StartPluginL(); //Calls Add + emailPlugin->StartHarvestingL( KEmailAppBasePath ); + delete emailPlugin; + delete iPluginTester; + doLog( iLog, KErrNone, KNoErrorString ); + return KErrNone; + } + +TInt CHarvesterPluginTester::TestHandleEmailDocL( CStifItemParser& /*aItem*/ ) + { + _LIT( KHarvesterPluginTester, "HarvesterPluginTester: %S" ); + _LIT( KExample, "In TestHandleEmailDocL" ); + TestModuleIf().Printf( 0, KHarvesterPluginTester, KExample ); + + // Print to log file + iLog->Log( KExample ); + CEmailPlugin* emailPlugin = CEmailPlugin::NewL(); + CHarvesterObserver* iPluginTester = CHarvesterObserver::NewL( emailPlugin ); + CSearchDocument* doc = prepareemaildocument(); + TRAPD(err , emailPlugin->HandleDocumentL( doc , ECPixAddAction)); + iPluginTester->iWaitForHarvester->Start();//Wait here till Harvesting is complete. + delete emailPlugin; + delete iPluginTester; + doLog( iLog, err, KNoErrorString ); + return err; + } + // [End of File] - Do not remove diff -r e023f3f775db -r 4a4ca69db308 layers.sysdef.xml --- a/layers.sysdef.xml Fri Jun 11 16:24:16 2010 +0100 +++ b/layers.sysdef.xml Thu Jul 22 16:34:05 2010 +0100 @@ -6,8 +6,9 @@ - - + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/bwins/isengineu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/bwins/isengineu.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,19 @@ +EXPORTS + ?qt_metacall@IsEngine@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 1 NONAME ; int IsEngine::qt_metacall(enum QMetaObject::Call, int, void * *) + ?qt_metacast@IsEngine@@UAEPAXPBD@Z @ 2 NONAME ; void * IsEngine::qt_metacast(char const *) + ?trUtf8@IsEngine@@SA?AVQString@@PBD0H@Z @ 3 NONAME ; class QString IsEngine::trUtf8(char const *, char const *, int) + ?trUtf8@IsEngine@@SA?AVQString@@PBD0@Z @ 4 NONAME ; class QString IsEngine::trUtf8(char const *, char const *) + ?SelectedProvider@IsEngine@@QAEPAVServiceProvider@@XZ @ 5 NONAME ; class ServiceProvider * IsEngine::SelectedProvider(void) + ??0IsEngine@@QAE@PAVQObject@@@Z @ 6 NONAME ; IsEngine::IsEngine(class QObject *) + ??_EIsEngine@@UAE@I@Z @ 7 NONAME ; IsEngine::~IsEngine(unsigned int) + ?tr@IsEngine@@SA?AVQString@@PBD0@Z @ 8 NONAME ; class QString IsEngine::tr(char const *, char const *) + ??1IsEngine@@UAE@XZ @ 9 NONAME ; IsEngine::~IsEngine(void) + ?getStaticMetaObject@IsEngine@@SAABUQMetaObject@@XZ @ 10 NONAME ; struct QMetaObject const & IsEngine::getStaticMetaObject(void) + ?staticMetaObject@IsEngine@@2UQMetaObject@@B @ 11 NONAME ; struct QMetaObject const IsEngine::staticMetaObject + ?PerformWebSearch@IsEngine@@QAEXABVQString@@@Z @ 12 NONAME ; void IsEngine::PerformWebSearch(class QString const &) + ?Providers@IsEngine@@QAE_NAAV?$QList@VServiceProvider@@@@@Z @ 13 NONAME ; bool IsEngine::Providers(class QList &) + ?SetSelectedProvider@IsEngine@@QAE_NH@Z @ 14 NONAME ; bool IsEngine::SetSelectedProvider(int) + ?metaObject@IsEngine@@UBEPBUQMetaObject@@XZ @ 15 NONAME ; struct QMetaObject const * IsEngine::metaObject(void) const + ?PerformInDeviceSearch@IsEngine@@QBEXABVQString@@@Z @ 16 NONAME ; void IsEngine::PerformInDeviceSearch(class QString const &) const + ?tr@IsEngine@@SA?AVQString@@PBD0H@Z @ 17 NONAME ; class QString IsEngine::tr(char const *, char const *, int) + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/bwins/isproviderdbmanageru.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/bwins/isproviderdbmanageru.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,21 @@ +EXPORTS + ?getStaticMetaObject@IsProviderDBManager@@SAABUQMetaObject@@XZ @ 1 NONAME ; struct QMetaObject const & IsProviderDBManager::getStaticMetaObject(void) + ??_EIsProviderDBManager@@UAE@I@Z @ 2 NONAME ; IsProviderDBManager::~IsProviderDBManager(unsigned int) + ?GetCountryList@IsProviderDBManager@@QAE_NAAVQStringList@@@Z @ 3 NONAME ; bool IsProviderDBManager::GetCountryList(class QStringList &) + ?SelectedProvider@IsProviderDBManager@@QAEPAVServiceProvider@@XZ @ 4 NONAME ; class ServiceProvider * IsProviderDBManager::SelectedProvider(void) + ?SetSelectedProvider@IsProviderDBManager@@QAE_NH@Z @ 5 NONAME ; bool IsProviderDBManager::SetSelectedProvider(int) + ?OpenDatabase@IsProviderDBManager@@AAE_NXZ @ 6 NONAME ; bool IsProviderDBManager::OpenDatabase(void) + ?GetCountryCode@IsProviderDBManager@@AAE?AVQString@@XZ @ 7 NONAME ; class QString IsProviderDBManager::GetCountryCode(void) + ?GetProviders@IsProviderDBManager@@QAE_NAAV?$QList@VServiceProvider@@@@@Z @ 8 NONAME ; bool IsProviderDBManager::GetProviders(class QList &) + ??0IsProviderDBManager@@QAE@PAVQObject@@@Z @ 9 NONAME ; IsProviderDBManager::IsProviderDBManager(class QObject *) + ?qt_metacast@IsProviderDBManager@@UAEPAXPBD@Z @ 10 NONAME ; void * IsProviderDBManager::qt_metacast(char const *) + ?metaObject@IsProviderDBManager@@UBEPBUQMetaObject@@XZ @ 11 NONAME ; struct QMetaObject const * IsProviderDBManager::metaObject(void) const + ?trUtf8@IsProviderDBManager@@SA?AVQString@@PBD0@Z @ 12 NONAME ; class QString IsProviderDBManager::trUtf8(char const *, char const *) + ??1IsProviderDBManager@@UAE@XZ @ 13 NONAME ; IsProviderDBManager::~IsProviderDBManager(void) + ?staticMetaObject@IsProviderDBManager@@2UQMetaObject@@B @ 14 NONAME ; struct QMetaObject const IsProviderDBManager::staticMetaObject + ?CloseDatabase@IsProviderDBManager@@AAEXXZ @ 15 NONAME ; void IsProviderDBManager::CloseDatabase(void) + ?qt_metacall@IsProviderDBManager@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 16 NONAME ; int IsProviderDBManager::qt_metacall(enum QMetaObject::Call, int, void * *) + ?trUtf8@IsProviderDBManager@@SA?AVQString@@PBD0H@Z @ 17 NONAME ; class QString IsProviderDBManager::trUtf8(char const *, char const *, int) + ?tr@IsProviderDBManager@@SA?AVQString@@PBD0H@Z @ 18 NONAME ; class QString IsProviderDBManager::tr(char const *, char const *, int) + ?tr@IsProviderDBManager@@SA?AVQString@@PBD0@Z @ 19 NONAME ; class QString IsProviderDBManager::tr(char const *, char const *) + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/inc/serviceprovider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/inc/serviceprovider.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef SERVICEPROVIDER_H +#define SERVICEPROVIDER_H + +#include +#include +#include + + +class ServiceProvider +{ +public: + ServiceProvider() {} + virtual ~ServiceProvider() {} + QString Name() const {return m_name;} + void SetName(const QString& aName) { m_name = aName; } + int Id() const {return m_providerId;} + void SetId(const int providerId) { m_providerId = providerId; } + HbIcon Icon() const {return m_icon;} + void SetIcon(const HbIcon& icon) { m_icon = icon; } + QString Description() const {return m_description;} + void SetDescription(const QString& description) { m_description = description; } + QString ProviderUrl() const {return m_providerUrl;} + void SetProviderUrl(const QString& providerUrl) { m_providerUrl = providerUrl; } + QString PluginName() const {return m_pluginName;} + void SetPluginName(const QString& pluginName) { m_pluginName = pluginName; } + +private: + int m_providerId; + QString m_name; + HbIcon m_icon; + QString m_description; + QString m_providerUrl; + QString m_pluginName; +}; + +#endif // SERVICEPROVIDER_H diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/resources/baidu_logo.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/resources/baidu_logo.svg Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,353 @@ + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + eJztfdluK0uSmJ8PwH8gtZLiVis37aREaqGOFmrj0UJxKUk8okiqSN7btw370Z6xAfvFgA0/28D4 +wQOMn7wA/ppp9MxfODJry1qyKrn0uAd23766ZFYyIjMyMraMqFyNXNSS+51BS0mKKS4c+ra6WlKV +5nigFsK4OXzc601GYxU1Ra9iYR66oV77x7mG3vNWUUfdQb+An6V49LSMfh/d73x2+139x7FwNIYe +XXfHPQUevg0Gbz2l0Ru8DVKjX95iJmoAddAcQ5dMWkoLHJcPiwVRCl+coR7FwaTf6fbfioPfFcKi +wIUFIRuWcnxYzAro+VH3Shk5O6Vk1A3+Sjn0WczyKRl1Phi0J59Kf3yhDtrKaFQa9AbqqBAu/dbs +h8+ab/CkGa4rvd7gV+i9fyw3yt2eAlP7bI7DeUyG/WNeaBQn3V7n++SzpcCkJUHC7WIDg7sZARwA +iT7j9mzj+BOaasp4DCMEbJiaV5UiOQhoxf9EH/7wn//9H//yL/7uL//bU8wAqw6Gn031A34qyhk0 +tYyIpiZ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KXckeyFKsaLMmyGuOLIA5lsq2qydMMCBvcKOJJQAsnSagb7OasLCBhjWiTBQ== + + + 1QaNwJ4ykpWoWx4ZMyB9Mjm0K6BFgG0ELbkUD1aERj8B+FvQGuUMJ+N15ERd7Mq5LGIASROaqCWf +y4jaD80Z6I1Vr2lVMTWwOsMPc7JGOy4nalM222CeoOqqGk9mhUzG3gbaLoMkPxovbDS0ytkcojta +bj6Tw1RAOkSU85g0UhY0DNIFfFYU8YByGWQpIHUkYErpegYrn7wmOVAjn8mjOYOIlmVEPsTonIDp +kkF6F8l4OZvFxo8E7CpzmZzVWCUb0URhaUzSkLOvmnyCeQTpHj4vSHiGgpjB5LEa0WAzsmbBcIgE +Mh4Z8KSAhY7EIdUJg8Aq8NaQ5hLRWCUbDSRVTQbn0QbzbjTIhBuB1+GPoxHYMJ/XGjMZiSfHA0Il +L2vjMRsRllyeN6Zin7RGFSBKPhyNhdF1ndWibriDHY9N62QSN4iaJV9SB0Pw3ScjRe2AuRVOoyf9 +AWo+a6ofo/BHf/BrP9wfjMP/1GZ2T/D/NSs7XHEaTob1DCvpYT+LUjaFbFugAuZigTO/wgRq0CJn +UIss6R20r0LW7EDOcGIAhFUlAWpfSYCiZAMIm5IGUJJFEqCUcwKUMCgToP41CKA5ZQ0gOWUNgjll +/StlyuTnfxbuvuorCkusr+fq6kXzTblWm90ectTeRs1flHCzD8vYHCtDeBR+U5XReKAq4dH74FfU +gn5k/gDcvvNy6Nv/AfM48J4= + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/resources/bing_logo.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/resources/bing_logo.svg Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,906 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + eJzsvWtzGze2NvrdVf4PPB+mKtlnrDTQABo9OXOqRErOO+9REpedzGTX1C4XLdE2JxTpV5dkMr/+ +rCuAJlsWKV8k0nTH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HlmVN5HdcEPM4Jf3K7WO8tfh914OwIibA3BN8sVfHzb38521tly9c/Sulztrf9T +JKUH9P+sxoxHkgQU1Fg8EQkjIY0T0QSU0iRBJmOcGLrfWgDnbr9FCuqD5atXNUmFWlBB3UKWhUoW +TD4BtWQbfuH2WF+e4Y8A4kvwX/Ba8hJQI8n9PiBAoIssJPBLBioZZ0CRgPzaoEBLBhRsKgcFnjCw +wA9DwAgOlmyAAAIzQvhDe4j47/9lnX6z0w74gJ30y8tmfzLubPvTOVT+k13/77G1v1zCBWS8Bq+s +k+14t19tx9bdz+of+AR+xH8AFvv7suWv/wNSlkvZ + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/resources/google_logo.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/resources/google_logo.svg Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,24 @@ + + + + + + +]> + + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/resources/issearch_icons.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/resources/issearch_icons.qrc Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,8 @@ + + + google_logo.svg + bing_logo.svg + baidu_logo.svg + yandex_logo.svg + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/common/resources/yandex_logo.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/common/resources/yandex_logo.svg Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,13 @@ + + + + + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/eabi/isengineu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/eabi/isengineu.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,19 @@ +EXPORTS + _ZN8IsEngine11qt_metacallEN11QMetaObject4CallEiPPv @ 1 NONAME + _ZN8IsEngine11qt_metacastEPKc @ 2 NONAME + _ZN8IsEngine16PerformWebSearchERK7QString @ 3 NONAME + _ZN8IsEngine16SelectedProviderEv @ 4 NONAME + _ZN8IsEngine16staticMetaObjectE @ 5 NONAME DATA 16 + _ZN8IsEngine19SetSelectedProviderEi @ 6 NONAME + _ZN8IsEngine19getStaticMetaObjectEv @ 7 NONAME + _ZN8IsEngine9ProvidersER5QListI15ServiceProviderE @ 8 NONAME + _ZN8IsEngineC1EP7QObject @ 9 NONAME + _ZN8IsEngineC2EP7QObject @ 10 NONAME + _ZN8IsEngineD0Ev @ 11 NONAME + _ZN8IsEngineD1Ev @ 12 NONAME + _ZN8IsEngineD2Ev @ 13 NONAME + _ZNK8IsEngine10metaObjectEv @ 14 NONAME + _ZNK8IsEngine21PerformInDeviceSearchERK7QString @ 15 NONAME + _ZTI8IsEngine @ 16 NONAME + _ZTV8IsEngine @ 17 NONAME + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/eabi/isproviderdbmanageru.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/eabi/isproviderdbmanageru.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,21 @@ +EXPORTS + _ZN19IsProviderDBManager11qt_metacallEN11QMetaObject4CallEiPPv @ 1 NONAME + _ZN19IsProviderDBManager11qt_metacastEPKc @ 2 NONAME + _ZN19IsProviderDBManager12GetProvidersER5QListI15ServiceProviderE @ 3 NONAME + _ZN19IsProviderDBManager12OpenDatabaseEv @ 4 NONAME + _ZN19IsProviderDBManager13CloseDatabaseEv @ 5 NONAME + _ZN19IsProviderDBManager14GetCountryCodeEv @ 6 NONAME + _ZN19IsProviderDBManager14GetCountryListER11QStringList @ 7 NONAME + _ZN19IsProviderDBManager16SelectedProviderEv @ 8 NONAME + _ZN19IsProviderDBManager16staticMetaObjectE @ 9 NONAME DATA 16 + _ZN19IsProviderDBManager19SetSelectedProviderEi @ 10 NONAME + _ZN19IsProviderDBManager19getStaticMetaObjectEv @ 11 NONAME + _ZN19IsProviderDBManagerC1EP7QObject @ 12 NONAME + _ZN19IsProviderDBManagerC2EP7QObject @ 13 NONAME + _ZN19IsProviderDBManagerD0Ev @ 14 NONAME + _ZN19IsProviderDBManagerD1Ev @ 15 NONAME + _ZN19IsProviderDBManagerD2Ev @ 16 NONAME + _ZNK19IsProviderDBManager10metaObjectEv @ 17 NONAME + _ZTI19IsProviderDBManager @ 18 NONAME + _ZTV19IsProviderDBManager @ 19 NONAME + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isengine/inc/isengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isengine/inc/isengine.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISENGINE_H +#define ISENGINE_H + +#include +#include +#include + +#if defined(ISENGINESERVICES_LIB) +# define ISENGINELIB_EXPORT Q_DECL_EXPORT +#else +# define ISENGINELIB_EXPORT Q_DECL_IMPORT +#endif + +class ServiceProvider; +class IsProviderDBManager; + +/*! + * Internet Search Engine + * + */ +class ISENGINELIB_EXPORT IsEngine : public QObject +{ + Q_OBJECT + + +public: + IsEngine( QObject *parent = 0 ); + ~IsEngine(); + + ServiceProvider* SelectedProvider(); + bool SetSelectedProvider(const int providerId); + bool Providers(QList& providers); + void PerformWebSearch(const QString& searchParam); + void PerformInDeviceSearch(const QString& searchParam) const; + +private: + /*!< Provider database handler*/ + IsProviderDBManager* m_dbHandler; + /*!< Activity manager*/ + QObject *m_activityManager; + +}; + +#endif // ISENGINE_H diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isengine/isengine.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isengine/isengine.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,56 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# + + +TEMPLATE = lib +TARGET = isengine +TARGET.EPOCALLOWDLLDATA = 1 +TARGET.CAPABILITY = CAP_GENERAL_DLL +CONFIG += hb mobility +MOBILITY = serviceframework + +DEFINES += ISENGINESERVICES_LIB + +#INCLUDEPATH += . ../inc + +QT += sql + +symbian { + TARGET.UID3 = 0x2000F875 + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + + defBlock = \ + "$${LITERAL_HASH}if defined(EABI)" \ + "DEFFILE ../eabi/" \ + "$${LITERAL_HASH}else" \ + "DEFFILE ../bwins/" \ + "$${LITERAL_HASH}endif" + + MMP_RULES += defBlock +} + + + +HEADERS += ./inc/*.h +SOURCES += ./src/*.cpp + + +LIBS += -lxqutils -lisproviderdbmanager + + + diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isengine/src/isengine.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isengine/src/isengine.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,120 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#include +#include +#include +#include +#include "isengine.h" +#include "isproviderdbmanager.h" +QTM_USE_NAMESPACE +const QString KAppUid = "0x2002C377"; + +IsEngine::IsEngine(QObject *parent) : + QObject(parent), m_activityManager(0) + { + QServiceManager serviceManager; + m_activityManager = serviceManager.loadInterface( + "com.nokia.qt.activities.ActivityManager"); + + m_dbHandler = new IsProviderDBManager; + } + +IsEngine::~IsEngine() + { + if (m_activityManager) + { + delete m_activityManager; + } + + delete m_dbHandler; + } + +/*! + * \brief Sets selected provider + * Returns false if something goes wrong with the database access + */ +bool IsEngine::SetSelectedProvider(const int providerId) + { + return m_dbHandler->SetSelectedProvider(providerId); + } + +/*! + * \brief Gets selected provider + */ +ServiceProvider* IsEngine::SelectedProvider() + { + return m_dbHandler->SelectedProvider(); + } + +/*! + * \brief Gets list of providers allowed in the current country. + * Returns false if something goes wrong with the database access + */ +bool IsEngine::Providers(QList& providers) + { + return m_dbHandler->GetProviders(providers); + } + +/*! + * \brief Performs internet search by creating search url and opening the browser + * with it. + */ +void IsEngine::PerformWebSearch(const QString &searchParam) + { + ServiceProvider* provider = SelectedProvider(); + + if (provider) + { + QString url; + if ( searchParam.length() ) + { + // add search param to url + url.append((provider->ProviderUrl().arg(searchParam))); + } + else + { + // search with empty param + url.append((provider->ProviderUrl().arg(""))); + } + + + // Launch the browser + QDesktopServices::openUrl(QUrl(url)); + } + } + +/*! + * \brief Performs in device search + * + * \param searchParam a const QString & argument. + */ +void IsEngine::PerformInDeviceSearch(const QString &searchParam) const + { + QUrl url; + url.setScheme("appto"); + url.setHost(KAppUid); + url.addQueryItem("activityname", "SearchDeviceQueryView"); + + url.addQueryItem("query", searchParam); + + QString debugString = url.toString(); + bool ok = QMetaObject::invokeMethod(m_activityManager, "launchActivity", + Q_ARG(QUrl, url)); + + } diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isproviderdbmanager/inc/isproviderdbconstants.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isproviderdbmanager/inc/isproviderdbconstants.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISPROVIDERDBCONSTANTS_H_ +#define ISPROVIDERDBCONSTANTS_H_ + +// Database info +#ifdef __WINSCW__ +const QString databaseName = "c:\\private\\20022f35\\providerdatabase.sq"; +#else +const QString databaseName = "z:\\private\\20022f35\\providerdatabase.sq"; +#endif +const QString connectionName = "providerdatabase.sq"; +const QString databaseType = "QSQLITE"; + +// SQL Queries +const QString providerQuery = "SELECT p.ProviderId, Name, Description, Iconpath FROM Providers p INNER JOIN CountryProviderMap map ON p.ProviderId = map.ProviderId JOIN Countries ON map.CountryId = Countries.CountryId WHERE Countries.CountryCode = \'"; +const QString selectedProviderQuery = "SELECT ProviderId, Name, Description, Iconpath, ProviderUrl FROM Providers WHERE Selected = 1"; +const QString resetProviderSelection = "UPDATE Providers SET Selected = 0"; +const QString setSelectedProvider = "UPDATE Providers SET Selected = 1 WHERE ProviderId = "; +const QString countryQuery = "SELECT Country FROM Countries"; + + +#endif /* ISPROVIDERDBCONSTANTS_H_ */ diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isproviderdbmanager/inc/isproviderdbmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isproviderdbmanager/inc/isproviderdbmanager.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISPROVIDERDBMANAGER_H +#define ISPROVIDERDBMANAGER_H + +#include +#include +#include +#include +#include "serviceprovider.h" + +#if defined(ISPROVIDERDBSERVICES_LIB) +#define ISPROVIDERDBLIB_EXPORT Q_DECL_EXPORT +#else +#define ISPROVIDERDBLIB_EXPORT Q_DECL_IMPORT +#endif + + + +class QSqlDatabase; + +/*! + * + * + */ +class ISPROVIDERDBLIB_EXPORT IsProviderDBManager : public QObject +{ + Q_OBJECT + +public: + IsProviderDBManager( QObject *parent = 0 ); + ~IsProviderDBManager(); + + bool GetProviders(QList& providers); + bool GetCountryList(QStringList& countryList); + ServiceProvider* SelectedProvider(); + bool SetSelectedProvider(int providerId); + +private: + bool OpenDatabase(); + void CloseDatabase(); + QString GetCountryCode(); + +private: + QSqlDatabase m_db; +}; + +#endif // ISPROVIDERDBMANAGER_H diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isproviderdbmanager/isproviderdbmanager.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isproviderdbmanager/isproviderdbmanager.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,50 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# + +TEMPLATE = lib +TARGET = isproviderdbmanager +TARGET.CAPABILITY = CAP_GENERAL_DLL +TARGET.EPOCALLOWDLLDATA = 1 +DEPENDPATH += . inc src +INCLUDEPATH += . ../common/inc +CONFIG += hb mobility +MOBILITY = systeminfo +DEFINES += ISPROVIDERDBSERVICES_LIB + +QT += sql network + +RESOURCES += ../common/resources/issearch_icons.qrc + +# Input +HEADERS += inc/isproviderdbmanager.h inc/isproviderdbconstants.h +SOURCES += src/isproviderdbmanager.cpp + +symbian: { + + TARGET.UID3 = 0xE47ae51a + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + +defBlock = \ + "$${LITERAL_HASH}if defined(EABI)" \ + "DEFFILE ../eabi/" \ + "$${LITERAL_HASH}else" \ + "DEFFILE ../bwins/" \ + "$${LITERAL_HASH}endif" + + MMP_RULES += defBlock +} \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/isproviderdbmanager/src/isproviderdbmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/isproviderdbmanager/src/isproviderdbmanager.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ + +#include +#include +#include +using namespace QtMobility; +#include +#include + +#include "isproviderdbmanager.h" +#include "isproviderdbconstants.h" + + +/*! + * \brief Constructor + */ +IsProviderDBManager::IsProviderDBManager( QObject *parent ) : QObject(parent) + { + } + +/*! + * \brief Destructor + */ +IsProviderDBManager::~IsProviderDBManager() + { + } + +/*! + * \brief Opens the database + */ +bool IsProviderDBManager::OpenDatabase() + { + m_db = QSqlDatabase::addDatabase(databaseType, connectionName); + m_db.setDatabaseName(databaseName); + + if ( !m_db.isValid()) + { + CloseDatabase(); + return false; + } + + if (!m_db.isOpen()) + { + if (!m_db.open()) + { + CloseDatabase(); + return false; + } + } + return true; + } + +/*! + * \brief Closes the database + */ +void IsProviderDBManager::CloseDatabase() + { + // if (m_db.isValid() && m_db.isOpen()) + // { + m_db.close(); + // } + } + +/*! + * \brief Reads providers allowed in the current country + */ +bool IsProviderDBManager::GetProviders(QList& providers) + { + bool ok = OpenDatabase(); + + if (ok) + { + // Create query that gets providers allowed this country + QString queryString(providerQuery); + // get country code and append to query + queryString.append(GetCountryCode()); + queryString.append("\'"); + + QSqlQuery query(QSqlDatabase::database(connectionName)); + query.prepare(queryString); + query.exec(); + // read all found providers + while (query.next()) + { + ServiceProvider* provider = new ServiceProvider(); + + int providerId = query.value(0).toInt(); + provider->SetId(providerId); + + QString providerName = query.value(1).toString(); + provider->SetName(providerName); + + QString providerDescription = query.value(2).toString(); + provider->SetDescription(providerDescription); + + HbIcon icon(query.value(3).toString()); + provider->SetIcon(icon); + + QString pluginName = query.value(10).toString(); + provider->SetPluginName(pluginName); + providers.append(*provider); + } + } + + CloseDatabase(); + + return ok; + } + +/*! + * \brief Gets selected provider + */ +ServiceProvider* IsProviderDBManager::SelectedProvider() + { + ServiceProvider* provider = NULL; + + bool ok = OpenDatabase(); + if (ok) + { + // Create query that gets providers allowed this country + QSqlQuery query(QSqlDatabase::database(connectionName)); + query.prepare(selectedProviderQuery); + query.exec(); + + // read all found providers + while (query.next()) + { + provider = new ServiceProvider(); + + int providerId = query.value(0).toInt(); + provider->SetId(providerId); + + QString providerName = query.value(1).toString(); + provider->SetName(providerName); + + QString providerDescription = query.value(2).toString(); + provider->SetDescription(providerDescription); + + HbIcon icon(query.value(3).toString()); + provider->SetIcon(icon); + + QString providerUrl = query.value(4).toString(); + provider->SetProviderUrl(providerUrl); + } + } + + CloseDatabase(); + + return provider; + } + +/*! + * \brief Sets selected provider + */ +bool IsProviderDBManager::SetSelectedProvider(int providerId) + { + bool ok = OpenDatabase(); + if (ok) + { + // Clear selection status from all providers + QSqlQuery query(QSqlDatabase::database(connectionName)); + query.prepare(resetProviderSelection); + ok = query.exec(); + + if (ok) + { + // Set selection status to selected provider + QString queryString(setSelectedProvider); + queryString.append( QString::number(providerId)); + + query.clear(); + query.prepare(queryString); + ok = query.exec(); + } + } + + CloseDatabase(); + + return ok; + } + +/*! + * \brief Reads country list from database + */ +bool IsProviderDBManager::GetCountryList(QStringList& countryList) + { + bool ok = OpenDatabase(); + if (ok) + { + // Create query that gets country list + QSqlQuery query(QSqlDatabase::database(connectionName)); + query.prepare(countryQuery); + ok = query.exec(); + + // read all found providers + while (query.next()) + { + countryList << query.value(0).toString(); + } + } + + CloseDatabase(); + + return ok; + } + +/*! + * \brief Return current country code retrieved from system + */ +QString IsProviderDBManager::GetCountryCode() + { + QSystemInfo *sysInfo = new QSystemInfo(this); + return "FI";//sysInfo->currentCountryCode(); + } diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/onlinesearchproviders.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/onlinesearchproviders.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,26 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TEMPLATE = subdirs + +SUBDIRS = isproviderdbmanager \ + isengine + +CONFIG += ordered + +symbian: { + BLD_INF_RULES.prj_exports += "rom/issearch.iby CORE_APP_LAYER_IBY_EXPORT_PATH(issearch.iby)" + } \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 onlinesearchproviders/rom/issearch.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/onlinesearchproviders/rom/issearch.iby Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,30 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISSEARCH_IBY +#define ISSEARCH_IBY +#ifdef FF_SEARCH_SW +#include + +//ENGINE +file = ABI_DIR\BUILD_DIR\isengine.dll SHARED_LIB_DIR\isengine.dll +file = ABI_DIR\BUILD_DIR\isproviderdbmanager.dll SHARED_LIB_DIR\isproviderdbmanager.dll +data=ZPRIVATE\20022F35\providerdatabase.sq private\20022F35\providerdatabase.sq +data=ZPRIVATE\20022F35\providerdatabase.sq c:\private\20022F35\providerdatabase.sq + +#endif //FF_SEARCH_SW +#endif // ISSEARCH_IBY diff -r e023f3f775db -r 4a4ca69db308 rom/cpix_app.iby --- a/rom/cpix_app.iby Fri Jun 11 16:24:16 2010 +0100 +++ b/rom/cpix_app.iby Thu Jul 22 16:34:05 2010 +0100 @@ -52,6 +52,11 @@ // Notes plugin ECOM_PLUGIN( cpixnotesplugin.dll, cpixnotesplugin.rsc) +// Email plugin +ECOM_PLUGIN( cpixemailplugin.dll, cpixemailplugin.rsc) +file=ABI_DIR\BUILD_DIR\qtemailfetcher.dll SHARED_LIB_DIR\qtemailfetcher.dll + + data=DATAZ_\private\10202be9\20029ac7.cre private\10202be9\20029ac7.cre data=ZSYSTEM\install\cpixsearchapp_stub.sis System\Install\cpixsearchapp_stub.sis diff -r e023f3f775db -r 4a4ca69db308 search.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,25 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: SEARCH project file +# +TEMPLATE = subdirs + +SUBDIRS += search_plat \ + onlinesearchproviders \ + searchui \ + harvesterplugins/messaging/email/qtemailfetcher + + +CONFIG += ordered + diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchplugin_api/inc/onlinesearchplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchplugin_api/inc/onlinesearchplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,121 @@ + /* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: OnlineSearchPlugin class definition + * + */ + +#ifndef ONLINESEARCHPLUGIN_H +#define ONLINESEARCHPLUGIN_H + +#include + +/** + * @ingroup group_onlinesearchpluginmodel + * @brief Represents a plugin plugin in the framework. + * + * OnlineSearchPlugin is an interface through which setting plugin plugin can be + * executed in the search handlers. + * + * @lib ?library + * @since S60 ?S60_version + */ + +class OnlineSearchPlugin : public QObject + { +Q_OBJECT +public: + + /** + * Destructor. + * @since S60 ?S60_version. + */ + virtual ~OnlineSearchPlugin() + { + } + + /** + * Called by the search handlers during initialize cycle of the plugin, it is during + * this phase the plugin widget + * usually creates its initial view. + * Once the initialization is done, pluginInitialized signal must be + * emitted. + * @since S60 ?S60_version. + */ + virtual void initializePlugin() = 0; + + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin() = 0; + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin(const QString &searchQuery) = 0; + + /** + * Called by the search handlers when the plugin is no longer being displayed. + */ + virtual void deactivatePlugin() = 0; + + /** + * Called by the search handlers before the plugin destructor is called. + * @param reason The reason why the search handlers is being killed. + */ + virtual void shutdownPlugin() = 0; + +protected: + + /** + * Constructor. + * @since S60 ?S60_version. + */ + OnlineSearchPlugin() + { + } + +signals: + + /** + * Emit this signal when changing the view inside the plugin. + * @param caller The calling plugin plugin instance. + * @param viewWidget The new plugin view widget to be shown. + */ + void viewChanged(); + + /** + * Emit this signal to indicate initialization is done. + * @param caller The calling plugin plugin instance. + * @param success True if succeeded, false otherwise. + */ + void pluginInitialized(bool success); + + /** + * Emit this signal to indicate that the plugin plugin can be deleted. + * Note that this signal does not need to be emitted if true is returned + * from shutdownPlugin. + * @param caller The calling plugin plugin instance. + */ + void shutdownCompleted(bool success); + + /** + * Called by search handlers when back button is clicked in the plugin view. + * In this method the plugin plugin can implement internally showing and + * hiding GUI elements if the plugin has multiple 'views'. + */ + void handleBackEvent(); + }; + +#endif // ONLINESEARCHPLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchplugin_api/inc/onlinesearchpluginfactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchplugin_api/inc/onlinesearchpluginfactory.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: OnlineSearchPluginFactory class definition + * + */ + +#ifndef ONLINESEARCHPLUGINFACTORY_H +#define ONLINESEARCHPLUGINFACTORY_H + + +class OnlineSearchPlugin; + +/** + * @ingroup group_onlinesearchpluginmodel + * @brief A factory class through which the wizard plugin can be instantiated. + * + * OnlineSearchPluginFactory contains a factory method to create a wizard plugin instance. + * + * @lib ?library + * @since S60 ?S60_version + */ + +class OnlineSearchPluginFactory +{ +public: + /** + * Instantiates a wizard plugin object. + * @return The constructed wizard plugin object. + * @since S60 ?S60_version. + */ + virtual OnlineSearchPlugin* createPlugin() const = 0; +}; + +Q_DECLARE_INTERFACE(OnlineSearchPluginFactory, "com.nokia.search.OnlineSearchPluginFactory/1.0"); + +#endif // ONLINESEARCHPLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchplugin_api/onlinesearchplugin_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchplugin_api/onlinesearchplugin_api.metaxml Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,13 @@ + + +onlinesearchplugin_api +Online search plugin API for search framework. This is UI plugin for in device search application to launch the user chosen internet search provider. This exposes API based on qt plugin mechanism. +c++ +search + + + +no +no + + diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchplugin_api/onlinesearchplugin_api.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchplugin_api/onlinesearchplugin_api.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,18 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +PLATFORM_HEADERS += onlinesearchplugin_api/inc/onlinesearchplugin.h \ + onlinesearchplugin_api/inc/onlinesearchpluginfactory.h diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchproviders_api/inc/isengine.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchproviders_api/inc/isengine.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISENGINE_H +#define ISENGINE_H + +#include +#include +#include + +#if defined(ISENGINESERVICES_LIB) +# define ISENGINELIB_EXPORT Q_DECL_EXPORT +#else +# define ISENGINELIB_EXPORT Q_DECL_IMPORT +#endif + +class ServiceProvider; +class IsProviderDBManager; + +/*! + * Internet Search Engine + * + */ +class ISENGINELIB_EXPORT IsEngine : public QObject +{ + Q_OBJECT + + +public: + IsEngine( QObject *parent = 0 ); + ~IsEngine(); + + ServiceProvider* SelectedProvider(); + bool SetSelectedProvider(const int providerId); + bool Providers(QList& providers); + void PerformWebSearch(const QString& searchParam); + void PerformInDeviceSearch(const QString& searchParam) const; + +private: + /*!< Provider database handler*/ + IsProviderDBManager* m_dbHandler; + /*!< Activity manager*/ + QObject *m_activityManager; + +}; + +#endif // ISENGINE_H diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchproviders_api/inc/isproviderdbmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchproviders_api/inc/isproviderdbmanager.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef ISPROVIDERDBMANAGER_H +#define ISPROVIDERDBMANAGER_H + +#include +#include +#include +#include +#include "serviceprovider.h" + +#if defined(ISPROVIDERDBSERVICES_LIB) +#define ISPROVIDERDBLIB_EXPORT Q_DECL_EXPORT +#else +#define ISPROVIDERDBLIB_EXPORT Q_DECL_IMPORT +#endif + + + +class QSqlDatabase; + +/*! + * + * + */ +class ISPROVIDERDBLIB_EXPORT IsProviderDBManager : public QObject +{ + Q_OBJECT + +public: + IsProviderDBManager( QObject *parent = 0 ); + ~IsProviderDBManager(); + + bool GetProviders(QList& providers); + bool GetCountryList(QStringList& countryList); + ServiceProvider* SelectedProvider(); + bool SetSelectedProvider(int providerId); + +private: + bool OpenDatabase(); + void CloseDatabase(); + QString GetCountryCode(); + +private: + QSqlDatabase m_db; +}; + +#endif // ISPROVIDERDBMANAGER_H diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchproviders_api/inc/serviceprovider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchproviders_api/inc/serviceprovider.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef SERVICEPROVIDER_H +#define SERVICEPROVIDER_H + +#include +#include +#include + + +class ServiceProvider +{ +public: + ServiceProvider() {} + virtual ~ServiceProvider() {} + QString Name() const {return m_name;} + void SetName(const QString& aName) { m_name = aName; } + int Id() const {return m_providerId;} + void SetId(const int providerId) { m_providerId = providerId; } + HbIcon Icon() const {return m_icon;} + void SetIcon(const HbIcon& icon) { m_icon = icon; } + QString Description() const {return m_description;} + void SetDescription(const QString& description) { m_description = description; } + QString ProviderUrl() const {return m_providerUrl;} + void SetProviderUrl(const QString& providerUrl) { m_providerUrl = providerUrl; } + QString PluginName() const {return m_pluginName;} + void SetPluginName(const QString& pluginName) { m_pluginName = pluginName; } + +private: + int m_providerId; + QString m_name; + HbIcon m_icon; + QString m_description; + QString m_providerUrl; + QString m_pluginName; +}; + +#endif // SERVICEPROVIDER_H diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchproviders_api/onlinesearchproviders_api.metaxml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchproviders_api/onlinesearchproviders_api.metaxml Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,15 @@ + + + onlinesearchproviders_api + This API provides interface to read the internet search providers and a way to set the default user selected internet search provider. The backend implementation uses SQL db to store the list. Each provider entity provide the name, description and suitable icon for display. + c++ + onlinesearchproviders + + + + + + no + no + + diff -r e023f3f775db -r 4a4ca69db308 search_plat/onlinesearchproviders_api/onlinesearchproviders_api.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/onlinesearchproviders_api/onlinesearchproviders_api.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,19 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +PLATFORM_HEADERS += onlinesearchproviders_api/inc/serviceprovider.h \ + onlinesearchproviders_api/inc/isengine.h \ + onlinesearchproviders_api/inc/isproviderdbmanager.h diff -r e023f3f775db -r 4a4ca69db308 search_plat/search_plat.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search_plat/search_plat.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,25 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TEMPLATE = subdirs +BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " + +include(onlinesearchplugin_api/onlinesearchplugin_api.pri) +include(onlinesearchproviders_api/onlinesearchproviders_api.pri) + +for(filename,PLATFORM_HEADERS){ + BLD_INF_RULES.prj_exports *= "$$filename APP_LAYER_PLATFORM_EXPORT_PATH($$basename(filename))" + } \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/Searchapplication/Searchapplication.pro --- a/searchui/Searchapplication/Searchapplication.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/Searchapplication/Searchapplication.pro Thu Jul 22 16:34:05 2010 +0100 @@ -35,6 +35,7 @@ CONFIG += hb CONFIG += console +CONFIG += hb console mobility TRANSLATIONS += searchsw.ts nft:DEFINES += NFT @@ -53,9 +54,11 @@ TARGET.UID3 = 0x2002C377 TARGET.CAPABILITY = CAP_APPLICATION AllFiles TrustedUI TARGET.EPOCSTACKSIZE = 0x14000 // 80kB - TARGET.EPOCHEAPSIZE = 0x20000 0x1000000 // 128kB - 16MB + TARGET.EPOCHEAPSIZE = 0x20000 0x800000 // 128kB - 16MB rom:DEFINES += ROM SKINICON = qtg_large_search + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE } win32 { diff -r e023f3f775db -r 4a4ca69db308 searchui/Searchapplication/inc/Search.h --- a/searchui/Searchapplication/inc/Search.h Fri Jun 11 16:24:16 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,110 +0,0 @@ -/* - * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). - * All rights reserved. - * This component and the accompanying materials are made available - * under the terms of "Eclipse Public License v1.0" - * which accompanies this distribution, and is available - * at the URL "http://www.eclipse.org/legal/epl-v10.html". - * - * Initial Contributors: - * Nokia Corporation - initial contribution. - * - * Contributors: - * - * Description: search application main class. - * - */ - -#ifndef SEARCHAPPLICATION_H -#define SEARCHAPPLICATION_H - -#include "search_global.h" - -#include - -class QStateMachine; - -/** - * @ingroup group_searchsearchlication - * @brief Search application main class. - * - * Loads a runtime from a runtime provider plugin. Manages - * the runtime execution. - * - * @lib ?library - * @since S60 ?S60_version - */ -class Search : public QObject - { -Q_OBJECT - -public: - - /** - * Constructor. - * @since S60 ?S60_version. - * @param aParent Parent object. - */ - Search(QObject* aParent = 0); - - /** - * Destructor. - * @since S60 ?S60_version. - */ - virtual ~Search(); - -private: - - Q_DISABLE_COPY(Search) - -signals: - - /** - * Emitted when the search application needs to exit. - * @since S60 ?S60_version. - */ - void exit(); - -public slots: - - /** - * Starts the runtime. - * @since S60 ?S60_version. - */ - void start(); - - /** - * Stops the runtime. - * @since S60 ?S60_version. - */ - void stop(); - -private slots: - - /** - * Called after the runtime has started. - * @since S60 ?S60_version. - */ - void handleRuntimeStarted(); - - /** - * Called after the runtime has stopped. - * @since S60 ?S60_version. - */ - void handleRuntimeStopped(); - - /** - * Called after the runtime has faulted. - * @since S60 ?S60_version. - */ - void handleRuntimeFaulted(); - -private: - - /** - * Runtime. - */ - QStateMachine* mRuntime; - }; - -#endif//SEARCHAPPLICATION_H diff -r e023f3f775db -r 4a4ca69db308 searchui/Searchapplication/src/Search.cpp --- a/searchui/Searchapplication/src/Search.cpp Fri Jun 11 16:24:16 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). - * All rights reserved. - * This component and the accompanying materials are made available - * under the terms of "Eclipse Public License v1.0" - * which accompanies this distribution, and is available - * at the URL "http://www.eclipse.org/legal/epl-v10.html". - * - * Initial Contributors: - * Nokia Corporation - initial contribution. - * - * Contributors: - * - * Description: Search application main class. - * - */ - -#include "search.h" -#include -#include -#include - -// --------------------------------------------------------------------------- -// Search::Search -// --------------------------------------------------------------------------- -// -Search::Search(QObject* aParent) : - QObject(aParent), mRuntime(NULL) - { - SEARCH_FUNC_ENTRY("SEARCH::Search::Search"); - - SearchRuntimeProvider *interface = new SearchRuntimeProvider(); - mRuntime = interface->createPlugin(); - if (mRuntime) - { - mRuntime->setParent(this); - connect(mRuntime, SIGNAL(started()), SLOT(handleRuntimeStarted())); - connect(mRuntime, SIGNAL(stopped()), SLOT(handleRuntimeStopped())); - connect(mRuntime, SIGNAL(faulted()), SLOT(handleRuntimeFaulted())); - } - SEARCH_FUNC_EXIT("SEARCH::Search::Search"); - } - -// --------------------------------------------------------------------------- -// Search::~Search() -// --------------------------------------------------------------------------- -// -Search::~Search() - { - if (mRuntime) - { - disconnect(mRuntime, SIGNAL(started()), this, - SLOT(handleRuntimeStarted())); - disconnect(mRuntime, SIGNAL(stopped()), this, - SLOT(handleRuntimeStopped())); - disconnect(mRuntime, SIGNAL(faulted()), this, - SLOT(handleRuntimeFaulted())); - - delete mRuntime; - } - } - -// --------------------------------------------------------------------------- -// Search::start() -// --------------------------------------------------------------------------- -// -void Search::start() - { - SEARCH_FUNC_ENTRY("SEARCH::Search::start"); - - if (mRuntime) - { - mRuntime->start(); - } - else - { - emit exit(); - } - - SEARCH_FUNC_EXIT("SEARCH::Search::start"); - } - -// --------------------------------------------------------------------------- -// Search::stop() -// --------------------------------------------------------------------------- -// -void Search::stop() - { - SEARCH_FUNC_ENTRY("SEARCH::Search::stop"); - if (mRuntime) - { - mRuntime->stop(); - } - - SEARCH_FUNC_EXIT("SEARCH::Search::stop"); - } - -// --------------------------------------------------------------------------- -// Search::handleRuntimeStarted() -// --------------------------------------------------------------------------- -// -void Search::handleRuntimeStarted() - { - } - -// --------------------------------------------------------------------------- -// Search::handleRuntimeStopped() -// --------------------------------------------------------------------------- -// -void Search::handleRuntimeStopped() - { - emit exit(); - } - -// --------------------------------------------------------------------------- -// Search::handleRuntimeFaulted() -// --------------------------------------------------------------------------- -// -void Search::handleRuntimeFaulted() - { - emit exit(); - } diff -r e023f3f775db -r 4a4ca69db308 searchui/Searchapplication/src/main.cpp --- a/searchui/Searchapplication/src/main.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/Searchapplication/src/main.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -15,7 +15,7 @@ * */ -#include "search.h" +#include "searchapplication.h" #include "search_global.h" #include @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { SEARCH_FUNC_ENTRY("SEARCH::Search::main"); - + PERF_APP_LAUNCH_END("SearchApplication Main Called"); HbApplication app(argc, argv); QTranslator translator; @@ -58,8 +58,9 @@ QTranslator notesTranslator; notesTranslator.load("notes_" + lang, path); app.installTranslator(¬esTranslator); - - Search search; + PERF_APP_LAUNCH_END("Search Component Cunstructions starts"); + SearchApplication search; + PERF_APP_LAUNCH_END("Search Component Cunstructions Ends"); #ifdef ROM QDir::setCurrent("Z:/"); #else @@ -70,6 +71,7 @@ QObject::connect(&search, SIGNAL(exit()), &app, SLOT(quit()), Qt::QueuedConnection); search.start(); + PERF_APP_LAUNCH_END("SearchApplication Ends, Main Event Loop"); int ret = app.exec(); SEARCH_FUNC_EXIT("SEARCH::Search::main"); return ret; diff -r e023f3f775db -r 4a4ca69db308 searchui/bwins/searchonlinehandleru.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/bwins/searchonlinehandleru.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,32 @@ +EXPORTS + ?getStaticMetaObject@OnlineHandler@@SAABUQMetaObject@@XZ @ 1 NONAME ; struct QMetaObject const & OnlineHandler::getStaticMetaObject(void) + ?backEventTriggered@OnlineHandler@@IAEXXZ @ 2 NONAME ; void OnlineHandler::backEventTriggered(void) + ?metaObject@OnlineHandler@@UBEPBUQMetaObject@@XZ @ 3 NONAME ; struct QMetaObject const * OnlineHandler::metaObject(void) const + ?qt_metacast@OnlineHandler@@UAEPAXPBD@Z @ 4 NONAME ; void * OnlineHandler::qt_metacast(char const *) + ?pluginShutdown@OnlineHandler@@IAEX_N@Z @ 5 NONAME ; void OnlineHandler::pluginShutdown(bool) + ?activatePlugin@OnlineHandler@@QAE_NXZ @ 6 NONAME ; bool OnlineHandler::activatePlugin(void) + ??1OnlineHandler@@UAE@XZ @ 7 NONAME ; OnlineHandler::~OnlineHandler(void) + ?isShutdownCompleted@OnlineHandler@@QAEX_N@Z @ 8 NONAME ; void OnlineHandler::isShutdownCompleted(bool) + ??0OnlineHandler@@QAE@PAVQObject@@@Z @ 9 NONAME ; OnlineHandler::OnlineHandler(class QObject *) + ?loadSearchPlugin@OnlineHandler@@AAEPAVOnlineSearchPlugin@@ABVQString@@@Z @ 10 NONAME ; class OnlineSearchPlugin * OnlineHandler::loadSearchPlugin(class QString const &) + ?setDefaultProvider@OnlineHandler@@QAEXH@Z @ 11 NONAME ; void OnlineHandler::setDefaultProvider(int) + ?pluginIntialized@OnlineHandler@@IAEX_N@Z @ 12 NONAME ; void OnlineHandler::pluginIntialized(bool) + ?defaultProvider@OnlineHandler@@IAEXH@Z @ 13 NONAME ; void OnlineHandler::defaultProvider(int) + ?backEvent@OnlineHandler@@QAEXXZ @ 14 NONAME ; void OnlineHandler::backEvent(void) + ?providerDetails@OnlineHandler@@IAEXVQString@@VHbIcon@@H@Z @ 15 NONAME ; void OnlineHandler::providerDetails(class QString, class HbIcon, int) + ?initializePlugin@OnlineHandler@@QAEXXZ @ 16 NONAME ; void OnlineHandler::initializePlugin(void) + ?staticMetaObject@OnlineHandler@@2UQMetaObject@@B @ 17 NONAME ; struct QMetaObject const OnlineHandler::staticMetaObject + ?trUtf8@OnlineHandler@@SA?AVQString@@PBD0@Z @ 18 NONAME ; class QString OnlineHandler::trUtf8(char const *, char const *) + ?trUtf8@OnlineHandler@@SA?AVQString@@PBD0H@Z @ 19 NONAME ; class QString OnlineHandler::trUtf8(char const *, char const *, int) + ?readSettings@OnlineHandler@@QAEXXZ @ 20 NONAME ; void OnlineHandler::readSettings(void) + ?writeSettings@OnlineHandler@@QAEXH@Z @ 21 NONAME ; void OnlineHandler::writeSettings(int) + ??_EOnlineHandler@@UAE@I@Z @ 22 NONAME ; OnlineHandler::~OnlineHandler(unsigned int) + ?isPluginIntialized@OnlineHandler@@QAEX_N@Z @ 23 NONAME ; void OnlineHandler::isPluginIntialized(bool) + ?unloadPluginandExit@OnlineHandler@@QAEXXZ @ 24 NONAME ; void OnlineHandler::unloadPluginandExit(void) + ?unloadPlugin@OnlineHandler@@QAEXXZ @ 25 NONAME ; void OnlineHandler::unloadPlugin(void) + ?tr@OnlineHandler@@SA?AVQString@@PBD0H@Z @ 26 NONAME ; class QString OnlineHandler::tr(char const *, char const *, int) + ?qt_metacall@OnlineHandler@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 27 NONAME ; int OnlineHandler::qt_metacall(enum QMetaObject::Call, int, void * *) + ?loadISPlugin@OnlineHandler@@QAEXHVQString@@@Z @ 28 NONAME ; void OnlineHandler::loadISPlugin(int, class QString) + ?tr@OnlineHandler@@SA?AVQString@@PBD0@Z @ 29 NONAME ; class QString OnlineHandler::tr(char const *, char const *) + ?activatePlugin@OnlineHandler@@QAE_NABVQString@@@Z @ 30 NONAME ; bool OnlineHandler::activatePlugin(class QString const &) + diff -r e023f3f775db -r 4a4ca69db308 searchui/eabi/searchonlinehandleru.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/eabi/searchonlinehandleru.def Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,32 @@ +EXPORTS + _ZN13OnlineHandler11qt_metacallEN11QMetaObject4CallEiPPv @ 1 NONAME + _ZN13OnlineHandler11qt_metacastEPKc @ 2 NONAME + _ZN13OnlineHandler12loadISPluginEi7QString @ 3 NONAME + _ZN13OnlineHandler12readSettingsEv @ 4 NONAME + _ZN13OnlineHandler12unloadPluginEv @ 5 NONAME + _ZN13OnlineHandler13writeSettingsEi @ 6 NONAME + _ZN13OnlineHandler14activatePluginERK7QString @ 7 NONAME + _ZN13OnlineHandler14activatePluginEv @ 8 NONAME + _ZN13OnlineHandler14pluginShutdownEb @ 9 NONAME + _ZN13OnlineHandler15defaultProviderEi @ 10 NONAME + _ZN13OnlineHandler15providerDetailsE7QString6HbIconi @ 11 NONAME + _ZN13OnlineHandler16initializePluginEv @ 12 NONAME + _ZN13OnlineHandler16loadSearchPluginERK7QString @ 13 NONAME + _ZN13OnlineHandler16pluginIntializedEb @ 14 NONAME + _ZN13OnlineHandler16staticMetaObjectE @ 15 NONAME DATA 16 + _ZN13OnlineHandler18backEventTriggeredEv @ 16 NONAME + _ZN13OnlineHandler18isPluginIntializedEb @ 17 NONAME + _ZN13OnlineHandler18setDefaultProviderEi @ 18 NONAME + _ZN13OnlineHandler19getStaticMetaObjectEv @ 19 NONAME + _ZN13OnlineHandler19isShutdownCompletedEb @ 20 NONAME + _ZN13OnlineHandler19unloadPluginandExitEv @ 21 NONAME + _ZN13OnlineHandler9backEventEv @ 22 NONAME + _ZN13OnlineHandlerC1EP7QObject @ 23 NONAME + _ZN13OnlineHandlerC2EP7QObject @ 24 NONAME + _ZN13OnlineHandlerD0Ev @ 25 NONAME + _ZN13OnlineHandlerD1Ev @ 26 NONAME + _ZN13OnlineHandlerD2Ev @ 27 NONAME + _ZNK13OnlineHandler10metaObjectEv @ 28 NONAME + _ZTI13OnlineHandler @ 29 NONAME + _ZTV13OnlineHandler @ 30 NONAME + diff -r e023f3f775db -r 4a4ca69db308 searchui/inc/Search_global.h --- a/searchui/inc/Search_global.h Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/inc/Search_global.h Thu Jul 22 16:34:05 2010 +0100 @@ -26,6 +26,13 @@ #include #endif #endif +//#define OST_TRACE_COMPILER_IN_USE //Uncomment to enable performance measurements. + +#ifdef OST_TRACE_COMPILER_IN_USE +#define PERF_APP_LAUNCH_END(str) qDebug() << "Search_App_Launch :"< @@ -46,11 +30,11 @@ void SearchInDeviceHandlerTest::testhandleAsyncSearchResult() { InDeviceHandler* indevicehandler = new InDeviceHandler(); - indevicehandler->setCategory("file"); + indevicehandler->setCategory("media"); QSignalSpy spy(indevicehandler, SIGNAL(handleAsyncSearchResult(int, int))); - indevicehandler->searchAsync("txt"); - QTest::qWait(200); + indevicehandler->searchAsync("jpg*"); + QTest::qWait(2000); QCOMPARE(spy.count(), 1); delete indevicehandler; @@ -58,15 +42,15 @@ void SearchInDeviceHandlerTest::testhandleDocument() { InDeviceHandler* indevicehandler = new InDeviceHandler(); - indevicehandler->setCategory("file"); + indevicehandler->setCategory("media"); - indevicehandler->searchAsync("txt"); - QTest::qWait(200); + indevicehandler->searchAsync("jpg*"); + QTest::qWait(2000); QSignalSpy spy(indevicehandler, SIGNAL(handleDocument(int, QCPixDocument*))); indevicehandler->getDocumentAsyncAtIndex(0); - QTest::qWait(200); + QTest::qWait(2000); QCOMPARE(spy.count(), 1); delete indevicehandler; @@ -83,14 +67,14 @@ void SearchInDeviceHandlerTest::testgetDocumentAsyncAtIndex() { InDeviceHandler* indevicehandler = new InDeviceHandler(); - indevicehandler->setCategory("file"); + indevicehandler->setCategory("media"); - indevicehandler->searchAsync("txt"); - QTest::qWait(200); + indevicehandler->searchAsync("jpg*"); + QTest::qWait(2000); QSignalSpy spy(indevicehandler, SIGNAL(handleDocument(int, QCPixDocument*))); indevicehandler->getDocumentAsyncAtIndex(0); - QTest::qWait(200); + QTest::qWait(2000); QCOMPARE(spy.count(), 1); delete indevicehandler; } @@ -98,21 +82,21 @@ void SearchInDeviceHandlerTest::testsearchAsync() { InDeviceHandler* indevicehandler = new InDeviceHandler(); - indevicehandler->setCategory("file"); + indevicehandler->setCategory("media"); QSignalSpy spy(indevicehandler, SIGNAL(handleAsyncSearchResult(int,int))); indevicehandler->searchAsync(NULL); - QTest::qWait(200); + QTest::qWait(2000); QCOMPARE(spy.count(), 0); - indevicehandler->searchAsync("txt"); - QTest::qWait(200); + indevicehandler->searchAsync("jpg*"); + QTest::qWait(2000); QCOMPARE(spy.count(), 1); delete indevicehandler; } void SearchInDeviceHandlerTest::testcancelLastSearch() { InDeviceHandler* indevicehandler = new InDeviceHandler(); - indevicehandler->setCategory("file"); - indevicehandler->searchAsync("txt"); + indevicehandler->setCategory("media"); + indevicehandler->searchAsync("jpg*"); indevicehandler->cancelLastSearch(); delete indevicehandler; } @@ -120,9 +104,9 @@ { InDeviceHandler* indevicehandler = new InDeviceHandler(); QCOMPARE(indevicehandler->getSearchResultCount(),0); - indevicehandler->setCategory("file"); - indevicehandler->searchAsync("txt"); - QTest::qWait(200); + indevicehandler->setCategory("media"); + indevicehandler->searchAsync("jpg*"); + QTest::qWait(2000); QVERIFY(indevicehandler->getSearchResultCount()); delete indevicehandler; diff -r e023f3f775db -r 4a4ca69db308 searchui/indevicehandler/tsrc/t_indevicehandler/t_indevicehandler.pro --- a/searchui/indevicehandler/tsrc/t_indevicehandler/t_indevicehandler.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/indevicehandler/tsrc/t_indevicehandler/t_indevicehandler.pro Thu Jul 22 16:34:05 2010 +0100 @@ -37,8 +37,9 @@ TARGET.UID3 = 0x20026F8A TARGET.CAPABILITY = ALL -TCB -DRM TARGET.EPOCSTACKSIZE = 0x14000 // 80kB -TARGET.EPOCHEAPSIZE = 0x20000 0x1000000 // 128kB - 16MB +TARGET.EPOCHEAPSIZE = 0x20000 0x800000 // 128kB - 16MB INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE +INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE } include(t_indevicehandler.pri) diff -r e023f3f775db -r 4a4ca69db308 searchui/indevicehandler/tsrc/t_src.pro --- a/searchui/indevicehandler/tsrc/t_src.pro Fri Jun 11 16:24:16 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# - -TEMPLATE = subdirs - -SUBDIRS = t_indevicehandler - -CONFIG += ordered \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/indevicehandler/tsrc/tsrc.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/indevicehandler/tsrc/tsrc.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,21 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TEMPLATE = subdirs + +SUBDIRS = t_indevicehandler + +CONFIG += ordered \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/inc/onlinehandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/inc/onlinehandler.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Onlinehandler. + * + */ + +#ifndef ONLINEHANDLER_H +#define ONLINEHANDLER_H + +#include +#include +#include +#include +#include "search_global.h" +class HbMainWindow; +class HbView; +class OnlineSearchPlugin; +class IsEngine; +class ServiceProvider; +class HbIcon; + +#ifdef SEARCHONLINEHANDLER_LIB +#define ONLINEHANDLER_EXPORT Q_DECL_EXPORT +#else +#define ONLINEHANDLER_EXPORT Q_DECL_IMPORT +#endif + +SEARCH_CLASS(SearchOnlineHandlerTest) +/** + * @ingroup group_OnlineHandler + * @brief Loads and connects onlinesearchprovider plugins + * + * This service is responsible for loading onlinesearchprovider plugins. + * + * @since S60 ?S60_version. + */ +class ONLINEHANDLER_EXPORT OnlineHandler : public QObject + { +Q_OBJECT + +public: + /** + * Default constructor. + * + * @since S60 ?S60_version. + */ + OnlineHandler(QObject* = 0); + + /** + * Destructor. + * + * @since S60 ?S60_version. + */ + virtual ~OnlineHandler(); + void setDefaultProvider(const int); + + void isProvidersAvailable(); + void initializePlugin(); + bool activatePlugin(); + bool activatePlugin(const QString &str); + + void readSettings(); + void writeSettings(const int); + + void loadISPlugin(int id, QString query); + + void unloadPlugin(); + void unloadPluginandExit(); +public slots: + void isPluginIntialized(bool); + void isShutdownCompleted(bool); + void backEvent(); + +signals: + void providerDetails(QString, HbIcon, int); + void defaultProvider(const int); + void pluginIntialized(bool); + void pluginShutdown(bool); + void backEventTriggered(); +private: + OnlineSearchPlugin *loadSearchPlugin(const QString &pluginFile); + +private: + QString mDefaultPluginName; + OnlineSearchPlugin *mOnlinePlugin; + IsEngine* mEng; + ServiceProvider* mCurrentProvider; + QList mAvailableProviders; + bool mLoadSuggestion; + QString mLoadSuggestionLink; +SEARCH_FRIEND_CLASS (SearchOnlineHandlerTest) + }; +#endif diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/inc/searchbasepath.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/inc/searchbasepath.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef SEARCHBASEPATH_H +#define SEARCHBASEPATH_H + +#ifdef Q_OS_SYMBIAN + #define SEARCH_PLUGIN_PATH QString("/resource/qt/plugins/onlinesearch") + #define SEARCH_PLUGIN_CONFIG_PATH QString("/resource/qt/plugins/onlinesearch/config") +#else + #ifdef _DEBUG + #define SEARCH_PLUGIN_PATH QString("/onlinesearch/debug/bin") + #define SEARCH_PLUGIN_CONFIG_PATH QString("/onlinesearch/debug/bin/config") + #else + #define SEARCH_PLUGIN_PATH QString("/onlinesearch/release/bin") + #define SEARCH_PLUGIN_CONFIG_PATH QString("/onlinesearch/release/bin/config") + #endif +#endif + +#endif /* SEARCHBASEPATH_H */ diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/inc/searchutility.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/inc/searchutility.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0"" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ +#ifndef SEARCH_UTILITY_H +#define SEARCH_UTILITY_H + +#include + +class SearchUtility + { +public: + static QStringList drives(); + static QStringList pluginDirs(); + static QStringList SearchcfgDirs(); + +private: + SearchUtility(); + }; + +#endif //SEARCH_UTILITY_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/onlinehandler.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/onlinehandler.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,20 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: online handler list of files +# + +HEADERS += ./inc/*.h +SOURCES += ./src/*.cpp + +RESOURCES += diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/onlinehandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/onlinehandler.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,56 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: SEARCH online handler project file +# + +TEMPLATE = lib +TARGET = searchonlinehandler + +CONFIG += hb +CONFIG += console + +LIBS += -lhbcore +LIBS += -lxqsettingsmanager +LIBS += -lisproviderdbmanager +LIBS += -lisengine + +QT -= webkit +QT += xml + +DEFINES += SEARCHONLINEHANDLER_LIB + +DEPENDPATH += ./inc \ + ./src + +INCLUDEPATH += ./inc \ + ../inc + +symbian { + TARGET.UID2 = 0x20004C45 + TARGET.UID3 = 0x2002C37C + TARGET.EPOCALLOWDLLDATA=1 + TARGET.CAPABILITY = ALL -TCB -DRM + INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + +defBlock = \ + "$${LITERAL_HASH}if defined(EABI)" \ + "DEFFILE ../eabi/" \ + "$${LITERAL_HASH}else" \ + "DEFFILE ../bwins/" \ + "$${LITERAL_HASH}endif" + + MMP_RULES += defBlock +} +include(onlinehandler.pri) \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/src/onlinehandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/src/onlinehandler.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,292 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Online Handler. + * + */ +#include "onlinehandler.h" +#include "searchutility.h" +#include "onlinesearchplugin.h" // after export should be included as systeminc +#include "onlinesearchpluginfactory.h" // after export should be included as systeminc +#include +#include +#ifdef Q_OS_SYMBIAN +#include +#else +#include +#endif +#include +#include +#include +#include +#include +#include +#include + +#ifdef WIN32 +#define PLUGINFILE_SUFFIX "dll" +#else +#define PLUGINFILE_SUFFIX "qtplugin" +#endif + +// --------------------------------------------------------------------------- +// OnlineHandler::OnlineHandler +// --------------------------------------------------------------------------- +// +OnlineHandler::OnlineHandler(QObject* parent) : + QObject(parent), mOnlinePlugin(NULL), mEng(NULL), mCurrentProvider(NULL) + { + } +// --------------------------------------------------------------------------- +// OnlineHandler::~OnlineHandler +// --------------------------------------------------------------------------- +// +OnlineHandler::~OnlineHandler() + { + if (mOnlinePlugin) + delete mOnlinePlugin; + if (mEng) + delete mEng; + if (mCurrentProvider) + delete mCurrentProvider; + } +void OnlineHandler::setDefaultProvider(const int id) + { + if (mEng) + mEng->SetSelectedProvider(id); + } +// --------------------------------------------------------------------------- +// OnlineHandler::readSettings +// --------------------------------------------------------------------------- +// +void OnlineHandler::readSettings() + { + if (!mEng) + mEng = new IsEngine(); + mAvailableProviders.clear(); + mEng->Providers(mAvailableProviders); + for (int i = 0; i < mAvailableProviders.count(); i++) + { + emit providerDetails(mAvailableProviders.at(i).Name(), + mAvailableProviders.at(i).Icon(), + mAvailableProviders.at(i).Id()); + } + mCurrentProvider = mEng->SelectedProvider(); // default provider + if (mCurrentProvider) + { + mDefaultPluginName = mCurrentProvider->Name(); + emit defaultProvider(mCurrentProvider->Id()); + } + else + { + mDefaultPluginName = QString(); + } + } +// --------------------------------------------------------------------------- +// OnlineHandler::writeSettings +// --------------------------------------------------------------------------- +// +void OnlineHandler::writeSettings(const int providerId) + { + if (mEng && mEng->SetSelectedProvider(providerId) && mCurrentProvider) + { + mCurrentProvider = mEng->SelectedProvider(); // default provider + emit defaultProvider(mCurrentProvider->Id()); + } + return; + } +// --------------------------------------------------------------------------- +// OnlineHandler::initializePlugin +// --------------------------------------------------------------------------- +// +void OnlineHandler::initializePlugin() + { + /* Below assumes, only default plugins are handled now. If user selects different plugin some more logic needed here. */ + + if (mOnlinePlugin) + { + delete mOnlinePlugin; + mOnlinePlugin = NULL; + } + mOnlinePlugin = loadSearchPlugin(mDefaultPluginName); + if (mOnlinePlugin) + { + connect(mOnlinePlugin, SIGNAL(pluginInitialized(bool)), this, + SLOT(isPluginIntialized(bool))); + + connect(mOnlinePlugin, SIGNAL(shutdownCompleted(bool)), this, + SLOT(isShutdownCompleted(bool))); + + connect(mOnlinePlugin, SIGNAL(handleBackEvent()), this, + SLOT(backEvent())); + + mOnlinePlugin->initializePlugin(); + } + } +void OnlineHandler::loadISPlugin(int id, QString query) + { + if (!mEng) + mEng = new IsEngine(); + mLoadSuggestion = true; + mLoadSuggestionLink = query; + QList iAvailableProviders; + mEng->Providers(iAvailableProviders); + for (int i = 0; i < iAvailableProviders.count(); i++) + { + if (iAvailableProviders.at(i).Id() == id) + { + mDefaultPluginName = iAvailableProviders.at(i).Name(); + break; + } + } + initializePlugin(); + } +// --------------------------------------------------------------------------- +// OnlineHandler::isPluginIntialized +// --------------------------------------------------------------------------- +// +void OnlineHandler::isPluginIntialized(bool success) + { + if (mLoadSuggestion) + { + activatePlugin(mLoadSuggestionLink); + mLoadSuggestion = false; + } + else + { + emit pluginIntialized(success); + } + } +// --------------------------------------------------------------------------- +// OnlineHandler::isShutdownCompleted +// --------------------------------------------------------------------------- +// +void OnlineHandler::isShutdownCompleted(bool success) + { + mOnlinePlugin->deleteLater(); + emit pluginShutdown(success); + } +// --------------------------------------------------------------------------- +// OnlineHandler::backEvent +// --------------------------------------------------------------------------- +// +void OnlineHandler::backEvent() + { + emit backEventTriggered(); + } +// --------------------------------------------------------------------------- +// OnlineHandler::activatePlugin +// --------------------------------------------------------------------------- +// +bool OnlineHandler::activatePlugin() + { + if (mOnlinePlugin) + mOnlinePlugin->activatePlugin(); + return true; + } +// --------------------------------------------------------------------------- +// OnlineHandler::activatePlugin +// --------------------------------------------------------------------------- +// +bool OnlineHandler::activatePlugin(const QString &str) + { + if (mOnlinePlugin) + mOnlinePlugin->activatePlugin(str); + return true; + } +// --------------------------------------------------------------------------- +// OnlineHandler::unloadPlugin +// --------------------------------------------------------------------------- +// +void OnlineHandler::unloadPlugin() + { + if (mOnlinePlugin) + { + disconnect(mOnlinePlugin, SIGNAL(pluginInitialized(bool)), this, + SLOT(isPluginIntialized(bool))); + + disconnect(mOnlinePlugin, SIGNAL(shutdownCompleted(bool)), this, + SLOT(isShutdownCompleted(bool))); + + disconnect(mOnlinePlugin, SIGNAL(handleBackEvent()), this, + SLOT(backEvent())); + + mOnlinePlugin->deactivatePlugin(); + } + } +// --------------------------------------------------------------------------- +// OnlineHandler::unloadPluginandExit +// --------------------------------------------------------------------------- +// +void OnlineHandler::unloadPluginandExit() + { + if (mOnlinePlugin) + { + disconnect(mOnlinePlugin, SIGNAL(pluginInitialized(bool)), this, + SLOT(isPluginIntialized(bool))); + + disconnect(mOnlinePlugin, SIGNAL(shutdownCompleted(bool)), this, + SLOT(isShutdownCompleted(bool))); + + disconnect(mOnlinePlugin, SIGNAL(handleBackEvent()), this, + SLOT(backEvent())); + + mOnlinePlugin->deactivatePlugin(); + mOnlinePlugin->shutdownPlugin(); + } + } +// --------------------------------------------------------------------------- +// OnlineHandler::loadSearchPlugin +// --------------------------------------------------------------------------- +// +OnlineSearchPlugin *OnlineHandler::loadSearchPlugin(const QString &pluginFile) + { + // CpLogger logger; + // logger << "loading plugin:" << pluginFile << "\r\n"; + + QFileInfo fileInfo(pluginFile); + + if (!fileInfo.isAbsolute()) + { + QString fileName = fileInfo.fileName(); + if (fileInfo.suffix().compare(PLUGINFILE_SUFFIX, Qt::CaseInsensitive)) + { + fileName = fileInfo.baseName() + '.' + PLUGINFILE_SUFFIX; + } + + QStringList pluginDirs = SearchUtility::pluginDirs(); + foreach(const QString &pluginDir,pluginDirs) + { + fileInfo.setFile(pluginDir + fileName); + if (fileInfo.exists() && QLibrary::isLibrary( + fileInfo.absoluteFilePath())) + { + break; + } + } + } + + QPluginLoader loader(fileInfo.absoluteFilePath()); + OnlineSearchPluginFactory *pluginFactory = qobject_cast< + OnlineSearchPluginFactory*> (loader.instance()); + OnlineSearchPlugin *plugin = pluginFactory->createPlugin(); + /* + * why unload? + if (!plugin) { + loader.unload(); + } + */ + // logger << (plugin ? "load plugin succeed." : "load plugin failed.") << "\r\n"; + return plugin; + } + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/src/searchutility.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/src/searchutility.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,140 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include "searchutility.h" +#include +#include +#include +#include "searchbasepath.h" + +#if 0 + +#include "Searchpluginloader.h" +#include +#include +#include "Searchcategorysettingformitemdata.h" +#include "Searchpluginconfigreader.h" + +void SearchUtility::buildConfigPluginItems(HbDataFormModelItem *parent, + const QString &configFile, + SearchItemDataHelper &itemDataHelper) +{ + if (!parent) { + return; + } + + QString configPath(configFile); + QFileInfo fi(configFile); + if (!fi.isAbsolute()) { + QStringList dirs = SearchUtility::SearchcfgDirs(); + foreach(const QString &dir,dirs) { + configPath = dir + fi.fileName(); + if (QFileInfo(configPath).exists()) { + break; + } + } + } + + QList SearchPluginConfigs = SearchPluginConfigReader(configPath).readSearchPluginConfigs(); + + foreach(const SearchPluginConfig &SearchPluginConfig, SearchPluginConfigs) { + SearchPluginPlatInterface *plugin = SearchPluginLoader().loadSearchPlugin(SearchPluginConfig.mPluginFile); + + if (plugin) { + SearchSettingFormItemData *itemData = plugin->createSettingFormItemData(itemDataHelper); + if (itemData) { + //append the new created setting form item to its parent item. + parent->appendChild(itemData); + + if (SearchCategorySettingFormItemData *categoryItemData + = qobject_cast(itemData)) { + categoryItemData->initialize(itemDataHelper); + } + + //set the description from config if it is empty. + if (SearchSettingFormEntryItemData *SearchEntryItemData + = qobject_cast(itemData)) { + if (SearchEntryItemData->text().isEmpty()) { + SearchEntryItemData->setText(SearchPluginConfig.mDisplayName); + } + if (SearchEntryItemData->description().isEmpty()) { + SearchEntryItemData->setDescription(SearchPluginConfig.mDescription); + } + } + + } + } + + } //end foreach +} + +#endif + +QStringList SearchUtility::drives() +{ + static QStringList drives; + + if (drives.empty()) { +#ifdef WIN32 + drives.append("C:"); +#else + QFileInfoList fileInfoList = QDir::drives(); + foreach(const QFileInfo &fileInfo,fileInfoList) { + QString str = fileInfo.filePath(); + if (str.length() > 2) { + str = str.left(2); + } + drives.append(str); + } +#endif + } + + return drives; +} + +static QStringList listDirs(const QString &baseDir) +{ + QStringList dirs; + + QStringList drives = SearchUtility::drives(); + foreach(const QString &drive,drives) { + QString dir = drive + baseDir + QDir::separator(); + if (QFileInfo(dir).exists()) { + dirs.append(dir); + } + } + + return dirs; +} + +QStringList SearchUtility::pluginDirs() +{ + static QStringList dirs; + if (dirs.empty()) { + dirs = listDirs(SEARCH_PLUGIN_PATH); + } + return dirs; +} + +QStringList SearchUtility::SearchcfgDirs() +{ + static QStringList dirs; + if (dirs.empty()) { + dirs = listDirs(SEARCH_PLUGIN_CONFIG_PATH); + } + return dirs; +} + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/resource/t_baiduplugin.manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/resource/t_baiduplugin.manifest Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,5 @@ + + + + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/src/t_baiduplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/src/t_baiduplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: t_baidplugin + * + */ + +#include "t_baiduplugin.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// --------------------------------------------------------------------------- +// baiduplugin::baiduplugin() +// --------------------------------------------------------------------------- +// +baiduplugin::baiduplugin() + { + // Set up plugin settings + } + +// --------------------------------------------------------------------------- +// baiduplugin::~baiduplugin() +// --------------------------------------------------------------------------- +// +baiduplugin::~baiduplugin() + { + } + +// --------------------------------------------------------------------------- +// baiduplugin::initialize() +// --------------------------------------------------------------------------- +// +void baiduplugin::initializePlugin() + { + emit pluginInitialized(true); + } + +// --------------------------------------------------------------------------- +// baiduplugin::activate() +// --------------------------------------------------------------------------- +// +void baiduplugin::activatePlugin() + { + } + +// --------------------------------------------------------------------------- +// baiduplugin::activate(const QString &) +// --------------------------------------------------------------------------- +// +void baiduplugin::activatePlugin(const QString &searchQuery) + { +#ifdef __WINSCW__ + HbDialog* popup = new HbDialog(); + popup->setDismissPolicy(HbDialog::NoDismiss); + popup->setTimeout(HbDialog::NoTimeout); + QString str("Baidu Search "); + str.append(searchQuery); + HbLabel *label = new HbLabel(str); + popup->setHeadingWidget(label); + HbAction * action = new HbAction(hbTrId("Back"), popup); + connect(action, SIGNAL(triggered()), this, SLOT(BackEvent())); + popup->setPrimaryAction(action); + popup->show(); +#else + QString url("http://www.baidu.com/s?wd="); + url.append(searchQuery); + QDesktopServices::openUrl(url); +#endif + } +void baiduplugin::BackEvent() + { + emit handleBackEvent(); + } +// --------------------------------------------------------------------------- +// baiduplugin::deactivate() +// --------------------------------------------------------------------------- +// +void baiduplugin::deactivatePlugin() + { + // Destroy everything but the initial view and data that takes a long time + // to reacquire when the plugin is deactivated + } + +// --------------------------------------------------------------------------- +// baiduplugin::shutdown() +// --------------------------------------------------------------------------- +// +void baiduplugin::shutdownPlugin() + { + // Destroy all views + emit shutdownCompleted(true); + + //return true; + } + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/src/t_baidupluginfactory.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/src/t_baidupluginfactory.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Implementation of the search google online factory. + * + */ + +#include // For Q_EXPORT_PLUGIN2 + +#include "t_baidupluginfactory.h" +#include "t_baiduplugin.h" + + +OnlineSearchPlugin* baidupluginFactory::createPlugin() const +{ + return new baiduplugin(); +} + +Q_EXPORT_PLUGIN2(Baidu,baidupluginFactory) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,24 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# Template version: 4.2 +HEADERS += ./inc/*.h + + +SOURCES += ./src/*.cpp + +// HEADERS += onlinesearchplugin.h how to solve meta object problem? + +RESOURCES += diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,63 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: search test online project file +# + +TEMPLATE = lib +CONFIG += plugin hb +TARGET = Baidu + +plugin.sources = Baidu.dll +plugin.path = \resource\qt\plugins\onlinesearch + +DEPLOYMENT += plugin + +CONFIG(debug, debug|release) { + DESTDIR = debug +} else { + DESTDIR = release +} + +win32 { + + LIBS += -L$$PWD/../../../../bin/debug +} + + + +CONFIG += plugin debug_and_release + +QT += xml sql webkit network + + + +coverage:DEFINES += COVERAGE_MEASUREMENT + +DEPENDPATH += ./inc \ + ./src + +INCLUDEPATH += ./inc/ \ + +symbian: { + TARGET.UID3 = 0x2002A532 + TARGET.EPOCALLOWDLLDATA=1 + TARGET.CAPABILITY = ALL -TCB -DRM + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE +CONFIG += symbian_test +} + +include(t_baiduplugin.pri) +symbian:include(t_baiduplugin_installs_symbian.pri) +win32:include(t_baiduplugin_installs_win32.pri) +symbian:unix:include(t_baiduplugin_installs_unix.pri) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_symbian.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_symbian.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,25 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + + + +export.sources = resource/*.manifest +export.path = /searchresources/plugins/onlineproviders + +pluginstub.sources = Baidu.dll +pluginstub.path = /resource/qt/plugins/search + +DEPLOYMENT += export pluginstub diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_unix.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_unix.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,40 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# + + + + + +# +# Release +# + +r01.path = ../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.so* \ + ./resource/*.manifest + +INSTALLS += r01 + +# +# Debug +# + +d01.path = ../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.so* \ + ./resource/*.manifest + +INSTALLS += d01 diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_win32.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_baiduplugin/t_baiduplugin_installs_win32.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,37 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# +# Release +# +r01.path = $$PWD/../../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.dll + +r02.path = $$PWD/../../../../bin/release/searchresources/plugins/onlineproviders +r02.files = ./resource/*.manifest + +INSTALLS += r01 r02 + +# +# Debug +# + +d01.path = $$PWD/../../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.dll + +d02.path = $$PWD/../../../../bin/debug/searchresources/plugins/onlineproviders +d02.files = ./resource/*.manifest + +INSTALLS += d01 d02 \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/inc/onlinesearchplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/inc/onlinesearchplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: OnlineSearchPlugin class definition + * + */ + +#ifndef ONLINESEARCHPLUGIN_H +#define ONLINESEARCHPLUGIN_H + +#include + +/** + * @ingroup group_onlinesearchpluginmodel + * @brief Represents a plugin plugin in the framework. + * + * OnlineSearchPlugin is an interface through which setting plugin plugin can be + * executed in the search handlers. + * + * @lib ?library + * @since S60 ?S60_version + */ + +class OnlineSearchPlugin : public QObject + { +Q_OBJECT +public: + + /** + * Destructor. + * @since S60 ?S60_version. + */ + virtual ~OnlineSearchPlugin() + { + } + + /** + * Called by the search handlers during initialize cycle of the plugin, it is during + * this phase the plugin widget + * usually creates its initial view. + * Once the initialization is done, pluginInitialized signal must be + * emitted. + * @since S60 ?S60_version. + */ + virtual void initializePlugin() = 0; + + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin() = 0; + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin(const QString &searchQuery) = 0; + + /** + * Called by the search handlers when the plugin is no longer being displayed. + */ + virtual void deactivatePlugin() = 0; + + /** + * Called by the search handlers before the plugin destructor is called. + * @param reason The reason why the search handlers is being killed. + */ + virtual void shutdownPlugin() = 0; + +protected: + + /** + * Constructor. + * @since S60 ?S60_version. + */ + OnlineSearchPlugin() + { + } + +signals: + + /** + * Emit this signal when changing the view inside the plugin. + * @param caller The calling plugin plugin instance. + * @param viewWidget The new plugin view widget to be shown. + */ + void viewChanged(); + + /** + * Emit this signal to indicate initialization is done. + * @param caller The calling plugin plugin instance. + * @param success True if succeeded, false otherwise. + */ + void pluginInitialized(bool success); + + /** + * Emit this signal to indicate that the plugin plugin can be deleted. + * Note that this signal does not need to be emitted if true is returned + * from shutdownPlugin. + * @param caller The calling plugin plugin instance. + */ + void shutdownCompleted(bool success); + + /** + * Called by search handlers when back button is clicked in the plugin view. + * In this method the plugin plugin can implement internally showing and + * hiding GUI elements if the plugin has multiple 'views'. + */ + void handleBackEvent(); + }; + +#endif // ONLINESEARCHPLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/inc/t_bingplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/inc/t_bingplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Declaration of the search google plugin. + * + */ + +#ifndef T_BINGLUGIN_H +#define T_BINGLUGIN_H + +#include + +#include +#include + +class bingplugin : public OnlineSearchPlugin + { +Q_OBJECT + +public: + + // Default Constructor + bingplugin(); + // Destructor + ~bingplugin(); + +protected: + + // Overrides from OnlineSearchPlugin + void initializePlugin(); + void activatePlugin(); + void activatePlugin(const QString &searchQuery); + void deactivatePlugin(); + void shutdownPlugin(); + +private slots: + void BackEvent(); +private: + }; + +#endif // T_BINGLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/inc/t_bingpluginfactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/inc/t_bingpluginfactory.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Declaration of the search google online factory. + * + */ + +#ifndef BINGPLUGINFACTORY_H +#define BINGPLUGINFACTORY_H + +#include + +#include + +class OnlineSearchPlugin; + + +class bingpluginFactory : public QObject, public OnlineSearchPluginFactory +{ + Q_OBJECT + Q_INTERFACES(OnlineSearchPluginFactory) + +public: + + // Wizard factory + OnlineSearchPlugin* createPlugin() const; +}; + +#endif // BINGPLUGINFACTORY_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/resource/t_bingplugin.manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/resource/t_bingplugin.manifest Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,5 @@ + + + + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/src/t_bingplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/src/t_bingplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: bingplugin. + * + */ + +#include "t_bingplugin.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// --------------------------------------------------------------------------- +// bingplugin::bingplugin() +// --------------------------------------------------------------------------- +// +bingplugin::bingplugin() + { + // Set up plugin settings + } + +// --------------------------------------------------------------------------- +// bingplugin::~bingplugin() +// --------------------------------------------------------------------------- +// +bingplugin::~bingplugin() + { + } + +// --------------------------------------------------------------------------- +// bingplugin::initialize() +// --------------------------------------------------------------------------- +// +void bingplugin::initializePlugin() + { + emit pluginInitialized(true); + } + +// --------------------------------------------------------------------------- +// bingplugin::activate() +// --------------------------------------------------------------------------- +// +void bingplugin::activatePlugin() + { + } + +// --------------------------------------------------------------------------- +// bingplugin::activate(const QString &) +// --------------------------------------------------------------------------- +// +void bingplugin::activatePlugin(const QString &searchQuery) + { +#ifdef __WINSCW__ + HbDialog* popup = new HbDialog(); + popup->setDismissPolicy(HbDialog::NoDismiss); + popup->setTimeout(HbDialog::NoTimeout); + QString str; + str.append("bing Search "); + str.append(searchQuery); + HbLabel *label = new HbLabel(str); + popup->setHeadingWidget(label); + HbAction * action = new HbAction(hbTrId("Back"), popup); + connect(action, SIGNAL(triggered()), this, SLOT(BackEvent())); + popup->setPrimaryAction(action); + popup->show(); +#else + QString url("http://www.bing.com/search?q="); + url.append(searchQuery); + url.append("&form=QBLH&qs=n&sk="); + QDesktopServices::openUrl(url); +#endif + } +void bingplugin::BackEvent() + { + emit handleBackEvent(); + } +// --------------------------------------------------------------------------- +// bingplugin::deactivate() +// --------------------------------------------------------------------------- +// +void bingplugin::deactivatePlugin() + { + // Destroy everything but the initial view and data that takes a long time + // to reacquire when the plugin is deactivated + } + +// --------------------------------------------------------------------------- +// bingplugin::shutdown() +// --------------------------------------------------------------------------- +// +void bingplugin::shutdownPlugin() + { + // Destroy all views + emit shutdownCompleted(true); + } + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/src/t_bingpluginfactory.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/src/t_bingpluginfactory.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description:Implementation of the search google online factory. + * + */ + +#include // For Q_EXPORT_PLUGIN2 + +#include "t_bingpluginfactory.h" +#include "t_bingplugin.h" + + +OnlineSearchPlugin* bingpluginFactory::createPlugin() const +{ + return new bingplugin(); +} + +Q_EXPORT_PLUGIN2(Bing,bingpluginFactory) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,24 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: search how-to verification online +# + +HEADERS += ./inc/*.h + + +SOURCES += ./src/*.cpp + +// HEADERS += onlinesearchplugin.h how to solve meta object problem? + +RESOURCES += diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,63 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: search test online project file +# + +TEMPLATE = lib +CONFIG += plugin hb +TARGET = Bing + +plugin.sources = Bing.dll +plugin.path = \resource\qt\plugins\onlinesearch + +DEPLOYMENT += plugin + +CONFIG(debug, debug|release) { + DESTDIR = debug +} else { + DESTDIR = release +} + +win32 { + + LIBS += -L$$PWD/../../../../bin/debug +} + + + +CONFIG += plugin debug_and_release + +QT += xml sql webkit network + + + +coverage:DEFINES += COVERAGE_MEASUREMENT + +DEPENDPATH += ./inc \ + ./src + +INCLUDEPATH += ./inc/ \ + +symbian: { + TARGET.UID3 = 0x2002A532 + TARGET.EPOCALLOWDLLDATA=1 + TARGET.CAPABILITY = ALL -TCB -DRM + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE +CONFIG += symbian_test +} + +include(t_bingplugin.pri) +symbian:include(t_bingplugin_installs_symbian.pri) +win32:include(t_bingplugin_installs_win32.pri) +symbian:unix:include(t_bingplugin_installs_unix.pri) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_symbian.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_symbian.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,23 @@ + +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +export.sources = resource/*.manifest +export.path = /searchresources/plugins/onlineproviders + +pluginstub.sources = Bing.dll +pluginstub.path = /resource/qt/plugins/search + +DEPLOYMENT += export pluginstub diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_unix.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_unix.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,35 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# +# +# Release +# + +r01.path = ../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.so* \ + ./resource/*.manifest + +INSTALLS += r01 + +# +# Debug +# + +d01.path = ../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.so* \ + ./resource/*.manifest + +INSTALLS += d01 diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_win32.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_bingplugin/t_bingplugin_installs_win32.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,37 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# +# Release +# +r01.path = $$PWD/../../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.dll + +r02.path = $$PWD/../../../../bin/release/searchresources/plugins/onlineproviders +r02.files = ./resource/*.manifest + +INSTALLS += r01 r02 + +# +# Debug +# + +d01.path = $$PWD/../../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.dll + +d02.path = $$PWD/../../../../bin/debug/searchresources/plugins/onlineproviders +d02.files = ./resource/*.manifest + +INSTALLS += d01 d02 \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/inc/onlinesearchplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/inc/onlinesearchplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: OnlineSearchPlugin class definition + * + */ + +#ifndef ONLINESEARCHPLUGIN_H +#define ONLINESEARCHPLUGIN_H + +#include + +/** + * @ingroup group_onlinesearchpluginmodel + * @brief Represents a plugin plugin in the framework. + * + * OnlineSearchPlugin is an interface through which setting plugin plugin can be + * executed in the search handlers. + * + * @lib ?library + * @since S60 ?S60_version + */ + +class OnlineSearchPlugin : public QObject + { +Q_OBJECT +public: + + /** + * Destructor. + * @since S60 ?S60_version. + */ + virtual ~OnlineSearchPlugin() + { + } + + /** + * Called by the search handlers during initialize cycle of the plugin, it is during + * this phase the plugin widget + * usually creates its initial view. + * Once the initialization is done, pluginInitialized signal must be + * emitted. + * @since S60 ?S60_version. + */ + virtual void initializePlugin() = 0; + + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin() = 0; + /** + * Called by the search handlers when the plugin becomes the current plugin. + * @since S60 ?S60_version. + */ + virtual void activatePlugin(const QString &searchQuery) = 0; + + /** + * Called by the search handlers when the plugin is no longer being displayed. + */ + virtual void deactivatePlugin() = 0; + + /** + * Called by the search handlers before the plugin destructor is called. + * @param reason The reason why the search handlers is being killed. + */ + virtual void shutdownPlugin() = 0; + +protected: + + /** + * Constructor. + * @since S60 ?S60_version. + */ + OnlineSearchPlugin() + { + } + +signals: + + /** + * Emit this signal when changing the view inside the plugin. + * @param caller The calling plugin plugin instance. + * @param viewWidget The new plugin view widget to be shown. + */ + void viewChanged(); + + /** + * Emit this signal to indicate initialization is done. + * @param caller The calling plugin plugin instance. + * @param success True if succeeded, false otherwise. + */ + void pluginInitialized(bool success); + + /** + * Emit this signal to indicate that the plugin plugin can be deleted. + * Note that this signal does not need to be emitted if true is returned + * from shutdownPlugin. + * @param caller The calling plugin plugin instance. + */ + void shutdownCompleted(bool success); + + /** + * Called by search handlers when back button is clicked in the plugin view. + * In this method the plugin plugin can implement internally showing and + * hiding GUI elements if the plugin has multiple 'views'. + */ + void handleBackEvent(); + }; + +#endif // ONLINESEARCHPLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/inc/t_googleplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/inc/t_googleplugin.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Declaration of the search google plugin + * + */ + +#ifndef T_GOOGLEPLUGIN_H +#define T_GOOGLEPLUGIN_H + +#include + +#include +#include + + +class googleplugin : public OnlineSearchPlugin +{ + Q_OBJECT + +public: + + // Default Constructor + googleplugin(); + // Destructor + ~googleplugin(); + +protected: + + // Overrides from OnlineSearchPlugin + void initializePlugin(); + void activatePlugin(); + void activatePlugin(const QString &searchQuery); + void deactivatePlugin(); + void shutdownPlugin(); +private slots: + void BackEvent(); + + +private: +}; + +#endif // T_GOOGLEPLUGIN_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/inc/t_googlepluginfactory.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/inc/t_googlepluginfactory.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Declaration of the search google online factory. + * + */ + +#ifndef GOOGLEPLUGINFACTORY_H +#define GOOGLEPLUGINFACTORY_H + +#include + +#include + +class OnlineSearchPlugin; + + +class googlepluginFactory : public QObject, public OnlineSearchPluginFactory +{ + Q_OBJECT + Q_INTERFACES(OnlineSearchPluginFactory) + +public: + + // Wizard factory + OnlineSearchPlugin* createPlugin() const; +}; + +#endif // GOOGLEPLUGINFACTORY_H diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/resource/t_googleplugin.manifest --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/resource/t_googleplugin.manifest Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,5 @@ + + + + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/src/t_googleplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/src/t_googleplugin.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: googleplugin. + * + */ + +#include "t_googleplugin.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +// --------------------------------------------------------------------------- +// googleplugin::googleplugin() +// --------------------------------------------------------------------------- +// +googleplugin::googleplugin() + { + qDebug() << "googleplugin"; + // Set up plugin settings + } + +// --------------------------------------------------------------------------- +// googleplugin::~googleplugin() +// --------------------------------------------------------------------------- +// +googleplugin::~googleplugin() + { + } + +// --------------------------------------------------------------------------- +// googleplugin::initialize() +// --------------------------------------------------------------------------- +// +void googleplugin::initializePlugin() + { + emit pluginInitialized(true); + } + +// --------------------------------------------------------------------------- +// googleplugin::activate() +// --------------------------------------------------------------------------- +// +void googleplugin::activatePlugin() + { + } + +// --------------------------------------------------------------------------- +// googleplugin::activate(const QString &) +// --------------------------------------------------------------------------- +// +void googleplugin::activatePlugin(const QString &searchQuery) + { + qDebug() << "search:activatePlugin" ; +#ifdef __WINSCW__ + qDebug() << "search:activatePlugin winscw" ; + HbDialog* popup = new HbDialog(); + popup->setDismissPolicy(HbDialog::NoDismiss); + popup->setTimeout(HbDialog::NoTimeout); + QString str; + str.append(QString("google Search ")); + str.append(searchQuery); + HbLabel *label = new HbLabel(str); + popup->setHeadingWidget(label); + HbAction * action = new HbAction(hbTrId("Back"), popup); + connect(action, SIGNAL(triggered()), this, SLOT(BackEvent())); + popup->setPrimaryAction(action); + popup->show(); +#else + qDebug() << "search:activatePlugin armvs" ; + QString url("http://www.google.co.in/search?hl=en&source=hp&q="); + url.append(searchQuery); + url.append("&meta=&aq=f&aqi=g10&aql=&oq=&gs_rfai="); + QDesktopServices::openUrl(url); +#endif + + } +void googleplugin::BackEvent() + { + emit handleBackEvent(); + } +// --------------------------------------------------------------------------- +// googleplugin::deactivate() +// --------------------------------------------------------------------------- +// +void googleplugin::deactivatePlugin() + { + // Destroy everything but the initial view and data that takes a long time + // to reacquire when the plugin is deactivated + } + +// --------------------------------------------------------------------------- +// googleplugin::shutdown() +// --------------------------------------------------------------------------- +// +void googleplugin::shutdownPlugin() + { + // Destroy all views + emit shutdownCompleted(true); + //return true; + } + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/src/t_googlepluginfactory.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/src/t_googlepluginfactory.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Implementation of the search google online factory. + * + */ + +#include // For Q_EXPORT_PLUGIN2 + +#include "t_googlepluginfactory.h" +#include "t_googleplugin.h" + + +OnlineSearchPlugin* googlepluginFactory::createPlugin() const +{ + qDebug() << "googlepluginFactory"; + return new googleplugin(); +} + +Q_EXPORT_PLUGIN2(Google,googlepluginFactory) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,25 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: search how-to verification online +# + + +HEADERS += ./inc/*.h + + +SOURCES += ./src/*.cpp + +// HEADERS += onlinesearchplugin.h how to solve meta object problem? + +RESOURCES += diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,64 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: search test online project file +# + + +TEMPLATE = lib +CONFIG += plugin hb +TARGET = Google + +plugin.sources = Google.dll +plugin.path = \resource\qt\plugins\onlinesearch + +DEPLOYMENT += plugin + +CONFIG(debug, debug|release) { + DESTDIR = debug +} else { + DESTDIR = release +} + +win32 { + + LIBS += -L$$PWD/../../../../bin/debug +} + + + +CONFIG += plugin debug_and_release + +QT += xml sql webkit network + + + +coverage:DEFINES += COVERAGE_MEASUREMENT + +DEPENDPATH += ./inc \ + ./src + +INCLUDEPATH += ./inc/ \ + +symbian: { + TARGET.UID3 = 0x2002A532 + TARGET.EPOCALLOWDLLDATA=1 + TARGET.CAPABILITY = ALL -TCB -DRM + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE +CONFIG += symbian_test +} + +include(t_googleplugin.pri) +symbian:include(t_googleplugin_installs_symbian.pri) +win32:include(t_googleplugin_installs_win32.pri) +symbian:unix:include(t_googleplugin_installs_unix.pri) diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_symbian.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_symbian.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,22 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +export.sources = resource/*.manifest +export.path = /searchresources/plugins/onlineproviders + +pluginstub.sources = Google.dll +pluginstub.path = /resource/qt/plugins/search + +DEPLOYMENT += export pluginstub diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_unix.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_unix.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,35 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# +# +# Release +# + +r01.path = ../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.so* \ + ./resource/*.manifest + +INSTALLS += r01 + +# +# Debug +# + +d01.path = ../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.so* \ + ./resource/*.manifest + +INSTALLS += d01 diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_win32.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_googleplugin/t_googleplugin_installs_win32.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,41 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +# +# Release +# + +# +# Release +# +r01.path = $$PWD/../../../../bin/release/resource/qt/plugins/search +r01.files = ./release/*.dll + +r02.path = $$PWD/../../../../bin/release/searchresources/plugins/onlineproviders +r02.files = ./resource/*.manifest + +INSTALLS += r01 r02 + +# +# Debug +# + +d01.path = $$PWD/../../../../bin/debug/resource/qt/plugins/search +d01.files = ./debug/*.dll + +d02.path = $$PWD/../../../../bin/debug/searchresources/plugins/onlineproviders +d02.files = ./resource/*.manifest + +INSTALLS += d01 d02 \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_onlinehandler/inc/t_onlinehandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_onlinehandler/inc/t_onlinehandler.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Tests for Onlinehandler class. + * + */ + +#include +#include "onlinehandler.h" + +/** + * @test Test class for Onlinehandler modules. + */ +class SearchOnlineHandlerTest : public QObject + { +Q_OBJECT + +public: + SearchOnlineHandlerTest(); + ~SearchOnlineHandlerTest(); + +private slots: + void init(); + void initTestCase(); + void cleanupTestCase(); + void testsetDefaultProvider(); + void testinitializePlugin(); + void testactivatePlugin(); + void testactivatePlugin1(); + void testwriteSettings(); + void testloadISPlugin(); + void testunloadPlugin(); + void testunloadPluginandExit(); + void testbackEvent(); + + //IsEngine + /* + void testSelectedProvider(); + void testSetSelectedProvider(); + void testProviders();*///covered in above funtions + void testPerformWebSearch(); + void testPerformInDeviceSearch(); + + //IsProviderdbManager & serviceprovider + /* + void testGetProviders(); + void testGetCountryList(); + void testSelectedProvider(); + void testSetSelectedProvider();//covered in above funtions + */ + }; + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_onlinehandler/src/t_onlinehandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_onlinehandler/src/t_onlinehandler.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: test searchonlinehandler. + * + */ +#include "t_onlinehandler.h" +#include "onlinehandler.h" +#include +#include "serviceprovider.h" +#include "isengine.h" +#include "isproviderdbmanager.h" + +SearchOnlineHandlerTest::SearchOnlineHandlerTest() + { + } +SearchOnlineHandlerTest::~SearchOnlineHandlerTest() + { + } +void SearchOnlineHandlerTest::init() + { + } +void SearchOnlineHandlerTest::initTestCase() + { + } +void SearchOnlineHandlerTest::cleanupTestCase() + { + } +void SearchOnlineHandlerTest::testsetDefaultProvider() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + if (onlinetestobj->mAvailableProviders.count()) + { + onlinetestobj->mAvailableProviders.at(0); + int i = onlinetestobj->mAvailableProviders.at(0).Id(); + onlinetestobj->setDefaultProvider(i); + onlinetestobj->mEng->SelectedProvider(); + QCOMPARE(i,onlinetestobj->mEng->SelectedProvider()->Id()); + } + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testinitializePlugin() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + QSignalSpy spy(onlinetestobj, SIGNAL(pluginIntialized(bool))); + onlinetestobj->initializePlugin(); + QCOMPARE(spy.count(), 1); + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testactivatePlugin() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + onlinetestobj->initializePlugin(); + onlinetestobj->activatePlugin(); + /* delete onlinetestobj->mOnlinePlugin; + onlinetestobj->mOnlinePlugin = NULL; + onlinetestobj->activatePlugin();*/ + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testactivatePlugin1() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + onlinetestobj->initializePlugin(); + onlinetestobj->activatePlugin("ab"); + /*delete onlinetestobj->mOnlinePlugin; + onlinetestobj->mOnlinePlugin = NULL; + onlinetestobj->activatePlugin("ab"); +*/ delete onlinetestobj; + } +void SearchOnlineHandlerTest::testwriteSettings() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + if (onlinetestobj->mAvailableProviders.count()) + { + onlinetestobj->writeSettings( + onlinetestobj->mAvailableProviders.at(0).Id()); + } + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testloadISPlugin() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + if (onlinetestobj->mAvailableProviders.count()) + { + QSignalSpy spy(onlinetestobj, SIGNAL(pluginIntialized(bool))); + onlinetestobj->loadISPlugin( + onlinetestobj->mAvailableProviders.at(0).Id(), "ab"); + QCOMPARE(spy.count(), 0); + } + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testunloadPlugin() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + onlinetestobj->initializePlugin(); + onlinetestobj->unloadPlugin(); + delete onlinetestobj; + } +void SearchOnlineHandlerTest::testunloadPluginandExit() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + onlinetestobj->initializePlugin(); + QSignalSpy spy(onlinetestobj, SIGNAL(pluginShutdown(bool))); + onlinetestobj->unloadPluginandExit(); + QCOMPARE(spy.count(), 1); + delete onlinetestobj; + } + +void SearchOnlineHandlerTest::testbackEvent() + { + OnlineHandler* onlinetestobj = new OnlineHandler(); + QSignalSpy spy(onlinetestobj, SIGNAL(backEventTriggered())); + onlinetestobj->backEvent(); + QCOMPARE(spy.count(), 1); + delete onlinetestobj; + } + +void SearchOnlineHandlerTest::testPerformWebSearch() + { + /* OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + if (onlinetestobj->mEng) + { + onlinetestobj->mEng->PerformWebSearch("string"); + } + delete onlinetestobj;*/ + } +void SearchOnlineHandlerTest::testPerformInDeviceSearch() + { + /*OnlineHandler* onlinetestobj = new OnlineHandler(); + onlinetestobj->readSettings(); + if (onlinetestobj->mEng) + { + onlinetestobj->mEng->PerformInDeviceSearch("string"); + } + delete onlinetestobj;*/ + } + +#ifdef Q_OS_SYMBIAN + +//QTEST_MAIN corrected since crashes if TRAP not in correct place. +//Will be corrected in later (estimate 4.6.0) Qt release for Symbian. +int main(int argc, char *argv[]) + { + QApplication app(argc, argv); + int error = 0; + TRAPD(err, + QTEST_DISABLE_KEYPAD_NAVIGATION + SearchOnlineHandlerTest tc; + error = QTest::qExec(&tc, argc, argv);); + Q_UNUSED(err); + return error; + } +#else //Q_OS_SYMBIAN +QTEST_MAIN(SearchOnlineHandlerTest) +#endif //Q_OS_SYMBIAN diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_onlinehandler/t_onlinehandler.pri --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_onlinehandler/t_onlinehandler.pri Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,20 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# +#Header files +HEADERS += ./inc/*.h + +#Source files +SOURCES += ./src/*.cpp \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/t_onlinehandler/t_onlinehandler.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/t_onlinehandler/t_onlinehandler.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,47 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: Search onlinehandler unit test project file +# + +TEMPLATE = app + + +LIBS += -lsearchonlinehandler +LIBS += -lisengine +LIBS += -lisproviderdbmanager + +INCLUDEPATH += . +INCLUDEPATH += ../../inc \ + ../../../inc + + +CONFIG += qtestlib +CONFIG += hb + +QT += xml \ + sql +DEFINES += SEARCH_UNITTESTING + +symbian { +CONFIG += symbian_test +TARGET.UID2 = 0x100039CE +TARGET.CAPABILITY = ALL -TCB -DRM +TARGET.EPOCSTACKSIZE = 0x14000 // 80kB +TARGET.EPOCHEAPSIZE = 0x20000 0x800000 // 128kB - 16MB +INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE +INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE +} + +include(t_onlinehandler.pri) + diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/testdb/providerdatabase.sq Binary file searchui/onlinehandler/tsrc/testdb/providerdatabase.sq has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/onlinehandler/tsrc/tsrc.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/onlinehandler/tsrc/tsrc.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,30 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TEMPLATE = subdirs + +SUBDIRS += t_onlinehandler \ +t_baiduplugin \ +t_bingplugin \ +t_googleplugin + +CONFIG += ordered + +symbian: { + CONFIG += symbian_test +BLD_INF_RULES.prj_exports += "testdb/providerdatabase.sq /epoc32/winscw/c/private/20022F35/providerdatabase.sq" \ + "testdb/providerdatabase.sq /epoc32/data/z/private/20022F35/providerdatabase.sq" +} diff -r e023f3f775db -r 4a4ca69db308 searchui/rom/search.iby --- a/searchui/rom/search.iby Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/rom/search.iby Thu Jul 22 16:34:05 2010 +0100 @@ -27,11 +27,14 @@ // Application registration file. data=DATAZ_/private/10003a3f/import/apps/Searchapplication_reg.rsc /private/10003a3f/import/apps/Searchapplication_reg.rsc -data=DATAZ_/resource/apps/Searchapplication.mif /resource/apps/Searchapplication.mif + //SearchIndevice handler file=/epoc32/release/armv5/urel/searchindevicehandler.dll SHARED_LIB_DIR/searchindevicehandler.dll +//Searchonline handler +file=/epoc32/release/armv5/urel/searchonlinehandler.dll SHARED_LIB_DIR/searchonlinehandler.dll + //runtime provider dll diff -r e023f3f775db -r 4a4ca69db308 searchui/runtimeproviders/searchruntimeprovider/searchruntimeprovider.pro --- a/searchui/runtimeproviders/searchruntimeprovider/searchruntimeprovider.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/runtimeproviders/searchruntimeprovider/searchruntimeprovider.pro Thu Jul 22 16:34:05 2010 +0100 @@ -63,6 +63,16 @@ TARGET.CAPABILITY = ALL -TCB -DRM appkey:DEFINES += S60APP_KEY INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + + defBlock = \ + "$${LITERAL_HASH}if defined(EABI)" \ + "DEFFILE ../eabi/" \ + "$${LITERAL_HASH}else" \ + "DEFFILE ../bwins/" \ + "$${LITERAL_HASH}endif" + + MMP_RULES += defBlock #include(searchruntimeprovider_installs_symbian.pri) # BLD_INF_RULES.prj_exports += "./inc/searchruntimeprovider.h |../../inc/" \ # "./inc/searchruntime.h |../../inc/" diff -r e023f3f775db -r 4a4ca69db308 searchui/runtimeproviders/searchruntimeprovider/src/searchruntime.cpp --- a/searchui/runtimeproviders/searchruntimeprovider/src/searchruntime.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/runtimeproviders/searchruntimeprovider/src/searchruntime.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -23,23 +23,24 @@ #include #include #include - +#include #include - +#define hbApp qobject_cast(qApp) // states const char wizardProgressiveStateUri[] = "search.nokia.com/state/wizardprogressivestate"; const char wizardSettingStateUri[] = "search.nokia.com/state/wizardsettingstate"; - +const char wizardOnlineStateUri[] = + "search.nokia.com/state/wizardonlinestate"; // --------------------------------------------------------------------------- // searchRuntime::SearchRuntime // --------------------------------------------------------------------------- // SearchRuntime::SearchRuntime(QObject* aParent) : -QStateMachine(aParent),mWindow(0) + QStateMachine(aParent), mWindow(0) { createGuiServiceParts(); createStates(); @@ -52,7 +53,7 @@ SearchRuntime::~SearchRuntime() { delete mWindow; - // delete mStateMachine; + // delete mStateMachine; } // --------------------------------------------------------------------------- @@ -61,7 +62,7 @@ // void SearchRuntime::handleStateMachineStarted() { - // emit started(); + // emit started(); } // --------------------------------------------------------------------------- @@ -91,7 +92,7 @@ { SearchStateProvider stateProvider; - + QFinalState* finalState = new QFinalState(); this->addState(finalState); @@ -105,43 +106,88 @@ QState* searchRootState = new QState(guiRootState); - - QState* wizardProgressiveState = stateProvider.createState(wizardProgressiveStateUri); + QState* wizardProgressiveState = stateProvider.createState( + wizardProgressiveStateUri); // set state specific data wizardProgressiveState->setParent(searchRootState); wizardProgressiveState->setObjectName(wizardProgressiveStateUri); - - QState* wizardSettingState = stateProvider.createState(wizardSettingStateUri); + QState* wizardSettingState = stateProvider.createState( + wizardSettingStateUri); wizardSettingState->setParent(searchRootState); wizardSettingState->setObjectName(wizardSettingStateUri); + QState* wizardOnlineState = stateProvider.createState( + wizardOnlineStateUri); + wizardOnlineState->setParent(searchRootState); + wizardOnlineState->setObjectName(wizardOnlineStateUri); + + // progressive to settings wizardProgressiveState->addTransition(wizardProgressiveState, - SIGNAL(settingsState()), wizardSettingState); + SIGNAL(switchProToSettingsState()), wizardSettingState); - // From activated back to menu + // settings to progressive wizardSettingState->addTransition(wizardSettingState, - SIGNAL(backEventTriggered()), wizardProgressiveState); - + SIGNAL(switchToProState()), wizardProgressiveState); + + // online to settings + wizardOnlineState->addTransition(wizardOnlineState, + SIGNAL(switchOnlineToSettingsState()), wizardSettingState); + + // settings to online + wizardSettingState->addTransition(wizardSettingState, + SIGNAL(switchToOnlineState()), wizardOnlineState); + connect(wizardSettingState, SIGNAL(clickstatus(bool)), - wizardProgressiveState, SLOT(settingsaction(bool))); + wizardProgressiveState, SLOT(settingsaction(bool))); connect(wizardSettingState, SIGNAL(publishSelectedCategory(int,bool)), wizardProgressiveState, SLOT(getSettingCategory(int,bool))); + + connect(wizardSettingState, SIGNAL(publishISProviderIcon(int,HbIcon)), + wizardProgressiveState, SLOT(slotISProvidersIcon(int,HbIcon))); - connect(wizardSettingState, SIGNAL(customizeGoButton(bool)), - wizardProgressiveState, SLOT(_customizeGoButton(bool))); + connect(wizardProgressiveState, SIGNAL(inDeviceSearchQuery(QString)), + wizardOnlineState, SLOT(slotIndeviceQuery(QString))); + + connect(wizardProgressiveState, SIGNAL(launchLink(int,QString)), + wizardOnlineState, SLOT(slotlaunchLink(int,QString))); + + connect(wizardOnlineState, SIGNAL(onlineSearchQuery(QString)), + wizardProgressiveState, SLOT(slotOnlineQuery(QString))); // set initial state for statemachine - searchRootState->setInitialState(wizardProgressiveState); + if (hbApp->activateReason() == Hb::ActivationReasonActivity) + { + + QVariantHash params = hbApp->activateParams(); + QString var = params.value("activityname").toString(); + + if (var == "SearchView") + { + searchRootState->setInitialState(wizardProgressiveState); + } + else if (var == "SearchDeviceQueryView") + { + searchRootState->setInitialState(wizardProgressiveState); + + } + else if (var == "SearchWebQueryView") + { + searchRootState->setInitialState(wizardOnlineState); + } + } + else if (hbApp->activateReason() == Hb::ActivationReasonNormal) + { + + searchRootState->setInitialState(wizardProgressiveState); + + } guiRootState->setInitialState(searchRootState); this->setInitialState(parallel); - connect(this, SIGNAL(started()), - SLOT(handleStateMachineStarted())); - connect(this, SIGNAL(stopped()), - SLOT(handleStateMachineStopped())); - connect(this, SIGNAL(finished()), - SLOT(handleStateMachineStopped())); + connect(this, SIGNAL(started()), SLOT(handleStateMachineStarted())); + connect(this, SIGNAL(stopped()), SLOT(handleStateMachineStopped())); + connect(this, SIGNAL(finished()), SLOT(handleStateMachineStopped())); } diff -r e023f3f775db -r 4a4ca69db308 searchui/searchapplication/inc/searchapplication.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/searchapplication/inc/searchapplication.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: search application main class. + * + */ + +#ifndef SEARCHAPPLICATION_H +#define SEARCHAPPLICATION_H + +#include "search_global.h" + +#include + +class QStateMachine; + +/** + * @ingroup group_searchsearchlication + * @brief Search application main class. + * + * Loads a runtime from a runtime provider plugin. Manages + * the runtime execution. + * + * @lib ?library + * @since S60 ?S60_version + */ +class SearchApplication : public QObject + { +Q_OBJECT + +public: + + /** + * Constructor. + * @since S60 ?S60_version. + * @param aParent Parent object. + */ + SearchApplication(QObject* aParent = 0); + + /** + * Destructor. + * @since S60 ?S60_version. + */ + virtual ~SearchApplication(); + +private: + + Q_DISABLE_COPY(SearchApplication) + +signals: + + /** + * Emitted when the search application needs to exit. + * @since S60 ?S60_version. + */ + void exit(); + +public slots: + + /** + * Starts the runtime. + * @since S60 ?S60_version. + */ + void start(); + + /** + * Stops the runtime. + * @since S60 ?S60_version. + */ + void stop(); + +private slots: + + /** + * Called after the runtime has started. + * @since S60 ?S60_version. + */ + void handleRuntimeStarted(); + + /** + * Called after the runtime has stopped. + * @since S60 ?S60_version. + */ + void handleRuntimeStopped(); + + /** + * Called after the runtime has faulted. + * @since S60 ?S60_version. + */ + void handleRuntimeFaulted(); + +private: + + /** + * Runtime. + */ + QStateMachine* mRuntime; + }; + +#endif//SEARCHAPPLICATION_H diff -r e023f3f775db -r 4a4ca69db308 searchui/searchapplication/src/searchapplication.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/searchapplication/src/searchapplication.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Search application main class. + * + */ + +#include "searchapplication.h" +#include +#include +#include + +// --------------------------------------------------------------------------- +// SearchApplication::SearchApplication +// --------------------------------------------------------------------------- +// +SearchApplication::SearchApplication(QObject* aParent) : + QObject(aParent), mRuntime(NULL) + { + SEARCH_FUNC_ENTRY("SEARCH::SearchApplication::SearchApplication"); + + SearchRuntimeProvider *interface = new SearchRuntimeProvider(); + mRuntime = interface->createPlugin(); + if (mRuntime) + { + mRuntime->setParent(this); + connect(mRuntime, SIGNAL(started()),this, SLOT(handleRuntimeStarted())); + connect(mRuntime, SIGNAL(stopped()),this, SLOT(handleRuntimeStopped())); + connect(mRuntime, SIGNAL(faulted()),this, SLOT(handleRuntimeFaulted())); + } + SEARCH_FUNC_EXIT("SEARCH::SearchApplication::SearchApplication"); + } + +// --------------------------------------------------------------------------- +// SearchApplication::~SearchApplication() +// --------------------------------------------------------------------------- +// +SearchApplication::~SearchApplication() + { + if (mRuntime) + { + disconnect(mRuntime, SIGNAL(started()), this, + SLOT(handleRuntimeStarted())); + disconnect(mRuntime, SIGNAL(stopped()), this, + SLOT(handleRuntimeStopped())); + disconnect(mRuntime, SIGNAL(faulted()), this, + SLOT(handleRuntimeFaulted())); + + delete mRuntime; + } + } + +// --------------------------------------------------------------------------- +// SearchApplication::start() +// --------------------------------------------------------------------------- +// +void SearchApplication::start() + { + SEARCH_FUNC_ENTRY("SEARCH::Search::start"); + + if (mRuntime) + { + mRuntime->start(); + } + else + { + emit exit(); + } + + SEARCH_FUNC_EXIT("SEARCH::Search::start"); + } + +// --------------------------------------------------------------------------- +// SearchApplication::stop() +// --------------------------------------------------------------------------- +// +void SearchApplication::stop() + { + SEARCH_FUNC_ENTRY("SEARCH::Search::stop"); + if (mRuntime) + { + mRuntime->stop(); + } + + SEARCH_FUNC_EXIT("SEARCH::Search::stop"); + } + +// --------------------------------------------------------------------------- +// SearchApplication::handleRuntimeStarted() +// --------------------------------------------------------------------------- +// +void SearchApplication::handleRuntimeStarted() + { + } + +// --------------------------------------------------------------------------- +// SearchApplication::handleRuntimeStopped() +// --------------------------------------------------------------------------- +// +void SearchApplication::handleRuntimeStopped() + { + emit exit(); + } + +// --------------------------------------------------------------------------- +// SearchApplication::handleRuntimeFaulted() +// --------------------------------------------------------------------------- +// +void SearchApplication::handleRuntimeFaulted() + { + emit exit(); + } diff -r e023f3f775db -r 4a4ca69db308 searchui/searchui.pro --- a/searchui/searchui.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/searchui.pro Thu Jul 22 16:34:05 2010 +0100 @@ -11,11 +11,12 @@ # # Contributors: # -# Description: SEARCH project file +# Description: SEARCHUI project file # TEMPLATE = subdirs -SUBDIRS += indevicehandler \ +SUBDIRS += onlinehandler \ + indevicehandler \ stateproviders \ runtimeproviders \ searchapplication diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/inc/searchonlinestate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/stateproviders/searchstateprovider/inc/searchonlinestate.h Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,194 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: + * + */ +#ifndef SEARCH_STATES_ONLINE_H +#define SEARCH_STATES_ONLINE_H +#include +#include "search_global.h" +#include +SEARCH_CLASS( SearchStateProviderTest) + +class HbDocumentLoader; +class HbView; +class HbSearchPanel; +class HbMainWindow; +class OnlineHandler; +/** @ingroup group_searchonlinestate + * @brief The state handles wizard activation and interaction. + * + * @see StateMachine + * + * @lib ?library + * @since S60 ?S60_version + */ +class SearchOnlineState : public QState + { +Q_OBJECT +public: + +public: + + /** + * Constructor. + * @since S60 ?S60_version. + * @param aParent Owner. + */ + SearchOnlineState(QState *aParent = 0); + + /** + * Destructor. + * @since S60 ?S60_version. + */ + virtual ~SearchOnlineState(); + +protected: + + /** + * @copydoc QState::onEntry() + */ + void onEntry(QEvent *event); + + /** + * @copydoc QState::onExit() + */ + void onExit(QEvent *event); + +private: + /** + * deactivates the signals . + * @since S60 ?S60_version. + */ + void deActivateSignals(); + + /** + * activates the signals . + * @since S60 ?S60_version. + */ + void activateSignals(); + + void createui(); +public slots: + + /** + * slot connects to search panel to initiate the online search + * @since S60 ?S60_version. + * @param aKeyword search keyword. + */ + void startOnlineSearch(const QString &aKeyword); + + /** + * slot connects to search panel to launch the settings delimiter + * @since S60 ?S60_version. + */ + void setSettings(); + + /** + * slot connects to search panel to cancel the outstanding search + * @since S60 ?S60_version. + */ + void cancelSearch(); + + /** + * slot connects to online handler to get notified when plugin is intialized + * @since S60 ?S60_version. + */ + void slotpluginIntialized(bool); + + /** + * slot connects to online handler to get notified when plugin is shutdown + * @since S60 ?S60_version. + */ + void slotpluginShutdown(bool); + + /** + * slot connects to online handler to get notified when view changed + * @since S60 ?S60_version. + */ + void slotbackEventTriggered(); + + /** + * slot connects to progressive search state to get notified criteria in search panel + * @since S60 ?S60_version. + * @param aKeyword search keyword. + */ + void slotIndeviceQuery(QString); + + /** + * slot connects to progressive search state to launch the suggestion links + * @since S60 ?S60_version. + * @param aKeyword search keyword. + * @param id search provider id. + */ + void slotlaunchLink(int, QString); + + /** + * slot connects to main window to get notify when view is ready + * @since S60 ?S60_version. + */ + void slotviewReady(); + +signals: + + /** + * Signalled when user selects an to switch the settings state + * setting state will be activated. + */ + void switchOnlineToSettingsState(); + + /** + * Signalled when user change the state to progressive state + * setting state will be activated. + */ + void onlineSearchQuery(QString); + +private: + HbMainWindow* mMainWindow; + /** + * main view. + * Own. + */ + HbView* mView; + + /** + * The searchpanel widget. + * Own. + */ + HbSearchPanel* mSearchPanel; + + /** + * HbDocumentLoader instance. + */ + HbDocumentLoader* mDocumentLoader; + + /** + * OnlineHandler instance. + */ + OnlineHandler* mInternetHandler; + + /** + * search keyword. + */ + QString mSearchQuery; + bool mSearchReady; + bool mIndeviceQueryAvailable; + bool mIsUICreated; + /** + * friend class for unit testing + */ + SEARCH_FRIEND_CLASS (SearchStateProviderTest) + }; + +#endif //SEARCH_STATES_ONLINE_H diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h --- a/searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/inc/searchprogressivestate.h Thu Jul 22 16:34:05 2010 +0100 @@ -18,7 +18,6 @@ #ifndef PROGRESSIVE_SEARCH_STATE_H #define PROGRESSIVE_SEARCH_STATE_H -#include #include #include #include @@ -30,11 +29,7 @@ #include "search_global.h" #include -//Uncomment to enable performance measurements. -//#define OST_TRACE_COMPILER_IN_USE - -#ifdef OST_TRACE_COMPILER_IN_USE - +#ifdef OST_TRACE_COMPILER_IN_USE //defined in Search_global.h #define PERF_CAT_API_TIME_RESTART m_categorySearchApiTime.restart(); #define PERF_CAT_UI_TIME_RESTART m_categorySearchUiTime.restart(); #define PERF_CAT_TOTAL_TIME_RESTART m_totalSearchUiTime.restart(); @@ -46,7 +41,9 @@ #define PERF_CAT_GETDOC_TIME_ACCUMULATE m_getDocumentCatergoryTimeAccumulator += m_categoryGetDocumentApiTime.elapsed(); #define PERF_CAT_GETDOC_ACCUMULATOR_RESET m_getDocumentCatergoryTimeAccumulator = 0; #define PERF_CAT_GETDOC_ACCUMULATOR_ENDLOG qDebug() << "Get Doc on category (API): " << mTemplist.at( mDatabasecount-1 ) << "took " << m_getDocumentCatergoryTimeAccumulator << "msec"; - +#define PERF_RESULT_ITEM_LAUNCH_TIME_RESTART m_resultItemLaunchTime.restart(); +#define PERF_RESULT_ITEM_FOR_LAUNCHING(string) qDebug() <<"Result_Item_Launching: Launching "< mIconArray; + + /** + * Hbicon to be created + * + */ HbIcon mIcon; + + /** + * to get drive info + * + */ RFs iFs; + /** + * Calendar plugin info + * + */ EventViewerPluginInterface *calAgandaViewerPluginInstance; - NotesEditor *notesEditor; + + /** + * to create Notes editor + * + */ + NotesEditorInterface *mNotesEditor; + + /** + * to create Notes plugin loader + * + */ + QPluginLoader *mNotespluginLoader; + + QMap mISprovidersIcon; + + bool mOnlineQueryAvailable; + private: + /** + * Application manager handler to perform resultitem opening. + * + */ XQApplicationManager* mAiwMgr; + + /** + * Request handler to to open resultItems + * + */ XQAiwRequest* mRequest; + + /** + * ListView icon Size. + * + */ QSize mListViewIconSize; #ifdef OST_TRACE_COMPILER_IN_USE QTime m_totalSearchUiTime; QTime m_categorySearchUiTime; QTime m_categorySearchApiTime; QTime m_categoryGetDocumentApiTime; + QTime m_resultItemLaunchTime; //use long to safeguard overflow from long running operations. - long m_getDocumentCatergoryTimeAccumulator; + long m_getDocumentCatergoryTimeAccumulator; #endif -SEARCH_FRIEND_CLASS (SearchStateProviderTest) + SEARCH_FRIEND_CLASS (SearchStateProviderTest) }; diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/inc/searchsettingsstate.h --- a/searchui/stateproviders/searchstateprovider/inc/searchsettingsstate.h Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/inc/searchsettingsstate.h Thu Jul 22 16:34:05 2010 +0100 @@ -14,14 +14,12 @@ * Description: * */ - #ifndef SEARCH_STATES_SETTINGS_H #define SEARCH_STATES_SETTINGS_H - #include #include #include "search_global.h" - +#include SEARCH_CLASS( SearchStateProviderTest) class QGraphicsWidget; @@ -85,7 +83,6 @@ private: - /** * checking whether internet search is selected * @since S60 ?S60_version. @@ -93,10 +90,10 @@ void isInternetOn(); public slots: - /** - * Called when it receive the selected category information from the settingwidget class - * @since S60 ?S60_version. - */ + /** + * Called when it receive the selected category information from the settingwidget class + * @since S60 ?S60_version. + */ void getItemCategory(int, bool); @@ -106,14 +103,19 @@ */ void handleBackEvent(bool); + void slotISProvidersIcon(HbIcon icon, int id); + signals: /** * Emitted when the menu state is to be activated. * @since S60 ?S60_version. */ - void backEventTriggered(); - + + void switchToProState(); + + void settingslaunched(); + /** * Emitted when ok/cancel clicked on settings page * @since S60 ?S60_version. @@ -130,7 +132,9 @@ * Emitted when internet search is selectead * @since S60 ?S60_version. */ - void customizeGoButton(bool); + void switchToOnlineState(); + + void publishISProviderIcon(int, HbIcon); private: @@ -154,7 +158,7 @@ /** * friend class for unit testing */ -SEARCH_FRIEND_CLASS (SearchStateProviderTest) + SEARCH_FRIEND_CLASS (SearchStateProviderTest) }; #endif //SEARCH_STATES_SETTINGS_H diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/inc/settingswidget.h --- a/searchui/stateproviders/searchstateprovider/inc/settingswidget.h Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/inc/settingswidget.h Thu Jul 22 16:34:05 2010 +0100 @@ -21,6 +21,8 @@ #include #include #include +#include +class OnlineHandler; class HbCheckBox; class HbDialog; class QSignalMapper; @@ -73,7 +75,7 @@ * */ void loadDeviceSettings(); - + /** * Load default settings for search categories to ini file * @@ -91,27 +93,30 @@ * */ void storeDefaultSettings(); - + /** * setting up gui for the settings widget */ void createGui(); - + /** * Filter out categories from the sql database provided by the engine * for only those categories that have been successfully harvested */ void preparecategories(); - - + /** - * initilize the settings wizard while entering to the setting state - */ + * initilize the settings wizard while entering to the setting state + */ void initialize(); - + + void setSettingsFilePath(); + + void loadIS(); + public slots: /** * will be called when settings OK is clicked @@ -126,10 +131,16 @@ */ void itemChecked(int); /** - * slot called while clicking items added to the combobox - */ + * slot called while clicking items added to the combobox + */ void q_currentIndexChanged(int); + + void slotproviderDetails(QString, HbIcon, int); + + void slotdefaultProvider(const int); + + void slotitemSelected(int); signals: /** * Emitted when setting closed @@ -146,6 +157,8 @@ * */ void selectedItemCategory(int, bool); + + void ISProvidersIcon(HbIcon,int); private: /** @@ -177,30 +190,30 @@ QStringList mDeviceListDisplay; /** - * list of hardcoded device categories:cretaed to - * set up default category values to the ini file - */ + * list of hardcoded device categories:cretaed to + * set up default category values to the ini file + */ QStringList mDeviceCategoryRefList; /** - * intermediate variable to store selected category values - */ + * intermediate variable to store selected category values + */ QList mDeviceMapping; /** * list of hardcoded service providers */ - QStringList internetCategoryList; + //QStringList internetCategoryList; /** * for unit testing */ QStringList mCategoryList; /** - * DocumentLoader variable for the setting widget - */ + * DocumentLoader variable for the setting widget + */ HbDocumentLoader* mDocumentLoader; - + /** * Dataform for the settingwidget */ @@ -208,12 +221,12 @@ HbDataForm* dataform; /** - * Dataform model - */ + * Dataform model + */ HbDataFormModel* mModel; /** - * variable for customizing each item the in the dataform - */ + * variable for customizing each item the in the dataform + */ QList mModelItemList; @@ -223,18 +236,24 @@ int mSelectedProvider; /** - * Radio buttion list for internet search categories - */ + * Radio buttion list for internet search categories + */ HbRadioButtonList* mradiolist; - + /** * combobox items - */ - HbComboBox *comboBox ; + */ + HbComboBox *comboBox; bool mInstialize; bool mchangestate; + + OnlineHandler *mInternetHandler; + // QStringList mServiceProviders; + QMap mServiceProviders; + + QString mSettingFileName; SEARCH_FRIEND_CLASS (SearchStateProviderTest) }; #endif diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/resources/searchstateprovider.docml --- a/searchui/stateproviders/searchstateprovider/resources/searchstateprovider.docml Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/resources/searchstateprovider.docml Thu Jul 22 16:34:05 2010 +0100 @@ -2,16 +2,10 @@ - - - - - - + + - - - + @@ -21,6 +15,5 @@ - diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/searchstateprovider.pro --- a/searchui/stateproviders/searchstateprovider/searchstateprovider.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/searchstateprovider.pro Thu Jul 22 16:34:05 2010 +0100 @@ -36,8 +36,6 @@ LIBS += -L$$PWD/../../../bin/debug } - -LIBS += -lstatemodel LIBS += -lsearchindevicehandler LIBS += -lxqservice LIBS += -lqcpixsearchclient @@ -46,8 +44,14 @@ LIBS += -laknicon LIBS += -lapgrfx LIBS += -lbitgdi -LIBS += -lnoteseditor - +#LIBS += -lnoteseditor +LIBS += -lxqutils +LIBS += -lsearchonlinehandler +LIBS += -lapparc +LIBS += -lefsrv +LIBS += -lapgrfx +LIBS += -lws32 +LIBS += -lavkon coverage:DEFINES += COVERAGE_MEASUREMENT @@ -63,8 +67,9 @@ INCLUDEPATH += ./inc \ ../../inc \ - ../../indevicehandler/inc - + ../../onlinehandler/inc \ + ../../indevicehandler/inc + symbian { @@ -73,6 +78,16 @@ TARGET.EPOCALLOWDLLDATA=1 TARGET.CAPABILITY = ALL -TCB -DRM INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE + INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE + + defBlock = \ + "$${LITERAL_HASH}if defined(EABI)" \ + "DEFFILE ../eabi/" \ + "$${LITERAL_HASH}else" \ + "DEFFILE ../bwins/" \ + "$${LITERAL_HASH}endif" + + MMP_RULES += defBlock #include(searchstateprovider_installs_symbian.pri) # BLD_INF_RULES.prj_exports += "./inc/searchstateprovider.h |../../inc/" diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/src/searchonlinestate.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/stateproviders/searchstateprovider/src/searchonlinestate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,274 @@ +/* + * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * Nokia Corporation - initial contribution. + * + * Contributors: + * + * Description: Implements the wizard activation and interactions. + * + */ + +#include "searchonlinestate.h" +#include "onlinehandler.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#define hbApp qobject_cast(qApp) +const char *SEARCHONLINESTATE_DOCML = ":/xml/searchstateprovider.docml"; +const char *ONLINE_TOC_VIEW = "tocView"; +const char *ONLINE_TUT_SEARCHPANEL_WIDGET = "searchPanel"; + +// --------------------------------------------------------------------------- +// SearchOnlineState::SearchOnlineState +// --------------------------------------------------------------------------- +// +SearchOnlineState::SearchOnlineState(QState *parent) : + QState(parent), mMainWindow(NULL), mView(NULL), mSearchPanel(NULL), + mDocumentLoader(NULL) + { + + mInternetHandler = new OnlineHandler(); + mSearchReady = true; + mIndeviceQueryAvailable = false; + mIsUICreated = false; + //activateSignals(); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::~SearchOnlineState +// --------------------------------------------------------------------------- +// +SearchOnlineState::~SearchOnlineState() + { + delete mDocumentLoader; + delete mInternetHandler; + } +void SearchOnlineState::createui() + { + mMainWindow = hbInstance->allMainWindows().at(0); + mDocumentLoader = new HbDocumentLoader(); + bool ok = false; + mDocumentLoader->load(SEARCHONLINESTATE_DOCML, &ok); + + QGraphicsWidget *widget = mDocumentLoader->findWidget(ONLINE_TOC_VIEW); + Q_ASSERT_X(ok && (widget != 0), "ONLINE_TOC_VIEW", "invalid view"); + + mView = qobject_cast (widget); + if (mView) + { + mView->setTitle(hbTrId("txt_search_title_search")); + } + + mSearchPanel = qobject_cast ( + mDocumentLoader->findWidget(ONLINE_TUT_SEARCHPANEL_WIDGET)); + if (mSearchPanel) + { + mSearchPanel->setSearchOptionsEnabled(true); + + mSearchPanel->setProgressive(false); + + mSearchPanel->setPlaceholderText(hbTrId( + "txt_search_dialog_search_internet")); + + mSearchPanel->setCancelEnabled(false); + } + if (mView && mMainWindow) + { + mMainWindow->addView(mView); + mMainWindow->setCurrentView(mView); + } + } +// --------------------------------------------------------------------------- +// SearchOnlineState::onEntry +// --------------------------------------------------------------------------- +// +void SearchOnlineState::onEntry(QEvent *event) + { + qDebug() << "search:SearchOnlineState::onEntry"; + QState::onEntry(event); + if (!mIsUICreated) + { + createui(); + mIsUICreated = true; + } + + activateSignals(); + // If this is not the current view, we're getting back from plugin view + if (mMainWindow) + { + if (mMainWindow->currentView() != mView) + { + mMainWindow->setCurrentView(mView, true); + } + mMainWindow->show(); + } + if (mIndeviceQueryAvailable) + { + mSearchPanel->setCriteria(mSearchQuery); + mIndeviceQueryAvailable = false; + } + + } +// --------------------------------------------------------------------------- +// SearchOnlineState::onExit +// --------------------------------------------------------------------------- +// +void SearchOnlineState::onExit(QEvent *event) + { + QState::onExit(event); + deActivateSignals(); + } +// --------------------------------------------------------------------------- +// SearchProgressiveState::activateSignals +// --------------------------------------------------------------------------- +void SearchOnlineState::activateSignals() + { + if (mSearchPanel) + { + connect(mSearchPanel, SIGNAL(criteriaChanged(QString)), this, + SLOT(startOnlineSearch(QString))); + connect(mSearchPanel, SIGNAL(searchOptionsClicked()), this, + SLOT(setSettings())); + connect(mSearchPanel, SIGNAL(exitClicked()), this, + SLOT(cancelSearch())); + } + if (mInternetHandler) + { + + connect(mInternetHandler, SIGNAL(pluginIntialized(bool)), this, + SLOT(slotpluginIntialized(bool))); + connect(mInternetHandler, SIGNAL(pluginShutdown(bool)), this, + SLOT(slotpluginShutdown(bool))); + connect(mInternetHandler, SIGNAL(backEventTriggered()), this, + SLOT(slotbackEventTriggered())); + } + connect(mMainWindow, SIGNAL(viewReady()), this, SLOT(slotviewReady())); + } +// --------------------------------------------------------------------------- +// SearchProgressiveState::deActivateSignals +// --------------------------------------------------------------------------- +void SearchOnlineState::deActivateSignals() + { + if (mSearchPanel) + { + disconnect(mSearchPanel, SIGNAL(criteriaChanged(QString)), this, + SLOT(startOnlineSearch(QString))); + disconnect(mSearchPanel, SIGNAL(searchOptionsClicked()), this, + SLOT(setSettings())); + disconnect(mSearchPanel, SIGNAL(exitClicked()), this, + SLOT(cancelSearch())); + } + if (mInternetHandler) + { + disconnect(mInternetHandler, SIGNAL(pluginIntialized(bool)), this, + SLOT(slotpluginIntialized(bool))); + disconnect(mInternetHandler, SIGNAL(pluginShutdown(bool)), this, + SLOT(slotpluginShutdown(bool))); + disconnect(mInternetHandler, SIGNAL(backEventTriggered()), this, + SLOT(slotbackEventTriggered())); + } + disconnect(mMainWindow, SIGNAL(viewReady()), this, SLOT(slotviewReady())); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::startOnlineSearch +// --------------------------------------------------------------------------- +void SearchOnlineState::startOnlineSearch(const QString &query) + { + mSearchQuery = query; + // if (mSearchReady) + { + mInternetHandler->readSettings(); + mInternetHandler->initializePlugin(); + } + // load online handlers + } +// --------------------------------------------------------------------------- +// SearchOnlineState::setSettings +// --------------------------------------------------------------------------- +void SearchOnlineState::setSettings() + { + if (mSearchQuery.length()) + emit onlineSearchQuery(mSearchQuery); + emit switchOnlineToSettingsState(); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::cancelSearch +// --------------------------------------------------------------------------- +void SearchOnlineState::cancelSearch() + { + // unload handlers + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotpluginIntialized +// --------------------------------------------------------------------------- +void SearchOnlineState::slotpluginIntialized(bool status) + { + if (status) + mInternetHandler->activatePlugin(mSearchQuery); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotpluginShutdown +// --------------------------------------------------------------------------- +void SearchOnlineState::slotpluginShutdown(bool status) + { + mSearchReady = status; + if (!mSearchReady) + mInternetHandler->unloadPluginandExit(); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotbackEventTriggered +// --------------------------------------------------------------------------- +void SearchOnlineState::slotbackEventTriggered() + { + mInternetHandler->unloadPluginandExit(); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotIndeviceQuery +// --------------------------------------------------------------------------- +void SearchOnlineState::slotIndeviceQuery(QString str) + { + mSearchQuery = str; + mIndeviceQueryAvailable = true; + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotlaunchLink +// --------------------------------------------------------------------------- +void SearchOnlineState::slotlaunchLink(int id, QString query) + { + mInternetHandler->loadISPlugin(id, query); + } +// --------------------------------------------------------------------------- +// SearchOnlineState::slotviewReady +// --------------------------------------------------------------------------- +void SearchOnlineState::slotviewReady() + { + if (hbApp) + { + if (hbApp->activateReason() == Hb::ActivationReasonActivity) + { + QVariantHash params = hbApp->activateParams(); + QString searchKey = params.value("query").toString(); + if (searchKey.length() > 0) + { + mSearchPanel->setCriteria(searchKey); + startOnlineSearch(searchKey); + } + } + }//PERF_APP_LAUNCH_END("SearchAppplication View is ready"); + } diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/src/searchprogressivestate.cpp --- a/searchui/stateproviders/searchstateprovider/src/searchprogressivestate.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/src/searchprogressivestate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -24,15 +24,10 @@ #include #include #include -#include #include #include #include -#include #include -#include -#include -#include #include #include #include @@ -42,15 +37,23 @@ #include #include #include -#include +#include #include #include -#include +#include #include #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#define hbApp qobject_cast(qApp) const char *SEARCHSTATEPROVIDER_DOCML = ":/xml/searchstateprovider.docml"; const char *TOC_VIEW = "tocView"; const char *TUT_SEARCHPANEL_WIDGET = "searchPanel"; @@ -61,12 +64,11 @@ // --------------------------------------------------------------------------- SearchProgressiveState::SearchProgressiveState(QState *parent) : QState(parent), mMainWindow(NULL), mView(NULL), mListView(NULL), - mDocumentLoader(NULL), mModel(NULL), mSearchHandler(NULL), - notesEditor(0), mAiwMgr(0), mRequest(0) + mDocumentLoader(NULL), mSearchHandler(NULL), mNotesEditor(0), + mAiwMgr(0), mRequest(0) { mMainWindow = hbInstance->allMainWindows().at(0); - mModel = new QStandardItemModel(this); mAiwMgr = new XQApplicationManager; @@ -83,7 +85,7 @@ mView->setTitle(hbTrId("txt_search_title_search")); } - mListView = qobject_cast (mDocumentLoader->findWidget( + mListView = qobject_cast (mDocumentLoader->findWidget( TUT_LIST_VIEW)); Q_ASSERT_X(ok && (mListView != 0), "TUT_LIST_VIEW", "invalid viewocML file"); @@ -97,6 +99,7 @@ HbListViewItem *prototypeListView = qobject_cast ( prototype); + prototypeListView->setGraphicsSize(HbListViewItem::LargeIcon); if (prototypeListView) { HbStyle style; @@ -106,7 +109,6 @@ mListViewIconSize = size.toSize(); prototypeListView->setTextFormat(Qt::RichText); } - mListView->setModel(mModel, prototype); HbAbstractItemView::ItemAnimations noCreationAndRemovalAnimations = HbAbstractItemView::All; @@ -120,6 +122,12 @@ if (mSearchPanel) { mSearchPanel->setSearchOptionsEnabled(true); + + mSearchPanel->setPlaceholderText(hbTrId( + "txt_search_dialog_search_device")); + + mSearchPanel->setCancelEnabled(false); + mSearchPanel->setFocus(); } constructHandlers(); @@ -138,20 +146,20 @@ //Icon creation in array RArray appUid; appUid.Append(TUid::Uid(0x20022EF9));//contact - appUid.Append(TUid::Uid(0x10207C62));//media(audio) - appUid.Append(TUid::Uid(0x200211FE));//video not assigned + appUid.Append(TUid::Uid(0x10207C62));//audio + appUid.Append(TUid::Uid(0x200211FE));//video appUid.Append(TUid::Uid(0x20000A14));//image appUid.Append(TUid::Uid(0x2001FE79));//msg - appUid.Append(TUid::Uid(0x20022F35));//email not assigned + appUid.Append(TUid::Uid(0x200255BA));//email appUid.Append(TUid::Uid(0x10005901));//calender appUid.Append(TUid::Uid(0x20029F80));//notes //appUid.Append(TUid::Uid(0x20022F35));//application - appUid.Append(TUid::Uid(0x20022F35));//bookmark not assigned + appUid.Append(TUid::Uid(0x10008D39));//bookmark appUid.Append(TUid::Uid(0x2002BCC0));//files for (int i = 0; i < appUid.Count(); i++) { - mIconArray.append(getAppIconFromAppId(appUid[i])); + TRAP_IGNORE(mIconArray.append(getAppIconFromAppIdL(appUid[i]))); } #ifdef OST_TRACE_COMPILER_IN_USE //start() the timers to avoid worrying abt having to start()/restart() later @@ -161,6 +169,25 @@ m_categoryGetDocumentApiTime.start(); m_getDocumentCatergoryTimeAccumulator = 0; #endif + + //Notes Editor Interface loading + QDir dir(NOTES_EDITOR_PLUGIN_PATH); + QString pluginName = dir.absoluteFilePath(NOTES_EDITOR_PLUGIN_NAME); + + // Create plugin loader. + mNotespluginLoader = new QPluginLoader(pluginName); + + if (mNotespluginLoader) + { + // Load the plugin. + mNotespluginLoader->load(); + + QObject *plugin = qobject_cast ( + mNotespluginLoader->instance()); + mNotesEditor = qobject_cast (plugin); + } + + mOnlineQueryAvailable = false; } // --------------------------------------------------------------------------- // SearchProgressiveState::~SearchProgressiveState @@ -171,10 +198,6 @@ { delete mAiwMgr; } - if (mModel) - { - delete mModel; - } if (mDocumentLoader) { delete mDocumentLoader; @@ -183,9 +206,10 @@ { delete mSearchHandlerList.at(i); } - if(notesEditor) + if (mNotespluginLoader) { - delete notesEditor; + mNotespluginLoader->unload(); + delete mNotespluginLoader; } } // --------------------------------------------------------------------------- @@ -221,7 +245,7 @@ } case 4: { - handler->setCategory("email"); + handler->setCategory("msg email"); break; } case 5: @@ -273,10 +297,15 @@ } if (loadSettings) { - emit settingsState(); + emit switchProToSettingsState(); loadSettings = false; } setSelectedCategories(); + if (mOnlineQueryAvailable) + { + mSearchPanel->setCriteria(mOriginalString); + mOnlineQueryAvailable = false; + } } // --------------------------------------------------------------------------- // SearchProgressiveState::onExit @@ -302,8 +331,8 @@ } if (mListView) { - connect(mListView, SIGNAL(activated(const QModelIndex)), this, - SLOT(openResultitem(const QModelIndex))); + connect(mListView, SIGNAL(activated(HbListWidgetItem *)), this, + SLOT(openResultitem(HbListWidgetItem *))); } if (mSearchPanel) { @@ -311,16 +340,10 @@ SLOT(startNewSearch(QString))); connect(mSearchPanel, SIGNAL(searchOptionsClicked()), this, SLOT(setSettings())); - connect(mSearchPanel, SIGNAL(exitClicked()), this, - SLOT(cancelSearch())); } - if (mModel) - { - connect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, - SLOT(getrowsInserted())); - connect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, - SLOT(getrowsRemoved())); - } + + connect(mMainWindow, SIGNAL(viewReady()), this, SLOT(viewReady())); + } // --------------------------------------------------------------------------- // SearchProgressiveState::deActivateSignals @@ -338,8 +361,8 @@ } if (mListView) { - disconnect(mListView, SIGNAL(activated(const QModelIndex)), this, - SLOT(openResultitem(const QModelIndex))); + disconnect(mListView, SIGNAL(activated(HbListWidgetItem *)), this, + SLOT(openResultitem(HbListWidgetItem *))); } if (mSearchPanel) { @@ -347,16 +370,8 @@ SLOT(startNewSearch(QString))); disconnect(mSearchPanel, SIGNAL(searchOptionsClicked()), this, SLOT(setSettings())); - disconnect(mSearchPanel, SIGNAL(exitClicked()), this, - SLOT(cancelSearch())); } - if (mModel) - { - disconnect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, - SLOT(getrowsInserted())); - disconnect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, - SLOT(getrowsRemoved())); - } + disconnect(mMainWindow, SIGNAL(viewReady()), this, SLOT(viewReady())); } // --------------------------------------------------------------------------- // SearchProgressiveState::onAsyncSearchComplete @@ -397,19 +412,7 @@ QStringList liststr; QString secondrow = aDoc->excerpt(); QString firstrow; - //-------------- html tag creation------------------- - /* QString htmlTagPre = QString(""); - QString htmlTagPost = QString(""); - int insertpt = secondrow.indexOf(mOriginalString, 0, Qt::CaseInsensitive); - if (insertpt >= 0) - { - secondrow.insert(insertpt, htmlTagPre); - - secondrow.insert(insertpt + mOriginalString.length() - + htmlTagPre.length(), htmlTagPost); - } -*/ //--------------------Html Tag Creation completed------------ - QStandardItem* listitem = new QStandardItem(); + HbListWidgetItem* listitem = new HbListWidgetItem(); if (aDoc->baseAppClass().contains("contact")) { @@ -451,7 +454,7 @@ } else if (aDoc->baseAppClass().contains("video")) { - QStringList videoList = filterDoc(aDoc, "Title", "MediaId","Name"); + QStringList videoList = filterDoc(aDoc, "Title", "MediaId", "Name"); if (videoList.value(0, "").length()) { firstrow.append(videoList.at(0)); @@ -481,6 +484,20 @@ listitem->setData(imageList.at(1), Qt::UserRole + 2); } } + else if (aDoc->baseAppClass().contains("msg email")) + { + qDebug() << "searchui:on Get doc email"; + QStringList emailList = filterDoc(aDoc, "Sender", "MailBoxId", + "FolderId"); + + qDebug() << "searchui:recipients" << emailList.at(0) << emailList.at( + 1) << emailList.at(2); + firstrow.append(emailList.at(0)); + listitem->setData(emailList.at(1), Qt::UserRole + 2); + listitem->setData(emailList.at(2), Qt::UserRole + 3); + liststr << firstrow << secondrow; + listitem->setData(mIconArray.at(5), Qt::DecorationRole); + } else if (aDoc->baseAppClass().contains("msg")) { QStringList msgList = filterDoc(aDoc, "Subject", "Body"); @@ -499,12 +516,7 @@ } liststr << firstrow << secondrow; listitem->setData(mIconArray.at(4), Qt::DecorationRole); - } - else if (aDoc->baseAppClass().contains("email")) - { - firstrow.append(filterDoc(aDoc, "Subject")); - liststr << firstrow << secondrow; - } + } else if (aDoc->baseAppClass().contains("calendar")) { firstrow.append(filterDoc(aDoc, "Summary")); @@ -531,8 +543,8 @@ firstrow.append(filterDoc(aDoc, "Name")); liststr << firstrow; bool ok; - listitem->setData(getAppIconFromAppId(TUid::Uid(aDoc->docId().toInt( - &ok, 16))), Qt::DecorationRole); + TRAP_IGNORE(listitem->setData(getAppIconFromAppIdL(TUid::Uid(aDoc->docId().toInt( + &ok, 16))), Qt::DecorationRole)); } else if (aDoc->baseAppClass().contains("bookmark")) { @@ -542,6 +554,8 @@ firstrow = "UnKnown"; } liststr << firstrow << secondrow; + listitem->setData(secondrow, Qt::UserRole + 2); + listitem->setData(mIconArray.at(8), Qt::DecorationRole); } else if (aDoc->baseAppClass().contains("file")) { @@ -551,24 +565,12 @@ liststr << firstrow << secondrow; listitem->setData(mIconArray.at(9), Qt::DecorationRole); } - listitem->setData(liststr, Qt::DisplayRole); + listitem->setText(firstrow); + listitem->setSecondaryText(secondrow); listitem->setData(aDoc->docId(), Qt::UserRole); listitem->setData(aDoc->baseAppClass(), Qt::UserRole + 1); - mModel->appendRow(listitem); - delete aDoc; - } -// --------------------------------------------------------------------------- -// SearchProgressiveState::getSettingCategory -// --------------------------------------------------------------------------- -void SearchProgressiveState::getSettingCategory(int item, bool avalue) - { - mSelectedCategory.insert(item, avalue); - } -// --------------------------------------------------------------------------- -// SearchProgressiveState::getrowsInserted -// --------------------------------------------------------------------------- -void SearchProgressiveState::getrowsInserted() - { + mListView->addItem(listitem); + mResultparser++; if (mResultparser < mResultcount) { @@ -580,42 +582,28 @@ PERF_CAT_GETDOC_ACCUMULATOR_ENDLOG searchOnCategory(mSearchString); } + delete aDoc; } // --------------------------------------------------------------------------- -// SearchProgressiveState::getrowsRemoved +// SearchProgressiveState::getSettingCategory // --------------------------------------------------------------------------- -void SearchProgressiveState::getrowsRemoved() +void SearchProgressiveState::getSettingCategory(int item, bool avalue) { - if (mModel->rowCount() != 0) - { - mModel->removeRow(0); - } - else - { - mListView->reset(); - if (mOriginalString.length()) - { - mDatabasecount = 0; - /*mSearchString = "$prefix(\""; - mSearchString += mOriginalString; - mSearchString += "\")";*/ - mSearchString = mOriginalString; - mSearchString.append('*'); - searchOnCategory(mSearchString); - } - } + mSelectedCategory.insert(item, avalue); } // --------------------------------------------------------------------------- // SearchProgressiveState::openResultitem // --------------------------------------------------------------------------- -void SearchProgressiveState::openResultitem(QModelIndex index) +void SearchProgressiveState::openResultitem(HbListWidgetItem * item) { - QStandardItem* item = mModel->itemFromIndex(index); + if (item == NULL) + return;PERF_RESULT_ITEM_LAUNCH_TIME_RESTART QList args; bool t; mRequest = NULL; if (item->data(Qt::UserRole + 1).toString().contains("contact")) { + PERF_RESULT_ITEM_FOR_LAUNCHING("contact") mRequest = mAiwMgr->create("com.nokia.services.phonebookservices", "Fetch", "open(int)", false); @@ -624,6 +612,9 @@ } else if (item->data(Qt::UserRole + 1).toString().contains("bookmark")) { + PERF_RESULT_ITEM_FOR_LAUNCHING("bookmark") + QDesktopServices::openUrl(item->data(Qt::UserRole + 2).toString()); +PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG ("") } else if (item->data(Qt::UserRole + 1).toString().contains("calendar")) @@ -631,10 +622,10 @@ QDir pluginDir = QDir(QString("z:/resource/qt/plugins/calendar")); QPluginLoader *calAgandaViewerPluginLoader = new QPluginLoader( pluginDir.absoluteFilePath(QString( - "agendaeventviewerplugin.qtplugin"))); + "agendaeventviewerplugin.qtplugin"))); calAgandaViewerPluginInstance = qobject_cast< - EventViewerPluginInterface *> ( + EventViewerPluginInterface *> ( calAgandaViewerPluginLoader->instance()); connect(calAgandaViewerPluginInstance, SIGNAL(viewingCompleted()), @@ -646,62 +637,64 @@ } else if (item->data(Qt::UserRole + 1).toString().contains("applications")) { - TRAPD(err, - {LaunchApplicationL(TUid::Uid((item->data(Qt::UserRole)).toString().toInt(&t, 16)));}) - if (err == KErrNone) - { - } + PERF_RESULT_ITEM_FOR_LAUNCHING("applications") + TRAP_IGNORE(LaunchApplicationL(TUid::Uid((item->data(Qt::UserRole)).toString().toInt(&t, 16)))); + PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG("") } else if (item->data(Qt::UserRole + 1).toString().contains("file")) { + PERF_RESULT_ITEM_FOR_LAUNCHING("file") + QString uid = item->data(Qt::UserRole).toString(); + QFile file(uid); + mRequest = mAiwMgr->create(file, false); + args << file.fileName(); } - else if (item->data(Qt::UserRole + 1).toString().contains("video")) + else if ((item->data(Qt::UserRole + 1).toString().contains("video")) + || (item->data(Qt::UserRole + 1).toString().contains("audio")) + || (item->data(Qt::UserRole + 1).toString().contains("image"))) { - mRequest = mAiwMgr->create("com.nokia.videos", "IVideoView", - "playMedia(QString)", false); - + PERF_RESULT_ITEM_FOR_LAUNCHING("media") QString uid = getDrivefromMediaId( item->data(Qt::UserRole + 2).toString()); uid.append(':'); uid.append(item->data(Qt::UserRole).toString()); - args << uid; + QFile file(uid); + mRequest = mAiwMgr->create(file, false); + args << file.fileName(); } - else if (item->data(Qt::UserRole + 1).toString().contains("audio")) - { - QString uid = getDrivefromMediaId( - item->data(Qt::UserRole + 2).toString()); - uid.append(':'); - uid.append(item->data(Qt::UserRole).toString()); - mRequest = mAiwMgr->create("musicplayer", - "com.nokia.symbian.IFileView", "view(QString)", false); - args << uid; - } - else if (item->data(Qt::UserRole + 1).toString().contains("image")) - { - QString uid = getDrivefromMediaId( - item->data(Qt::UserRole + 2).toString()); - uid.append(':'); - uid.append(item->data(Qt::UserRole).toString()); - mRequest = mAiwMgr->create("com.nokia.services.media", - "com.nokia.symbian.IFileView", "view(QString)", false); - args << uid; - } + else if (item->data(Qt::UserRole + 1).toString().contains("notes")) { - if (!notesEditor) + PERF_RESULT_ITEM_FOR_LAUNCHING("notes") + if(mNotesEditor) { - notesEditor = new NotesEditor(this); + mNotesEditor->edit(item->data(Qt::UserRole).toInt()); } - notesEditor->edit(item->data(Qt::UserRole).toInt()); + PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG("") + } + else if (item->data(Qt::UserRole + 1).toString().contains("msg email")) + { + + mRequest = mAiwMgr->create("nmail", + "com.nokia.symbian.IEmailMessageView", + "viewMessage(QVariant,QVariant,QVariant)", false); + + args << item->data(Qt::UserRole + 2).toULongLong(&t) << item->data( + Qt::UserRole + 3).toULongLong(&t) << item->data(Qt::UserRole).toULongLong(&t); } else if (item->data(Qt::UserRole + 1).toString().contains("msg")) { + PERF_RESULT_ITEM_FOR_LAUNCHING("msg") mRequest = mAiwMgr->create("com.nokia.services.hbserviceprovider", "conversationview", "view(int)", false); int uid = (item->data(Qt::UserRole)).toInt(&t); args << uid; } + else if(item->data(Qt::UserRole + 1).toString().contains("links")) + { + emit launchLink((item->data(Qt::UserRole)).toInt(&t),mOriginalString); + } if (mRequest) { connect(mRequest, SIGNAL(requestOk(const QVariant&)), this, @@ -710,6 +703,7 @@ SLOT(handleError(int,const QString&)));// Connect error handling signal or apply lastError function instead. mRequest->setArguments(args); if (!mRequest->send())// Make the request + { qDebug() << "AIW-ERROR: Send failed" << mRequest->lastError(); } @@ -731,6 +725,7 @@ void SearchProgressiveState::handleOk(const QVariant& var) { Q_UNUSED(var); +PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG ("") } // --------------------------------------------------------------------------- // SearchProgressiveState::handleError @@ -743,15 +738,20 @@ // --------------------------------------------------------------------------- // SearchProgressiveState::createSuggestionLink // --------------------------------------------------------------------------- -void SearchProgressiveState::createSuggestionLink(bool aFlag) +void SearchProgressiveState::createSuggestionLink() { - QStandardItem* listitem = new QStandardItem(); - if (!aFlag) + QString linkString = QString(hbTrId("txt_search_list_search_for_1").arg( + mOriginalString)); + QMapIterator i(mISprovidersIcon); + while (i.hasNext()) { - QString linkString = QString(hbTrId("txt_search_list_search_for_1").arg(mOriginalString)); - mLinkindex = mModel->rowCount(); - listitem->setData(linkString, Qt::DisplayRole); - mModel->appendRow(listitem); + i.next(); + HbListWidgetItem* listitem = new HbListWidgetItem(); + listitem->setText(linkString); + listitem->setData(i.key(), Qt::UserRole); + listitem->setData(i.value(), Qt::DecorationRole); + listitem->setData("links", Qt::UserRole + 1); + mListView->addItem(listitem); } } // --------------------------------------------------------------------------- @@ -761,11 +761,12 @@ { if (aKeyword.length()) { - QStandardItem* listitem = new QStandardItem(); + HbListWidgetItem* listitem = new HbListWidgetItem(); QString noResultMsg = QString("" + hbTrId( "txt_search_list_no_match_found")); - listitem->setData(noResultMsg, Qt::DisplayRole); - mModel->appendRow(listitem); + listitem->setText(noResultMsg); + mListView->addItem(listitem); + } } // --------------------------------------------------------------------------- @@ -773,10 +774,7 @@ // --------------------------------------------------------------------------- void SearchProgressiveState::clear() { - if (mModel) - { - mModel->removeRows(0, mModel->rowCount()); - } + mListView->clear(); } // --------------------------------------------------------------------------- // SearchProgressiveState::searchOnCategory @@ -840,15 +838,20 @@ { PERF_CAT_API_TIME_RESTART mSearchHandler->searchAsync(aKeyword, "_aggregate"); + + } + else + { + searchOnCategory(mSearchString); } } else if (mDatabasecount >= mTemplist.count()) { PERF_TOTAL_UI_ENDLOG - if (mModel->rowCount() == 0 && aKeyword.length() != 0) + if (mListView->count() == 0 && aKeyword.length() != 0) { noResultsFound(mOriginalString); - createSuggestionLink(0); + createSuggestionLink(); } return; } @@ -864,20 +867,20 @@ { mSearchHandlerList.at(i)->cancelLastSearch(); } - if (mModel->rowCount() != 0) + if (mListView->count() != 0) { clear(); } - else if (mOriginalString.length()) + if (mOriginalString.length()) { mDatabasecount = 0; mLinkindex = 0; //Prefix query - /*mSearchString = "$prefix(\""; + mSearchString = "$prefix(\""; mSearchString += mOriginalString; - mSearchString += "\")";*/ - mSearchString = mOriginalString; - mSearchString.append('*'); + mSearchString += "\")"; + /*mSearchString = mOriginalString; + mSearchString.append('*');*/ searchOnCategory(mSearchString); } } @@ -887,24 +890,9 @@ void SearchProgressiveState::setSettings() { mTempSelectedCategory = mSelectedCategory; - emit settingsState(); - } -// --------------------------------------------------------------------------- -// SearchProgressiveState::_customizeGoButton -// --------------------------------------------------------------------------- -void SearchProgressiveState::_customizeGoButton(bool avalue) - { - if (mSearchPanel) - { - if (avalue) - { - mSearchPanel->setProgressive(false); - } - else - { - mSearchPanel->setProgressive(true); - } - } + if (mOriginalString.length()) + emit inDeviceSearchQuery(mOriginalString); + emit switchProToSettingsState(); } // --------------------------------------------------------------------------- // SearchProgressiveState::settingsaction @@ -961,7 +949,7 @@ case 3://Messages& emails { mTemplist.append("msg"); - //mTemplist.append("email"); + mTemplist.append("email"); break; } case 4://Calender& notes @@ -988,7 +976,7 @@ } } } - if (mTemplist.count() == 8) + if (mTemplist.count() == 9) isrootsearch = true; if (isrootsearch) { @@ -997,84 +985,108 @@ } } // --------------------------------------------------------------------------- -// SearchProgressiveState::cancelSearch -// --------------------------------------------------------------------------- -void SearchProgressiveState::cancelSearch() - { - for (int i = 0; i < mSearchHandlerList.count(); i++) - { - mSearchHandlerList.at(i)->cancelLastSearch(); - } - } -// --------------------------------------------------------------------------- // SearchProgressiveState::getAppIconFromAppId // --------------------------------------------------------------------------- -HbIcon SearchProgressiveState::getAppIconFromAppId(TUid auid) +HbIcon SearchProgressiveState::getAppIconFromAppIdL(TUid auid) { HbIcon icon; - CAknIcon* aknIcon = NULL; - CFbsBitmap* bitmap = NULL; - CFbsBitmap* mask = NULL; - QPixmap pixmap; - MAknsSkinInstance* skin = AknsUtils::SkinInstance(); - if (skin) + RApaLsSession apaLsSession; + CleanupClosePushL(apaLsSession); + User::LeaveIfError(apaLsSession.Connect()); + CApaAppServiceInfoArray* skinArray(NULL); + TRAPD( err, skinArray = apaLsSession.GetAppServiceOpaqueDataLC(auid, TUid::Uid(0x2002DCF3)); + if (err == KErrNone && skinArray ) + { + TArray tmpArray( skinArray->Array() ); + if ( tmpArray.Count() ) + { + TPtrC8 opaque(tmpArray[0].OpaqueData()); + const TPtrC16 iconName((TText16*) opaque.Ptr(),(opaque.Length()+1)>>1); + icon = HbIcon( XQConversions:: s60DescToQString( iconName ) ); + } + } + CleanupStack::PopAndDestroy(skinArray); + ); + if (icon.isNull() || !(icon.size().isValid())) { - TRAPD( err, - { - AknsUtils::CreateAppIconLC( skin, auid, - EAknsAppIconTypeList, bitmap, mask ); - CleanupStack::Pop(2); //for trap - } - ); - if (err == KErrNone) + TSize iconSize(mListViewIconSize.width(), mListViewIconSize.height()); + CApaMaskedBitmap* apaMaskedBitmap = CApaMaskedBitmap::NewLC(); + TInt err = apaLsSession.GetAppIcon(auid, iconSize, *apaMaskedBitmap); + TInt iconsCount(0); + apaLsSession.NumberOfOwnDefinedIcons(auid, iconsCount); + QPixmap pixmap; + if ((err == KErrNone) && (iconsCount > 0)) { - TRAPD( err1, - {aknIcon = CAknIcon::NewL(); - aknIcon->SetBitmap(bitmap); - aknIcon->SetMask(mask);}); - if (err1 == KErrNone) - { - } - } - } - if (aknIcon) - { - //need to disable compression to properly convert the bitmap - AknIconUtils::DisableCompression(aknIcon->Bitmap()); - AknIconUtils::SetSize(aknIcon->Bitmap(), TSize(mListViewIconSize.width(), - mListViewIconSize.height()), - EAspectRatioPreservedAndUnusedSpaceRemoved); - if (aknIcon->Bitmap()->Header().iCompression == ENoBitmapCompression) - { - pixmap = fromSymbianCFbsBitmap(aknIcon->Bitmap()); - QPixmap mask = fromSymbianCFbsBitmap(aknIcon->Mask()); - pixmap.setAlphaChannel(mask); + fromBitmapAndMaskToPixmapL(apaMaskedBitmap, + apaMaskedBitmap->Mask(), pixmap); + pixmap = pixmap.scaled(mListViewIconSize, + Qt::KeepAspectRatioByExpanding); + icon = HbIcon(QIcon(pixmap)); } else { - CFbsBitmap *temp(NULL); - TRAPD( err, - {temp = copyBitmapLC(aknIcon->Bitmap()); - pixmap = fromSymbianCFbsBitmap(temp); - CleanupStack::PopAndDestroy();}); - if (err == KErrNone) + HBufC* fileNameFromApparc; + TInt err2 = apaLsSession.GetAppIcon(auid, fileNameFromApparc); + CleanupStack::PushL(fileNameFromApparc); + if (err2 == KErrNone) { - TRAPD( err1, - {temp = copyBitmapLC(aknIcon->Mask()); - QPixmap mask = fromSymbianCFbsBitmap(temp); - CleanupStack::PopAndDestroy(); - pixmap.setAlphaChannel(mask);}); - if (err1 == KErrNone) + QString fileName = XQConversions::s60DescToQString( + fileNameFromApparc->Des()); + if (fileName.contains(QString(".mif"))) { + TPtr ptr(fileNameFromApparc->Des()); + GetPixmapByFilenameL(ptr, mListViewIconSize, pixmap); + pixmap = pixmap.scaled(mListViewIconSize, + Qt::KeepAspectRatioByExpanding); + icon = HbIcon(QIcon(pixmap)); } } + CleanupStack::Pop(fileNameFromApparc); } - pixmap = pixmap.scaled(mListViewIconSize, Qt::KeepAspectRatioByExpanding); - icon = HbIcon(QIcon(pixmap)); + CleanupStack::PopAndDestroy(apaMaskedBitmap); } + CleanupStack::PopAndDestroy(&apaLsSession); + + if (icon.isNull() || !(icon.size().isValid())) + icon = HbIcon("qtg_large_application"); return icon; } // --------------------------------------------------------------------------- +// SearchProgressiveState::GetPixmapByFilenameL +// --------------------------------------------------------------------------- +void SearchProgressiveState::GetPixmapByFilenameL(TDesC& fileName, + const QSize &size, QPixmap& pixmap) + { + CFbsBitmap *bitamp(0); + CFbsBitmap *mask(0); + + if (AknIconUtils::IsMifFile(fileName)) + { + // SVG icon + // SVG always has only one icon + TInt bitmapIndex = 0; + TInt maskIndex = 1; + AknIconUtils::ValidateLogicalAppIconId(fileName, bitmapIndex, + maskIndex); + + AknIconUtils::CreateIconLC(bitamp, mask, fileName, bitmapIndex, + maskIndex); + } + + AknIconUtils::DisableCompression(bitamp); + AknIconUtils::SetSize(bitamp, TSize(size.width(), size.height()), + EAspectRatioPreservedAndUnusedSpaceRemoved); + + AknIconUtils::DisableCompression(mask); + AknIconUtils::SetSize(mask, TSize(size.width(), size.height()), + EAspectRatioPreservedAndUnusedSpaceRemoved); + + fromBitmapAndMaskToPixmapL(bitamp, mask, pixmap); + + // bitmap and icon, AknsUtils::CreateIconLC doesn't specify the order + CleanupStack::Pop(2); + } +// --------------------------------------------------------------------------- // SearchProgressiveState::TDisplayMode2Format // --------------------------------------------------------------------------- QImage::Format SearchProgressiveState::TDisplayMode2Format(TDisplayMode mode) @@ -1147,6 +1159,31 @@ return bmp; } // --------------------------------------------------------------------------- +// SearchProgressiveState::fromBitmapAndMaskToPixmapL +// --------------------------------------------------------------------------- +void SearchProgressiveState::fromBitmapAndMaskToPixmapL( + CFbsBitmap* fbsBitmap, CFbsBitmap* fbsMask, QPixmap& pixmap) + { + if (fbsBitmap->Header().iCompression == ENoBitmapCompression) + { + pixmap = fromSymbianCFbsBitmap(fbsBitmap); + QPixmap mask = fromSymbianCFbsBitmap(fbsMask); + pixmap.setAlphaChannel(mask); + } + else + { // we need special handling for icons in 9.2 (NGA) + // let's hope that in future it will be in QT code + CFbsBitmap *temp(NULL); + temp = copyBitmapLC(fbsBitmap); + pixmap = fromSymbianCFbsBitmap(temp); + CleanupStack::PopAndDestroy(); + temp = copyBitmapLC(fbsMask); + QPixmap mask = fromSymbianCFbsBitmap(temp); + CleanupStack::PopAndDestroy(); + pixmap.setAlphaChannel(mask); + } + } +// --------------------------------------------------------------------------- // SearchProgressiveState::filterDoc // --------------------------------------------------------------------------- QString SearchProgressiveState::filterDoc(const QCPixDocument* aDoc, @@ -1281,6 +1318,7 @@ CleanupStack::PopAndDestroy(&appArcSession); } CleanupStack::PopAndDestroy(&wsSession); +PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG ("") } // --------------------------------------------------------------------------- // SearchProgressiveState::_viewingCompleted @@ -1289,4 +1327,30 @@ { if (calAgandaViewerPluginInstance) calAgandaViewerPluginInstance->deleteLater(); +PERF_RESULT_ITEM_LAUNCH_TIME_ENDLOG ("") } +// --------------------------------------------------------------------------- +// SearchProgressiveState::viewReady +// --------------------------------------------------------------------------- +void SearchProgressiveState::viewReady() + { + if (hbApp) + { + if (hbApp->activateReason() == Hb::ActivationReasonActivity) + { + QVariantHash params = hbApp->activateParams(); + QString searchKey = params.value("query").toString(); + if (searchKey.length() > 0) + mSearchPanel->setCriteria(searchKey); + } + }PERF_APP_LAUNCH_END("SearchAppplication View is ready"); + } +void SearchProgressiveState::slotOnlineQuery(QString str) + { + mOriginalString = str; + mOnlineQueryAvailable = true; + } +void SearchProgressiveState::slotISProvidersIcon(int id, HbIcon icon) + { + mISprovidersIcon.insert(id, icon); + } diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/src/searchsettingsstate.cpp --- a/searchui/stateproviders/searchstateprovider/src/searchsettingsstate.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/src/searchsettingsstate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -46,6 +46,9 @@ connect(mWidget, SIGNAL(selectedItemCategory(int, bool)), this, SLOT(getItemCategory(int, bool))); + + connect(mWidget, SIGNAL(ISProvidersIcon(HbIcon, int)), this, + SLOT(slotISProvidersIcon(HbIcon, int))); } // --------------------------------------------------------------------------- @@ -59,6 +62,15 @@ } // --------------------------------------------------------------------------- +// SearchSettingsState::slotISProvidersIcon +// --------------------------------------------------------------------------- +// +void SearchSettingsState::slotISProvidersIcon(HbIcon icon, int id) + { + emit publishISProviderIcon(id,icon); + } + +// --------------------------------------------------------------------------- // SearchSettingsState::getItemCategory // --------------------------------------------------------------------------- // @@ -74,19 +86,21 @@ { qDebug() << "search:SearchSettingsState::onEntry"; QState::onEntry(event); + emit settingslaunched(); if (minitialCount) { mWidget->loadBaseSettings(); mWidget->loadDeviceSettings(); + mWidget->loadIS(); isInternetOn(); minitialCount = false; - emit backEventTriggered(); + // isInternetOn(); + //emit backEventTriggered(); } else { - mWidget->launchSettingWidget(); - } + } } // --------------------------------------------------------------------------- // SearchSettingsState::onExit @@ -103,7 +117,6 @@ // void SearchSettingsState::handleBackEvent(bool aStatus) { - emit backEventTriggered(); if (mWidget) { isInternetOn(); @@ -118,10 +131,10 @@ { if (mWidget->isInternetSearchOptionSelected()) { - emit customizeGoButton(true); + emit switchToOnlineState(); } else { - emit customizeGoButton(false); + emit switchToProState(); } } diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/src/searchstateprovider.cpp --- a/searchui/stateproviders/searchstateprovider/src/searchstateprovider.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/src/searchstateprovider.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -19,6 +19,7 @@ #include "searchprogressivestate.h" #include "searchinitstate.h" #include "searchsettingsstate.h" +#include "searchonlinestate.h" #include #include @@ -31,6 +32,8 @@ "search.nokia.com/state/wizardprogressivestate"; const char wizardSettingStateUri[] = "search.nokia.com/state/wizardsettingstate"; +const char wizardOnlineStateUri[] = + "search.nokia.com/state/wizardonlinestate"; // --------------------------------------------------------------------------- // searchStateProvider::searchStateProvider() @@ -59,6 +62,10 @@ { return new SearchInitState(); } + else if (uri == wizardOnlineStateUri) + { + return new SearchOnlineState(); + } qDebug() << "SEARCH: No state found for mUri: " << uri; return NULL; diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/src/settingswidget.cpp --- a/searchui/stateproviders/searchstateprovider/src/settingswidget.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/src/settingswidget.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -38,6 +38,7 @@ #include #include #include +#include "onlinehandler.h" const char *DELIMETER_DOCML = ":/xml/delimeterscreen.docml"; const char *DIALOG = "dialog"; const char *DATAFORM = "dataForm"; @@ -48,8 +49,10 @@ //---------------------------------------------------------------------------------------------------------------------------- SettingsWidget::SettingsWidget() : signalMapper(NULL), popup(NULL), mDocumentLoader(NULL), dataform(NULL), - mModel(NULL),mSelectedScope(0),mSelectedProvider(0),comboBox(NULL) + mModel(NULL), mSelectedScope(0), mSelectedProvider(0), comboBox( + NULL), mInternetHandler(NULL) { + setSettingsFilePath(); for (int i = 0; i < 8; i++) { mDeviceMapping.append(false); @@ -61,6 +64,7 @@ mchangestate = true; mInstialize = true; isInternetSelected = false; + storeDefaultSettings(); } //---------------------------------------------------------------------------------------------------------------------------- @@ -72,7 +76,7 @@ bool ok = false; if (!mDocumentLoader) { - mDocumentLoader = new HbDocumentLoader(); + mDocumentLoader = new HbDocumentLoader(); mDocumentLoader->load(DELIMETER_DOCML, &ok); } QGraphicsWidget *widget = NULL; @@ -132,17 +136,16 @@ HbDataFormModelItem::ComboBoxItem, hbTrId( "txt_search_info_select_search_scope")); - themeComboGeneral->setContentWidgetData(QString("items"), mCategoryList); + themeComboGeneral->setContentWidgetData("items", mCategoryList); - themeComboGeneral->setContentWidgetData(QString("currentIndex"), - mSelectedScope); + themeComboGeneral->setContentWidgetData("currentIndex", mSelectedScope); QModelIndex index = mModel->indexFromItem(themeComboGeneral); - HbDataFormViewItem *formItem = static_cast (dataform->itemByIndex(index)); + HbDataFormViewItem *formItem = + static_cast (dataform->itemByIndex(index)); - comboBox = - static_cast (formItem->dataItemContentWidget()); + comboBox = static_cast (formItem->dataItemContentWidget()); q_currentIndexChanged(mSelectedScope); @@ -161,7 +164,7 @@ mModel->removeItem(mModelItemList.at(i)); } mModelItemList.clear(); - // int ret = mModel->rowCount(); + // int ret = mModel->rowCount(); if (!avalue) //device category creation { isInternetSelected = false; @@ -175,7 +178,9 @@ mModelItemList.append(mModelItem); QModelIndex index = mModel->indexFromItem(mModelItem); - HbDataFormViewItem *formItem = static_cast (dataform->itemByIndex(index)); + HbDataFormViewItem *formItem = + static_cast (dataform->itemByIndex( + index)); checkboxitem = static_cast (formItem->dataItemContentWidget()); @@ -201,25 +206,36 @@ HbDataFormModelItem* mModelItem = mModel->appendDataFormItem( HbDataFormModelItem::RadioButtonListItem); mModelItemList.append(mModelItem); + QStringList internetCategoryList; + QMapIterator i(mServiceProviders); + int selectedindex = 0; + int Iterator = 0; + while (i.hasNext()) + { + i.next(); + if (i.key() == mSelectedProvider) + selectedindex = Iterator; + Iterator++; + internetCategoryList.append(i.value()); + qDebug() << i.value(); + } mModelItem->setContentWidgetData("items", internetCategoryList); + mModelItem->setContentWidgetData("previewMode", + HbRadioButtonList::NoPreview); + + mModelItem->setContentWidgetData("selected", selectedindex); + QModelIndex index = mModel->indexFromItem(mModelItem); - HbDataFormViewItem *formItem = static_cast (dataform->itemByIndex(index)); - + HbDataFormViewItem *formItem = + static_cast (dataform->itemByIndex( + index)); mradiolist = static_cast (formItem->dataItemContentWidget()); - mradiolist->setPreviewMode(HbRadioButtonList::NoPreview); - - mradiolist->setSelected(mSelectedProvider); connect(mradiolist, SIGNAL(itemSelected(int)), this, - SLOT(q_itemSelected(int))); - - for (int i = 0; i < mActions.count(); i++) - popup->removeAction(mActions.at(i)); - popup->addActions(mActions); - popup->removeAction(mActions.at(0)); + SLOT(slotitemSelected(int))); } } //---------------------------------------------------------------------------------------------------------------------------- @@ -229,8 +245,6 @@ void SettingsWidget::preparecategories() { // read form database - - QString mConnectionName("cpixcontentinfo.sq"); QString mDatabaseName("c:\\Private\\2001f6fb\\cpixcontentinfo.sq"); @@ -254,24 +268,24 @@ { mCategoryDbMapping.insert(category_name, true); } - qDebug() <<"string db= "<removeAction(mActions.at(i)); - popup->addActions(mActions); - if (noItemSelected) + if (!isInternetSelected) { - popup->removeAction(mActions.at(0)); + for (int i = 0; i < mActions.count(); i++) + popup->removeAction(mActions.at(i)); + popup->addActions(mActions); + if (noItemSelected) + { + popup->removeAction(mActions.at(0)); + } } } //---------------------------------------------------------------------------------------------------------------------------- @@ -465,7 +489,8 @@ void SettingsWidget::storeSettingsToiniFile() { - QSettings appSettings("search.ini", QSettings::IniFormat); + QSettings appSettings(mSettingFileName, QSettings::IniFormat); + isInternetSelected ? (mSelectedScope = 1) : (mSelectedScope = 0); appSettings.setValue("selectedcategory", mSelectedScope); appSettings.setValue("devicecount", mDeviceCategoryRefList.count()); if (!isInternetSelected) @@ -495,8 +520,7 @@ } } - appSettings.setValue("internetcount", internetCategoryList.count()); - appSettings.setValue("selectedprovider", mSelectedProvider); + } //---------------------------------------------------------------------------------------------------------------------------- //void SettingsWidget::loadBaseSettings() @@ -504,26 +528,10 @@ //---------------------------------------------------------------------------------------------------------------------------- void SettingsWidget::loadBaseSettings() { - QSettings appSettings("search.ini", QSettings::IniFormat); - int value; - if (!(appSettings.contains("selectedcategory"))) - { - value = 0; - } - else - { - value = appSettings.value("selectedcategory").toInt(); - } - mSelectedScope = value; - if (mSelectedScope) - { - isInternetSelected = true; - } - else - { - isInternetSelected = false; - } - mSelectedProvider = appSettings.value("selectedprovider").toInt(); + QSettings appSettings(mSettingFileName, QSettings::IniFormat); + mSelectedScope = appSettings.value("selectedcategory", 0).toInt(); + mSelectedScope ? (isInternetSelected = true) : (isInternetSelected + = false); } //---------------------------------------------------------------------------------------------------------------------------- @@ -532,22 +540,16 @@ //---------------------------------------------------------------------------------------------------------------------------- void SettingsWidget::loadDeviceSettings() { - QSettings appSettings("search.ini", QSettings::IniFormat); + QSettings appSettings(mSettingFileName, QSettings::IniFormat); int value; if (!isInternetSelected) { int j = 0; for (int i = 0; i < mDeviceCategoryRefList.count(); i++) { - if (!(appSettings.contains(mDeviceCategoryRefList.at(i)))) - { - value = 1; - } - else - { - value - = appSettings.value(mDeviceCategoryRefList.at(i)).toInt(); - } + value + = appSettings.value(mDeviceCategoryRefList.at(i), 1).toInt(); + if (mDeviceMapping.count() && mDeviceCheckBoxList.count() && mDeviceMapping.at(i)) { @@ -561,14 +563,10 @@ } j++; } - if (value) // get the setting before ui preparation - { - emit selectedItemCategory(i, true); - } - else - { - emit selectedItemCategory(i, false); - } + value + ? (emit selectedItemCategory(i, true)) + : (emit selectedItemCategory(i, false)); + } } } @@ -588,16 +586,56 @@ //---------------------------------------------------------------------------------------------------------------------------- void SettingsWidget::storeDefaultSettings() { - QSettings appSettings("search.ini", QSettings::IniFormat); + QSettings appSettings(mSettingFileName, QSettings::IniFormat); if (!appSettings.contains("selectedcategory")) // change the settings for the first time only { mSelectedScope = 0; - mSelectedProvider = 0; appSettings.setValue("selectedcategory", mSelectedScope); appSettings.setValue("devicecount", mDeviceCategoryRefList.count()); for (int i = 0; i < mDeviceCategoryRefList.count(); i++) appSettings.setValue(mDeviceCategoryRefList.at(i), 1); - appSettings.setValue("internetcount", internetCategoryList.count()); - appSettings.setValue("selectedprovider", mSelectedProvider); } } +void SettingsWidget::slotproviderDetails(QString name, HbIcon icon, int id) + { + mServiceProviders.insert(id, name); + emit ISProvidersIcon(icon, id); + } +void SettingsWidget::slotdefaultProvider(const int value) + { + mSelectedProvider = value; + } +void SettingsWidget::slotitemSelected(int value) + { + QMapIterator i(mServiceProviders); + int selectedindex = 0; + while (i.hasNext()) + { + i.next(); + if (selectedindex == value) + { + mInternetHandler->setDefaultProvider(i.key()); + break; + } + selectedindex++; + } + } +void SettingsWidget::setSettingsFilePath() + { + mSettingFileName.append(QDir::currentPath()); + mSettingFileName.append(QString("/searchsettings.ini")); + } +void SettingsWidget::loadIS() + { + if (!mInternetHandler) + { + mInternetHandler = new OnlineHandler(); + connect(mInternetHandler, + SIGNAL(providerDetails(QString, HbIcon, int)), this, + SLOT(slotproviderDetails(QString, HbIcon, int))); + + connect(mInternetHandler, SIGNAL(defaultProvider(const int)), this, + SLOT(slotdefaultProvider(const int))); + mInternetHandler->readSettings(); + } + } diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/inc/t_searchstateprovider.h --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/inc/t_searchstateprovider.h Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/inc/t_searchstateprovider.h Thu Jul 22 16:34:05 2010 +0100 @@ -17,7 +17,6 @@ #include #include "searchstateprovider.h" -#include "hsistateprovider.h" class HbMainWindow; class HbAbstractViewItem; @@ -58,22 +57,16 @@ void testopenResultitem(); void testgetSettingCategory(); void testsetSettings(); - void teststartNewSearch(); - void test_customizeGoButton(); + void teststartNewSearch(); void testsettingsaction(); void testcancelSearch(); - void testgetrowsInserted(); - void testgetrowsRemoved(); void testhandleOkError(); - void test_viewingCompleted(); - void testsearchOnCategory(); void testclear(); void testnoResultsFound(); void testcreateSuggestionLink(); void testTDisplayMode2Format(); - void testfromSymbianCFbsBitmap(); void testgetDrivefromMediaId(); - void testLaunchApplicationL(); + void testLaunchApplication(); void testfilterDoc(); /** @@ -128,27 +121,12 @@ * @return True if state was created successfully, false otherwise. * @since S60 ?S60_version. */ - bool verifyStateCreation(const QString& uri); - - /** - * Helper method testing existence of state - * - * @param states List of states. - * @param library Name of the library/plugin that contains the state. - * @param uri Unique state identificator. - * - * @return True if state was found, false otherwise. - * @since S60 ?S60_version. - */ - bool findStateInStateList(const QList& states, - const QString& library, const QString& uri); - - //void setContentServiceProperty(QState* state); + bool verifyStateCreation(const QString& uri); HbMainWindow* mainWindow(); private: - // FtuContentService* mFtuContentService; + HbMainWindow *mMainWindow; }; diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchinitstate.cpp --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchinitstate.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchinitstate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include "t_searchstateprovider.h" #include "searchinitstate.h" // --------------------------------------------------------------------------- diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchprogressivestate.cpp --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchprogressivestate.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchprogressivestate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -1,24 +1,9 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include "t_searchstateprovider.h" #include "searchprogressivestate.h" #include #include "indevicehandler.h" -#include +#include +#include #include #include #include @@ -45,7 +30,6 @@ QVERIFY(progressiveState->mListView); QVERIFY(progressiveState->mDocumentLoader); QVERIFY(progressiveState->mSearchPanel); - QVERIFY(progressiveState->mModel); //QVERIFY(progressiveState->mSearchHandler); delete progressiveState; @@ -85,6 +69,7 @@ progressiveState->getSettingCategory(6, true); progressiveState->getSettingCategory(7, true); progressiveState->setSelectedCategories(); + QVERIFY(progressiveState->mTemplist.count()); delete progressiveState; } void SearchStateProviderTest::testgetAppIconFromAppId() @@ -112,16 +97,22 @@ SearchProgressiveState* progressiveState = new SearchProgressiveState(); QEvent *event = new QEvent(QEvent::None); progressiveState->onEntry(event); - progressiveState->mSearchHandler - = progressiveState->mSearchHandlerList.at(1); - progressiveState->onAsyncSearchComplete(-1, 10); - QCOMPARE(progressiveState->mResultcount,0); + progressiveState->getSettingCategory(0, true); + progressiveState->getSettingCategory(1, true); + progressiveState->getSettingCategory(2, true); + progressiveState->getSettingCategory(3, true); + progressiveState->getSettingCategory(4, true); + progressiveState->getSettingCategory(5, true); + progressiveState->getSettingCategory(6, true); + progressiveState->getSettingCategory(7, true); - progressiveState->onAsyncSearchComplete(0, -1); - QCOMPARE(progressiveState->mResultcount,0); - progressiveState->mSearchHandler->searchAsync("txt", "_aggregate"); - QTest::qWait(100); - //QCOMPARE(progressiveState->mResultcount,10); + progressiveState->mSearchHandler + = progressiveState->mSearchHandlerList.at(2); + + + progressiveState->mSearchHandler->searchAsync("jpg*", "_aggregate"); + QTest::qWait(2000); + QVERIFY(progressiveState->mResultcount); delete progressiveState; // delete wind; @@ -139,14 +130,14 @@ progressiveState->onEntry(event); // progressiveState->mSearchHandler = progressiveState->mSearchHandlerList.at(1); progressiveState->onGetDocumentComplete(0, NULL); - QCOMPARE(progressiveState->mModel->rowCount(),0); + QCOMPARE(progressiveState->mListView->count(),0); progressiveState->onGetDocumentComplete(-1, NULL); - QCOMPARE(progressiveState->mModel->rowCount(),0); - progressiveState->startNewSearch("d"); + QCOMPARE(progressiveState->mListView->count(),0); + progressiveState->startNewSearch("contact"); QTest::qWait(2000); - int i = progressiveState->mModel->rowCount(); - QVERIFY(progressiveState->mModel->rowCount()); + int i = progressiveState->mListView->count(); + QVERIFY(progressiveState->mListView->count()); delete progressiveState; // delete wind; } @@ -159,14 +150,37 @@ SearchProgressiveState* progressiveState = new SearchProgressiveState(); QEvent *event = new QEvent(QEvent::None); - progressiveState->mSelectedCategory.insert(1, true); + progressiveState->getSettingCategory(0, true); + progressiveState->getSettingCategory(1, true); + progressiveState->getSettingCategory(2, true); + progressiveState->getSettingCategory(3, true); + progressiveState->getSettingCategory(4, true); + progressiveState->getSettingCategory(5, true); + progressiveState->getSettingCategory(6, true); + progressiveState->getSettingCategory(7, true); + progressiveState->onEntry(event); - progressiveState->startNewSearch("a"); - QTest::qWait(100); - progressiveState->cancelSearch(); + progressiveState->startNewSearch("Creat"); + QTest::qWait(2000); + //code for getting the model index from model - QModelIndex index = progressiveState->mModel->index(0, 0); - progressiveState->openResultitem(index); + /*QModelIndex index = progressiveState->mModel->index(0, 0); + progressiveState->openResultitem(index); + QTest::qWait(200); + progressiveState->startNewSearch("jpg"); + QTest::qWait(200); + progressiveState->cancelSearch(); + //code for getting the model index from model + index = progressiveState->mModel->index(0, 0); + progressiveState->openResultitem(index); + + QTest::qWait(200); + progressiveState->startNewSearch("note"); + QTest::qWait(200); + progressiveState->cancelSearch(); + //code for getting the model index from model + index = progressiveState->mModel->index(3, 0); + progressiveState->openResultitem(index);*/ delete progressiveState; // delete wind; } @@ -181,8 +195,15 @@ QEvent *event = new QEvent(QEvent::None); progressiveState->onEntry(event); + progressiveState->getSettingCategory(0, false); + progressiveState->getSettingCategory(1, false); + progressiveState->getSettingCategory(2, false); + progressiveState->getSettingCategory(4, false); + progressiveState->getSettingCategory(5, false); + progressiveState->getSettingCategory(6, false); + progressiveState->getSettingCategory(7, false); progressiveState->getSettingCategory(3, true); - QCOMPARE(progressiveState->mSelectedCategory.count(),1); + QCOMPARE(progressiveState->mSelectedCategory.count(),8); delete progressiveState; // delete wind; } @@ -204,20 +225,19 @@ { SearchProgressiveState* progressiveState = new SearchProgressiveState(); QEvent *event = new QEvent(QEvent::None); - progressiveState->mSelectedCategory.insert(5, true); progressiveState->onEntry(event); - progressiveState->startNewSearch("d"); - delete progressiveState; - } -void SearchStateProviderTest::test_customizeGoButton() - { - SearchProgressiveState* progressiveState = new SearchProgressiveState(); - QEvent *event = new QEvent(QEvent::None); - progressiveState->onEntry(event); - progressiveState->_customizeGoButton(true); - QVERIFY(!(progressiveState->mSearchPanel->isProgressive())); - progressiveState->_customizeGoButton(false); - QVERIFY(progressiveState->mSearchPanel->isProgressive()); + progressiveState->getSettingCategory(0, true); + progressiveState->getSettingCategory(1, true); + progressiveState->getSettingCategory(2, true); + progressiveState->getSettingCategory(3, true); + progressiveState->getSettingCategory(4, true); + progressiveState->getSettingCategory(5, true); + progressiveState->getSettingCategory(6, true); + progressiveState->getSettingCategory(7, true); + + progressiveState->startNewSearch("jpg"); + QTest::qWait(2000); + QVERIFY(progressiveState->mListView->count()); delete progressiveState; } // --------------------------------------------------------------------------- @@ -234,7 +254,6 @@ QCOMPARE(progressiveState->mResultcount, 0); progressiveState->settingsaction(true); QTest::qWait(50); - progressiveState->cancelSearch(); QCOMPARE(progressiveState->mResultcount, 0); delete progressiveState; } @@ -249,18 +268,10 @@ progressiveState->onEntry(event); progressiveState->getSettingCategory(5, true); progressiveState->startNewSearch("d"); - progressiveState->cancelSearch(); delete progressiveState; } -void SearchStateProviderTest::testgetrowsInserted() - { - } -void SearchStateProviderTest::testgetrowsRemoved() - { - - } void SearchStateProviderTest::testhandleOkError() { SearchProgressiveState* progressiveState = new SearchProgressiveState(); @@ -272,17 +283,7 @@ progressiveState->handleError(ret, QString()); delete progressiveState; } -void SearchStateProviderTest::test_viewingCompleted() - { - } -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// -void SearchStateProviderTest::testsearchOnCategory() - { - - } // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // @@ -293,9 +294,9 @@ progressiveState->onEntry(event); progressiveState->noResultsFound("aaa"); - QCOMPARE(progressiveState->mModel->rowCount(),1); + QCOMPARE(progressiveState->mListView->count(),1); progressiveState->clear(); - QCOMPARE(progressiveState->mModel->rowCount(),0); + QCOMPARE(progressiveState->mListView->count(),0); delete progressiveState; } @@ -310,10 +311,10 @@ progressiveState->onEntry(event); progressiveState->noResultsFound(NULL); - QCOMPARE(progressiveState->mModel->rowCount(),0); + QCOMPARE(progressiveState->mListView->count(),0); progressiveState->noResultsFound("aaa"); - QCOMPARE(progressiveState->mModel->rowCount(),1); + QCOMPARE(progressiveState->mListView->count(),1); delete progressiveState; } @@ -325,12 +326,9 @@ { SearchProgressiveState* progressiveState = new SearchProgressiveState(); QEvent *event = new QEvent(QEvent::None); - progressiveState->onEntry(event); - - progressiveState->createSuggestionLink(true); - QCOMPARE(progressiveState->mModel->rowCount(), 0); - progressiveState->createSuggestionLink(false); - QCOMPARE(progressiveState->mModel->rowCount(), 1); + progressiveState->onEntry(event); + progressiveState->createSuggestionLink(); + QCOMPARE(progressiveState->mListView->count(), 1); delete progressiveState; } void SearchStateProviderTest::testTDisplayMode2Format() @@ -361,10 +359,10 @@ delete progressiveState; } -void SearchStateProviderTest::testfromSymbianCFbsBitmap() - { - } +// --------------------------------------------------------------------------- +// --------------------------------------------------------------------------- +// void SearchStateProviderTest::testgetDrivefromMediaId() { SearchProgressiveState* progressiveState = new SearchProgressiveState(); @@ -379,20 +377,21 @@ progressiveState->mSelectedCategory.insert(2, true); progressiveState->onEntry(event); progressiveState->startNewSearch("3gpp"); - QTest::qWait(200); - QModelIndex index = progressiveState->mModel->index(1, 0); - QStandardItem* item = progressiveState->mModel->itemFromIndex(index); + QTest::qWait(200); + + HbListWidgetItem* item = progressiveState->mListView->item(0); + if(item) QString uid = progressiveState->getDrivefromMediaId(item->data( Qt::UserRole + 2).toString()); //QVERIFY(uid.length()); delete progressiveState; } -void SearchStateProviderTest::testLaunchApplicationL() +void SearchStateProviderTest::testLaunchApplication() { SearchProgressiveState* progressiveState = new SearchProgressiveState(); QEvent *event = new QEvent(QEvent::None); progressiveState->onEntry(event); - progressiveState->LaunchApplicationL(TUid::Uid(0x20011383)); + // progressiveState->LaunchApplicationL(TUid::Uid(0x20011383)); delete progressiveState; } // --------------------------------------------------------------------------- diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchsettingsstate.cpp --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchsettingsstate.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchsettingsstate.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include "t_searchstateprovider.h" #include "searchsettingsstate.h" diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchstateprovider.cpp --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchstateprovider.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_searchstateprovider.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -19,8 +19,6 @@ //#include "searchruntimeprovider.h" #include "searchstateprovider.h" -#include - #include #include @@ -51,8 +49,8 @@ // void SearchStateProviderTest::init() { - - // delete mMainWindow; + + // delete mMainWindow; } // --------------------------------------------------------------------------- @@ -68,7 +66,7 @@ // void SearchStateProviderTest::cleanupTestCase() { - + } // --------------------------------------------------------------------------- @@ -78,15 +76,15 @@ { SearchStateProvider provider; - /* QVERIFY(provider.mWizardMenuStateToken.mLibrary == "searchstateprovider.dll"); - QVERIFY(provider.mWizardMenuStateToken.mUri == "search.nokia.com/state/wizardprogressivestate"); + /* QVERIFY(provider.mWizardMenuStateToken.mLibrary == "searchstateprovider.dll"); + QVERIFY(provider.mWizardMenuStateToken.mUri == "search.nokia.com/state/wizardprogressivestate"); - QVERIFY(provider.mWizardActivatedStateToken.mLibrary == "searchstateprovider.dll"); - QVERIFY(provider.mWizardActivatedStateToken.mUri == "search.nokia.com/state/wizardsettingstate"); + QVERIFY(provider.mWizardActivatedStateToken.mLibrary == "searchstateprovider.dll"); + QVERIFY(provider.mWizardActivatedStateToken.mUri == "search.nokia.com/state/wizardsettingstate"); - QVERIFY(provider.mInitStateToken.mLibrary == "searchstateprovider.dll"); - QVERIFY(provider.mInitStateToken.mUri == "search.nokia.com/state/initstate"); - */ } + QVERIFY(provider.mInitStateToken.mLibrary == "searchstateprovider.dll"); + QVERIFY(provider.mInitStateToken.mUri == "search.nokia.com/state/initstate"); + */} // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- @@ -94,23 +92,19 @@ void SearchStateProviderTest::testStates() { /* SearchStateProvider provider; - QList states = provider.states(); - - QCOMPARE(states.count(), 3); + + QCOMPARE(states.count(), 3); - QVERIFY(findStateInStateList(states, "searchstateprovider.dll","search.nokia.com/state/wizardprogressivestate")); - QVERIFY(findStateInStateList(states, "searchstateprovider.dll","search.nokia.com/state/wizardsettingstate")); - QVERIFY(findStateInStateList(states, "searchstateprovider.dll","search.nokia.com/state/initstate")); - */ } + */} // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // void SearchStateProviderTest::testCreateProgressiveState() { - + QVERIFY(verifyStateCreation("search.nokia.com/state/wizardprogressivestate")); - // delete wind; + // delete wind; } // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- @@ -119,7 +113,7 @@ { //HbMainWindow* wind = mainWindow(); QVERIFY(verifyStateCreation("search.nokia.com/state/wizardsettingstate")); - // delete wind; + // delete wind; } // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- @@ -128,16 +122,15 @@ { //HbMainWindow* wind = mainWindow(); QVERIFY(verifyStateCreation("search.nokia.com/state/initstate")); - // delete wind; + // delete wind; } - // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // bool SearchStateProviderTest::verifyStateCreation(const QString& uri) { - SearchStateProvider provider; + SearchStateProvider provider; QState* state = provider.createState(uri); bool result = (state != NULL); if (state) @@ -150,23 +143,6 @@ // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // -bool SearchStateProviderTest::findStateInStateList( - const QList& states, const QString& library, - const QString& uri) - { - foreach(HsStateToken token, states) - { - if (token.mLibrary == library && token.mUri == uri) - { - return true; - } - } - return false; - } - -// --------------------------------------------------------------------------- -// --------------------------------------------------------------------------- -// HbMainWindow* SearchStateProviderTest::mainWindow() { int count = HbInstance::instance()->allMainWindows().count(); @@ -185,7 +161,7 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - int error =0; + int error = 0; TRAPD(err, QTEST_DISABLE_KEYPAD_NAVIGATION SearchStateProviderTest tc; diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_settingswidget.cpp --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_settingswidget.cpp Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/src/t_settingswidget.cpp Thu Jul 22 16:34:05 2010 +0100 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include "t_searchstateprovider.h" #include "settingswidget.h" #include diff -r e023f3f775db -r 4a4ca69db308 searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/t_searchstateprovider.pro --- a/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/t_searchstateprovider.pro Fri Jun 11 16:24:16 2010 +0100 +++ b/searchui/stateproviders/searchstateprovider/tsrc/t_searchstateprovider/t_searchstateprovider.pro Thu Jul 22 16:34:05 2010 +0100 @@ -33,10 +33,6 @@ DESTDIR = $$PWD/../../../../../bin/debug/ } -#LIBS += -lappservices -LIBS += -lstatemodel -#LIBS += -searchstateprovider.dll -#LIBS += -searchruntimeprovider.dll LIBS += -lsearchindevicehandler LIBS += -lxqservice LIBS += -lqcpixsearchclient @@ -45,8 +41,14 @@ LIBS += -laknicon LIBS += -lapgrfx LIBS += -lbitgdi -LIBS += -lnoteseditor - +LIBS += -lsearchonlinehandler +LIBS += -lxqutils +LIBS += -lapparc +LIBS += -lefsrv +LIBS += -lapgrfx +LIBS += -lws32 +LIBS += -lavkon + CONFIG += qtestlib \ symbian_test \ debug_and_release \ @@ -67,15 +69,17 @@ ./inc \ ../../inc \ ../../../../inc \ - ../../../../indevicehandler/inc + ../../../../indevicehandler/inc \ + ../../../../onlinehandler/inc symbian { CONFIG += symbian_test TARGET.UID2 = 0x100039CE TARGET.UID3 = 0x20026F9A TARGET.CAPABILITY = CAP_APPLICATION AllFiles TARGET.EPOCSTACKSIZE = 0x14000 // 80kB -TARGET.EPOCHEAPSIZE = 0x20000 0x1000000 // 128kB - 16MB +TARGET.EPOCHEAPSIZE = 0x20000 0x800000 // 128kB - 16MB INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE +INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE } include(t_searchstateprovider.pri) diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/applications/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/applications/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/applications/_1/deletable Binary file searchui/tsrc/indexdb/data/applications/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/applications/_1/segments Binary file searchui/tsrc/indexdb/data/applications/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/bluesky.jpg Binary file searchui/tsrc/indexdb/data/bluesky.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/bookmark/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/bookmark/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/bookmark/_1/deletable Binary file searchui/tsrc/indexdb/data/bookmark/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/bookmark/_1/segments Binary file searchui/tsrc/indexdb/data/bookmark/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/calendar/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/calendar/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/calendar/_1/deletable Binary file searchui/tsrc/indexdb/data/calendar/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/calendar/_1/segments Binary file searchui/tsrc/indexdb/data/calendar/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/contact/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/contact/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/contact/_1/deletable Binary file searchui/tsrc/indexdb/data/contact/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/contact/_1/segments Binary file searchui/tsrc/indexdb/data/contact/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/cpixcontentinfo.sq Binary file searchui/tsrc/indexdb/data/cpixcontentinfo.sq has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/cpixreg.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/tsrc/indexdb/data/cpixreg.txt Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,31 @@ +@0:root applications=C:\Private\2001f6f7\indexing\indexdb\root\applications +@0:root bookmark=C:\Private\2001f6f7\indexing\indexdb\root\bookmark +@0:root calendar=C:\Private\2001f6f7\indexing\indexdb\root\calendar +@0:root contact=C:\Private\2001f6f7\indexing\indexdb\root\contact +@0:root notes=C:\Private\2001f6f7\indexing\indexdb\root\notes +@c:root file content=C:\Private\2001f6f7\indexing\indexdb\root\file\content +@c:root file folder=C:\Private\2001f6f7\indexing\indexdb\root\file\folder +@c:root media audio=C:\Private\2001f6f7\indexing\indexdb\root\media\audio +@c:root media image=C:\Private\2001f6f7\indexing\indexdb\root\media\image +@c:root media video=C:\Private\2001f6f7\indexing\indexdb\root\media\video +@c:root msg smsmms=C:\Private\2001f6f7\indexing\indexdb\root\msg\smsmms +@t:root file content=T:\Private\2001f6f7\indexing\indexdb\root\file\content +@t:root file folder=T:\Private\2001f6f7\indexing\indexdb\root\file\folder +@t:root media audio=T:\Private\2001f6f7\indexing\indexdb\root\media\audio +@t:root media image=T:\Private\2001f6f7\indexing\indexdb\root\media\image +@t:root media video=T:\Private\2001f6f7\indexing\indexdb\root\media\video +@u:root file content=U:\Private\2001f6f7\indexing\indexdb\root\file\content +@u:root file folder=U:\Private\2001f6f7\indexing\indexdb\root\file\folder +@u:root media audio=U:\Private\2001f6f7\indexing\indexdb\root\media\audio +@u:root media image=U:\Private\2001f6f7\indexing\indexdb\root\media\image +@u:root media video=U:\Private\2001f6f7\indexing\indexdb\root\media\video +@x:root file content=X:\Private\2001f6f7\indexing\indexdb\root\file\content +@x:root file folder=X:\Private\2001f6f7\indexing\indexdb\root\file\folder +@x:root media audio=X:\Private\2001f6f7\indexing\indexdb\root\media\audio +@x:root media image=X:\Private\2001f6f7\indexing\indexdb\root\media\image +@x:root media video=X:\Private\2001f6f7\indexing\indexdb\root\media\video +@y:root file content=Y:\Private\2001f6f7\indexing\indexdb\root\file\content +@y:root file folder=Y:\Private\2001f6f7\indexing\indexdb\root\file\folder +@y:root media audio=Y:\Private\2001f6f7\indexing\indexdb\root\media\audio +@y:root media image=Y:\Private\2001f6f7\indexing\indexdb\root\media\image +@y:root media video=Y:\Private\2001f6f7\indexing\indexdb\root\media\video diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/content/_0/_0.cfs Binary file searchui/tsrc/indexdb/data/file/content/_0/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/content/_0/deletable Binary file searchui/tsrc/indexdb/data/file/content/_0/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/content/_0/segments Binary file searchui/tsrc/indexdb/data/file/content/_0/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/folder/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/file/folder/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/folder/_1/deletable Binary file searchui/tsrc/indexdb/data/file/folder/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/file/folder/_1/segments Binary file searchui/tsrc/indexdb/data/file/folder/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/jungle.jpg Binary file searchui/tsrc/indexdb/data/jungle.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/audio/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/media/audio/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/audio/_1/deletable Binary file searchui/tsrc/indexdb/data/media/audio/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/audio/_1/segments Binary file searchui/tsrc/indexdb/data/media/audio/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/image/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/media/image/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/image/_1/deletable Binary file searchui/tsrc/indexdb/data/media/image/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/image/_1/segments Binary file searchui/tsrc/indexdb/data/media/image/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/video/_0/_0.cfs Binary file searchui/tsrc/indexdb/data/media/video/_0/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/video/_0/deletable Binary file searchui/tsrc/indexdb/data/media/video/_0/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/media/video/_0/segments Binary file searchui/tsrc/indexdb/data/media/video/_0/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/mountain.jpg Binary file searchui/tsrc/indexdb/data/mountain.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/msg/smsmms/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/msg/smsmms/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/msg/smsmms/_1/deletable Binary file searchui/tsrc/indexdb/data/msg/smsmms/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/msg/smsmms/_1/segments Binary file searchui/tsrc/indexdb/data/msg/smsmms/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/notes/_1/_0.cfs Binary file searchui/tsrc/indexdb/data/notes/_1/_0.cfs has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/notes/_1/deletable Binary file searchui/tsrc/indexdb/data/notes/_1/deletable has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/notes/_1/segments Binary file searchui/tsrc/indexdb/data/notes/_1/segments has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/rock.jpg Binary file searchui/tsrc/indexdb/data/rock.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/sea.jpg Binary file searchui/tsrc/indexdb/data/sea.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/snow.jpg Binary file searchui/tsrc/indexdb/data/snow.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/tree.jpg Binary file searchui/tsrc/indexdb/data/tree.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/data/water.jpg Binary file searchui/tsrc/indexdb/data/water.jpg has changed diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/indexdb/indexdb.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/tsrc/indexdb/indexdb.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,28 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: indexdb +# +TEMPLATE = subdirs +symbian{ + BLD_INF_RULES.prj_exports += "data/water.jpg \epoc32\winscw\c\data\water.jpg" \ + "data/sea.jpg \epoc32\winscw\c\data\sea.jpg" \ + "data/rock.jpg \epoc32\winscw\c\data\tree.jpg" \ + "data/bluesky.jpg \epoc32\winscw\c\data\bluesky.jpg" \ + "data/jungle.jpg \epoc32\winscw\c\data\jungle.jpg" \ + "data/snow.jpg \epoc32\winscw\c\data\snow.jpg" \ + "data/mountain.jpg \epoc32\winscw\c\data\mountain.jpg " + + + +} \ No newline at end of file diff -r e023f3f775db -r 4a4ca69db308 searchui/tsrc/tsrc.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/searchui/tsrc/tsrc.pro Thu Jul 22 16:34:05 2010 +0100 @@ -0,0 +1,33 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +TEMPLATE = subdirs + +SUBDIRS += indexdb \ +../indevicehandler/tsrc \ + ../stateproviders/searchstateprovider/tsrc \ +../onlinehandler/tsrc + + + +CONFIG += ordered + + + + +symbian: { + CONFIG += symbian_test +} diff -r e023f3f775db -r 4a4ca69db308 sis/cpixsearchapp_stub.pkg --- a/sis/cpixsearchapp_stub.pkg Fri Jun 11 16:24:16 2010 +0100 +++ b/sis/cpixsearchapp_stub.pkg Thu Jul 22 16:34:05 2010 +0100 @@ -1,18 +1,3 @@ -; -; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -;