# HG changeset patch # User Pat Downey # Date 1283340288 -3600 # Node ID c2c61fdca848fc1262197af346517227f8a9f6b3 # Parent 924385140d98ceef6bce3f0163ea2106e36b38a9 Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apgrfx/APGCLI.CPP --- a/appfw/apparchitecture/apgrfx/APGCLI.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apgrfx/APGCLI.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -17,10 +17,6 @@ #include "../apserv/APSCLSV.H" #include "../apserv/apsserv.h" -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include "../apgrfx/apgcommonutils.h" -#endif - #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS #if !defined(__APA_INTERNAL_H__) #include "apainternal.h" @@ -1551,41 +1547,25 @@ /** @publishedPartner */ EXPORT_C void RApaLsSession::RegisterNonNativeApplicationTypeL(TUid aApplicationType, const TDesC& aNativeExecutable) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK User::LeaveIfError(SendReceiveWithReconnect(EAppListServRegisterNonNativeApplicationType, TIpcArgs(aApplicationType.iUid, &aNativeExecutable))); -#else - (void)aApplicationType; //to make compiler happy - (void)aNativeExecutable; - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const /** @publishedPartner */ EXPORT_C void RApaLsSession::DeregisterNonNativeApplicationTypeL(TUid aApplicationType) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK User::LeaveIfError(SendReceiveWithReconnect(EAppListServDeregisterNonNativeApplicationType, TIpcArgs(aApplicationType.iUid))); -#else - (void)aApplicationType; //to make compiler happy - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const /** @publishedPartner */ EXPORT_C void RApaLsSession::PrepareNonNativeApplicationsUpdatesL() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TIpcArgs ipcArgs(0, 0, 0, 0); User::LeaveIfError(SendReceiveWithReconnect(EAppListServPrepareNonNativeApplicationsUpdates, ipcArgs)); -#else - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const /** @publishedPartner */ EXPORT_C void RApaLsSession::RegisterNonNativeApplicationL(TUid aApplicationType, const TDriveUnit& aDrive, CApaRegistrationResourceFileWriter& aRegistrationResourceFile, CApaLocalisableResourceFileWriter* aLocalisableResourceFile, const RFile* aIconFile) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TIpcArgs ipcArgs(0, 0, 0, 0); RBuf8 ipcParameter0; CleanupClosePushL(ipcParameter0); @@ -1636,26 +1616,12 @@ User::LeaveIfError(SendReceiveWithReconnect(EAppListServRegisterNonNativeApplication, ipcArgs)); CleanupStack::PopAndDestroy(2, &ipcParameter0); -#else - (void) aApplicationType; //to make compiler happy - (void) aDrive; - (void) aRegistrationResourceFile; - (void) aRegistrationResourceFile; - (void) aLocalisableResourceFile; - (void) aIconFile; - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const /** @publishedPartner */ EXPORT_C void RApaLsSession::DeregisterNonNativeApplicationL(TUid aApplication) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK User::LeaveIfError(SendReceiveWithReconnect(EAppListServDeregisterNonNativeApplication, TIpcArgs(aApplication.iUid))); -#else - (void) aApplication; - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const /** @@ -1669,12 +1635,8 @@ EXPORT_C void RApaLsSession::CommitNonNativeApplicationsUpdatesL() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TIpcArgs ipcArgs(EFalse, 0, 0, 0); User::LeaveIfError(SendReceiveWithReconnect(EAppListServCommitNonNativeApplications, ipcArgs)); -#else - User::Leave(KErrNotSupported); -#endif } //lint !e1762 Suppress member function could be made const @@ -1691,12 +1653,8 @@ EXPORT_C void RApaLsSession::ForceCommitNonNativeApplicationsUpdatesL() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TIpcArgs ipcArgs(ETrue, 0, 0, 0); User::LeaveIfError(SendReceiveWithReconnect(EAppListServCommitNonNativeApplications, ipcArgs)); -#else - User::Leave(KErrNotSupported); -#endif } /** @@ -1710,12 +1668,8 @@ */ EXPORT_C TInt RApaLsSession::RollbackNonNativeApplicationsUpdates() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TIpcArgs ipcArgs(0, 0, 0, 0); return SendReceiveWithReconnect(EAppListServRollbackNonNativeApplications, ipcArgs); -#else - return KErrNotSupported; -#endif } //lint !e1762 Suppress member function could be made const /** @@ -1770,7 +1724,6 @@ */ EXPORT_C TInt RApaLsSession::ForceRegistration(const RPointerArray& aRegFiles) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK CBufFlat* buffer = 0; TRAPD(err, buffer = CreateRegFilesBufferL(aRegFiles)); if (err) @@ -1780,10 +1733,6 @@ const TInt returnValue=SendReceiveWithReconnect(EAppListServForceRegistration,TIpcArgs(&ptr)); delete buffer; return returnValue; -#else - (void) aRegFiles; - return KErrNotSupported; -#endif } //lint !e1762 Suppress member function could be made const @@ -1891,7 +1840,7 @@ SendReceive(ECancelNotifyOnDataMappingChange,TIpcArgs()); } //lint !e1762 Suppress member function could be made const -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + CBufFlat* RApaLsSession::CreateRegFilesBufferL(const RPointerArray& aRegFiles) { // Serialize the array @@ -1924,211 +1873,3 @@ CleanupStack::Pop(buffer); return buffer; } -#endif - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -/* This function is only for use by Installers. - -Installers can provide the information about installed, uninstaleld and upgraded applications using this function. -The function takes list of TApaAppUpdateInfo objects. TApaAppUpdateInfo object contains the application uid and -corresponding action done on that application like installed, uninstalled and upgraded. - -Apparc updates the application list based on the information provided in the list. - -UpdateAppListL initiates applist update. It will not wait till the applist update completed. - -@param aAppUpdateInfo List of TApaAppUpdateInfo objects, which contains application uid and corresponding action information - like installed, uninstalled and changed. -@return A standard error code. -@publishedAll -@released -*/ - -EXPORT_C TInt RApaLsSession::UpdateAppListL(RArray& aAppUpdateInfo) - { - //Create a buffer with the application UID and corresponding action information. - CBufFlat* buffer = 0; - TRAPD(err, buffer = CreateAppUpdateInfoBufferL(aAppUpdateInfo)); - if (err) - return err; - - TPtr8 ptr = buffer->Ptr(0); - const TInt returnValue=SendReceiveWithReconnect(EAppListServUpdateAppList,TIpcArgs(&ptr)); - delete buffer; - return returnValue; - } - - -/** -This function is only for use by Software Install. - -ForceRegistration allows Software Install to provide a list of application information that need to be -included in apparc's application list even if they have not been marked as installed in the SISRegistry. -The force registered applications will be removed from application list once Software Install notifies -the end of the installation by calling UpdateApplist. - - -@param aAppsData The list of application information needs to be added to application list. Apparc don't take the - ownership of this array. -@return A standard error code. -@publishedAll -@released -*/ - -EXPORT_C TInt RApaLsSession::ForceRegistration(const RPointerArray& aForceRegAppsInfo) -{ - //If there are no applications to update, just return. - if(aForceRegAppsInfo.Count()==0) - return(KErrNone); - - //Create a buffer with the application uid and corresponding action information. - CBufFlat* buffer = 0; - TRAPD(err, buffer = CreateForceRegAppInfoBufferL(aForceRegAppsInfo)); - if (err) - return err; - - TPtr8 ptr = buffer->Ptr(0); - const TInt returnValue=SendReceiveWithReconnect(EAppListServForceRegistration,TIpcArgs(&ptr)); - delete buffer; - return returnValue; -} - - -/* - * Creates a buffer for applications uids and action information. - */ -CBufFlat* RApaLsSession::CreateAppUpdateInfoBufferL(RArray& aAppUpdateInfo) - { - TInt count=aAppUpdateInfo.Count(); - TInt requiredBufferSize=sizeof(TInt32)+(count*sizeof(TApaAppUpdateInfo)); //Size of count + size of TApaAppUpdateInfo objects - - CBufFlat* const buffer = CBufFlat::NewL(requiredBufferSize); - CleanupStack::PushL(buffer); - buffer->ExpandL(0,requiredBufferSize); - RBufWriteStream writeStream; - writeStream.Open(*buffer); - CleanupClosePushL(writeStream); - - //Write number of TApaAppUpdateInfo objects to stream. - writeStream.WriteUint32L(count); - - for(TInt index=0;index& aForceRegAppsInfo) - { - TInt count=aForceRegAppsInfo.Count(); - TInt requiredBufferSize=sizeof(TInt32); //For count - - for(TInt index=0; indexExpandL(0,requiredBufferSize); - - RBufWriteStream writeStream; - writeStream.Open(*buffer); - CleanupClosePushL(writeStream); - - //Write count to stream. - writeStream.WriteUint32L(count); - - for(TInt index=0;index& aUpdatedAppsInfo) - { - const TInt KDefaultUpdateAppEntries=10; - - //Create a buffer with default size - TInt sizeRequired=(KDefaultUpdateAppEntries * sizeof(TApaAppUpdateInfo)) + 2; - CBufFlat* buffer=CBufFlat::NewL(sizeRequired); - CleanupStack::PushL(buffer); - buffer->ExpandL(0, sizeRequired); - TPtr8 ptr = buffer->Ptr(0); - - TPckgBuf pckg(sizeRequired); - - //pass the buffer and size of the buffer. - TInt returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); - - //If the size of the buffer is not enough expand it to required size and pass it again. - if(returnValue==KErrOverflow) - { - buffer->ExpandL(0, sizeRequired); - returnValue=SendReceiveWithReconnect(EAppListUpdatedAppsInfo,TIpcArgs(&ptr, &pckg)); - } - - if(returnValue==KErrNone) - { - RBufReadStream readStream; - readStream.Open(*buffer); - - //Read count from the stream - TInt count=readStream.ReadUint32L(); - - //Read updated applications information and add it to array - for(TInt index=0; index>appUpdateInfo; - aUpdatedAppsInfo.AppendL(appUpdateInfo); - } - } - - CleanupStack::PopAndDestroy(buffer); - return returnValue; - } - -#endif - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apgrfx/apgcommonutils.h --- a/appfw/apparchitecture/apgrfx/apgcommonutils.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -// Copyright (c) 2010 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 __APGCOMMONUTILS_H__ -#define __APGCOMMONUTILS_H__ - -#include -#include -#include -#include - - -/** -Implementation of the MStreamBuf interface that throws away all -data written to it but keeps track of how many bytes have been -written to it. It does not support reading. -*/ -class TNullBuf : public MStreamBuf - { -public: - inline TNullBuf(); - inline TUint BytesWritten(); -private: - inline virtual void DoWriteL(const TAny* aPtr,TInt aLength); -private: - TUint iBytesWritten; - }; - -/** -A write stream that throws away all its input, but keeps track of how many -bytes have been written to it. It is used for determining the amount of -memory needed to store externalised objects. -*/ -class RNullWriteStream : public RWriteStream - { -public: - inline RNullWriteStream(); - inline TUint BytesWritten(); -private: - TNullBuf iSink; - }; - -inline TNullBuf::TNullBuf() : iBytesWritten(0) - { - } - -inline TUint TNullBuf::BytesWritten() - { - return iBytesWritten; - } - -inline void TNullBuf::DoWriteL(const TAny*,TInt aLength) - { - iBytesWritten += aLength; - } - -inline RNullWriteStream::RNullWriteStream() - { - Attach(&iSink); - } - -inline TUint RNullWriteStream::BytesWritten() - { - return iSink.BytesWritten(); - } - -template -TInt GetObjectSizeL(T* aObject) - { - TInt size(0); - if(aObject) - { - RNullWriteStream nullstream; - CleanupClosePushL(nullstream); - nullstream << *aObject; - nullstream.CommitL(); - size = nullstream.BytesWritten(); - CleanupStack::PopAndDestroy(&nullstream); - return size; - } - return -1; - } - -#endif //__APGCOMMONUTILS_H__ diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apgrfx/apgrecog.cpp --- a/appfw/apparchitecture/apgrfx/apgrecog.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apgrfx/apgrecog.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -460,7 +460,7 @@ /** Tests whether data taken from a named file has the specified -data (MIME) type. + * data (MIME) type. @param aName The name of the file containing the data. @param aBuffer A buffer containing data taken from the specified file; Provide preferred size of buffer diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apgrfx/apgupdate.cpp --- a/appfw/apparchitecture/apgrfx/apgupdate.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -// Copyright (c) 2010 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: -// apgupdate.cpp -// - -#include "apgupdate.h" - -/** - * Default Constructor. - */ -EXPORT_C TApaAppUpdateInfo::TApaAppUpdateInfo() - { - - } - -/** - * Constructor for TApaAppUpdateInfo. - * @param aAppUid Application UID. - * @param aAction Action performed by installer on the application. - */ -EXPORT_C TApaAppUpdateInfo::TApaAppUpdateInfo(TUid aAppUid, TApaAppUpdateInfo::TApaAppAction aAction): - iAppUid(aAppUid), - iAction(aAction) - { - - } - -EXPORT_C void TApaAppUpdateInfo::InternalizeL(RReadStream& aReadStream) - { - iAppUid.iUid=aReadStream.ReadInt32L(); - iAction=TApaAppAction(aReadStream.ReadInt32L()); - } - -EXPORT_C void TApaAppUpdateInfo::ExternalizeL(RWriteStream& aWriteStream) const - { - aWriteStream.WriteInt32L(iAppUid.iUid); - aWriteStream.WriteInt32L(iAction); - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplappinforeader.cpp --- a/appfw/apparchitecture/aplist/aplappinforeader.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplappinforeader.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ - // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -28,8 +28,6 @@ #include "../apgrfx/APGSTD.H" // EPanicNullPointer #include "../apgrfx/apsecutils.h" // CApaSecurityUtils - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK const TUint KResourceOffsetMask = 0xFFFFF000; _LIT(KAppBinaryPathAndExtension, "\\sys\\bin\\.exe"); @@ -37,9 +35,6 @@ // The 2nd UID that defines a resource file as being an application registration resource file. const TUid KUidAppRegistrationFile = {0x101F8021}; -#endif - - // // Local functions @@ -47,16 +42,14 @@ extern void CleanupServiceArray(TAny* aServiceArray); // Implemented in AplAppList.cpp - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK // ApaUtils TBool ApaUtils::TypeUidIsForRegistrationFile(const TUidType& aUidType) - { // static - return (aUidType[1].iUid==KUidAppRegistrationFile.iUid || - aUidType[0].iUid==KUidPrefixedNonNativeRegistrationResourceFile); - } -#endif + { // static + return (aUidType[1].iUid==KUidAppRegistrationFile.iUid || + aUidType[0].iUid==KUidPrefixedNonNativeRegistrationResourceFile); + } + // // CApaAppInfoReader @@ -70,6 +63,29 @@ // instead of having to copy the object (copying could be expensive for the methods // of this class that need to return arrays). + +CApaAppInfoReader* CApaAppInfoReader::NewL(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid) + { + CApaAppInfoReader* self = new(ELeave) CApaAppInfoReader(aFs, aRegistrationFileName, aAppUid); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } + +CApaAppInfoReader::CApaAppInfoReader(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid) : + iFs(aFs), + iAppUid(aAppUid), + iTimeStamp(0), + iDefaultScreenNumber(0), + iNonMbmIconFile(EFalse), + iLocalisableResourceFileTimeStamp(0), + iApplicationLanguage(ELangNone), + iIndexOfFirstOpenService(KErrNotFound), + iRegistrationFileName(aRegistrationFileName) + { + } + void CApaAppInfoReader::ConstructL() { iIconLoader = CApaIconLoader::NewL(iFs); @@ -87,9 +103,7 @@ delete iViewDataArray; delete iOwnedFileArray; delete iIconFileName; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK delete iLocalisableResourceFileName; -#endif if (iServiceArray) { @@ -113,6 +127,16 @@ return iAppBinaryUidType; } +TTime CApaAppInfoReader::TimeStamp() const + { + return iTimeStamp; + } + +TTime CApaAppInfoReader::IconFileTimeStamp() const + { + return iIconFileTimeStamp; + } + void CApaAppInfoReader::Capability(TDes8& aCapabilityBuf) const { TApaAppCapabilityBuf buf(iCapability); @@ -176,7 +200,18 @@ return iNonMbmIconFile; } +HBufC* CApaAppInfoReader::LocalisableResourceFileName() + { + HBufC* localisableResourceFileName = iLocalisableResourceFileName; + iLocalisableResourceFileName = NULL; // ownership transferred to caller + return localisableResourceFileName; + } +TTime CApaAppInfoReader::LocalisableResourceFileTimeStamp() const + { + return iLocalisableResourceFileTimeStamp; + } + TLanguage CApaAppInfoReader::AppLanguage() const { return iApplicationLanguage; @@ -204,518 +239,6 @@ return iconLoader; } -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -CApaAppInfoReader::CApaAppInfoReader(RFs& aFs, const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScr) : - iFs(aFs), - iDefaultScreenNumber(0), - iNonMbmIconFile(EFalse), - iApplicationLanguage(ELangNone), - iIndexOfFirstOpenService(KErrNotFound), - iAppInfo(aAppInfo), - iScr(aScr) - { - } - -CApaAppInfoReader* CApaAppInfoReader::NewL(RFs& aFs, const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScr) - { - CApaAppInfoReader* self = new(ELeave) CApaAppInfoReader(aFs, aAppInfo, aScr); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -/* - * Reads the application information from SCR. - */ -TBool CApaAppInfoReader::ReadL() - { - ReadAppRegistrationInfoL(); - ReadLocalisationInfoL(); -#ifdef APPARC_SHOW_TRACE - DisplayAppInfo(); -#endif - return ETrue; - } - -#ifdef APPARC_SHOW_TRACE -void CApaAppInfoReader::DisplayAppInfo() - { - RDebug::Print(_L("[Apparc] Application UID: %X"), iAppUid.iUid); - if(iAppBinaryFullName) - RDebug::Print(_L("[Apparc] AppBinary Name: %S"), iAppBinaryFullName); - - RDebug::Print(_L("[Apparc] Embeddability: %d"), iCapability.iEmbeddability); - RDebug::Print(_L("[Apparc] Hidden: %d"), iCapability.iAppIsHidden); - RDebug::Print(_L("[Apparc] NewFile: %d"), iCapability.iSupportsNewFile); - RDebug::Print(_L("[Apparc] Launch in Foreground: %d"), iCapability.iLaunchInBackground); - RDebug::Print(_L("[Apparc] Attributes: %X"), iCapability.iAttributes); - RDebug::Print(_L("[Apparc] Group Name: %S"), &iCapability.iGroupName); - - RDebug::Print(_L("[Apparc] Default Screen Number: %d"), iDefaultScreenNumber); - RDebug::Print(_L("[Apparc] Application Language: %d"), iApplicationLanguage); - - if(iCaption) - RDebug::Print(_L("[Apparc] Short Cpation: %S"), iCaption); - - if(iShortCaption) - RDebug::Print(_L("[Apparc] Caption: %S"), iShortCaption); - - if(iServiceArray) - { - for(TInt index=0;indexCount();index++) - { - TApaAppServiceInfo serviceInfo=(*iServiceArray)[index]; - RDebug::Print(_L("[Apparc] Service Uid: %X"), serviceInfo.Uid().iUid); - - for(TInt j=0;jCount();index++) - { - CApaAppViewData* view= (*iViewDataArray)[index]; - RDebug::Print(_L("[Apparc] ViewID: %X"), view->Uid().iUid); - //RDebug::Print(_L("[Apparc] View Caption: %s"), view->Caption()); - //RDebug::Print(_L("[Apparc] View Icon File: %s"), view->IconFileName()); - if(view->NonMbmIconFile()) - RDebug::Print(_L("[Apparc] Its Non MBM icon file")); - RDebug::Print(_L("[Apparc] Screen Mode: %d"), view->ScreenMode()); - } - } - } - -#endif - - -void CApaAppInfoReader::ReadAppRegistrationInfoL() - { - //Get 3rd UID of the application - iAppUid=iAppInfo.AppUid(); - - iCapability.iAttributes=iAppInfo.Attributes(); - TUid firstUid(KExecutableImageUid); - TUid middleUid(KUidApp); - - //If the application is non-native, first UID should be Null UID and second uid is the non-native application type(i.e type ID of java, widget etc.). - if (iCapability.iAttributes & TApaAppCapability::ENonNative) - { - firstUid=KNullUid; - middleUid.iUid=iAppInfo.TypeId(); - } - else if (iCapability.iAttributes & TApaAppCapability::EBuiltAsDll) - { - User::Leave(KErrNotSupported); // legacy dll-style app - } - - iAppBinaryUidType=TUidType(firstUid, middleUid, iAppUid); - - //If executable file name is not given then just leave. - if(iAppInfo.AppFile().Length() ==0 ) - User::Leave(KErrGeneral); - - //Absolute path of the executable file is stored in iAppBinaryFullName - iAppBinaryFullName=iAppInfo.AppFile().AllocL(); - -// //Check whether the binary exists. - /*RLibrary::TInfoBuf infoBuf; - TInt ret = RLibrary::GetInfo(*iAppBinaryFullName, infoBuf); - User::LeaveIfError(ret); - - if(infoBuf().iUids[2]!=iAppUid && iAppBinaryUidType[1]==KUidApp) - User::Leave(KErrNotFound);*/ - - iCapability.iAppIsHidden=iAppInfo.Hidden(); - iCapability.iEmbeddability = static_cast(iAppInfo.Embeddability()); - iCapability.iLaunchInBackground=iAppInfo.Launch(); - iCapability.iSupportsNewFile=iAppInfo.NewFile(); - - iDefaultScreenNumber=iAppInfo.DefaultScreenNumber(); - - iCapability.iGroupName=iAppInfo.GroupName(); - - RPointerArray appOpaqueData=iAppInfo.AppOpaqueData(); - ASSERT(!(appOpaqueData.Count()>1)); - - if(appOpaqueData.Count()>0) - { - iOpaqueData=appOpaqueData[0]->OpaqueData().AllocL(); - } - else - { - //If opaque data is not available, create an empty object and assign to iOpaqueData - iOpaqueData=HBufC8::NewL(0); - } - - ReadServiceInfoL(iAppInfo.ServiceArray()); - ReadOwnedFilesInfoL(iAppInfo.OwnedFileArray()); - } - - -/* - * Reads service information of the application. - */ -void CApaAppInfoReader::ReadServiceInfoL(const RPointerArray& aServiceInfo) - { - TInt serviceCount=aServiceInfo.Count(); - - if (serviceCount > 0) - { - iServiceArray = new(ELeave) CArrayFixFlat(4); - } - else - { - //if service information is not avaliable, just return. - return; - } - - //Read application service info one at a time and store in iServiceArray. - for (TInt index=0;indexUid(); - - CArrayFixFlat* mimeTypesSupported = new(ELeave) CArrayFixFlat(5); - CleanupStack::PushL(mimeTypesSupported); - - //Read supported mime types of a service - ReadMimeTypesSupportedL(aServiceInfo[index]->DataTypes(), *mimeTypesSupported); - - RPointerArray serviceOpaqueData=aServiceInfo[index]->OpaqueData(); - //SCR schould give atmost only one opaque data for a service. - ASSERT(!(serviceOpaqueData.Count()>1)); - - HBufC8* opaqueData=NULL; - if(serviceOpaqueData.Count()>0) - { - opaqueData= serviceOpaqueData[0]->OpaqueData().AllocL(); - } - else - { - //If opaque data is not available, create an empty object and assign to opaqueData - opaqueData=HBufC8::NewL(0); - } - - TApaAppServiceInfo serviceInfo(serviceUid, mimeTypesSupported,opaqueData); // takes ownership of mimeTypesSupported and opaqueData - CleanupStack::PushL(opaqueData); - iServiceArray->AppendL(serviceInfo); - CleanupStack::Pop(2, mimeTypesSupported); - - //If service UID is KOpenServiceUid and it is first open service then initialize iIndexOfFirstOpenService - if ((serviceUid == KOpenServiceUid) && (iIndexOfFirstOpenService < 0)) - iIndexOfFirstOpenService = iServiceArray->Count() - 1; - } - } - - -/* - * Reads supported mime types and its handling priorities of a service - */ -void CApaAppInfoReader::ReadMimeTypesSupportedL(const RPointerArray& dataTypes, CArrayFixFlat& aMimeTypesSupported) - { - - const TInt dataTypeArraySize = dataTypes.Count(); - //if there are no data types available, just return. - if (dataTypeArraySize <= 0) - return; - - for (TInt i=0; i < dataTypeArraySize; i++) - { - TDataTypePriority priority = static_cast(dataTypes[i]->Priority()); - - //Check for data priority of UnTrusted apps however the trusted apps will not have any restrictions - //over the data priority. - //If an untrusted app has write device data capability (i.e. still has priority = KDataTypePrioritySystem), - //do not restrict to KDataTypeUnTrustedPriorityThreshold - if (priority > KDataTypeUnTrustedPriorityThreshold || priority == KDataTypePrioritySystem ) - { - ReadAppSecurityInfo(); - - if (priority == KDataTypePrioritySystem) - { - // Check that the app has capability WriteDeviceData - if (!iHasWriteDeviceDataCap) - priority = KDataTypePriorityNormal; - } - else - { - //data priority for UnTrusted apps would be capped if it is greater than the threshold priority i.e, KMaxTInt16. - //Component ID is zero if the application is shipped with phone. - TBool isInstalledApp=(iScr.GetComponentIdForAppL(iAppBinaryUidType[2])!=0); - if (!iIsSidTrusted && isInstalledApp) - { - //if application sid is in unprotected range and the applciation is instaleld with - //one of the installers after phone marketed, then priority needs to be downgraded. - priority = KDataTypeUnTrustedPriorityThreshold; - } - } - } - - TBuf8 buf; - //Convert 16-bit descriptor to 8-bit descriptor. - buf.Copy(dataTypes[i]->Type()); - - TDataType dataType(buf); - TDataTypeWithPriority dataTypeWithPriority(dataType, priority); - aMimeTypesSupported.AppendL(dataTypeWithPriority); - } - } - - -/* - * Reads owned files information. - */ -void CApaAppInfoReader::ReadOwnedFilesInfoL(const RPointerArray& aOwnedFiles) - { - const TInt fileOwnershipArraySize = aOwnedFiles.Count(); - - //if owned files information is not avaliable, just return. - if (fileOwnershipArraySize <= 0) - return; - - iOwnedFileArray = new(ELeave) CDesCArraySeg(fileOwnershipArraySize); - - for (TInt index=0; index < fileOwnershipArraySize; index++) - { - HBufC *fileowned=aOwnedFiles[index]->Des().AllocL(); - CleanupStack::PushL(fileowned); - iOwnedFileArray->AppendL(*fileowned); //takes the ownership of fileowned - CleanupStack::Pop(fileowned); - } - } - -void CApaAppInfoReader::ReadLocalisationInfoL() - { - RPointerArray localisationInfo; - localisationInfo=iAppInfo.LocalizableAppInfoList(); - ASSERT(localisationInfo.Count() <= 1); - - if(localisationInfo.Count()<=0) - { - //If localisable information is not avaialable then assign default icons. - TRAP_IGNORE(iIcons = CApaAppIconArray::NewDefaultIconsL()); - return; - } - - //Group name provided in localisation file takes precedence over group name provided in registration file name. - const TDesC& groupName=localisationInfo[0]->GroupName(); - - if(groupName.Length()>0) - { - iCapability.iGroupName=groupName; - } - - //Get application language for current phone language. - iApplicationLanguage=localisationInfo[0]->ApplicationLanguage(); - - const Usif::CCaptionAndIconInfo* captionIconInfo=localisationInfo[0]->CaptionAndIconInfo(); - - TBool useDefaultIcons=ETrue; - - if(captionIconInfo!=NULL) - { - iShortCaption=localisationInfo[0]->ShortCaption().AllocL(); - if(iShortCaption && iShortCaption->Length() == 0) - { - delete iShortCaption; - iShortCaption=NULL; - } - - iCaption=captionIconInfo->Caption().AllocL(); - if(iCaption && iCaption->Length() == 0) - { - delete iCaption; - iCaption=NULL; - } - - iNumOfAppIcons=captionIconInfo->NumOfAppIcons(); - - if(captionIconInfo->IconFileName().Length()>0) - iIconFileName=captionIconInfo->IconFileName().AllocL(); - - - if (iIconFileName && iIconFileName->Length()) - { - if (iFs.IsValidName(*iIconFileName)) - { - RFile file; - TInt fileSize( 0 ); - TInt err= file.Open(iFs, *iIconFileName, EFileShareReadersOnly ); - - //If the icon file does not exist, use default icons. - if(err==KErrNone) - { - User::LeaveIfError(err); - CleanupClosePushL( file ); - User::LeaveIfError( file.Size( fileSize ) ); - CleanupStack::PopAndDestroy(&file);//file - - if ( fileSize > 0 ) - { - if(FileIsMbmWithGenericExtensionL(*iIconFileName)) - { - if (iNumOfAppIcons > 0) - { - //Icon file is valid and contains mbm icons. - iIcons = CApaAppIconArray::NewAppIconsL(iNumOfAppIcons, *iIconFileName, *iIconLoader); - useDefaultIcons=EFalse; - } - } - else - { - //If the icon file is not a mbm icon file then the file is treated as a non-mbm file. - iNonMbmIconFile = ETrue; - useDefaultIcons=EFalse; - } - - } - } - } - else - { - //If the filename is not a valid name then the file is treated as a non-mbm file. - iNonMbmIconFile = ETrue; - useDefaultIcons=EFalse; - } - } - } - - if(useDefaultIcons) - TRAP_IGNORE(iIcons = CApaAppIconArray::NewDefaultIconsL()); - - ReadViewInfoL(localisationInfo[0]->ViewDataList()); - } - -/* - * Read application view information. - */ - -void CApaAppInfoReader::ReadViewInfoL(const RPointerArray& aViewData) - { - const TInt numOfViews = aViewData.Count(); - - //if view information not avaliable, just return. - if(numOfViews <=0 ) - return; - - iViewDataArray = new(ELeave) CArrayPtrFlat(numOfViews); - - //Read one view information at time and add it iViewDataArray - for(TInt view = 0; view < numOfViews; ++view) - { - CApaAppViewData* viewData = CApaAppViewData::NewLC(); - - const TUid viewUid = aViewData[view]->Uid(); - viewData->SetUid(viewUid); - - const TInt screenMode = {aViewData[view]->ScreenMode()}; - viewData->SetScreenMode(screenMode); - - const Usif::CCaptionAndIconInfo* viewCaptionIconInfo=aViewData[view]->CaptionAndIconInfo(); - - if(viewCaptionIconInfo!=NULL) - { - viewData->SetCaptionL(viewCaptionIconInfo->Caption()); - - const TInt numOfViewIcons = viewCaptionIconInfo->NumOfAppIcons(); - viewData->SetNumOfViewIcons(numOfViewIcons); - - TPtrC viewIconFile = viewCaptionIconInfo->IconFileName(); - - if (viewIconFile.Length()) - { - viewData->SetIconFileNameL(viewIconFile); - - if (iFs.IsValidName(viewIconFile)) - { - if(!FileIsMbmWithGenericExtensionL(viewIconFile)) - viewData->SetNonMbmIconFile(ETrue); - } - else //If the filename is not a valid name then the file is treated as a non-mbm file. - viewData->SetNonMbmIconFile(ETrue); - } - else - { - viewIconFile.Set(KNullDesC); - if (numOfViewIcons > 0 && iIconFileName) - viewIconFile.Set(*iIconFileName); // default to app icon filename - } - - if (numOfViewIcons > 0 && iFs.IsValidName(viewIconFile) && FileIsMbmWithGenericExtensionL(viewIconFile)) - { - CApaAppIconArray* iconArray = CApaAppIconArray::NewViewIconsL(numOfViewIcons, viewIconFile, *iIconLoader); - viewData->SetIconArray(iconArray); - iconArray = NULL; - } - } - - iViewDataArray->AppendL(viewData); - CleanupStack::Pop(viewData); - } - } - -#else - -CApaAppInfoReader* CApaAppInfoReader::NewL(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid) - { - CApaAppInfoReader* self = new(ELeave) CApaAppInfoReader(aFs, aRegistrationFileName, aAppUid); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -CApaAppInfoReader::CApaAppInfoReader(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid) : - iFs(aFs), - iAppUid(aAppUid), - iTimeStamp(0), - iDefaultScreenNumber(0), - iNonMbmIconFile(EFalse), - iLocalisableResourceFileTimeStamp(0), - iApplicationLanguage(ELangNone), - iIndexOfFirstOpenService(KErrNotFound), - iRegistrationFileName(aRegistrationFileName) - { - } - -TTime CApaAppInfoReader::TimeStamp() const - { - return iTimeStamp; - } - -TTime CApaAppInfoReader::IconFileTimeStamp() const - { - return iIconFileTimeStamp; - } - -HBufC* CApaAppInfoReader::LocalisableResourceFileName() - { - HBufC* localisableResourceFileName = iLocalisableResourceFileName; - iLocalisableResourceFileName = NULL; // ownership transferred to caller - return localisableResourceFileName; - } - -TTime CApaAppInfoReader::LocalisableResourceFileTimeStamp() const - { - return iLocalisableResourceFileTimeStamp; - } - // reads as much info as it can // at least captions and icons must be setup on return from this method (using defaults if necessary) TBool CApaAppInfoReader::ReadL() @@ -838,6 +361,54 @@ iAppBinaryFullName = parse.FullName().AllocL(); } + +HBufC* CApaAppInfoReader::CreateFullIconFileNameL(const TDesC& aIconFileName) const + { + HBufC* filename = NULL; + if (aIconFileName.Length() == 0) + return NULL; + /* + * aIconFileName may contain a valid string in some format (for eg. URI format) other than path to a regular file on disk + * and that can be a mbm or non-mbm file. Such a filename will be reported as invalid filename by iFs.IsValidName() method. + * aIconFileName will be returned since it is a valid string. + */ + if(!iFs.IsValidName(aIconFileName)) + { + filename = aIconFileName.AllocL(); + return filename; + } + + TParsePtrC parsePtr(aIconFileName); + if (parsePtr.IsWild() || !parsePtr.PathPresent() || !parsePtr.NamePresent()) + return NULL; + + // check for fully qualified icon filename + if (parsePtr.DrivePresent() && BaflUtils::FileExists(iFs, aIconFileName)) + filename = aIconFileName.AllocL(); + else + { + // check for icon file on same drive as localisable resource file + TParse parse; + TPtrC localisableResourceFileDrive = TParsePtrC(*iLocalisableResourceFileName).Drive(); + TInt ret = parse.SetNoWild(localisableResourceFileDrive, &aIconFileName, NULL); + if (ret == KErrNone && BaflUtils::FileExists(iFs, parse.FullName())) + filename = parse.FullName().AllocL(); + else + { + TPtrC registrationFileDrive = TParsePtrC(iRegistrationFileName).Drive(); + if (TInt(TDriveUnit(registrationFileDrive)) != TInt(TDriveUnit(localisableResourceFileDrive))) + { + // check for icon file on same drive as registration file + ret = parse.SetNoWild(registrationFileDrive, &aIconFileName, NULL); + if (ret == KErrNone && BaflUtils::FileExists(iFs, parse.FullName())) + filename = parse.FullName().AllocL(); + } + } + } + + return filename; + } + void CApaAppInfoReader::ReadLocalisableInfoL(const CResourceFile& aResourceFile, TUint aResourceId, TBool& aUseDefaultIcons) { RResourceReader resourceReader; @@ -999,6 +570,68 @@ CleanupStack::PopAndDestroy(&resourceReader); } +/*An MBM file may have a generic icon extension. In this case, as a way to check whether the file is an MBM one, +it is necessary to read the content of the fist four 32bit words of it and find out whether these words correspond to +KWriteonceFileStoreUid, KMultiBitmapFileImageUid, zero and KMultiBitmapFileImageChecksum respectively (defined in graphics/gditools/bmconv/bmconv.h). +So the file is opened and the first 4 32 bit words are extracted and compared with the header information of standard MBM file. +If they match, the function returns ETrue, else it returns EFalse */ +TBool CApaAppInfoReader::FileIsMbmWithGenericExtensionL(const TDesC& aFileName) + { + if (aFileName.Length() > 0) + { + //open a file in Share mode - this will allow other methods to access it too + RFile file; + RFs fs; + User::LeaveIfError(fs.Connect()); + CleanupClosePushL(fs); + User::LeaveIfError(file.Open(fs,aFileName,EFileShareReadersOnly)); + //this is done beacuse the file can also be accessed by applist at the same time + //buffer stores the 16 bytes of the file + CleanupClosePushL(file); + TBuf8<16> buffer; + User::LeaveIfError(file.Read(buffer,16)); + CleanupStack::PopAndDestroy();//file + CleanupStack::PopAndDestroy(&fs);//fs + //we use a constant pointer to the buffer to read header info + TPtrC8 filePointer(buffer); + + /*The first 16 bytes of an MBM file are the same for any generic MBM file. + These are : + KWriteOnceFileStoreUid = 0x10000037(Emulator MBM file) 0x10000041(ROM image) + KMultiBitMapFileImageUid = 0x10000042(Emulator MBM file) 0x00000001(ROM image) + Zero = 0x00000000(Emulator MBM file) 0x0000000C(ROM image) + checksum = 0x47396439(Emulator MBM file) 0x10000040(ROM image) + The first 16 bytes of the given file is compared with these standard values to ascertain it is MBM file*/ + if((filePointer[3]==0x10)&&(filePointer[2]==0x00)&&(filePointer[1]==0x00)&&(filePointer[0]==0x37)) + {//KWriteOnceFileStoreUid = 0x10000037 + if((filePointer[7]==0x10)&&(filePointer[6]==0x00)&&(filePointer[5]==0x00)&&(filePointer[4]==0x42)) + {//KMultiBitMapFileImageUid = 0x10000042 + if((filePointer[11]==0x00)&&(filePointer[10]==0x00)&&(filePointer[9]==0x00)&&(filePointer[8]==0x00)) + {//Zero = 0x00000000) + if((filePointer[15]==0x47)&&(filePointer[14]==0x39)&&(filePointer[13]==0x64)&&(filePointer[12]==0x39)) + {//checksum = 0x47396439 + return ETrue; + } + } + } + } + //Else Check for ROM Image MBM file's header + else if((filePointer[3]==0x10)&&(filePointer[2]==0x00)&&(filePointer[1]==0x00)&&(filePointer[0]==0x41)) + {//KWriteOnceFileStoreUid = 0x10000041 + if((filePointer[7]==0x00)&&(filePointer[6]==0x00)&&(filePointer[5]==0x00)&&(filePointer[4]==0x01)) + {//KMultiBitMapFileImageUid = 0x00000001 + if((filePointer[11]==0x00)&&(filePointer[10]==0x00)&&(filePointer[9]==0x00)&&(filePointer[8]==0x0C)) + {//Zero = 0x0000000C) + if((filePointer[15]==0x10)&&(filePointer[14]==0x00)&&(filePointer[13]==0x00)&&(filePointer[12]==0x40)) + {//checksum = 0x10000040 + return ETrue; + } + } + } + } + } + return EFalse; + } HBufC8* CApaAppInfoReader::ReadOpaqueDataL(TUint aResourceId, const CResourceFile* aRegistrationFile, CResourceFile* aLocalisableResourceFile) { // static @@ -1211,119 +844,6 @@ } } - -HBufC* CApaAppInfoReader::CreateFullIconFileNameL(const TDesC& aIconFileName) const - { - HBufC* filename = NULL; - if (aIconFileName.Length() == 0) - return NULL; - /* - * aIconFileName may contain a valid string in some format (for eg. URI format) other than path to a regular file on disk - * and that can be a mbm or non-mbm file. Such a filename will be reported as invalid filename by iFs.IsValidName() method. - * aIconFileName will be returned since it is a valid string. - */ - if(!iFs.IsValidName(aIconFileName)) - { - filename = aIconFileName.AllocL(); - return filename; - } - - TParsePtrC parsePtr(aIconFileName); - if (parsePtr.IsWild() || !parsePtr.PathPresent() || !parsePtr.NamePresent()) - return NULL; - - // check for fully qualified icon filename - if (parsePtr.DrivePresent() && BaflUtils::FileExists(iFs, aIconFileName)) - filename = aIconFileName.AllocL(); - else - { - // check for icon file on same drive as localisable resource file - TParse parse; - TPtrC localisableResourceFileDrive = TParsePtrC(*iLocalisableResourceFileName).Drive(); - TInt ret = parse.SetNoWild(localisableResourceFileDrive, &aIconFileName, NULL); - if (ret == KErrNone && BaflUtils::FileExists(iFs, parse.FullName())) - filename = parse.FullName().AllocL(); - else - { - TPtrC registrationFileDrive = TParsePtrC(iRegistrationFileName).Drive(); - if (TInt(TDriveUnit(registrationFileDrive)) != TInt(TDriveUnit(localisableResourceFileDrive))) - { - // check for icon file on same drive as registration file - ret = parse.SetNoWild(registrationFileDrive, &aIconFileName, NULL); - if (ret == KErrNone && BaflUtils::FileExists(iFs, parse.FullName())) - filename = parse.FullName().AllocL(); - } - } - } - - return filename; - } - -#endif - -/*An MBM file may have a generic icon extension. In this case, as a way to check whether the file is an MBM one, -it is necessary to read the content of the fist four 32bit words of it and find out whether these words correspond to -KWriteonceFileStoreUid, KMultiBitmapFileImageUid, zero and KMultiBitmapFileImageChecksum respectively (defined in graphics/gditools/bmconv/bmconv.h). -So the file is opened and the first 4 32 bit words are extracted and compared with the header information of standard MBM file. -If they match, the function returns ETrue, else it returns EFalse */ -TBool CApaAppInfoReader::FileIsMbmWithGenericExtensionL(const TDesC& aFileName) - { - if (aFileName.Length() > 0) - { - //open a file in Share mode - this will allow other methods to access it too - RFile file; - RFs fs; - User::LeaveIfError(fs.Connect()); - CleanupClosePushL(fs); - User::LeaveIfError(file.Open(fs,aFileName,EFileShareReadersOnly)); - //this is done beacuse the file can also be accessed by applist at the same time - //buffer stores the 16 bytes of the file - CleanupClosePushL(file); - TBuf8<16> buffer; - User::LeaveIfError(file.Read(buffer,16)); - CleanupStack::PopAndDestroy();//file - CleanupStack::PopAndDestroy(&fs);//file, fs - //we use a constant pointer to the buffer to read header info - TPtrC8 filePointer(buffer); - - /*The first 16 bytes of an MBM file are the same for any generic MBM file. - These are : - KWriteOnceFileStoreUid = 0x10000037(Emulator MBM file) 0x10000041(ROM image) - KMultiBitMapFileImageUid = 0x10000042(Emulator MBM file) 0x00000001(ROM image) - Zero = 0x00000000(Emulator MBM file) 0x0000000C(ROM image) - checksum = 0x47396439(Emulator MBM file) 0x10000040(ROM image) - The first 16 bytes of the given file is compared with these standard values to ascertain it is MBM file*/ - if((filePointer[3]==0x10)&&(filePointer[2]==0x00)&&(filePointer[1]==0x00)&&(filePointer[0]==0x37)) - {//KWriteOnceFileStoreUid = 0x10000037 - if((filePointer[7]==0x10)&&(filePointer[6]==0x00)&&(filePointer[5]==0x00)&&(filePointer[4]==0x42)) - {//KMultiBitMapFileImageUid = 0x10000042 - if((filePointer[11]==0x00)&&(filePointer[10]==0x00)&&(filePointer[9]==0x00)&&(filePointer[8]==0x00)) - {//Zero = 0x00000000) - if((filePointer[15]==0x47)&&(filePointer[14]==0x39)&&(filePointer[13]==0x64)&&(filePointer[12]==0x39)) - {//checksum = 0x47396439 - return ETrue; - } - } - } - } - //Else Check for ROM Image MBM file's header - else if((filePointer[3]==0x10)&&(filePointer[2]==0x00)&&(filePointer[1]==0x00)&&(filePointer[0]==0x41)) - {//KWriteOnceFileStoreUid = 0x10000041 - if((filePointer[7]==0x00)&&(filePointer[6]==0x00)&&(filePointer[5]==0x00)&&(filePointer[4]==0x01)) - {//KMultiBitMapFileImageUid = 0x00000001 - if((filePointer[11]==0x00)&&(filePointer[10]==0x00)&&(filePointer[9]==0x00)&&(filePointer[8]==0x0C)) - {//Zero = 0x0000000C) - if((filePointer[15]==0x10)&&(filePointer[14]==0x00)&&(filePointer[13]==0x00)&&(filePointer[12]==0x40)) - {//checksum = 0x10000040 - return ETrue; - } - } - } - } - } - return EFalse; - } - // This method can be used to check whether app has a WriteDeviceCap // and its sid is trusted void CApaAppInfoReader::ReadAppSecurityInfo() @@ -1405,7 +925,7 @@ return ret; } else - aUseCache = ETrue; + aUseCache = ETrue; // if filename in array, get the next index TInt ret = 0; @@ -1443,7 +963,6 @@ // Leaves if an error occurs while trying to populate aIcons or sort icons TBool CApaIconLoader::LoadIconsL(TInt aNumOfIcons, const TDesC& aMbmFileName, CArrayPtr& aIcons) { - TEntry entry; TInt error=iFs.Entry(aMbmFileName,entry); if (error!=KErrNone) @@ -1466,8 +985,7 @@ CApaMaskedBitmap* bitmap = CApaMaskedBitmap::NewLC(); fileIndex = IconIndexL(aMbmFileName, useCache); User::LeaveIfError(bitmap->Load(mbmFile, 2*fileIndex)); - User::LeaveIfError((bitmap->Mask())->Load(mbmFile,2*fileIndex+1)); - + User::LeaveIfError((bitmap->Mask())->Load(mbmFile,2*fileIndex+1)); aIcons.AppendL(bitmap); CleanupStack::Pop(bitmap); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplappinforeader.h --- a/appfw/apparchitecture/aplist/aplappinforeader.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplappinforeader.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -26,11 +26,6 @@ #include #include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#endif - class TEntry; class RFs; class CResourceFile; @@ -39,7 +34,6 @@ class CApaAppIconArray; class CApaAppViewData; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK /** @internalComponent */ @@ -48,7 +42,7 @@ public: static TBool TypeUidIsForRegistrationFile(const TUidType& aUidType); }; -#endif + /** @internalComponent @@ -132,16 +126,8 @@ class CApaAppInfoReader : public CBase { public: -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - static CApaAppInfoReader* NewL(RFs& aFs, const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScr); -#else - static CApaAppInfoReader* NewL(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid); - HBufC* LocalisableResourceFileName(); - TTime LocalisableResourceFileTimeStamp() const; - TTime TimeStamp() const; - TTime IconFileTimeStamp() const; -#endif - TBool ReadL(); + static CApaAppInfoReader* NewL(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid); + TBool ReadL(); static TBool FileIsMbmWithGenericExtensionL(const TDesC& aFileName); ~CApaAppInfoReader(); public: @@ -159,41 +145,35 @@ HBufC* IconFileName(); TBool NonMbmIconFile() const; CApaIconLoader* IconLoader(); + + TTime TimeStamp() const; + TTime IconFileTimeStamp() const; + + HBufC* LocalisableResourceFileName(); + TTime LocalisableResourceFileTimeStamp() const; TLanguage AppLanguage() const; CArrayFixFlat* ServiceArray(TInt& aIndexOfFirstOpenService); HBufC8* OpaqueData(); - private: -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - CApaAppInfoReader(RFs& aFs, const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScr); - void ReadAppRegistrationInfoL(); - void ReadServiceInfoL(const RPointerArray& aServiceInfo); - void ReadOwnedFilesInfoL(const RPointerArray& aOwnedFiles); - void ReadMimeTypesSupportedL(const RPointerArray& dataTypes, CArrayFixFlat& aMimeTypesSupported); - void ReadLocalisationInfoL(); - void ReadViewInfoL(const RPointerArray& aViewData); -#ifdef APPARC_SHOW_TRACE - void DisplayAppInfo(); -#endif - -#else - CApaAppInfoReader(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid); - void ReadMandatoryInfoL(RResourceReader& aResourceReader); - void ReadNonLocalisableInfoL(RResourceReader& aResourceReader, CResourceFile*& aLocalisableResourceFile, TUint& aLocalisableResourceId); - void ReadNonLocalisableOptionalInfoL(RResourceReader& aResourceReader, const CResourceFile* aRegistrationFile, CResourceFile* aLocalisableResourceFile); - void ReadMimeTypesSupportedL(RResourceReader& aResourceReader, CArrayFixFlat& aMimeTypesSupported); - void ReadLocalisableInfoL(const CResourceFile& aResourceFile, TUint aResourceId, TBool& aUseDefaultIcons); - HBufC* CreateFullIconFileNameL(const TDesC& aIconFileName) const; -#endif + CApaAppInfoReader(RFs& aFs, const TDesC& aRegistrationFileName, TUid aAppUid); void ConstructL(); + void ReadMandatoryInfoL(RResourceReader& aResourceReader); + void ReadNonLocalisableInfoL(RResourceReader& aResourceReader, CResourceFile*& aLocalisableResourceFile, TUint& aLocalisableResourceId); + void ReadNonLocalisableOptionalInfoL(RResourceReader& aResourceReader, const CResourceFile* aRegistrationFile, CResourceFile* aLocalisableResourceFile); + void ReadMimeTypesSupportedL(RResourceReader& aResourceReader, CArrayFixFlat& aMimeTypesSupported); + void ReadLocalisableInfoL(const CResourceFile& aResourceFile, TUint aResourceId, TBool& aUseDefaultIcons); + HBufC* CreateFullIconFileNameL(const TDesC& aIconFileName) const; TBool HasWriteDeviceDataCap(); void ReadAppSecurityInfo(); + static HBufC8* ReadOpaqueDataL(TUint aResourceId, const CResourceFile* aRegistrationFile, CResourceFile* aLocalisableResourceFile); private: RFs& iFs; TUid iAppUid; HBufC* iAppBinaryFullName; TUidType iAppBinaryUidType; + TTime iTimeStamp; + TTime iIconFileTimeStamp; TApaAppCapability iCapability; TUint iDefaultScreenNumber; HBufC* iCaption; @@ -204,28 +184,20 @@ CDesCArray* iOwnedFileArray; HBufC* iIconFileName; TBool iNonMbmIconFile; // ETrue if icon filename is not an MBM file, however, EFalse does not necessarily mean it is an MBM file + HBufC* iLocalisableResourceFileName; + TTime iLocalisableResourceFileTimeStamp; TLanguage iApplicationLanguage; CArrayFixFlat* iServiceArray; - TInt iIndexOfFirstOpenService; + TInt iIndexOfFirstOpenService; + TBool iOpenServiceIsLegacy; HBufC8* iOpaqueData; private: + const TDesC& iRegistrationFileName; TBool iHasWriteDeviceDataCap; TBool iIsSidTrusted; // This flag is used to determine if app security info was allready read TBool iSecurityInfoHasBeenRead; - CApaIconLoader* iIconLoader; -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - const Usif::CApplicationRegistrationData& iAppInfo; //The ownership is not taken - const Usif::RSoftwareComponentRegistry& iScr; //The ownership is not taken -#else - const TDesC& iRegistrationFileName; - TTime iTimeStamp; - TTime iIconFileTimeStamp; - HBufC* iLocalisableResourceFileName; - TTime iLocalisableResourceFileTimeStamp; - TBool iOpenServiceIsLegacy; -#endif - + CApaIconLoader* iIconLoader; }; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplapplist.cpp --- a/appfw/apparchitecture/aplist/aplapplist.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplapplist.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -21,6 +21,7 @@ #include "APFDEF.H" #include "../apparc/TRACE.H" #include "apgnotif.h" // MApaAppListServObserver +#include "aplappregfinder.h" // CApaAppRegFinder #include // BaflUtils::NearestLanguageFile() #include // RBufWriteStream #include "aplappinforeader.h" @@ -29,13 +30,6 @@ #include #endif -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#else -#include "aplappregfinder.h" // CApaAppRegFinder -#endif - // Delays in the pseudo idle object that builds the application list // @@ -55,13 +49,6 @@ const TInt16 KROMVersionCacheFileBuildVersion=0; #endif -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -const TInt KNumAppEntriesFromSCR=10; - -const TInt KSCRConnectionWaitTime=20000; //Time to wait if SCR is busy -const TUid KUidSisLaunchServer={0x1020473f}; -#endif - GLDEF_C void Panic(TApgPanic aPanic) { @@ -97,373 +84,7 @@ TLanguage iPrevLanguage; }; - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -enum TApaSCRFetchAction - { - EGetAllAppsInfo, //Fetch all application the information from SCR - EGetSpecificAppsInfo //Fetch only provided application uids information - }; - -/* - * Contain information about appliations to be fetched from SCR. - */ - -NONSHARABLE_CLASS(CApaAppSCRFetchInfo : public CBase) - { -public: - static CApaAppSCRFetchInfo* NewL(TApaSCRFetchAction aSCRFetchAction, RArray* aAppUpdateInfo); - ~CApaAppSCRFetchInfo(); - RArray* AppUpdateInfo(); - TApaSCRFetchAction SCRFetchAction(); - -private: - CApaAppSCRFetchInfo(TApaSCRFetchAction aSCRFetchAction, RArray* aAppUpdateInfo); - -private: - TApaSCRFetchAction iSCRFetchAction; - RArray* iAppUpdateInfo; - }; - - -/* - * Reads multiple application information from SCR and caches it. When requested provides one application - * information at a time. - */ -NONSHARABLE_CLASS(CApaAppList::CApaScrAppInfo) - { -public: - static CApaScrAppInfo* NewL(const Usif::RSoftwareComponentRegistry& aScrCon, TInt aNumEntries); - void GetAllAppsInfoL(); - void GetSpecificAppsInfoL(RArray* aAppUpdateInfo); - TUid GetNextApplicationInfo(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData); - TApaSCRFetchAction GetSCRFetchAction(); - ~CApaScrAppInfo(); - -private: - void ConstructL(); - CApaScrAppInfo(const Usif::RSoftwareComponentRegistry& aScr, TInt aNumEntries); - void GetAppUidListL(RArray& aAppUpdateInfoArr, RArray& aAppUids); - TUid GetAllAppsNextApplicationInfoL(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData); - TUid GetSpecificAppsNextApplicationInfoL(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData); -private: - Usif::RApplicationRegistryView iScrAppView; - RPointerArray iAppInfo; - RPointerArray iSCRFetchInfoQueue; - const Usif::RSoftwareComponentRegistry& iSCR; - TBool iIsSCRRegViewOpen; - TInt iSpecificAppsIndex; - CApaAppSCRFetchInfo* iAppSCRFetchInfo; - TBool iMoreAppInfo; - TInt iNumEntriesToFetch; - }; - - - -CApaAppSCRFetchInfo* CApaAppSCRFetchInfo::NewL(TApaSCRFetchAction aSCRFetchAction, RArray* aAppUpdateInfo) - { - //Ownership of aAppUpdateInfo is transfered to this object. - CApaAppSCRFetchInfo* self=new (ELeave) CApaAppSCRFetchInfo(aSCRFetchAction, aAppUpdateInfo); - return(self); - } - - -CApaAppSCRFetchInfo::CApaAppSCRFetchInfo(TApaSCRFetchAction aSCRFetchAction, RArray* aAppUpdateInfo): - iSCRFetchAction(aSCRFetchAction), - iAppUpdateInfo(aAppUpdateInfo) - { - } - -CApaAppSCRFetchInfo::~CApaAppSCRFetchInfo() - { - delete iAppUpdateInfo; - } - -RArray* CApaAppSCRFetchInfo::AppUpdateInfo() - { - return iAppUpdateInfo; - } - - -TApaSCRFetchAction CApaAppSCRFetchInfo::SCRFetchAction() - { - return iSCRFetchAction; - } - - -//CApaAppList::CApaScrAppInfo - -CApaAppList::CApaScrAppInfo* CApaAppList::CApaScrAppInfo::NewL(const Usif::RSoftwareComponentRegistry& aScrCon, TInt aNumEntries) - { - CApaScrAppInfo* self=new(ELeave) CApaScrAppInfo(aScrCon, aNumEntries); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(); - return self; - } - - -CApaAppList::CApaScrAppInfo::CApaScrAppInfo(const Usif::RSoftwareComponentRegistry& aScr, TInt aNumEntries): - iSCR(aScr), - iIsSCRRegViewOpen(EFalse), - iSpecificAppsIndex(-1), - iAppSCRFetchInfo(NULL), - iMoreAppInfo(EFalse), - iNumEntriesToFetch(aNumEntries) - - { - } - -void CApaAppList::CApaScrAppInfo::ConstructL() - { - } - - -CApaAppList::CApaScrAppInfo::~CApaScrAppInfo() - { - if(iAppSCRFetchInfo) - { - delete iAppSCRFetchInfo; - iAppSCRFetchInfo=NULL; - } - - iAppInfo.ResetAndDestroy(); - iSCRFetchInfoQueue.ResetAndDestroy(); - iScrAppView.Close(); - } - -/* - * Gets all the application information available in the SCR. It adds SCR fetch info with action EGetAllAppsInfo to a queue - * to get all the application information. The information can be obtained one at a time by calling GetNextApplicationInfoL - * function. - */ -void CApaAppList::CApaScrAppInfo::GetAllAppsInfoL() - { - CApaAppSCRFetchInfo* appSCRFetchInfo = CApaAppSCRFetchInfo::NewL(EGetAllAppsInfo, NULL); - CleanupStack::PushL(appSCRFetchInfo); - iSCRFetchInfoQueue.AppendL(appSCRFetchInfo); - CleanupStack::Pop(); - } - - -/* - * Gets specific application information from the SCR. It adds SCR fetch info request with action EGetSpecificAppsInfo - * along with the required uid list to the queue. The information can be obtained one at a time by calling GetNextApplicationInfoL - * function. - */ -void CApaAppList::CApaScrAppInfo::GetSpecificAppsInfoL(RArray* aAppUpdateInfo) - { - CApaAppSCRFetchInfo* appSCRFetchInfo=CApaAppSCRFetchInfo::NewL(EGetSpecificAppsInfo, aAppUpdateInfo); - CleanupStack::PushL(appSCRFetchInfo); - iSCRFetchInfoQueue.AppendL(appSCRFetchInfo); - CleanupStack::Pop(); - } - -/* - * Create array of uids from TApaAppUpdateInfo array. - */ -void CApaAppList::CApaScrAppInfo::GetAppUidListL(RArray& aAppUpdateInfoArr, RArray& aAppUids) - { - TInt count=aAppUpdateInfoArr.Count(); - - for(TInt index=0;indexSCRFetchAction(); -} - - -/* - * Provides one application information at a time. Returns Null UID if no more application information available. - * Ownership of aAppData is transfered to calling function. - */ -TUid CApaAppList::CApaScrAppInfo::GetNextApplicationInfo(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData) - { - aAppData=NULL; - TUid appUid=KNullUid; - - while(appUid==KNullUid) - { - //If there is no valid current SCR fetch information, get it from SCR fetch info queue - if(!iAppSCRFetchInfo) - { - if(iSCRFetchInfoQueue.Count()>0) - { - //Get next SCR fetch info - iAppSCRFetchInfo=iSCRFetchInfoQueue[0]; - iSCRFetchInfoQueue.Remove(0); - iMoreAppInfo=ETrue; - } - else - { - //No more SCR fetch information avaialable. - break; - } - } - - //Get next application information - if(iAppSCRFetchInfo->SCRFetchAction()==EGetAllAppsInfo) - { - //If there is a leave with current SCR fetch info, ignore and proceed with next SCR fetch info - TRAP_IGNORE(appUid=GetAllAppsNextApplicationInfoL(aAppAction, aAppData)); - } - else - { - //If there is a leave with current SCR fetch info, ignore and proceed with next SCR fetch info - TRAP_IGNORE(appUid=GetSpecificAppsNextApplicationInfoL(aAppAction, aAppData)); - } - - if(appUid==KNullUid) - { - //If no application information avaialble with current fetch action reset the values for next SCR fetch action. - delete iAppSCRFetchInfo; - iAppSCRFetchInfo=NULL; - iScrAppView.Close(); - iIsSCRRegViewOpen=EFalse; - } - } - - return(appUid); - } - -TUid CApaAppList::CApaScrAppInfo::GetAllAppsNextApplicationInfoL(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData) - { - TUid appUid=KNullUid; - - if(iAppInfo.Count()==0 && iMoreAppInfo) - { - //Open registry view if its not open. - if(!iIsSCRRegViewOpen) - { - TInt err=KErrNone; - TInt timeOut=KSCRConnectionWaitTime; - - //Retry if an error occurs while opening a SCR view. - while(timeOut < KSCRConnectionWaitTime*8) - { - TRAP(err, iScrAppView.OpenViewL(iSCR)); - if(err != KErrNone) - { - User::After(timeOut); - timeOut= (2*timeOut); - } - else - { - break; - } - } - User::LeaveIfError(err); - iIsSCRRegViewOpen=ETrue; - } - - //Get next available applications information. - iScrAppView.GetNextApplicationRegistrationInfoL(iNumEntriesToFetch, iAppInfo); - if(iAppInfo.Count()AppUid(); - return appUid; - } - - -/* - * Gets next application information when specific applications information requested. - */ -TUid CApaAppList::CApaScrAppInfo::GetSpecificAppsNextApplicationInfoL(TApaAppUpdateInfo::TApaAppAction& aAppAction, Usif::CApplicationRegistrationData*& aAppData) - { - TUid appUid=KNullUid; - TApaAppUpdateInfo::TApaAppAction action = TApaAppUpdateInfo::EAppNotPresent; //To make compiler happy - Usif::CApplicationRegistrationData* appData=NULL; - - while(appUid==KNullUid) - { - if(iAppInfo.Count()==0 && iMoreAppInfo) - { - //Open registry view if its not open and also provides application uid list for which applist needs to be updated. - if(!iIsSCRRegViewOpen) - { - RArray appUids; - CleanupClosePushL(appUids); - //Get application uids list. - GetAppUidListL(*iAppSCRFetchInfo->AppUpdateInfo(), appUids); - - TInt err=KErrNone; - do - { - TRAP(err, iScrAppView.OpenViewL(iSCR, appUids)); - if(err) - User::After(KSCRConnectionWaitTime); - } - while(err!=KErrNone); - - CleanupStack::PopAndDestroy(); - iIsSCRRegViewOpen=ETrue; - iSpecificAppsIndex=0; - } - - //Get next available applications information. - iScrAppView.GetNextApplicationRegistrationInfoL(iNumEntriesToFetch,iAppInfo); - if(iAppInfo.Count()& appUpdateInfo=*iAppSCRFetchInfo->AppUpdateInfo(); - - - if(iSpecificAppsIndex0) - { - if(iAppInfo[0]->AppUid()==appUid) - { - appData=iAppInfo[0]; - iAppInfo.Remove(0); - } - } - - iSpecificAppsIndex++; - - //If action is not uninstalled, there should be application data in SCR. Otherwise skip the application action. - if((action!=TApaAppUpdateInfo::EAppNotPresent) && appData==NULL) - { - appUid=KNullUid; - } - - } - //If there are no more applications in the current update applist, break the loop; - if(appUpdateInfo.Count()==iSpecificAppsIndex) - break; - } - - aAppData=appData; - aAppAction=action; - return appUid; - } - -#endif - + // // Local functions // @@ -487,29 +108,26 @@ // EXPORT_C CApaAppList* CApaAppList::NewL(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aIdlePeriodicDelay) - { - CApaAppList* self=new (ELeave) CApaAppList(aFs, aLoadMbmIconsOnDemand, aIdlePeriodicDelay); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } + { + CApaAppList* self=new (ELeave) CApaAppList(aFs, aLoadMbmIconsOnDemand, aIdlePeriodicDelay); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(self); + return self; + } CApaAppList::CApaAppList(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aIdlePeriodicDelay) - :iFs(aFs), - iFlags(0), - iIdlePeriodicDelay(aIdlePeriodicDelay), - iLoadMbmIconsOnDemand(aLoadMbmIconsOnDemand), - iUninstalledApps(NULL) - { - } - + :iFs(aFs), + iFlags(0), + iIdlePeriodicDelay(aIdlePeriodicDelay), + iLoadMbmIconsOnDemand(aLoadMbmIconsOnDemand), + iUninstalledApps(NULL) + { + } void CApaAppList::ConstructL() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iAppRegFinder = CApaAppRegFinder::NewL(iFs); -#endif User::LeaveIfError(iFsShareProtected.Connect()); User::LeaveIfError(iFsShareProtected.ShareProtected()); @@ -517,11 +135,8 @@ //Start language change monitor. iAppLangMonitor = CApaLangChangeMonitor::NewL(*this); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK const TInt KArrayGranularity = 128; iForcedRegistrations = new (ELeave) CDesCArraySeg(KArrayGranularity); -#endif // Init the AppsList cache paths _LIT(KAppsListCacheFileName, ":\\private\\10003a3f\\AppsListCache\\AppsList.bin"); @@ -561,14 +176,12 @@ delete iDefaultIconArray; delete iDefaultAppIconMbmFileName; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK delete iAppRegFinder; - delete iForcedRegistrations; -#endif delete iAppIdler; delete iAppListStorer; delete iAppIconLoader; delete iAppLangMonitor; + delete iForcedRegistrations; delete iIconCaptionObserver; delete iIconCaptionOverrides; iAppsListCacheFileName.Close(); @@ -577,16 +190,8 @@ iCustomAppList.ResetAndDestroy(); iCustomAppList.Close(); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iForceRegAppUids.Close(); - delete iScrAppInfo; - iScr.Close(); -#endif } - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK // Stop scanning applications if installation or uninstallation has started EXPORT_C void CApaAppList::StopScan(TBool aNNAInstall) { @@ -601,7 +206,7 @@ } UndoSetPending(iAppData); } - + // Allow scanning when installation or uninstallation is complete EXPORT_C void CApaAppList::RestartScanL() { @@ -613,7 +218,18 @@ { return iNNAInstallation; } -#endif + +void CApaAppList::UndoSetPending(CApaAppData* aAppData) + // Reset all apps to pevious pending state so they don't get purged + { + for (; aAppData; aAppData = aAppData->iNext) + { + if (aAppData->iIsPresent == CApaAppData::EPresentPendingUpdate) + { + aAppData->iIsPresent = CApaAppData::EIsPresent; + } + } + } EXPORT_C void CApaAppList::StartIdleUpdateL() /** Updates the list asynchronously, using an idle time active object, @@ -651,8 +267,7 @@ delete iAppIdler; iAppIdler=NULL; } - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + // DEF072701 // When performing the update scan let the idle object have lower priority. if (IsFirstScanComplete()) @@ -665,133 +280,16 @@ } SetPending(iAppData); iAppRegFinder->FindAllAppsL(CApaAppRegFinder::EScanAllDrives); - // DEF072701 - // If this is the first scan i.e the boot scan then it may take some time. Thus - // the periodic delay value should be used so that this process will stop periodically - // to allow time for other processes. - // If this is just a re-scan it should take much less time. Therefore it should just - // be completed in one go rather than periodically delayed. Thus the delay value - // should be set to 0. - iAppIdler->Start(KIdleStartDelay, IsFirstScanComplete()? 0 : iIdlePeriodicDelay, TCallBack(IdleUpdateCallbackL, this)); -#else - - iAppIdler=CPeriodic::NewL(CActive::EPriorityStandard); - iAppIdler->Start(KIdleStartDelay, IsFirstScanComplete()? 0 : iIdlePeriodicDelay, TCallBack(IdleUpdateCallbackL, this)); - -#endif - } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -EXPORT_C void CApaAppList::InitializeApplistL(MApaAppListObserver* aObserver) - { - if(!iScr.Handle()) - User::LeaveIfError(iScr.Connect()); - - if(iScrAppInfo==NULL) - iScrAppInfo=CApaScrAppInfo::NewL(iScr, KNumAppEntriesFromSCR); - - iScrAppInfo->GetAllAppsInfoL(); - - StartIdleUpdateL(aObserver); - } - - -void CApaAppList::InitializeLangAppListL() - { - if(!iScr.Handle()) - User::LeaveIfError(iScr.Connect()); - - if(iScrAppInfo==NULL) - iScrAppInfo=CApaScrAppInfo::NewL(iScr, KNumAppEntriesFromSCR); - - iScrAppInfo->GetAllAppsInfoL(); - - // set iIsLangChangePending=ETrue, to all the application present in the applist - CApaAppData* appData=iAppData; - while(appData) - { - appData->iIsLangChangePending=ETrue; - appData=appData->iNext; - } - } - - -EXPORT_C void CApaAppList::UpdateApplistL(MApaAppListObserver* aObserver, RArray* aAppUpdateInfo, TUid aSecureID) - { - //If update applist is called by SWI, clear force registrations from applist. - if(aSecureID == KUidSisLaunchServer) - { - TInt count=iForceRegAppUids.Count(); - for(TInt index=0; indexCount() == 0) - return; - - //If SCR connection is not valid then connect. - if(!iScr.Handle()) - User::LeaveIfError(iScr.Connect()); - - if(iScrAppInfo==NULL) - iScrAppInfo=CApaScrAppInfo::NewL(iScr, KNumAppEntriesFromSCR); - - iScrAppInfo->GetSpecificAppsInfoL(aAppUpdateInfo); - - if(IsIdleUpdateComplete()) - StartIdleUpdateL(aObserver); - } - -void CleanupAndDestroyAppInfoArray(TAny* aRPArray) - { - RPointerArray* rpArray = (static_cast*>(aRPArray)); - rpArray->ResetAndDestroy(); - rpArray->Close(); - } - - -EXPORT_C void CApaAppList::UpdateApplistByForceRegAppsL(RPointerArray& aForceRegAppsInfo) - { - //Get number of force registered application information. - TInt count=aForceRegAppsInfo.Count(); - Usif::RSoftwareComponentRegistry scr; - User::LeaveIfError(scr.Connect()); - CleanupClosePushL(scr); - - //As this function takes the ownership of aForceRegAppsInfo, this needs to be destroyed if any leave occurs. - TCleanupItem cleanup(CleanupAndDestroyAppInfoArray, &aForceRegAppsInfo); - CleanupStack::PushL(cleanup); - - //Get each force registered application information and add it to applist. - for(TInt index=0; indexAppUid(); - - //Delete if the application already exist in the applist. - FindAndDeleteApp(appUid); - AddToList(appData); - //Maintain added force registered application uids so that it can be cleared from applist - //once installation complete. - iForceRegAppUids.AppendL(appUid); - } - - CleanupStack::PopAndDestroy(2); //cleanup, scr - } - - -// The function transfers ownership of the pointer owned by a CApaAppList to the caller -// to avoid copying the array. -EXPORT_C CArrayFixFlat* CApaAppList::UpdatedAppsInfo() -{ - CArrayFixFlat* updatedAppsInfo=iAppsUpdated; - iAppsUpdated=NULL; - return updatedAppsInfo; -} - -#endif + + // DEF072701 + // If this is the first scan i.e the boot scan then it may take some time. Thus + // the periodic delay value should be used so that this process will stop periodically + // to allow time for other processes. + // If this is just a re-scan it should take much less time. Therefore it should just + // be completed in one go rather than periodically delayed. Thus the delay value + // should be set to 0. + iAppIdler->Start(KIdleStartDelay, IsFirstScanComplete()? 0 : iIdlePeriodicDelay, TCallBack(IdleUpdateCallbackL, this)); + } EXPORT_C void CApaAppList::StartIdleUpdateL(MApaAppListObserver* aObserver) /** Updates the list asynchronously, using an idle time active object @@ -829,13 +327,7 @@ @param aObserver Observer to be notified when the update has finished. */ { - -#ifdef APPARC_SHOW_TRACE - RDebug::Printf("[Apparc] *****************START CREATING APPLIST ****************************"); -#endif - DeleteAppsListBackUpAndTempFiles(); - TInt ret = KErrGeneral; #ifndef __WINS__ // on the emulator, don't read app list from file, as doing so means apps // built while the emulator isn't running won't appear in the list @@ -846,12 +338,7 @@ // There was an error during restore, so update the list asynchronously. DeleteAppData(); iFs.Delete(iAppsListCacheFileName); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - InitializeApplistL(aObserver); -#else - StartIdleUpdateL(aObserver); -#endif - + StartIdleUpdateL(aObserver); } else { @@ -873,6 +360,36 @@ iAppIconLoader->Start(); } +void CApaAppList::ScanRemovableDrivesAndUpdateL() +/** Rename Appslist.bin file to AppsList_Backup.bin, so that it can be renamed back, + if the update scan on removable media drives does not change applist. */ + { + const TArray listOfRemovableMediaDrives = iAppRegFinder->DriveList(); + const TInt count = listOfRemovableMediaDrives.Count(); + + // Removable media scan would take place only if removable drives are present. + if (count) + { + CApaAppData* appData = iAppData; + while (appData) + { + for (TInt driveIndex = 0; driveIndex < count; ++driveIndex) + { + if (TParsePtrC(*appData->iRegistrationFile).Drive() == listOfRemovableMediaDrives[driveIndex].iUnit.Name()) + { + appData->SetAppPending(); + break; + } + } + appData = appData->iNext; + } + + while (IdleUpdateL()) + { // It updates the removable media apps present in AppList if it has changed. + + }; + } + } void CApaAppList::DeleteAppsListBackUpAndTempFiles() /** Deletes all files inside AppsListCache folder except AppsList.bin */ @@ -967,7 +484,7 @@ { //Leave if the current version is different from the previous stored version and recreate applist. #ifdef _DEBUG - RDebug::Print(_L("[Apparc] !!Firmware update detected!! Rebuilding AppList")); + RDebug::Print(_L("!!Firmware update detected!! Rebuilding AppList")); #endif User::Leave(KErrGeneral); } @@ -978,7 +495,7 @@ if (err != KErrPathNotFound && err != KErrNotFound) { #ifdef _DEBUG - RDebug::Print(_L("[Apparc] !!Error %d reading Firmware version. Rebuilding AppList"),err); + RDebug::Print(_L("!!Error %d reading Firmware version. Rebuilding AppList"),err); #endif User::Leave(err); } @@ -1016,9 +533,6 @@ // Close the stream; CleanupStack::PopAndDestroy(&theReadStream); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iFlags |= ENotifyUpdateOnFirstScanComplete; -#else iFs.Rename(iAppsListCacheFileName, iAppsListCacheBackUpFileName); iAppRegFinder->FindAllAppsL(CApaAppRegFinder::EScanRemovableDrives); // Builds the Removable Media Drive List @@ -1026,7 +540,6 @@ // It runs an update scan on removable media apps. ScanRemovableDrivesAndUpdateL(); -#endif } EXPORT_C TBool CApaAppList::IsLanguageChangePending() const @@ -1074,7 +587,7 @@ else iObserver->NotifyScanComplete(); // NotifyScanComplete will notify clients for scan complete. - //iObserver=NULL; + iObserver=NULL; } } @@ -1084,219 +597,9 @@ iAppIdler=NULL; } -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -// returns ETrue if there more application information avaialable. -TInt CApaAppList::IdleUpdateL() - { - - Usif::CApplicationRegistrationData* appInfo=NULL; - TApaAppUpdateInfo::TApaAppAction action=TApaAppUpdateInfo::EAppPresent; //to make compiler happy. Actual value is assigned by GetNextApplicationInfo - TUid appUid; - - //Ownership of appInfo is transfered to this function. - appUid=iScrAppInfo->GetNextApplicationInfo(action,appInfo); - - if(appUid==KNullUid) - return EFalse; - - CleanupStack::PushL(appInfo); - CApaAppData *appData=NULL; - CApaAppData* app = NULL; - - switch(action) - { - case TApaAppUpdateInfo::EAppNotPresent: - if(appInfo==NULL) - { - TInt ret=FindAndDeleteApp(appUid); - if(ret==KErrNone) - iFlags |= EAppListHasChanged; - - //Add uninstalled application UID to a list - if(iUninstalledApps==NULL) - iUninstalledApps=new(ELeave) CArrayFixFlat(1); - - iUninstalledApps->AppendL(appUid); - } - break; - - case TApaAppUpdateInfo::EAppPresent: - // holds the application information from Applist - app = AppDataByUid(appInfo->AppUid()); - - if( app && IsLanguageChangePending() && (iScrAppInfo->GetSCRFetchAction() == EGetAllAppsInfo)) - { - //Application needs to be updated because of language change - RPointerArray localisationInfo; - localisationInfo=appInfo->LocalizableAppInfoList(); - ASSERT(!(localisationInfo.Count()>1)); - - if((localisationInfo.Count()>0) && (app->ApplicationLanguage() != localisationInfo[0]->ApplicationLanguage())) - { - // holds the application information read from SCR db - appData=CApaAppData::NewL(*appInfo, iFs, iScr); - FindAndDeleteApp(appUid); - AddToList(appData); - iFlags |= EAppListHasChanged; - } - else - { - app->iIsLangChangePending=EFalse; - } - } - else - { - // holds the application information read from SCR db - appData=CApaAppData::NewL(*appInfo, iFs, iScr); - if(app) - { - //Application found in applist. Delete existing application information from applist and create new - //application information object and add to the applist. - FindAndDeleteApp(appUid); - AddToList( appData ); - } - else - { - AddToList( appData ); - } - iFlags |= EAppListHasChanged; - } - - break; - - case TApaAppUpdateInfo::EAppInfoChanged: - appData=CApaAppData::NewL(*appInfo, iFs, iScr); - //Delete existing application information from applist and create new application information object and - //add to the applist. - FindAndDeleteApp(appUid); - AddToList( appData ); - iFlags |= EAppListHasChanged; - break; - } - - //If first scan not complete or if phone language is changed then clear the updated application list - //Otherwise add application updated apps list - if(!(iFlags&EFirstScanComplete) || (iFlags&ELangChangePending)) - { - if(!iAppsUpdated) - delete iAppsUpdated; - iAppsUpdated=NULL; - } - else - { - if(!iAppsUpdated) - iAppsUpdated= new(ELeave) CArrayFixFlat(1); - - TApaAppUpdateInfo appUpdateInfo(appUid, action); - iAppsUpdated->AppendL(appUpdateInfo); - } - - CleanupStack::PopAndDestroy(appInfo); - return ETrue; - } - - - -/* - * Finds and delete an application from applist. - */ -TInt CApaAppList::FindAndDeleteApp(TUid aAppUid) - { - CApaAppData* appData=iAppData; - CApaAppData* prevAppData=NULL; - - while(appData && appData->iUidType[2] != aAppUid) - { - prevAppData=appData; - appData=appData->iNext; - } - - if(appData) - { - if(prevAppData) - { - //If the application position is not the first application in the list - prevAppData->iNext=appData->iNext; - } - else - { - //If the application position is first in the list - iAppData=appData->iNext; - } - -#ifdef APPARC_SHOW_TRACE - if(appData) - { - RDebug::Print(_L("[Apparc] Application with UID: %X is deleted from applist"), appData->iUidType[2]); - } -#endif - - delete appData; - return(KErrNone); - } - - //if application not found, return KErrNotFound - return(KErrNotFound); - } - -/** -@internalComponent -*/ -EXPORT_C CApaAppData* CApaAppList::FindAndAddSpecificAppL(TUid aAppUid) - { - Usif::RSoftwareComponentRegistry scrCon; - //If SCR connection not avaialable then connect to SCR. Otherwise use the - //existing connection. - if(!iScr.Handle()) - { - User::LeaveIfError(scrCon.Connect()); - CleanupClosePushL(scrCon); - } - else - scrCon=iScr; - - - //Pass 1 as number of entries to fetch from SCR as only specific application information is required. - CApaScrAppInfo *scrAppInfo=CApaScrAppInfo::NewL(scrCon, 1); - CleanupStack::PushL(scrAppInfo); - - RArray* appUpdateInfoList=new (ELeave) RArray(1); - CleanupStack::PushL(appUpdateInfoList); - TApaAppUpdateInfo appUpdateInfo(aAppUid, TApaAppUpdateInfo::EAppPresent) ; - appUpdateInfoList->AppendL(appUpdateInfo); - - scrAppInfo->GetSpecificAppsInfoL(appUpdateInfoList); - CleanupStack::Pop(appUpdateInfoList); - - Usif::CApplicationRegistrationData* appInfo=NULL; - TApaAppUpdateInfo::TApaAppAction action; - TUid uid; - uid=scrAppInfo->GetNextApplicationInfo(action, appInfo); - CleanupStack::PushL(appInfo); - - CApaAppData *appData=NULL; - if(appInfo) - { - appData=CApaAppData::NewL(*appInfo, iFs, scrCon); - FindAndDeleteApp(uid); - AddToList(appData); - iFlags |= EAppListHasChanged; - } - CleanupStack::PopAndDestroy(2, scrAppInfo); - - //If SCR session established in this function, then close it. - if(!iScr.Handle()) - CleanupStack::PopAndDestroy(); - - return appData; - } - -#else TInt CApaAppList::IdleUpdateL() // returns ETrue if there is more scanning to be done. { - TBool more=EFalse; TApaAppEntry currentApp = TApaAppEntry(); TRAPD(err, more = iAppRegFinder->NextL(currentApp, *iForcedRegistrations)); @@ -1332,205 +635,6 @@ return more; } -void CApaAppList::UpdateNextAppL(const TApaAppEntry& aAppEntry,TBool& aHasChanged) - { - CApaAppData* appData=AppDataByUid(aAppEntry.iUidType[2]); - if (appData==NULL) - {// not in list, so add it at the start - TRAPD(err,appData=CApaAppData::NewL(aAppEntry, iFs)); - if (err==KErrNone) - { - AddToList( appData ); - aHasChanged=ETrue; - } - } - else if (appData->IsPending()) - { // not found yet during current scan - we may need to override this one - - // On a system which scans for registration .RSC files (V2 apps) first, followed by - // .APP files (V1 apps), it's valid for a V1 app to override a V2 app (if the V2 app - // has just been removed). If this is the case, assume it's ok to compare the V1 .APP filename, - // with the V2 .RSC filename as their filenames will never match (which is what we want in this case). - TPtrC currentFileName; - if (appData->RegistrationFileUsed()) - currentFileName.Set(*appData->iRegistrationFile); - else - currentFileName.Set(*appData->iFullName); - - if (aAppEntry.iFullName.CompareF(currentFileName)!=0) - { - delete appData->iSuccessor; - appData->iSuccessor = NULL; - appData->iSuccessor = CApaAppEntry::NewL(aAppEntry); - - appData->iIsPresent = CApaAppData::ESuperseded; - aHasChanged=ETrue; - } - else - { - if (appData->Update() || appData->iIsPresent==CApaAppData::ENotPresentPendingUpdate) - aHasChanged=ETrue; - - appData->iIsPresent = CApaAppData::EIsPresent; - } - } - } - -void CApaAppList::SetPending(CApaAppData* aAppData) - // set all apps to pending update - we'll find them again as we scan - { - for (; aAppData; aAppData = aAppData->iNext) - aAppData->SetAppPending(); - } - -void CApaAppList::SetNotFound(CApaAppData* aAppData, TBool& aHasChanged) - // mark any unfound apps not present - { - while (aAppData) - { - if (aAppData->IsPending()) - { - aAppData->iIsPresent = CApaAppData::ENotPresent; - aHasChanged = ETrue; - } - aAppData = aAppData->iNext; - } - } - -EXPORT_C void CApaAppList::PurgeL() -/** Removes any applications from the list if they are no longer present -on the phone. It updates applications that have been -superceded. */ - { - CApaAppData* appData=iAppData; - CApaAppData* prev=NULL; - while (appData) - { - CApaAppData* next=appData->iNext; - if (appData->iIsPresent==CApaAppData::ENotPresent) - { - if (prev) - prev->iNext=next; - else - iAppData=next; - - //Add uninstalled application UID to a list - if(iUninstalledApps==NULL) - iUninstalledApps=new(ELeave) CArrayFixFlat(1); - - iUninstalledApps->AppendL(appData->AppEntry().iUidType[2]); - - delete appData; - } - else if (appData->iIsPresent==CApaAppData::ESuperseded) - { - CApaAppData* newApp=NULL; - TApaAppEntry appEntry; - appData->iSuccessor->Get(appEntry); - TRAPD(err,newApp=CApaAppData::NewL(appEntry, iFs)); - if (err==KErrNone) - { - // remove the old one and add the new one in its place - if (prev) - prev->iNext=newApp; - else - iAppData=newApp; - - newApp->iNext = appData->iNext; - delete appData; - // increment the iterator - prev = newApp; - } - } - else - prev=appData; - - appData=next; - } - } - -void CApaAppList::ScanRemovableDrivesAndUpdateL() -/** Rename Appslist.bin file to AppsList_Backup.bin, so that it can be renamed back, - if the update scan on removable media drives does not change applist. */ - { - const TArray listOfRemovableMediaDrives = iAppRegFinder->DriveList(); - const TInt count = listOfRemovableMediaDrives.Count(); - - // Removable media scan would take place only if removable drives are present. - if (count) - { - CApaAppData* appData = iAppData; - while (appData) - { - for (TInt driveIndex = 0; driveIndex < count; ++driveIndex) - { - if (TParsePtrC(*appData->iRegistrationFile).Drive() == listOfRemovableMediaDrives[driveIndex].iUnit.Name()) - { - appData->SetAppPending(); - break; - } - } - appData = appData->iNext; - } - - while (IdleUpdateL()) - { // It updates the removable media apps present in AppList if it has changed. - - }; - } - } - -void CApaAppList::UndoSetPending(CApaAppData* aAppData) - // Reset all apps to pevious pending state so they don't get purged - { - for (; aAppData; aAppData = aAppData->iNext) - { - if (aAppData->iIsPresent == CApaAppData::EPresentPendingUpdate) - { - aAppData->iIsPresent = CApaAppData::EIsPresent; - } - } - } - -/** -@internalComponent -*/ -EXPORT_C CApaAppData* CApaAppList::FindAndAddSpecificAppL(CApaAppRegFinder* aFinder, TUid aAppUid) - { -//Scans and adds the specified application to the app list if found - __ASSERT_DEBUG(aFinder, Panic(EPanicNullPointer)); - TBool found = EFalse; - TApaAppEntry appEntry; - aFinder->FindAllAppsL(CApaAppRegFinder::EScanAllDrives); - while (aFinder->NextL(appEntry, *iForcedRegistrations)) - { - if (appEntry.iUidType[2] == aAppUid) - { - found = ETrue; - break; - } - } - - CApaAppData* app = NULL; - if (found) - { - // add the app to the list - TBool hasChanged = EFalse; - CApaAppData* prevFirstAppInList = iAppData; - UpdateNextAppL(appEntry, hasChanged); - if (iAppData != prevFirstAppInList) - app = iAppData; // assume the new app was added to the list - - if (hasChanged) - iFlags |= EAppListHasChanged; - } - - return app; - return NULL; - } - -#endif - EXPORT_C TBool CApaAppList::IsIdleUpdateComplete() const /** Tests whether an asynchronous update of the list is currently in progress. @@ -1540,19 +644,165 @@ return iAppIdler == NULL; } +void CApaAppList::SetPending(CApaAppData* aAppData) + // set all apps to pending update - we'll find them again as we scan + { + for (; aAppData; aAppData = aAppData->iNext) + aAppData->SetAppPending(); + } + +void CApaAppList::SetNotFound(CApaAppData* aAppData, TBool& aHasChanged) + // mark any unfound apps not present + { + while (aAppData) + { + if (aAppData->IsPending()) + { + aAppData->iIsPresent = CApaAppData::ENotPresent; + aHasChanged = ETrue; + } + aAppData = aAppData->iNext; + } + } void CApaAppList::AddToList( CApaAppData* aAppData ) { __ASSERT_DEBUG(aAppData, Panic(EPanicNullPointer)); aAppData->iNext=iAppData; iAppData=aAppData; + } + +void CApaAppList::UpdateNextAppL(const TApaAppEntry& aAppEntry,TBool& aHasChanged) + { + CApaAppData* appData=AppDataByUid(aAppEntry.iUidType[2]); + if (appData==NULL) + {// not in list, so add it at the start + TRAPD(err,appData=CApaAppData::NewL(aAppEntry, iFs)); + if (err==KErrNone) + { + AddToList( appData ); + aHasChanged=ETrue; + } + } + else if (appData->IsPending()) + { // not found yet during current scan - we may need to override this one + + // On a system which scans for registration .RSC files (V2 apps) first, followed by + // .APP files (V1 apps), it's valid for a V1 app to override a V2 app (if the V2 app + // has just been removed). If this is the case, assume it's ok to compare the V1 .APP filename, + // with the V2 .RSC filename as their filenames will never match (which is what we want in this case). + TPtrC currentFileName; + if (appData->RegistrationFileUsed()) + currentFileName.Set(*appData->iRegistrationFile); + else + currentFileName.Set(*appData->iFullName); -#ifdef APPARC_SHOW_TRACE - RDebug::Print(_L("[Apparc] Application with UID: %X is added to applist"), aAppData->iUidType[2]); -#endif - + if (aAppEntry.iFullName.CompareF(currentFileName)!=0) + { + delete appData->iSuccessor; + appData->iSuccessor = NULL; + appData->iSuccessor = CApaAppEntry::NewL(aAppEntry); + + appData->iIsPresent = CApaAppData::ESuperseded; + aHasChanged=ETrue; + } + else + { + if (appData->Update() || appData->iIsPresent==CApaAppData::ENotPresentPendingUpdate) + aHasChanged=ETrue; + + appData->iIsPresent = CApaAppData::EIsPresent; + } + } } +/** +@internalComponent +*/ +EXPORT_C CApaAppData* CApaAppList::FindAndAddSpecificAppL(CApaAppRegFinder* aFinder, TUid aAppUid) + { +//Scans and adds the specified application to the app list if found + __ASSERT_DEBUG(aFinder, Panic(EPanicNullPointer)); + TBool found = EFalse; + TApaAppEntry appEntry; + aFinder->FindAllAppsL(CApaAppRegFinder::EScanAllDrives); + while (aFinder->NextL(appEntry, *iForcedRegistrations)) + { + if (appEntry.iUidType[2] == aAppUid) + { + found = ETrue; + break; + } + } + + CApaAppData* app = NULL; + if (found) + { + // add the app to the list + TBool hasChanged = EFalse; + CApaAppData* prevFirstAppInList = iAppData; + UpdateNextAppL(appEntry, hasChanged); + if (iAppData != prevFirstAppInList) + app = iAppData; // assume the new app was added to the list + + if (hasChanged) + iFlags |= EAppListHasChanged; + } + + return app; + } + +EXPORT_C void CApaAppList::PurgeL() +/** Removes any applications from the list if they are no longer present +on the phone. It updates applications that have been +superceded. */ + { + CApaAppData* appData=iAppData; + CApaAppData* prev=NULL; + while (appData) + { + CApaAppData* next=appData->iNext; + if (appData->iIsPresent==CApaAppData::ENotPresent) + { + if (prev) + prev->iNext=next; + else + iAppData=next; + + //Add uninstalled application UID to a list + if(iUninstalledApps==NULL) + iUninstalledApps=new(ELeave) CArrayFixFlat(1); + + iUninstalledApps->AppendL(appData->AppEntry().iUidType[2]); + + delete appData; + } + else if (appData->iIsPresent==CApaAppData::ESuperseded) + { + CApaAppData* newApp=NULL; + TApaAppEntry appEntry; + appData->iSuccessor->Get(appEntry); + TRAPD(err,newApp=CApaAppData::NewL(appEntry, iFs)); + if (err==KErrNone) + { + // remove the old one and add the new one in its place + if (prev) + prev->iNext=newApp; + else + iAppData=newApp; + + newApp->iNext = appData->iNext; + delete appData; + // increment the iterator + prev = newApp; + } + } + else + prev=appData; + + appData=next; + } + } EXPORT_C TInt CApaAppList::Count() const /** Gets the count of applications present in the app list. @@ -1591,7 +841,7 @@ specified screen mode. */ { - CApaAppData* appData=iAppData; + CApaAppData* appData=iValidFirstAppData; if(aScreenMode!=KIgnoreScreenMode) { @@ -1685,7 +935,6 @@ return NULL; } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK /** Adds a registration file to the iForcedRegistrations array. @@ -1705,7 +954,6 @@ if(iForcedRegistrations) iForcedRegistrations->Reset(); } -#endif /** Finds the preferred application to handle the specified data type. @@ -1799,19 +1047,7 @@ iObserver->InitialListPopulationComplete(); iValidFirstAppData = iAppData; iFlags|=EFirstScanComplete; - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNNAInstallation = EFalse; -#endif - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - delete iScrAppInfo; - iScrAppInfo=NULL; - iScr.Close(); -#endif -#ifdef APPARC_SHOW_TRACE - RDebug::Printf("[Apparc] *****************END CREATING APPLIST ****************************"); -#endif } /** @@ -1844,10 +1080,8 @@ if (app) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if (!app->RegistrationFileUsed()) User::Leave(KErrNotSupported); -#endif if (app->iServiceArray) { @@ -1877,12 +1111,9 @@ if (app) { - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if (!app->RegistrationFileUsed()) User::Leave(KErrNotSupported); -#endif - + if (app->iServiceArray) { CArrayFixFlat& serviceArray = *(app->iServiceArray); @@ -1918,10 +1149,8 @@ if (app) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if (!app->RegistrationFileUsed()) User::Leave(KErrNotSupported); -#endif if (app->iServiceArray) { @@ -2475,9 +1704,6 @@ { iPrevLanguage = User::Language(); iAppList.iFlags |= CApaAppList::ELangChangePending; -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iAppList.InitializeLangAppListL(); -#endif iAppList.StartIdleUpdateL(iAppList.iObserver); } } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplapplist.h --- a/appfw/apparchitecture/aplist/aplapplist.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplapplist.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -27,12 +27,6 @@ #include #include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#include -#endif - // classes defined: class CApaAppList; class CApaAppViewData; @@ -40,9 +34,7 @@ class CApaMaskedBitmap; class TEntry; class RFs; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK class CApaAppRegFinder; -#endif class CApaAppIconArray; class CApaIconLoader; class TApaAppEntry; @@ -80,26 +72,19 @@ */ class CApaAppList : public CBase { +public: + IMPORT_C static CApaAppList* NewL(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aTimeoutDelay = 50000); // takes ownership of aAppRegFinder public: - IMPORT_C static CApaAppList* NewL(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aTimeoutDelay = 50000); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK IMPORT_C void PurgeL(); - IMPORT_C CApaAppData* FindAndAddSpecificAppL(CApaAppRegFinder* aFinder, TUid aAppUid); - IMPORT_C void StopScan(TBool aNNAInstall = EFalse); - IMPORT_C void RestartScanL(); - IMPORT_C TBool AppListUpdatePending(); - IMPORT_C void AddForcedRegistrationL(const TDesC& aRegistrationFile); - IMPORT_C void ResetForcedRegistrations(); -#else - IMPORT_C CApaAppData* FindAndAddSpecificAppL(TUid aAppUid); -#endif - IMPORT_C TInt Count() const; IMPORT_C CApaAppData* FirstApp() const; IMPORT_C CApaAppData* FirstApp(TInt aScreenMode) const; IMPORT_C CApaAppData* NextApp(const CApaAppData* aApp) const; IMPORT_C CApaAppData* NextApp(const CApaAppData* aApp, TInt aScreenMode) const; IMPORT_C CApaAppData* AppDataByUid(TUid aAppUid) const; + IMPORT_C void StopScan(TBool aNNAInstall = EFalse); + IMPORT_C void RestartScanL(); + IMPORT_C TBool AppListUpdatePending(); // ER5 IMPORT_C TUid PreferredDataHandlerL(const TDataType& aDataType) const; IMPORT_C void StartIdleUpdateL(); @@ -114,12 +99,15 @@ IMPORT_C CBufFlat* ServiceImplArrayBufferL(TUid aServiceUid, const TDataType& aDataType) const; IMPORT_C CBufFlat* ServiceUidBufferL(TUid aAppUid) const; IMPORT_C CBufFlat* ServiceOpaqueDataBufferL(TUid aAppUid, TUid aServiceUid) const; + IMPORT_C CApaAppData* FindAndAddSpecificAppL(CApaAppRegFinder* aFinder, TUid aAppUid); IMPORT_C TUid PreferredDataHandlerL(const TDataType& aDataType, const TUid* aServiceUid, TInt& aPriority) const; IMPORT_C ~CApaAppList(); // 9.1 IMPORT_C CApaAppData* AppDataByFileName(const TDesC& aFullFileName) const; /*IMPORT_C*/ RFs& ShareProtectedFileServer(); + IMPORT_C void AddForcedRegistrationL(const TDesC& aRegistrationFile); + IMPORT_C void ResetForcedRegistrations(); IMPORT_C TBool IsLanguageChangePending() const; IMPORT_C static CApaAppList* Self(); IMPORT_C CArrayFixFlat* UninstalledAppArray(); @@ -137,15 +125,6 @@ IMPORT_C void AddCustomAppInfoInListL(TUid aAppUid, TLanguage aLanguage, const TDesC& aShortCaption); IMPORT_C void UpdateAppListByShortCaptionL(); IMPORT_C void UpdateAppListByIconCaptionOverridesL(); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - IMPORT_C void InitializeApplistL(MApaAppListObserver* aObserver); - void InitializeLangAppListL(); - IMPORT_C void UpdateApplistL(MApaAppListObserver* aObserver, RArray* aAppUpdateInfo, TUid aSecureID); - IMPORT_C void UpdateApplistByForceRegAppsL(RPointerArray& aForceRegAppsInfo); - IMPORT_C CArrayFixFlat* UpdatedAppsInfo(); -#endif - private: enum { @@ -155,11 +134,15 @@ ELangChangePending = 0x08 // This flag is used to check if applist update is in progress on language change event. }; private: - CApaAppList(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aIdlePeriodicDelay); + CApaAppList(RFs& aFs, TBool aLoadMbmIconsOnDemand, TInt aIdlePeriodicDelay); + void UpdateNextAppL(const TApaAppEntry& aAppEntry,TBool& aHasChanged); void AddToList( CApaAppData* aAppData ); + static void SetPending(CApaAppData* aAppData); + static void SetNotFound(CApaAppData* aAppData, TBool& aHasChanged); static TInt IdleUpdateCallbackL(TAny* aObject); TInt IdleUpdateL(); void ScanComplete(); + void UndoSetPending(CApaAppData* aAppData); void StopIdler(); void DeleteAppData(); @@ -171,16 +154,6 @@ void DeleteAppsListBackUpAndTempFiles(); void ScanRemovableDrivesAndUpdateL(); void CreateDefaultAppIconFileNameL(); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void UndoSetPending(CApaAppData* aAppData); - static void SetPending(CApaAppData* aAppData); - static void SetNotFound(CApaAppData* aAppData, TBool& aHasChanged); - void UpdateNextAppL(const TApaAppEntry& aAppEntry,TBool& aHasChanged); -#else - TInt FindAndDeleteApp(TUid aAppUid); -#endif - private: // Persistence Layer void RestoreL(); @@ -263,18 +236,13 @@ MApaAppListObserver* iObserver; CApaAppData* iValidFirstAppData; //First valid app data in linked list! TInt iFlags; - TInt iIdlePeriodicDelay; // idle timeout periodic delay + CApaAppRegFinder* iAppRegFinder; + TInt iIdlePeriodicDelay; // idle timeout periodic delay RFs iFsShareProtected; mutable CApaAppIconArray* iDefaultIconArray; mutable TInt iDefaultIconUsageCount; + CDesCArray* iForcedRegistrations; class CApaLangChangeMonitor; //inner class of CApaAppList. - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - class CApaScrAppInfo; -#else - CDesCArray* iForcedRegistrations; -#endif - CApaLangChangeMonitor* iAppLangMonitor; // Active Object used for language change monitoring. RBuf iAppsListCacheFileName; @@ -288,17 +256,8 @@ RPointerArray iCustomAppList; CApaIconCaptionOverrides* iIconCaptionOverrides; CApaIconCaptionCenrepObserver* iIconCaptionObserver; - CArrayFixFlat* iUninstalledApps; - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - Usif::RSoftwareComponentRegistry iScr; - CApaScrAppInfo *iScrAppInfo; - RArray iForceRegAppUids; - CArrayFixFlat* iAppsUpdated; -#else - CApaAppRegFinder* iAppRegFinder; - TBool iNNAInstallation; -#endif + TBool iNNAInstallation; + CArrayFixFlat* iUninstalledApps; private: friend class CApaLangChangeMonitor; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplapplistitem.cpp --- a/appfw/apparchitecture/aplist/aplapplistitem.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplapplistitem.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -25,9 +25,6 @@ #include "aplappinforeader.h" #include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#endif // Delays in the pseudo idle object that builds the application list // @@ -236,196 +233,43 @@ // Class CApaAppData // -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -CApaAppData::CApaAppData(RFs& aFs) - :iCaption(NULL), iShortCaption(NULL), - iFs(aFs), - iNonMbmIconFile(EFalse), - iApplicationLanguage(ELangNone), iIndexOfFirstOpenService(-1), - iShortCaptionFromResourceFile(NULL) - { - } -EXPORT_C CApaAppData* CApaAppData::NewL(const Usif::CApplicationRegistrationData& aAppInfo, RFs& aFs, const Usif::RSoftwareComponentRegistry& aScrCon) - { - CApaAppData* self=new(ELeave) CApaAppData(aFs); - CleanupStack::PushL(self); - self->ConstructL(aAppInfo, aScrCon); - CleanupStack::Pop(self); // self - return self; - } - -void CApaAppData::ConstructL(const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScrCon) - { - iCapabilityBuf.FillZ(iCapabilityBuf.MaxLength()); - iIcons = CApaAppIconArray::NewL(); - iViewDataArray=new(ELeave) CArrayPtrFlat(1); - iOwnedFileArray=new(ELeave) CDesCArraySeg(1); - User::LeaveIfError(ReadApplicationInformationFromSCRL(aAppInfo, aScrCon)); - } - -//Initializes the CApaAppData object with information read from SCR. Leaves if any error occurs during initialization. - -TInt CApaAppData::ReadApplicationInformationFromSCRL(const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScrCon) - { - HBufC* caption = NULL; - HBufC* shortCaption = NULL; - - CApaAppInfoReader* appInfoReader = NULL; - appInfoReader = CApaAppInfoReader::NewL(iFs, aAppInfo, aScrCon); - CleanupStack::PushL(appInfoReader); - TBool readSuccessful=EFalse; - readSuccessful= appInfoReader->ReadL(); - - iFullName=appInfoReader->AppBinaryFullName(); - - iUidType = appInfoReader->AppBinaryUidType(); - - caption = appInfoReader->Caption(); - shortCaption = appInfoReader->ShortCaption(); - - CApaAppIconArray* icons = appInfoReader->Icons(); - if(icons) - { - delete iIcons; - iIcons = icons; - iIconLoader = appInfoReader->IconLoader(); - } - else - { - TRAPD(err, icons = CApaAppIconArray::NewL()); - if(err == KErrNone) - { - delete iIcons; - iIcons = icons; - } - } - - - iOpaqueData = appInfoReader->OpaqueData(); - - if (readSuccessful) - { - appInfoReader->Capability(iCapabilityBuf); - - iDefaultScreenNumber = appInfoReader->DefaultScreenNumber(); +EXPORT_C CApaAppData* CApaAppData::NewL(const TApaAppEntry& aAppEntry, RFs& aFs) + { + CApaAppData* self=new(ELeave) CApaAppData(aFs); + CleanupStack::PushL(self); + self->ConstructL(aAppEntry); + CleanupStack::Pop(); // self + return self; + } - delete iIconFileName; - iIconFileName = appInfoReader->IconFileName(); - iNonMbmIconFile = appInfoReader->NonMbmIconFile(); - iNumOfAppIcons = appInfoReader->NumOfAppIcons(); - iApplicationLanguage = appInfoReader->AppLanguage(); - - // views - iViewDataArray->ResetAndDestroy(); - CArrayPtrFlat* viewDataArray = appInfoReader->Views(); - if (viewDataArray) - { - delete iViewDataArray; - iViewDataArray = viewDataArray; - - if(!iIconLoader && ViewMbmIconsRequireLoading()) - { - //if VIEW_DATA contains a MBM icon we need to initialize iIconLoader - iIconLoader = appInfoReader->IconLoader(); - } - } - - // owned files - iOwnedFileArray->Reset(); - CDesCArray* const ownedFileArray = appInfoReader->OwnedFiles(); - if (ownedFileArray) - { - delete iOwnedFileArray; - iOwnedFileArray = ownedFileArray; - } - - UpdateServiceArray(appInfoReader->ServiceArray(iIndexOfFirstOpenService)); - } - - CleanupStack::PopAndDestroy(appInfoReader); - - if (!caption) - { - TParsePtrC parse (*iFullName); - caption = parse.Name().Alloc(); - } - - // Put the captions into place - if (caption) - { - if (!shortCaption) - { - shortCaption = caption->Alloc(); - if (!shortCaption) - { - delete caption; - caption = NULL; - } - } - - delete iCaption; - iCaption = caption; - delete iShortCaption; - iShortCaption = shortCaption; - } - - return caption ? KErrNone : KErrNoMemory; - } - - -EXPORT_C TUid CApaAppData::NonNativeApplicationType() const -/** @internalComponent */ - { - if (iCapabilityBuf().iAttributes & TApaAppCapability::ENonNative) - return iUidType[1]; - else - return TUid::Null(); - } - -EXPORT_C TBool CApaAppData::IsLangChangePending() -{ - return iIsLangChangePending; -} - -#else CApaAppData::CApaAppData(RFs& aFs) - :iCaption(NULL), iShortCaption(NULL), - iIsPresent(CApaAppData::EIsPresent), iFs(aFs), - iNonMbmIconFile(EFalse), - iApplicationLanguage(ELangNone), iIndexOfFirstOpenService(-1), - iNonNativeApplicationType(TUid::Null()), - iShortCaptionFromResourceFile(NULL) - { - } - -EXPORT_C CApaAppData* CApaAppData::NewL(const TApaAppEntry& aAppEntry, RFs& aFs) - { - CApaAppData* self=new(ELeave) CApaAppData(aFs); - CleanupStack::PushL(self); - self->ConstructL(aAppEntry); - CleanupStack::Pop(); // self - return self; - } + :iCaption(NULL), iShortCaption(NULL), + iIsPresent(CApaAppData::EIsPresent), iFs(aFs), + iNonMbmIconFile(EFalse), + iApplicationLanguage(ELangNone), iIndexOfFirstOpenService(-1), + iNonNativeApplicationType(TUid::Null()), + iShortCaptionFromResourceFile(NULL) + { + } void CApaAppData::ConstructL(const TApaAppEntry& aAppEntry) - { - iUidType = aAppEntry.iUidType; // if the 2nd UID is KUidAppRegistrationFile, iUidType will be updated in ReadApplicationInformationFromResourceFiles() to reflect the TUidType for the application binary + { + iUidType = aAppEntry.iUidType; // if the 2nd UID is KUidAppRegistrationFile, iUidType will be updated in ReadApplicationInformationFromResourceFiles() to reflect the TUidType for the application binary + if (ApaUtils::TypeUidIsForRegistrationFile(aAppEntry.iUidType)) + { + iRegistrationFile = aAppEntry.iFullName.AllocL(); + } + else + { + iFullName = aAppEntry.iFullName.AllocL(); + } - if (ApaUtils::TypeUidIsForRegistrationFile(aAppEntry.iUidType)) - { - iRegistrationFile = aAppEntry.iFullName.AllocL(); - } - else - { - iFullName = aAppEntry.iFullName.AllocL(); - } - - iCapabilityBuf.FillZ(iCapabilityBuf.MaxLength()); - iIcons = CApaAppIconArray::NewL(); - iViewDataArray=new(ELeave) CArrayPtrFlat(1); - iOwnedFileArray=new(ELeave) CDesCArraySeg(1); - User::LeaveIfError(ReadApplicationInformationFromResourceFiles()); - } + iCapabilityBuf.FillZ(iCapabilityBuf.MaxLength()); + iIcons = CApaAppIconArray::NewL(); + iViewDataArray=new(ELeave) CArrayPtrFlat(1); + iOwnedFileArray=new(ELeave) CDesCArraySeg(1); + User::LeaveIfError(ReadApplicationInformationFromResourceFiles()); + } // Return a standard error code // The value returned only reflect the caption status @@ -437,330 +281,172 @@ // 2. Be very careful in this method, because it can be called on a newly constructed object, // or on an existing object, so don't assume member data pointers will be NULL TInt CApaAppData::ReadApplicationInformationFromResourceFiles() - { - HBufC* caption = NULL; - HBufC* shortCaption = NULL; - - iTimeStamp = TTime(0); // cannot init in constructor because this function can be called on an existing CApaAppData object + { + HBufC* caption = NULL; + HBufC* shortCaption = NULL; - if(iRegistrationFile) - { - CApaAppInfoReader* appInfoReader = NULL; - TRAP_IGNORE(appInfoReader = CApaAppInfoReader::NewL(iFs, *iRegistrationFile, iUidType[2])); - if (!appInfoReader) - { - if (!iFullName) - { - // assume that if iFullName is NULL, this method has been called as part - // of constructing a new app data object. The CApaAppInfoReader derived object - // could not be created, therefore we have no way to determine the full filename - // of the app binary, so give up - return KErrNoMemory; - } - } - else - { - TBool readSuccessful=EFalse; - TRAP_IGNORE(readSuccessful= appInfoReader->ReadL()); + iTimeStamp = TTime(0); // cannot init in constructor because this function can be called on an existing CApaAppData object - HBufC* const appBinaryFullName = appInfoReader->AppBinaryFullName(); - if (appBinaryFullName) - { - delete iFullName; - iFullName = appBinaryFullName; - } - - if (!iFullName) - { - delete appInfoReader; - return KErrNoMemory; - } - - // if this object has just been constructed, iUidType is currently the TUidType - // of the registration file, it should be the TUidType of the app binary file - TUidType uidType = appInfoReader->AppBinaryUidType(); - if (uidType[1].iUid != KNullUid.iUid) - iUidType = uidType; - - // must get captions regardless of value of readSuccessful, - // because the V1 reader might have read captions - // this is done to maintain behavioural compatibility with V1 - caption = appInfoReader->Caption(); - shortCaption = appInfoReader->ShortCaption(); - - CApaAppIconArray* icons = appInfoReader->Icons(); - if(icons) - { - delete iIcons; - iIcons = icons; - iIconLoader = appInfoReader->IconLoader(); - } - else - { - TRAPD(err, icons = CApaAppIconArray::NewL()); - if(err == KErrNone) - { - delete iIcons; - iIcons = icons; - } - } - - iTimeStamp = appInfoReader->TimeStamp(); - delete iLocalisableResourceFileName; - iLocalisableResourceFileName = appInfoReader->LocalisableResourceFileName(); - iLocalisableResourceFileTimeStamp = appInfoReader->LocalisableResourceFileTimeStamp(); + if(iRegistrationFile) + { + CApaAppInfoReader* appInfoReader = NULL; + TRAP_IGNORE(appInfoReader = CApaAppInfoReader::NewL(iFs, *iRegistrationFile, iUidType[2])); + if (!appInfoReader) + { + if (!iFullName) + { + // assume that if iFullName is NULL, this method has been called as part + // of constructing a new app data object. The CApaAppInfoReader derived object + // could not be created, therefore we have no way to determine the full filename + // of the app binary, so give up + return KErrNoMemory; + } + } + else + { + TBool readSuccessful=EFalse; + TRAP_IGNORE(readSuccessful= appInfoReader->ReadL()); - const TBool isNonNativeApp = - (TParsePtrC(*iRegistrationFile).Path().CompareF(KLitPathForNonNativeResourceAndIconFiles) == 0); - - if (isNonNativeApp) - { - // In the case of a non-native app, the resource file has been prefixed with a - // TCheckedUid, the second of whose UIDs is the non-native application type uid. - TEntry entry; - const TInt error=iFs.Entry(*iRegistrationFile, entry); - if (error!=KErrNone) - { - delete appInfoReader; - return error; - } - - __ASSERT_DEBUG(entry.iType[0].iUid==KUidPrefixedNonNativeRegistrationResourceFile, Panic(EPanicUnexpectedUid)); - iNonNativeApplicationType=entry.iType[1]; - } - - delete iOpaqueData; - iOpaqueData = appInfoReader->OpaqueData(); - - if (readSuccessful) - { - appInfoReader->Capability(iCapabilityBuf); - - iDefaultScreenNumber = appInfoReader->DefaultScreenNumber(); + HBufC* const appBinaryFullName = appInfoReader->AppBinaryFullName(); + if (appBinaryFullName) + { + delete iFullName; + iFullName = appBinaryFullName; + } + + if (!iFullName) + { + delete appInfoReader; + return KErrNoMemory; + } + + // if this object has just been constructed, iUidType is currently the TUidType + // of the registration file, it should be the TUidType of the app binary file + TUidType uidType = appInfoReader->AppBinaryUidType(); + if (uidType[1].iUid != KNullUid.iUid) + iUidType = uidType; - delete iIconFileName; - iIconFileName = appInfoReader->IconFileName(); - iIconFileTimeStamp = appInfoReader->IconFileTimeStamp(); - iNonMbmIconFile = appInfoReader->NonMbmIconFile(); - iNumOfAppIcons = appInfoReader->NumOfAppIcons(); - iApplicationLanguage = appInfoReader->AppLanguage(); - - // views - iViewDataArray->ResetAndDestroy(); - CArrayPtrFlat* viewDataArray = appInfoReader->Views(); - if (viewDataArray) - { - delete iViewDataArray; - iViewDataArray = viewDataArray; - - if(!iIconLoader && ViewMbmIconsRequireLoading()) - { - //if VIEW_DATA contains a MBM icon we need to initialize iIconLoader - iIconLoader = appInfoReader->IconLoader(); - } - } + // must get captions regardless of value of readSuccessful, + // because the V1 reader might have read captions + // this is done to maintain behavioural compatibility with V1 + caption = appInfoReader->Caption(); + shortCaption = appInfoReader->ShortCaption(); - // owned files - iOwnedFileArray->Reset(); - CDesCArray* const ownedFileArray = appInfoReader->OwnedFiles(); - if (ownedFileArray) - { - delete iOwnedFileArray; - iOwnedFileArray = ownedFileArray; - } - - UpdateServiceArray(appInfoReader->ServiceArray(iIndexOfFirstOpenService)); - } - - delete appInfoReader; - } - } - - if (!caption) - { - TParsePtrC parse (*iFullName); - caption = parse.Name().Alloc(); - } - - // Put the captions into place - if (caption) - { - if (!shortCaption) - { - shortCaption = caption->Alloc(); - if (!shortCaption) - { - delete caption; - caption = NULL; - } - } + CApaAppIconArray* icons = appInfoReader->Icons(); + if(icons) + { + delete iIcons; + iIcons = icons; + iIconLoader = appInfoReader->IconLoader(); + } + else + { + TRAPD(err, icons = CApaAppIconArray::NewL()); + if(err == KErrNone) + { + delete iIcons; + iIcons = icons; + } + } + + iTimeStamp = appInfoReader->TimeStamp(); + delete iLocalisableResourceFileName; + iLocalisableResourceFileName = appInfoReader->LocalisableResourceFileName(); + iLocalisableResourceFileTimeStamp = appInfoReader->LocalisableResourceFileTimeStamp(); - delete iCaption; - iCaption = caption; - delete iShortCaption; - iShortCaption = shortCaption; - } - - return caption ? KErrNone : KErrNoMemory; - } - - -/** Returns true if app info was provided by a registration file - -@return true if app info was provided by a registration file -*/ -EXPORT_C TBool CApaAppData::RegistrationFileUsed() const - { - return iRegistrationFile != NULL; - } - -/** Returns the full filename of the registration resource file + const TBool isNonNativeApp = + (TParsePtrC(*iRegistrationFile).Path().CompareF(KLitPathForNonNativeResourceAndIconFiles) == 0); + + if (isNonNativeApp) + { + // In the case of a non-native app, the resource file has been prefixed with a + // TCheckedUid, the second of whose UIDs is the non-native application type uid. + TEntry entry; + const TInt error=iFs.Entry(*iRegistrationFile, entry); + if (error!=KErrNone) + { + delete appInfoReader; + return error; + } + + __ASSERT_DEBUG(entry.iType[0].iUid==KUidPrefixedNonNativeRegistrationResourceFile, Panic(EPanicUnexpectedUid)); + iNonNativeApplicationType=entry.iType[1]; + } -@return The full path and filename of the registration resource file. -@internalTechnology -*/ -EXPORT_C TPtrC CApaAppData::RegistrationFileName() const - { - if (iRegistrationFile) - { - return *iRegistrationFile; - } - else - { - return TPtrC(KNullDesC); - } - } - - -/** Returns the full filename of the localisable resource file + delete iOpaqueData; + iOpaqueData = appInfoReader->OpaqueData(); -@return The full path and filename of the localisable resource file. -@internalTechnology -*/ -EXPORT_C TPtrC CApaAppData::LocalisableResourceFileName() const - { - if (iLocalisableResourceFileName) - { - return *iLocalisableResourceFileName; - } - else - { - return TPtrC(KNullDesC); - } - } + if (readSuccessful) + { + appInfoReader->Capability(iCapabilityBuf); - -TBool CApaAppData::Update() -// returns true if changes were made to the cached data - { - __APA_PROFILE_START(17); - TBool changed=EFalse; + iDefaultScreenNumber = appInfoReader->DefaultScreenNumber(); - // Get app info file entry - TEntry entry; - TInt ret; - if (iRegistrationFile != NULL) - { - ret = iFs.Entry(*iRegistrationFile, entry); - if (ret==KErrNone && entry.iModified!=iTimeStamp) - { - // assume registration file may have changed - changed = ETrue; - } - else - { - if (iLocalisableResourceFileName) - { - // see if localisable resource information might have changed - TParse parse; - ret = parse.SetNoWild(KAppResourceFileExtension, iLocalisableResourceFileName, NULL); - if (ret == KErrNone) - { - TFileName resourceFileName(parse.FullName()); - TLanguage language; - BaflUtils::NearestLanguageFileV2(iFs, resourceFileName, language); - (void)language; - if (resourceFileName.CompareF(*iLocalisableResourceFileName)!=0) - { - changed = ETrue; - } - else - { - ret = iFs.Entry(*iLocalisableResourceFileName, entry); - if ((ret==KErrNotFound && iLocalisableResourceFileTimeStamp!=TTime(0)) || - (ret==KErrNone && entry.iModified!=iLocalisableResourceFileTimeStamp)) - { - changed = ETrue; - } - } - } - } - } - } - if (changed) - { - // re-read data - // Ignore result, nothing we can do in case failure - // and the old values should be preserved - const TInt ignore = ReadApplicationInformationFromResourceFiles(); - } //lint !e529 Symbol 'ignore' not subsequently referenced - - else - { - if (iIconFileName) - { - ret = iFs.Entry(*iIconFileName, entry); - // See if the icon file has been "modified" - // It could have been replaced with a differnt version, deleted or added - // if the icon file specified in the resource was missing - if ((ret==KErrNotFound && iIconFileTimeStamp!=TTime(0)) || - (ret==KErrNone && entry.iModified!=iIconFileTimeStamp)) - { - // Assume the icon file has changed - iIconFileTimeStamp = entry.iModified; - changed = ETrue; - } - } - } + delete iIconFileName; + iIconFileName = appInfoReader->IconFileName(); + iIconFileTimeStamp = appInfoReader->IconFileTimeStamp(); + iNonMbmIconFile = appInfoReader->NonMbmIconFile(); + iNumOfAppIcons = appInfoReader->NumOfAppIcons(); + iApplicationLanguage = appInfoReader->AppLanguage(); + + // views + iViewDataArray->ResetAndDestroy(); + CArrayPtrFlat* viewDataArray = appInfoReader->Views(); + if (viewDataArray) + { + delete iViewDataArray; + iViewDataArray = viewDataArray; + + if(!iIconLoader && ViewMbmIconsRequireLoading()) + { + //if VIEW_DATA contains a MBM icon we need to initialize iIconLoader + iIconLoader = appInfoReader->IconLoader(); + } + } - __APA_PROFILE_END(17); - return changed; - } + // owned files + iOwnedFileArray->Reset(); + CDesCArray* const ownedFileArray = appInfoReader->OwnedFiles(); + if (ownedFileArray) + { + delete iOwnedFileArray; + iOwnedFileArray = ownedFileArray; + } + + UpdateServiceArray(appInfoReader->ServiceArray(iIndexOfFirstOpenService)); + } -EXPORT_C TBool CApaAppData::IsPending() const -/* Returns true if the app info is not yet updated by the current scan. */ - { - return (iIsPresent==CApaAppData::EPresentPendingUpdate - || iIsPresent==CApaAppData::ENotPresentPendingUpdate); - } - -EXPORT_C TUid CApaAppData::NonNativeApplicationType() const -/** @internalComponent */ - { - return iNonNativeApplicationType; - } + delete appInfoReader; + } + } + + if (!caption) + { + TParsePtrC parse (*iFullName); + caption = parse.Name().Alloc(); + } -void CApaAppData::SetAppPending() - { - if (iIsPresent == CApaAppData::ENotPresent - || iIsPresent == CApaAppData::ENotPresentPendingUpdate) - { - iIsPresent = CApaAppData::ENotPresentPendingUpdate; - } - else - { - iIsPresent = CApaAppData::EPresentPendingUpdate; - } - } -#endif + // Put the captions into place + if (caption) + { + if (!shortCaption) + { + shortCaption = caption->Alloc(); + if (!shortCaption) + { + delete caption; + caption = NULL; + } + } -EXPORT_C TApaAppEntry CApaAppData::AppEntry() const -/** Constructs an application entry based on this object. + delete iCaption; + iCaption = caption; + delete iShortCaption; + iShortCaption = shortCaption; + } -@return The application entry. */ - { - return TApaAppEntry(iUidType,*iFullName); - } + return caption ? KErrNone : KErrNoMemory; + } EXPORT_C CApaAppData::~CApaAppData() // Just delete components, NOT iNext (next CApaAppData in the list). @@ -779,20 +465,17 @@ } delete iOwnedFileArray; delete iIconFileName; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK delete iLocalisableResourceFileName; - delete iRegistrationFile; -#endif if (iServiceArray) { CleanupServiceArray(iServiceArray); iServiceArray = NULL; } delete iOpaqueData; + delete iRegistrationFile; iNext = NULL; } - void CApaAppData::UpdateServiceArray(CArrayFixFlat* aNewServiceArray) { // clear out any existing service info @@ -893,6 +576,14 @@ return iIcons->IconSizesL(); } +EXPORT_C TApaAppEntry CApaAppData::AppEntry() const +/** Constructs an application entry based on this object. + +@return The application entry. */ + { + return TApaAppEntry(iUidType,*iFullName); + } + EXPORT_C void CApaAppData::Capability(TDes8& aCapabilityBuf)const /** Gets the application's capabilities. @@ -923,6 +614,82 @@ return iOwnedFileArray; } +TBool CApaAppData::Update() +// returns true if changes were made to the cached data + { + __APA_PROFILE_START(17); + TBool changed=EFalse; + + // Get app info file entry + TEntry entry; + TInt ret; + if (iRegistrationFile != NULL) + { + ret = iFs.Entry(*iRegistrationFile, entry); + if (ret==KErrNone && entry.iModified!=iTimeStamp) + { + // assume registration file may have changed + changed = ETrue; + } + else + { + if (iLocalisableResourceFileName) + { + // see if localisable resource information might have changed + TParse parse; + ret = parse.SetNoWild(KAppResourceFileExtension, iLocalisableResourceFileName, NULL); + if (ret == KErrNone) + { + TFileName resourceFileName(parse.FullName()); + TLanguage language; + BaflUtils::NearestLanguageFileV2(iFs, resourceFileName, language); + (void)language; + if (resourceFileName.CompareF(*iLocalisableResourceFileName)!=0) + { + changed = ETrue; + } + else + { + ret = iFs.Entry(*iLocalisableResourceFileName, entry); + if ((ret==KErrNotFound && iLocalisableResourceFileTimeStamp!=TTime(0)) || + (ret==KErrNone && entry.iModified!=iLocalisableResourceFileTimeStamp)) + { + changed = ETrue; + } + } + } + } + } + } + if (changed) + { + // re-read data + // Ignore result, nothing we can do in case failure + // and the old values should be preserved + const TInt ignore = ReadApplicationInformationFromResourceFiles(); + } //lint !e529 Symbol 'ignore' not subsequently referenced + + else + { + if (iIconFileName) + { + ret = iFs.Entry(*iIconFileName, entry); + // See if the icon file has been "modified" + // It could have been replaced with a differnt version, deleted or added + // if the icon file specified in the resource was missing + if ((ret==KErrNotFound && iIconFileTimeStamp!=TTime(0)) || + (ret==KErrNone && entry.iModified!=iIconFileTimeStamp)) + { + // Assume the icon file has changed + iIconFileTimeStamp = entry.iModified; + changed = ETrue; + } + } + } + + __APA_PROFILE_END(17); + return changed; + } EXPORT_C TDataTypePriority CApaAppData::DataType(const TDataType& aDataType) const // returns the priority of the data type @@ -952,6 +719,12 @@ } +EXPORT_C TBool CApaAppData::IsPending() const +/* Returns true if the app info is not yet updated by the current scan. */ + { + return (iIsPresent==CApaAppData::EPresentPendingUpdate + || iIsPresent==CApaAppData::ENotPresentPendingUpdate); + } EXPORT_C TBool CApaAppData::CanUseScreenMode(TInt aScreenMode) /** Tests whether the specified screen mode is valid for any of @@ -1002,6 +775,51 @@ return iDefaultScreenNumber; } +/** Returns true if app info was provided by a registration file + +@return true if app info was provided by a registration file +*/ +EXPORT_C TBool CApaAppData::RegistrationFileUsed() const + { + return iRegistrationFile != NULL; + } + +/** Returns the full filename of the registration resource file + +@return The full path and filename of the registration resource file. +@internalTechnology +*/ +EXPORT_C TPtrC CApaAppData::RegistrationFileName() const + { + if (iRegistrationFile) + { + return *iRegistrationFile; + } + else + { + return TPtrC(KNullDesC); + } + } + + +/** Returns the full filename of the localisable resource file + +@return The full path and filename of the localisable resource file. +@internalTechnology +*/ +EXPORT_C TPtrC CApaAppData::LocalisableResourceFileName() const + { + if (iLocalisableResourceFileName) + { + return *iLocalisableResourceFileName; + } + else + { + return TPtrC(KNullDesC); + } + } + + /** Returns the non-native application opaque data @return The non-native application opaque data. @@ -1019,6 +837,11 @@ } } +EXPORT_C TUid CApaAppData::NonNativeApplicationType() const +/** @internalComponent */ + { + return iNonNativeApplicationType; + } /** Returns the full filename of the file containing application icons @@ -1168,9 +991,7 @@ iIconFileNameFromResourceFile = iIconFileName; iIconFileName = NULL; iNonMbmIconFileFromResourceFile = iNonMbmIconFile; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iIconFileTimeStampFromResourceFile = iIconFileTimeStamp; -#endif } iNonMbmIconFile = !CApaAppInfoReader::FileIsMbmWithGenericExtensionL(aFileName); @@ -1204,19 +1025,29 @@ } } +void CApaAppData::SetAppPending() + { + if (iIsPresent == CApaAppData::ENotPresent + || iIsPresent == CApaAppData::ENotPresentPendingUpdate) + { + iIsPresent = CApaAppData::ENotPresentPendingUpdate; + } + else + { + iIsPresent = CApaAppData::EPresentPendingUpdate; + } + } + void CApaAppData::InternalizeL(RReadStream& aReadStream) /** Internalizes the appdata from the AppsList.bin file */ { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TUint highTime = aReadStream.ReadUint32L(); TUint lowTime = aReadStream.ReadUint32L(); iTimeStamp = TTime(MAKE_TINT64(highTime, lowTime)); - + highTime = aReadStream.ReadUint32L(); lowTime = aReadStream.ReadUint32L(); iIconFileTimeStamp = TTime(MAKE_TINT64(highTime, lowTime)); -#endif - iCaption = HBufC::NewL(aReadStream, KMaxFileName); // Caption iShortCaption = HBufC::NewL(aReadStream, KMaxFileName); // Shortcaption iFullName = HBufC::NewL(aReadStream, KMaxFileName); // Filename of application binary @@ -1230,9 +1061,7 @@ iUidType = TUidType(uid1, uid2, uid3); // Application UID aReadStream >> iCapabilityBuf; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iRegistrationFile = HBufC::NewL(aReadStream, KMaxFileName); // Registration Filename -#endif iDefaultScreenNumber = aReadStream.ReadUint32L(); // Default Screen number iNumOfAppIcons = aReadStream.ReadInt32L(); // No. of icons iNonMbmIconFile = aReadStream.ReadUint32L(); @@ -1263,7 +1092,6 @@ TRAP_IGNORE(iIcons = CApaAppIconArray::NewDefaultIconsL()); // Creates and Loads Default Icons. } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK HBufC* localisableResourceFileName = HBufC::NewL(aReadStream, KMaxFileName); // Registration Filename if (*localisableResourceFileName != KNullDesC) iLocalisableResourceFileName = localisableResourceFileName; @@ -1273,13 +1101,10 @@ highTime = aReadStream.ReadUint32L(); lowTime = aReadStream.ReadUint32L(); iLocalisableResourceFileTimeStamp = TTime(MAKE_TINT64(highTime, lowTime)); // Localisable file timestamp -#endif - + iApplicationLanguage = (TLanguage)aReadStream.ReadInt32L(); // Application Language iIndexOfFirstOpenService = aReadStream.ReadUint32L(); // Index of first open service -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationType.iUid = aReadStream.ReadUint32L(); -#endif HBufC8* opaqueData = HBufC8::NewL(aReadStream, KMaxFileName); // Opaque Data if (*opaqueData != KNullDesC8) @@ -1378,7 +1203,6 @@ void CApaAppData::ExternalizeL(RWriteStream& aWriteStream) const { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK aWriteStream.WriteUint32L(I64HIGH(iTimeStamp.Int64())); aWriteStream.WriteUint32L(I64LOW(iTimeStamp.Int64())); @@ -1392,7 +1216,6 @@ aWriteStream.WriteUint32L(I64HIGH(iIconFileTimeStamp.Int64())); aWriteStream.WriteUint32L(I64LOW(iIconFileTimeStamp.Int64())); } -#endif if (iCaptionFromResourceFile) // Caption present in the resource file would be externalized if the one in applist has dynamically changed { @@ -1415,9 +1238,7 @@ aWriteStream << iUidType[i]; // Uid Type aWriteStream << iCapabilityBuf; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK aWriteStream << RegistrationFileName(); // Registration filename -#endif aWriteStream.WriteUint32L(iDefaultScreenNumber); // Default screen number if (iIconFileNameFromResourceFile) @@ -1432,20 +1253,17 @@ aWriteStream.WriteUint32L(iNonMbmIconFile); aWriteStream << IconFileName(); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + aWriteStream << LocalisableResourceFileName(); aWriteStream.WriteUint32L(I64HIGH(iLocalisableResourceFileTimeStamp.Int64())); aWriteStream.WriteUint32L(I64LOW(iLocalisableResourceFileTimeStamp.Int64())); -#endif aWriteStream.WriteInt32L(iApplicationLanguage); aWriteStream.WriteUint32L(iIndexOfFirstOpenService); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK aWriteStream.WriteUint32L(iNonNativeApplicationType.iUid); -#endif aWriteStream << OpaqueData(); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplapplistitem.h --- a/appfw/apparchitecture/aplist/aplapplistitem.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplapplistitem.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -29,13 +29,6 @@ #include #include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#endif - - - // classes defined: class CApaAppData; class CApaAppList; @@ -101,25 +94,15 @@ */ class CApaAppData : public CBase { -public: -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - IMPORT_C static CApaAppData* NewL(const Usif::CApplicationRegistrationData& aAppInfo, RFs& aFs, const Usif::RSoftwareComponentRegistry& aScrCon); - IMPORT_C TBool IsLangChangePending(); -#else - IMPORT_C static CApaAppData* NewL(const TApaAppEntry& aAppEntry, RFs& aFs); - inline TBool IsPresent() const; - IMPORT_C TBool RegistrationFileUsed() const; - IMPORT_C TPtrC RegistrationFileName() const; - IMPORT_C TBool IsPending()const; - IMPORT_C TPtrC LocalisableResourceFileName() const; -#endif - +public: + IMPORT_C static CApaAppData* NewL(const TApaAppEntry& aAppEntry, RFs& aFs); IMPORT_C ~CApaAppData(); IMPORT_C TApaAppEntry AppEntry() const; inline TPtrC Caption() const; inline TPtrC ShortCaption() const; IMPORT_C CApaMaskedBitmap* Icon(TInt aIconIndex) const; IMPORT_C void Capability(TDes8& aCapabilityBuf)const; + inline TBool IsPresent() const; // ER5 IMPORT_C TDataTypePriority DataType(const TDataType& aDataType) const; // ER6 @@ -133,17 +116,22 @@ IMPORT_C void GetIconInfo(TInt& aIconCount, TInt& aDefaultIconsUsed) const; // 8.1 IMPORT_C TUint DefaultScreenNumber() const; + IMPORT_C TBool RegistrationFileUsed() const; IMPORT_C TPtrC IconFileName() const; IMPORT_C TBool NonMbmIconFile() const; + // 9.0 IMPORT_C TBool ImplementsService(TUid aServiceUid) const; TInt ImplementsServiceWithDataType(TUid aServiceUid, const TDataType& aDataType) const; // 9.1 IMPORT_C TLanguage ApplicationLanguage() const; + IMPORT_C TPtrC RegistrationFileName() const; IMPORT_C TPtrC8 OpaqueData() const; - IMPORT_C TUid NonNativeApplicationType() const; + IMPORT_C TUid NonNativeApplicationType() const; + IMPORT_C TPtrC LocalisableResourceFileName() const; IMPORT_C void SetShortCaptionL(const TDesC& aShortCaption); + IMPORT_C TBool IsPending()const; // 9.5 IMPORT_C void SetCaptionL(const TDesC& aCaption); IMPORT_C void SetIconsL(const TDesC& aFileName, TInt aNumIcons); @@ -154,21 +142,15 @@ inline CApaAppData* Next() const; private: CApaAppData(RFs& aFs); + TBool Update(); + void SetAppPending(); + + void ConstructL(const TApaAppEntry& aAppEntry); + TInt ReadApplicationInformationFromResourceFiles(); void UpdateServiceArray(CArrayFixFlat* aNewServiceArray); TDataTypePriority DataType(const TDataType& aDataType, const CArrayFixFlat& aDataTypeArray) const; void InternalizeL(RReadStream& aReadStream); TBool ViewMbmIconsRequireLoading() const; - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void ConstructL(const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScrCon); - TInt ReadApplicationInformationFromSCRL(const Usif::CApplicationRegistrationData& aAppInfo, const Usif::RSoftwareComponentRegistry& aScrCon); -#else - TBool Update(); - void SetAppPending(); - void ConstructL(const TApaAppEntry& aAppEntry); - TInt ReadApplicationInformationFromResourceFiles(); -#endif - private: enum { ENotPresent, ENotPresentPendingUpdate, EPresentPendingUpdate, EIsPresent, ESuperseded }; private: @@ -176,43 +158,35 @@ HBufC* iCaption; HBufC* iShortCaption; HBufC* iFullName; // filename of application binary - TUid iUid; - TUidType iUidType; + TInt iIsPresent; // uses enum + TUidType iUidType; CApaAppData* iNext; TApaAppCapabilityBuf iCapabilityBuf; CApaAppEntry* iSuccessor; + TTime iTimeStamp; CArrayPtrFlat* iViewDataArray; CDesCArray* iOwnedFileArray; RFs& iFs; + HBufC* iRegistrationFile; TUint iDefaultScreenNumber; HBufC* iIconFileName; TBool iNonMbmIconFile; + HBufC* iLocalisableResourceFileName; + TTime iLocalisableResourceFileTimeStamp; + TTime iIconFileTimeStamp; TLanguage iApplicationLanguage; CArrayFixFlat* iServiceArray; TInt iIndexOfFirstOpenService; + TUid iNonNativeApplicationType; HBufC8* iOpaqueData; TInt iNumOfAppIcons; TInt iNumOfAppIconsFromResourceFile; HBufC* iIconFileNameFromResourceFile; // Icon file name as found in the localisable resource file TBool iNonMbmIconFileFromResourceFile; // A Flag that tells whether the icon in resource file is non MBM file format + TTime iIconFileTimeStampFromResourceFile; HBufC* iShortCaptionFromResourceFile; // Short Caption as found in the localisable resource file HBufC* iCaptionFromResourceFile; // Caption as found in the localisable resource file CApaIconLoader* iIconLoader; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - TInt iIsPresent; // uses enum - TTime iTimeStamp; - HBufC* iRegistrationFile; - HBufC* iLocalisableResourceFileName; - TTime iLocalisableResourceFileTimeStamp; - TTime iIconFileTimeStamp; - TUid iNonNativeApplicationType; - TTime iIconFileTimeStampFromResourceFile; -#endif - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - TBool iIsLangChangePending; -#endif - private: friend class CApaAppList; }; @@ -275,13 +249,11 @@ inline TPtrC CApaAppData::ShortCaption() const { return *iShortCaption; } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK /** Tests whether the application is present or not on the device. @return True if application exists, else false. */ inline TBool CApaAppData::IsPresent() const { return iIsPresent; } -#endif /** Gets the Next Appdata in the list diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/aplist/aplappregfinder.cpp --- a/appfw/apparchitecture/aplist/aplappregfinder.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/aplist/aplappregfinder.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -186,7 +186,7 @@ TParse regFileNameParser; const TDriveName driveName = currentDrive.iUnit.Name(); regFileNameParser.Set(entry.iName, &appFolderOnDrive, &driveName); - + // Apparc will call sidchecker to verify if an application is a valid registered application. // Apparc will call sidchecker in the following conditions // 1. If the current drive is a removable drive diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apserv/APSCLSV.H --- a/appfw/apparchitecture/apserv/APSCLSV.H Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSCLSV.H Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -126,8 +126,6 @@ EDebugAddFailingNonNativeApplicationsUpdate, EDebugAddPanicingNonNativeApplicationsUpdate, EDebugAddRollbackPanicingNonNativeApplicationsUpdate, // = 89 - EAppListServUpdateAppList, - EAppListUpdatedAppsInfo, EAppListServAppInfoProvidedByRegistrationFile = 99, // = 99 //WriteDeviceData Capability requirement // ER5 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apserv/APSSERV.CPP --- a/appfw/apparchitecture/apserv/APSSERV.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSSERV.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -26,38 +26,24 @@ #include "APFREC.H" #include "APSSES.H" #include "APSSTD.H" +#include "../aplist/aplappregfinder.h" #include "../aplist/aplapplistitem.h" #include "APSSCAN.H" #include "APSSTD.H" #include "APASVST.H" #include #include "APSRECCACHE.h" +#include "apsnnapps.h" +#include "../apfile/apinstallationmonitor.h" #include "../apgrfx/apprivate.h" #include "apgnotif.h" -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#include -#else -#include "../aplist/aplappregfinder.h" -#include "apsnnapps.h" -#include "../apfile/apinstallationmonitor.h" -#endif - - _LIT(KAppArcServerSemaphore,"AppArcServerSemaphore"); _LIT(KAppArcServerThread,"AppArcServerThread"); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK _LIT(KAppRegistrationFileImportLocation, "?:\\private\\10003a3f\\import\\apps\\"); _LIT(KAppResourceAppsLocation, "?:\\resource\\apps\\"); _LIT(KNonNativeApplicationTypeRegistry, ":\\private\\10003a3f\\NonNativeTypes.dat"); -//To monitor all drives. -const TInt KApaMonitorAllDrives = 0x3FFFFFF; -#endif - /* * patchable const data values defined in ApsConstData.cpp */ @@ -69,6 +55,9 @@ const TUint8 KPolicyElementWriteDeviceData = 0; +//To monitor all drives. +const TInt KApaMonitorAllDrives = 0x3FFFFFF; + const TUint KRangeCount = 3; const TInt KAppListServRanges[KRangeCount] = @@ -150,10 +139,8 @@ iAppList(0), iTypeStoreModified(0), iLoadRecognizersOnDemand(KApaLoadDataRecognizersOnDemand), -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iForceRegistrationStatus(EForceRegistrationNone), -#endif - iLoadMbmIconsOnDemand(KApaLoadMbmIconsOnDemand) + iLoadMbmIconsOnDemand(KApaLoadMbmIconsOnDemand), + iForceRegistrationStatus(EForceRegistrationNone) { #ifdef __WINS__ @@ -176,16 +163,7 @@ StartL(KAppListServerName); User::LeaveIfError(Dll::SetTls(this)); User::LeaveIfError(iFs.Connect()); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - //Connect to sisregistrysession to initially populate the applications information and - //store it to SCR. - Swi::RSisRegistrySession sisReg; - sisReg.Connect(); - sisReg.Close(); -#endif - - + // Get the idle timeout delay from the commandline if specified. The default is 50000ms const TInt cmdLineLen = User::CommandLineLength(); TInt idlePeriodicDelay=50000; //default value @@ -248,15 +226,12 @@ iAppList=CApaAppList::NewL(iFs, iLoadMbmIconsOnDemand, idlePeriodicDelay); // takes ownership of scanner -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK // If the phone rebooted halfway through processing updates, there will be a log file left // look for one and recover if neccessary CApsNonNativeApplicationsManager::RecoverFromUpdateLogL(iFs); -#endif iMimeTypeRecognizer=CApaScanningDataRecognizer::NewL(iFs, !iLoadRecognizersOnDemand); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK ConstructPathsToMonitorL(); if ( iAppFsMonitor ) @@ -264,8 +239,6 @@ iAppFsMonitor->Start(ENotifyFile); iAppFsMonitor->SetBlocked(ETrue); } -#endif - TRAP_IGNORE(iAppList->InitListL(this)); // @@ -287,29 +260,22 @@ iBaBackupSessionWrapper=CBaBackupSessionWrapper::NewL(); iBaBackupSessionWrapper->RegisterBackupOperationObserverL(*((MBackupOperationObserver*)this)); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - TRAP_IGNORE(InitNonNativeApplicationTypeArrayL()); -#else - // - TChar sysDrive = RFs::GetSystemDriveChar(); - TInt maxSizeofFileName = KNonNativeApplicationTypeRegistry().Length() + 1; - iNonNativeApplicationTypeRegistry.CreateL(maxSizeofFileName); - iNonNativeApplicationTypeRegistry.Append(sysDrive); - iNonNativeApplicationTypeRegistry.Append(KNonNativeApplicationTypeRegistry()); - - TRAP_IGNORE(InternalizeNonNativeApplicationTypeArrayL()); // We don't want a corrupt file to prevent from starting -#endif - + // + TChar sysDrive = RFs::GetSystemDriveChar(); + TInt maxSizeofFileName = KNonNativeApplicationTypeRegistry().Length() + 1; + iNonNativeApplicationTypeRegistry.CreateL(maxSizeofFileName); + iNonNativeApplicationTypeRegistry.Append(sysDrive); + iNonNativeApplicationTypeRegistry.Append(KNonNativeApplicationTypeRegistry()); + + TRAP_IGNORE(InternalizeNonNativeApplicationTypeArrayL()); // We don't want a corrupt file to prevent from starting if(iLoadRecognizersOnDemand) iRecognizerUnloadTimer=CPeriodic::NewL(EPriorityNormal); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + // iAppInstallationMonitor = CApaAppInstallationMonitor::NewL(this); iAppInstallationMonitor->Start(); -#endif } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK void CApaAppArcServer::ConstructPathsToMonitorL() { TInt drivesToMonitor = KApaDrivesToMonitor; @@ -371,20 +337,16 @@ iAppFsMonitor->AddLocationL(KAppResourceAppsLocation); } } -#endif - + EXPORT_C CApaAppArcServer::~CApaAppArcServer() { if(iBaBackupSessionWrapper) iBaBackupSessionWrapper->DeRegisterBackupOperationObserver(*this); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK delete iAppInstallationMonitor; - delete iAppFsMonitor; - iNonNativeApplicationTypeRegistry.Close(); -#endif delete iAppList; // deletes scanners delete iMimeTypeRecognizer; delete iMimeTypeToAppMappingsManager; + delete iAppFsMonitor; delete iTypeStoreMonitor; delete iBaBackupSessionWrapper; delete iRecognitionCache; @@ -399,9 +361,9 @@ iNonNativeApplicationTypeArray.Close(); delete iRecognizerUnloadTimer; + iNonNativeApplicationTypeRegistry.Close(); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK EXPORT_C void CApaAppArcServer::HandleInstallationStartEvent() { if ( iAppFsMonitor ) @@ -419,7 +381,6 @@ } AppList().RestartScanL(); } -#endif CSession2* CApaAppArcServer::NewSessionL(const TVersion& aVersion,const RMessage2&/* aMessage*/) const // Create a new server session. @@ -435,7 +396,7 @@ // // scanning code here // -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + EXPORT_C TCallBack CApaAppArcServer::RescanCallBack() { return TCallBack(&AppFsNotifyWithForcedRegistrationsResetCallBack,this); @@ -454,7 +415,6 @@ reinterpret_cast(aObject)->UpdateApps(); return KErrNone; } -#endif TInt CApaAppArcServer::PlugInNotifyCallBack(TAny* aObject) { @@ -471,7 +431,6 @@ return KErrNone; } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK void CApaAppArcServer::UpdateApps() // update the list { @@ -487,8 +446,7 @@ { iForceRegistrationStatus|=EForceRegistrationRequested; UpdateApps(); - } -#endif + } void CApaAppArcServer::NotifyUpdate(TInt aReason) // tell all sessions to update their clients @@ -522,23 +480,10 @@ if(modificationStatus) TRAP_IGNORE(iMimeTypeToAppMappingsManager->StoreL()); } - + // iterate through sessions iSessionIter.SetToFirst(); CApaAppArcServSession* ses=static_cast(&(*iSessionIter++)); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - //Get the updated application information from iAppList - CArrayFixFlat* updatedAppsInfo=iAppList->UpdatedAppsInfo(); - - while (ses!=NULL) - { - //Call session object NotifyClients and pass the updated application information. - ses->NotifyClients(aReason, updatedAppsInfo); - ses=static_cast(&(*iSessionIter++)); - } -#else - while (ses!=NULL) { if(iForceRegistrationStatus & EForceRegistrationRequested) @@ -565,7 +510,6 @@ //If this function is called not because of force registration, clear force registration applist change status. iForceRegistrationStatus &= (~EForceRegistrationAppListChanged); } -#endif } void CApaAppArcServer::UpdatePlugIns() @@ -632,20 +576,16 @@ case MBackupOperationObserver::EAbort: break; case MBackupOperationObserver::EStart: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if ( iAppFsMonitor ) { iAppFsMonitor->SetBlocked(ETrue); } -#endif break; case MBackupOperationObserver::EEnd: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if ( iAppFsMonitor ) { iAppFsMonitor->SetBlocked(EFalse); } -#endif break; default: Panic(EEventFromBackupObserverError); @@ -655,12 +595,10 @@ void CApaAppArcServer::InitialListPopulationComplete() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK if ( iAppFsMonitor ) { iAppFsMonitor->SetBlocked(EFalse); } -#endif // notify clients (whoever is interested) that initial population of list is completed iSessionIter.SetToFirst(); @@ -673,90 +611,41 @@ } } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -/* - * Cleanup RPointerArray - */ -void CleanupAndDestroyLauncherArray(TAny* aRPrray) - { - RPointerArray* rpArray = (static_cast*>(aRPrray)); - rpArray->ResetAndDestroy(); - rpArray->Close(); - } - - -/* - * Gets non-native type to its run time mapping information from SCR and initialzes - * a mapping array - */ -void CApaAppArcServer::InitNonNativeApplicationTypeArrayL() - { - Usif::RSoftwareComponentRegistry scrSession; - User::LeaveIfError(scrSession.Connect()); - CleanupClosePushL(scrSession); - - RPointerArray launchers; - //Get non-native type to its run-time mappings - scrSession.GetApplicationLaunchersL(launchers); - TCleanupItem cleanup(CleanupAndDestroyLauncherArray, &launchers); - CleanupStack::PushL(cleanup); - - //Get each mapping and add it to mapping array - for(TInt index=0;indexTypeId(); - nonNativeApplicationType.iNativeExecutable=launcherInfo->Launcher().AllocLC(); - iNonNativeApplicationTypeArray.AppendL(nonNativeApplicationType); - CleanupStack::Pop(nonNativeApplicationType.iNativeExecutable); - } - CleanupStack::PopAndDestroy(2, &scrSession); - } - -void CApaAppArcServer::UpdateAppListL(RArray* aAppUpdateInfo, TUid aSecureID) -{ - iAppList->UpdateApplistL(this, aAppUpdateInfo, aSecureID); -} -#else - void CApaAppArcServer::RegisterNonNativeApplicationTypeL(TUid aApplicationType, const TDesC& aNativeExecutable) - { - for (TInt i=iNonNativeApplicationTypeArray.Count()-1; i>=0; --i) - { - if (iNonNativeApplicationTypeArray[i].iTypeUid.iUid==aApplicationType.iUid) - User::Leave(KErrAlreadyExists); - } - - SNonNativeApplicationType nonNativeApplicationType; - nonNativeApplicationType.iTypeUid.iUid=aApplicationType.iUid; - nonNativeApplicationType.iNativeExecutable=aNativeExecutable.AllocLC(); - iNonNativeApplicationTypeArray.AppendL(nonNativeApplicationType); - CleanupStack::Pop(nonNativeApplicationType.iNativeExecutable); - CleanupStack::PushL(TCleanupItem(DeleteLastNonNativeApplicationType, this)); - ExternalizeNonNativeApplicationTypeArrayL(); - CleanupStack::Pop(this); // the TCleanupItem - } + { + for (TInt i=iNonNativeApplicationTypeArray.Count()-1; i>=0; --i) + { + if (iNonNativeApplicationTypeArray[i].iTypeUid.iUid==aApplicationType.iUid) + User::Leave(KErrAlreadyExists); + } + + SNonNativeApplicationType nonNativeApplicationType; + nonNativeApplicationType.iTypeUid.iUid=aApplicationType.iUid; + nonNativeApplicationType.iNativeExecutable=aNativeExecutable.AllocLC(); + iNonNativeApplicationTypeArray.AppendL(nonNativeApplicationType); + CleanupStack::Pop(nonNativeApplicationType.iNativeExecutable); + CleanupStack::PushL(TCleanupItem(DeleteLastNonNativeApplicationType, this)); + ExternalizeNonNativeApplicationTypeArrayL(); + CleanupStack::Pop(this); // the TCleanupItem + } void CApaAppArcServer::DeregisterNonNativeApplicationTypeL(TUid aApplicationType) - { - TInt i; - for (i=iNonNativeApplicationTypeArray.Count()-1; i>=0; --i) - { - if (iNonNativeApplicationTypeArray[i].iTypeUid.iUid==aApplicationType.iUid) - break; - } - - if (i>=0) - { - ExternalizeNonNativeApplicationTypeArrayL(i); - delete iNonNativeApplicationTypeArray[i].iNativeExecutable; - iNonNativeApplicationTypeArray[i].iNativeExecutable = NULL; - iNonNativeApplicationTypeArray.Remove(i); - } - } + { + TInt i; + for (i=iNonNativeApplicationTypeArray.Count()-1; i>=0; --i) + { + if (iNonNativeApplicationTypeArray[i].iTypeUid.iUid==aApplicationType.iUid) + break; + } + + if (i>=0) + { + ExternalizeNonNativeApplicationTypeArrayL(i); + delete iNonNativeApplicationTypeArray[i].iNativeExecutable; + iNonNativeApplicationTypeArray[i].iNativeExecutable = NULL; + iNonNativeApplicationTypeArray.Remove(i); + } + } void CApaAppArcServer::InternalizeNonNativeApplicationTypeArrayL() { @@ -784,39 +673,37 @@ CleanupStack::PopAndDestroy(&file); } - void CApaAppArcServer::ExternalizeNonNativeApplicationTypeArrayL(TInt aIndexToIgnore/*=-1*/) const - { - RFs& fs=const_cast(iFs); - fs.MkDirAll(iNonNativeApplicationTypeRegistry); // ignore any error - RFile file; - CleanupClosePushL(file); - User::LeaveIfError(file.Replace(fs, iNonNativeApplicationTypeRegistry, EFileShareExclusive|EFileStream|EFileWrite)); - RFileWriteStream targetStream; - targetStream.Attach(file); // file gets closed by this call, but that's okay, we don't need it any more (targetStream has its own copy of this RFile object that it owns) - CleanupClosePushL(targetStream); - const TInt arrayCount(iNonNativeApplicationTypeArray.Count()); - TInt arrayCountToExternalize=arrayCount; - if (aIndexToIgnore>=0) - --arrayCountToExternalize; + { + RFs& fs=const_cast(iFs); + fs.MkDirAll(iNonNativeApplicationTypeRegistry); // ignore any error + RFile file; + CleanupClosePushL(file); + User::LeaveIfError(file.Replace(fs, iNonNativeApplicationTypeRegistry, EFileShareExclusive|EFileStream|EFileWrite)); + RFileWriteStream targetStream; + targetStream.Attach(file); // file gets closed by this call, but that's okay, we don't need it any more (targetStream has its own copy of this RFile object that it owns) + CleanupClosePushL(targetStream); + const TInt arrayCount(iNonNativeApplicationTypeArray.Count()); + TInt arrayCountToExternalize=arrayCount; + if (aIndexToIgnore>=0) + --arrayCountToExternalize; - TCardinality(arrayCountToExternalize).ExternalizeL(targetStream); - for (TInt i=0; i=0; --i) { @@ -824,56 +711,11 @@ if (nonNativeApplicationType.iTypeUid.iUid==aNonNativeApplicationType.iUid) return *nonNativeApplicationType.iNativeExecutable; } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - //If the mapping is not available in the list, search in SCR and add it to the list. - TPtrC nativeExecutableName=FindAndAddNonNativeRuntimeMappingL(aNonNativeApplicationType); - if(nativeExecutableName==KNullDesC()) - User::Leave(KErrNotSupported); // not KErrNotFound - - return nativeExecutableName; -#else + User::Leave(KErrNotSupported); // not KErrNotFound return KNullDesC(); -#endif } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -TPtrC CApaAppArcServer::FindAndAddNonNativeRuntimeMappingL(TUid aNonNativeApplicationType) -{ - //If non-native type to its runtime is not available search in SCR and update in list - Usif::RSoftwareComponentRegistry scrSession; - User::LeaveIfError(scrSession.Connect()); - CleanupClosePushL(scrSession); - - RPointerArray launchers; - //Get non-native type to its run-time mappings - scrSession.GetApplicationLaunchersL(launchers); - TCleanupItem cleanup(CleanupAndDestroyLauncherArray, &launchers); - CleanupStack::PushL(cleanup); - - //Search for mapping and add it mapping list. - for(TInt index=0;indexTypeId()) - { - SNonNativeApplicationType nonNativeApplicationType; - nonNativeApplicationType.iTypeUid.iUid=launcherInfo->TypeId(); - nonNativeApplicationType.iNativeExecutable=launcherInfo->Launcher().AllocLC(); - iNonNativeApplicationTypeArray.AppendL(nonNativeApplicationType); - CleanupStack::Pop(nonNativeApplicationType.iNativeExecutable); - CleanupStack::PopAndDestroy(2, &scrSession); - return *nonNativeApplicationType.iNativeExecutable; - } - } - - CleanupStack::PopAndDestroy(2, &scrSession); - return KNullDesC(); -} -#endif - void CApaAppArcServer::DeleteLastNonNativeApplicationType(TAny* aThis) { // static CApaAppArcServer& self=*static_cast(aThis); @@ -894,13 +736,6 @@ // iterate through sessions iSessionIter.SetToFirst(); CApaAppArcServSession* ses=static_cast(&(*iSessionIter++)); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - while (ses) - { - ses->NotifyScanComplete(); - ses=static_cast(&(*iSessionIter++)); - } -#else while (ses) { if((iForceRegistrationStatus & EForceRegistrationRequested) || @@ -925,7 +760,6 @@ } //Clear force registration request status iForceRegistrationStatus &= (~EForceRegistrationRequested); -#endif } /* diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apserv/APSSES.CPP --- a/appfw/apparchitecture/apserv/APSSES.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSSES.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -38,18 +38,13 @@ #include #include "../apgrfx/apprivate.h" #include "apgnotif.h" +#include "../aplist/aplappregfinder.h" #include "ApLaunchChecker.h" +#include "apsnnapps.h" #include "../aplist/aplapplistitem.h" #include "apsecutils.h" -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include "../aplist/aplappregfinder.h" -#include "apsnnapps.h" -#else -#include "usif/scr/scr.h" -#endif - const TInt KApaAppListServMaxBuffer=256; #include "APSRECCACHE.h" const TInt KApaAppInfoArrayGranularity = 4; @@ -152,34 +147,21 @@ return self; } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK CApaAppListServSession::CApaAppListServSession(RFs& aFs, CApaAppArcServer& aAppArcSrv, CApaAppList& aAppList) : iFs(aFs), iAppArcSrv(aAppArcSrv), iAppList(aAppList), iApaAppInfoArray(KApaAppInfoArrayGranularity) { } -#else -CApaAppListServSession::CApaAppListServSession(RFs& aFs, CApaAppArcServer& aAppArcSrv, CApaAppList& aAppList) - : iFs(aFs), iAppArcSrv(aAppArcSrv), iAppList(aAppList), iApaAppInfoArray(KApaAppInfoArrayGranularity), - iNotificationRequested(EFalse) - { - - } -#endif void CApaAppListServSession::ConstructL() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager = CApsNonNativeApplicationsManager::NewL(iAppArcSrv,iFs); -#endif } CApaAppListServSession::~CApaAppListServSession() { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK delete iNonNativeApplicationsManager; -#endif iApaAppInfoArray.ResetAndDestroy(); iApaAppInfoArray.Close(); } @@ -269,68 +251,36 @@ ApplicationLanguageL(aMessage); break; case EAppListServAppInfoProvidedByRegistrationFile: // private OpCode for CEikApplication's use only -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK AppInfoProvidedByRegistrationFileL(aMessage); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServAppIconFileName: IconFileNameL(aMessage); break; case EAppListServAppViewIconFileName: ViewIconFileNameL(aMessage); - break; + break; case EAppListServPrepareNonNativeApplicationsUpdates: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->PrepareNonNativeApplicationsUpdatesL(); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServRegisterNonNativeApplication: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->RegisterNonNativeApplicationL(aMessage); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServDeregisterNonNativeApplication: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->DeregisterNonNativeApplicationL(aMessage); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServCommitNonNativeApplications: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->CommitNonNativeApplicationsUpdatesL(aMessage); completeMessage=EFalse; -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServRollbackNonNativeApplications: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->RollbackNonNativeApplicationsUpdates(); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServGetAppType: GetAppTypeL(aMessage); break; case EAppListServForceRegistration: ForceRegistrationL(aMessage); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK completeMessage=EFalse; -#endif break; case EMatchesSecurityPolicy: MatchesSecurityPolicyL(aMessage); @@ -345,41 +295,25 @@ #endif break; case EDebugAddFailingNonNativeApplicationsUpdate: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK #ifdef _DEBUG iNonNativeApplicationsManager->ForceFailInNonNativeApplicationsUpdatesL(); #endif -#endif break; case EDebugAddPanicingNonNativeApplicationsUpdate: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK #ifdef _DEBUG iNonNativeApplicationsManager->ForcePanicInNonNativeApplicationsUpdatesL(); #endif -#endif break; case EDebugAddRollbackPanicingNonNativeApplicationsUpdate: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK #ifdef _DEBUG iNonNativeApplicationsManager->ForcePanicInNonNativeApplicationsRollbackL(); #endif -#endif break; - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - case EAppListServUpdateAppList: - UpdateAppListL(aMessage); - break; - case EAppListUpdatedAppsInfo: - UpdatedAppsInfoL(aMessage); - break; -#endif default: aMessage.Panic(KApaPanicCli,EClientBadRequest); break; - } - + if (completeMessage && !aMessage.IsNull()) aMessage.Complete(KErrNone); } @@ -421,18 +355,6 @@ void CApaAppArcServSession::ServiceL(const RMessage2& aMessage) { -#ifdef APPARC_SHOW_TRACE - TFullName* name = new(ELeave) TFullName(); - RThread client; - if ( aMessage.Client( client ) == KErrNone ) - { - client.FullName( *name ); - client.Close(); - } - RDebug::Print( _L("[Apparc] CApaAppListServSession::ServiceL(0x%08x) - START - op code: %04d, client: %S"), this, aMessage.Function(), name ); - delete name; -#endif - TBool completeMessage = ETrue; switch (aMessage.Function()) { @@ -550,20 +472,10 @@ } break; case EAppListServRegisterNonNativeApplicationType: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK RegisterNonNativeApplicationTypeL(aMessage); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServDeregisterNonNativeApplicationType: -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK DeregisterNonNativeApplicationTypeL(aMessage); -#else - ASSERT(0); // panic debug only - User::Leave(KErrNotSupported); -#endif break; case EAppListServPreferredBufSize: aMessage.Complete(PreferredBufSize()); @@ -624,15 +536,9 @@ break; default: iAppListSession->DoServiceL(aMessage); -#ifdef APPARC_SHOW_TRACE - RDebug::Print( _L("[Apparc] CApaAppListServSession::ServiceL(0x%08x) - END - op code: %04d, completeMessage: %d"), this, aMessage.Function(), completeMessage ); -#endif return; } - -#ifdef APPARC_SHOW_TRACE - RDebug::Print( _L("[Apparc] CApaAppListServSession::ServiceL(0x%08x) - END - op code: %04d, completeMessage: %d"), this, aMessage.Function(), completeMessage ); -#endif + if (completeMessage && !aMessage.IsNull()) aMessage.Complete(KErrNone); } @@ -660,7 +566,6 @@ return (err==KErrNone) ? Min(iMaxBufSize, preferredBufferSize) : iMaxBufSize; } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK void CApaAppArcServSession::RegisterNonNativeApplicationTypeL(const RMessage2& aMessage) { const TUid applicationType(TUid::Uid(aMessage.Int0())); @@ -676,55 +581,23 @@ const TUid applicationType(TUid::Uid(aMessage.Int0())); iServ.DeregisterNonNativeApplicationTypeL(applicationType); } -#endif void CApaAppListServSession::GetAppTypeL(const RMessage2& aMessage) { - const TUid KTypeIDToNonNativeUidMapping[2][2]={ {TUid::Uid(0xB031C52A), TUid::Uid(0x10210E26)}, //Java - {TUid::Uid(0x7BDB6DA1), TUid::Uid(0x10282821)}}; //Widget - TInt uid = aMessage.Int0(); CApaAppData* appData = iAppList.AppDataByUid(TUid::Uid(uid)); if (!appData) - { aMessage.Complete(KErrNotFound); - } else { - TUid typeId(appData->NonNativeApplicationType()); - - //Check if non-native type to non-native UID mapping available. Otherwise - //return whatever returned by NonNativeApplicationType. - TUid nonNativeUid=typeId; - TInt numMappings= (sizeof(KTypeIDToNonNativeUidMapping)/ (2*sizeof(TUid))); - - for(TInt index=0; index nonNativeUidBuf(nonNativeUid); - aMessage.WriteL(1,nonNativeUidBuf); + TPckgBuf typeUid(appData->NonNativeApplicationType()); + aMessage.WriteL(1,typeUid); aMessage.Complete(KErrNone); } } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -void CleanupAndDestroyAppInfoArray(TAny* aRPArray) - { - RPointerArray* rpArray = (static_cast*>(aRPArray)); - rpArray->ResetAndDestroy(); - rpArray->Close(); - } -#endif - + void CApaAppListServSession::ForceRegistrationL(const RMessage2& aMessage) { -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TInt bufferSize = aMessage.GetDesLength(0); User::LeaveIfError(bufferSize); HBufC8* const buffer=HBufC8::NewLC(bufferSize); @@ -750,46 +623,8 @@ // Trigger a rescan, when rescan completes it will complete iNotifyOnScanCompleteMsg iNotifyOnScanCompleteMsg=aMessage; iAppArcSrv.UpdateAppsByForceRegistration(); -#else - const TUid KUidSisLaunchServer={0x1020473f}; - - if(aMessage.SecureId().iId != KUidSisLaunchServer.iUid) - User::Leave(KErrNotSupported); + } - //Get the size of the updated apps info buffer - TInt bufferSize = aMessage.GetDesLength(0); - - //Allocate the buffer of bufferSize and read. - HBufC8* const buffer=HBufC8::NewLC(bufferSize); - TPtr8 buffer_asWritable(buffer->Des()); - aMessage.ReadL(0,buffer_asWritable); - - RDesReadStream readStream(*buffer); - CleanupClosePushL(readStream); - - //Read the number of application information available in the buffer. - const TUint count=readStream.ReadUint32L(); - - RPointerArray appsInfo; - TCleanupItem cleanup(CleanupAndDestroyAppInfoArray, &appsInfo); - CleanupStack::PushL(cleanup); - - //Read one applciation information at a time and create list of application information. - for(TUint index=0; index>*appData; - appsInfo.AppendL(appData); - CleanupStack::Pop(appData); - } - CleanupStack::Pop(); //Remove cleanup - CleanupStack::PopAndDestroy(2, buffer); //delete readStream, buffer - - iAppList.UpdateApplistByForceRegAppsL(appsInfo); -#endif - } - void CApaAppArcServSession::AppForDocumentPassedByFileHandleL(const RMessage2& aMessage, const TUid* aServiceUid) { #if defined(__PROFILE) @@ -922,75 +757,8 @@ if (!FindAppInList(app, dummy, aUid)) User::Leave(KErrNotFound); - return *app; - } - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -/** -locate app in list, return EFalse if it isn't present -search is regardless of screen mode. -@internalComponent -*/ -TBool CApaAppListServSession::FindAppInList(CApaAppData*& aApp, TApaAppEntry& aEntry, TUid aAppUid) - { - // Look for the app with aAppUid in the applist we keep - const CApaAppList& list = iAppList; - aApp = list.AppDataByUid(aAppUid); - if (aApp) - aEntry = aApp->AppEntry(); - - // If the app list is currently in flux, try to nail down the app by looking for it specifically - const TBool appPendingOnLangChange = (aApp && list.IsLanguageChangePending() && aApp->IsPending()); - - if ((!aApp || appPendingOnLangChange) && !list.IsIdleUpdateComplete()) - { - // 1. App wasn't found, but an app scan is currently in progress, - // so try to find and add the specific app we're looking for to the list - - // 2. On language change event, current app scan could not yet update the found app, - // so try to update the specific app we're looking for, in the list. - if(aAppUid != KNullUid) - { - CApaAppData* app = NULL; - TRAPD(err, app = FindSpecificAppL(aAppUid)); - if (!err && app) - { - // app has been found and added to the app list - aApp = app; - aEntry = aApp->AppEntry(); - } - } - } - - return (aApp != NULL); - } - -#else -/** -locate app in list, return EFalse if it isn't present -search is regardless of screen mode. -@internalComponent -*/ -TBool CApaAppListServSession::FindAppInList(CApaAppData*& aApp, TApaAppEntry& aEntry, TUid aAppUid) - { - // Look for the application with aAppUid in the applist - const CApaAppList& list = iAppList; - aApp = list.AppDataByUid(aAppUid); - - TBool appListChanging= (list.IsLanguageChangePending()||!list.IsIdleUpdateComplete()); - //If the application is not in the applist and applist is still getting updated then find the - //requested application specifically and add to applist. - TInt err=KErrNone; - if( (!aApp && appListChanging) || (aApp && aApp->IsLangChangePending())) - TRAP(err, aApp=FindSpecificAppL(aAppUid)); - - if (!err && aApp) - aEntry = aApp->AppEntry(); - - return (aApp != NULL); - } - -#endif + return *app; + } void CApaAppListServSession::SendArrayL(const MArrayItemWriter& aArrayItemWriter,const RMessage2& aMessage) const { @@ -1259,23 +1027,6 @@ } else { -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - Usif::RSoftwareComponentRegistry scrCon; - User::LeaveIfError(scrCon.Connect()); - CleanupClosePushL(scrCon); - TApaAppEntry appEntry=appData->AppEntry(); - - //If component id of an application is non-zero then it is installed by installer - //after phone marketed. - TBool isInstalledApp=(scrCon.GetComponentIdForAppL(appEntry.iUidType[2])!=0); - - //data priority for UnTrusted apps would be capped if it is greater than the threshold priority i.e, KMaxTInt16. - if (!isSidTrusted && isInstalledApp) - { - priority = KDataTypeUnTrustedPriorityThreshold; - } - CleanupStack::PopAndDestroy(); //scrCon -#else TPtrC registrationFilePath = appData->RegistrationFileName(); TInt match = registrationFilePath.MatchF ( KLitPathForUntrustedRegistrationResourceFiles ); @@ -1287,7 +1038,6 @@ // than UnTrusted apps Threshold priority priority = KDataTypeUnTrustedPriorityThreshold; } -#endif } } else @@ -1457,7 +1207,7 @@ } TPtrC8 CApaAppArcServSession::DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage) - { + { ASSERT(aName==NULL); aName=HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(1))); @@ -1494,21 +1244,21 @@ TPtrC8 bufPtr(NULL,0); //Never executed. To make compiler happy return bufPtr; - } + } void CApaAppArcServSession::RecognizeDataL(const RMessage2& aMessage) // Recognize the data type of an object - { - HBufC* name=NULL; + { + HBufC* name=NULL; RChunk localChunk; - TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); + TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); - const TDataRecognitionResult result = iServ.RecognizeDataL(*name, bufPtr); + const TDataRecognitionResult result = iServ.RecognizeDataL(*name, bufPtr); - CleanupStack::PopAndDestroy(2); // name & buffer or localChunk - aMessage.WriteL(0,TPckgC(result)); - } + CleanupStack::PopAndDestroy(2); // name & buffer or localChunk + aMessage.WriteL(0,TPckgC(result)); + } void CApaAppArcServSession::RecognizeFilesL(const RMessage2& aMessage) @@ -1783,17 +1533,17 @@ void CApaAppArcServSession::RecognizeSpecificDataL(const RMessage2& aMessage) // Determine whether an object is of a specific data type - { - HBufC* name=NULL; - RChunk localChunk; - - TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); - TDataType dataType; - {TPckg dataType_asDescriptor(dataType); - aMessage.ReadL(0, dataType_asDescriptor);} - aMessage.Complete(iServ.RecognizeDataL(*name,bufPtr,dataType)); - CleanupStack::PopAndDestroy(2); // name & buffer or localChunk - } + { + HBufC* name=NULL; + RChunk localChunk; + + TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); + TDataType dataType; + {TPckg dataType_asDescriptor(dataType); + aMessage.ReadL(0, dataType_asDescriptor);} + aMessage.Complete(iServ.RecognizeDataL(*name,bufPtr,dataType)); + CleanupStack::PopAndDestroy(2); // name & buffer or localChunk + } void CApaAppArcServSession::RecognizeSpecificDataPassedByFileHandleL(const RMessage2& aMessage) { @@ -1952,17 +1702,50 @@ return (capabilityBuf().iAttributes & TApaAppCapability::EControlPanelItem); } +/** +locate app in list, return EFalse if it isn't present +search is regardless of screen mode. +@internalComponent +*/ +TBool CApaAppListServSession::FindAppInList(CApaAppData*& aApp, TApaAppEntry& aEntry, TUid aAppUid) + { + // Look for the app with aAppUid in the app list we keep + const CApaAppList& list = iAppList; + aApp = list.AppDataByUid(aAppUid); + if (aApp) + aEntry = aApp->AppEntry(); + + // If the app list is currently in flux, try to nail down the app by looking for it specifically + const TBool appPendingOnLangChange = (aApp && list.IsLanguageChangePending() && aApp->IsPending()); + if ((!aApp || appPendingOnLangChange) && !list.IsIdleUpdateComplete()) + { + // 1. App wasn't found, but an app scan is currently in progress, + // so try to find and add the specific app we're looking for to the list + + // 2. On language change event, current app scan could not yet update the found app, + // so try to update the specific app we're looking for, in the list. + if(aAppUid != KNullUid) + { + CApaAppData* app = NULL; + TRAPD(err, app = FindSpecificAppL(aAppUid)); + if (!err && app) + { + // app has been found and added to the app list + aApp = app; + aEntry = aApp->AppEntry(); + } + } + } + + return (aApp != NULL); + } CApaAppData* CApaAppListServSession::FindSpecificAppL(TUid aAppUid) { -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - CApaAppData* app = iAppList.FindAndAddSpecificAppL(aAppUid); -#else - //Scans the drives and folder lists for the specific app - CApaAppRegFinder* regFinder = CApaAppRegFinder::NewLC(iFs); - CApaAppData* app = iAppList.FindAndAddSpecificAppL(regFinder, aAppUid); - CleanupStack::PopAndDestroy(regFinder); -#endif + //Scans the drives and folder lists for the specific app + CApaAppRegFinder* regFinder = CApaAppRegFinder::NewLC(iFs); + CApaAppData* app = iAppList.FindAndAddSpecificAppL(regFinder, aAppUid); + CleanupStack::PopAndDestroy(regFinder); return app; } @@ -2008,79 +1791,34 @@ else { const TBool completeImmediatelyIfNoScanImpendingOrInProgress=aMessage.Int0(); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - if ((!completeImmediatelyIfNoScanImpendingOrInProgress) || - iAppList.AppScanInProgress()) -#else - if ((!completeImmediatelyIfNoScanImpendingOrInProgress) || - iAppArcSrv.AppFsMonitor().AnyNotificationImpending() || - iAppList.AppScanInProgress()) -#endif + if ((!completeImmediatelyIfNoScanImpendingOrInProgress) || + iAppArcSrv.AppFsMonitor().AnyNotificationImpending() || + iAppList.AppScanInProgress()) iNotifyMessage=aMessage; else aMessage.Complete(KErrNone); } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iNotificationRequested=ETrue; -#endif } -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -void CApaAppArcServSession::NotifyClients(TInt aReason, CArrayFixFlat* aUpdatedAppsInfo) -#else void CApaAppArcServSession::NotifyClients(TInt aReason) -#endif - { -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - iAppListSession->NotifyClients(aReason, aUpdatedAppsInfo); -#else - iAppListSession->NotifyClients(aReason); -#endif + iAppListSession->NotifyClients(aReason); } - void CApaAppListServSession::CancelNotify() { -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - NotifyClients(KErrCancel, NULL); -#else NotifyClients(KErrCancel); -#endif } -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -void CApaAppListServSession::NotifyClients(TInt aReason, CArrayFixFlat* aUpdatedAppsInfo) -#else void CApaAppListServSession::NotifyClients(TInt aReason) -#endif { if (!iNotifyMessage.IsNull()) iNotifyMessage.Complete(aReason); //Notify client for scan complete. NotifyScanComplete(); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - if(aUpdatedAppsInfo && iNotificationRequested) - { - //Append the updated applications information to iAppsUpdated - TInt count=aUpdatedAppsInfo->Count(); - for(TInt index=0; index pckg(registrationFileUsed); aMessage.WriteL(1, pckg); } -#endif - void CApaAppListServSession::IconFileNameL(const RMessage2& aMessage) { @@ -2104,27 +1840,20 @@ // locate app in list const CApaAppData& app = FindAppInListL(uid); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - if (!app.RegistrationFileUsed()) - User::Leave(KErrNotSupported); - else - { -#endif - - TPtrC iconFileName(app.IconFileName()); - if (iconFileName.Length() == 0) - User::Leave(KErrNotFound); - else - { - TFileName fileName = iconFileName; - TPckgC pckg(fileName); - aMessage.WriteL(1, pckg); - } - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - } -#endif - + if (!app.RegistrationFileUsed()) + User::Leave(KErrNotSupported); + else + { + TPtrC iconFileName(app.IconFileName()); + if (iconFileName.Length() == 0) + User::Leave(KErrNotFound); + else + { + TFileName fileName = iconFileName; + TPckgC pckg(fileName); + aMessage.WriteL(1, pckg); + } + } } void CApaAppListServSession::ViewIconFileNameL(const RMessage2& aMessage) @@ -2139,38 +1868,31 @@ // locate app in list const CApaAppData& app = FindAppInListL(uid); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - if (!app.RegistrationFileUsed()) - User::Leave(KErrNotSupported); - else - { -#endif - - const CArrayPtr& viewDataArray = *app.Views(); - const TInt count = viewDataArray.Count(); - for (TInt ii=0; ii pckg(fileName); - aMessage.WriteL(2, pckg); - } + if (!app.RegistrationFileUsed()) + User::Leave(KErrNotSupported); + else + { + const CArrayPtr& viewDataArray = *app.Views(); + const TInt count = viewDataArray.Count(); + for (TInt ii=0; ii pckg(fileName); + aMessage.WriteL(2, pckg); + } + } } void CApaAppArcServSession::GetAppServicesL(const RMessage2& aMessage) @@ -2369,87 +2091,9 @@ { iNotifyOnScanCompleteMsg.Complete(KErrNone); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK iNonNativeApplicationsManager->NotifyScanComplete(); -#endif } //lint !e1762 Suppress member function could be made const - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - -//Update applist based on the information provided by the installers. -void CApaAppListServSession::UpdateAppListL(const RMessage2& aMessage) -{ - //Create the update info array from the buffer. - TInt bufferSize = aMessage.GetDesLength(0); - User::LeaveIfError(bufferSize); - HBufC8* const buffer=HBufC8::NewLC(bufferSize); - TPtr8 buffer_asWritable(buffer->Des()); - aMessage.ReadL(0,buffer_asWritable); - - RDesReadStream readStream(*buffer); - CleanupClosePushL(readStream); - const TUint count=readStream.ReadUint32L(); - - RArray *appUpdateInfo=new (ELeave) RArray(5); - CleanupStack::PushL(appUpdateInfo); - - for(TUint index=0; index>appInfo; - appUpdateInfo->AppendL(appInfo); - } - CleanupStack::Pop(appUpdateInfo); - CleanupStack::PopAndDestroy(2, buffer); //delete readStream, buffer - - iAppArcSrv.UpdateAppListL(appUpdateInfo, TUid::Uid(aMessage.SecureId())); -} - - -void CApaAppListServSession::UpdatedAppsInfoL(const RMessage2& aMessage) - { - //Read the buffer size - TInt sizeOfBuffer=aMessage.Int1(); - TInt count=iAppsUpdated.Count(); - TInt sizeRequired= sizeof(TInt)+(sizeof(TApaAppUpdateInfo) * count); - - TPckgBuf pckg(sizeRequired); - - //If size of the buffer is not enough write the required size and leave. - if(sizeOfBufferExpandL(0, sizeRequired); - - RBufWriteStream writeStream; - writeStream.Open(*buffer); - - //Write count to stream. - writeStream.WriteUint32L(count); - - //Write updated applications information to stream. - for(TInt index=0; indexPtr(0)); - //Write size of the buffer - aMessage.WriteL(1, pckg); - - CleanupStack::PopAndDestroy(buffer); - iAppsUpdated.Reset(); - iNotificationRequested=EFalse; - } -#endif - // TSizeArrayItemWriter TInt TSizeArrayItemWriter::ArrayItemCount() const diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apserv/APSSES.H --- a/appfw/apparchitecture/apserv/APSSES.H Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apserv/APSSES.H Wed Sep 01 12:24:48 2010 +0100 @@ -44,12 +44,7 @@ void NotifyScanComplete(); void SetNotify(const RMessage2& aMessage); void CancelNotify(); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void NotifyClients(TInt aReason, CArrayFixFlat* aUpdatedAppsInfo); -#else - void NotifyClients(TInt aReason); -#endif + void NotifyClients(TInt aReason); void NotifyClientForCompletionOfListPopulation(); void CancelListPopulationCompleteObserver(); @@ -104,11 +99,6 @@ void ApplicationLanguageL(const RMessage2& aMessage); void SetAppShortCaptionL(const RMessage2& aMessage); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void UpdateAppListL(const RMessage2& aMessage); - void UpdatedAppsInfoL(const RMessage2& aMessage); -#endif private: static TInt NextDriveToScan(TInt aCurrentDrive); static TBool AppIsControlPanelItem(const CApaAppData& aAppData); @@ -130,9 +120,7 @@ CApaAppList& iAppList; RMessage2 iNotifyMessage; RMessage2 iNotifyOnScanCompleteMsg; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK CApsNonNativeApplicationsManager* iNonNativeApplicationsManager; -#endif RMessage2 iCompletionOfListPopulationObserverMsg; TAppListType iAppListType; @@ -142,11 +130,6 @@ TUint iCapabilityAttrFilterValue; // contains bit flags from TCapabilityAttribute TUid iServiceUid; RPointerArray iApaAppInfoArray; //contains the most recent "snapshot" of the applist taken by GetNextAppL. - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - RArray iAppsUpdated; - TBool iNotificationRequested; //If its true updated application information is maintained in session object. -#endif }; @@ -160,11 +143,7 @@ virtual void ServiceL(const RMessage2 &aMessage); void NotifyClientOfDataMappingChange(); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void NotifyClients(TInt aReason, CArrayFixFlat* aUpdatedAppsInfo); -#else - void NotifyClients(TInt aReason); -#endif + void NotifyClients(TInt aReason); void NotifyScanComplete(); void NotifyClientForCompletionOfListPopulation(); private: @@ -178,7 +157,7 @@ void RecognizeDataPassedByFileHandleL(const RMessage2& aMessage); void RecognizeSpecificDataL(const RMessage2& aMessage); void RecognizeSpecificDataPassedByFileHandleL(const RMessage2& aMessage); - static TPtrC8 DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage); + static TPtrC8 DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage); void AppForDataTypeL(const RMessage2& aMessage); TUid AppForDataTypeL(const TDataType& aDataType, const TUid* aServiceUid); @@ -199,10 +178,8 @@ void AppForDataTypeAndServiceL(const RMessage2& aMessage); void AppForDocumentPassedByFileHandleL(const RMessage2& aMessage, const TUid* aServiceUid); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK void RegisterNonNativeApplicationTypeL(const RMessage2& aMessage); void DeregisterNonNativeApplicationTypeL(const RMessage2& aMessage); -#endif void GetExecutableNameGivenDocumentL(const RMessage2& aMessage); void GetExecutableNameGivenDocumentPassedByFileHandleL(const RMessage2& aMessage); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/apserv/apsserv.h --- a/appfw/apparchitecture/apserv/apsserv.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/apserv/apsserv.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -55,22 +55,21 @@ inline RWsSession& WsSession(); + inline const CApaFsMonitor& AppFsMonitor() const {return *iAppFsMonitor;} + inline CApaScanningRuleBasedPlugIns* RuleBasedPlugIns(); // Application list stuff inline CApaAppList& AppList(); - TPtrC NativeExecutableL(TUid aNonNativeApplicationType); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void UpdateApps(); - IMPORT_C TCallBack RescanCallBack(); - void UpdateAppsByForceRegistration(); - void RegisterNonNativeApplicationTypeL(TUid aApplicationType, const TDesC& aNativeExecutable); - void DeregisterNonNativeApplicationTypeL(TUid aApplicationType); - inline const CApaFsMonitor& AppFsMonitor() const {return *iAppFsMonitor;} + void UpdateApps(); + IMPORT_C TCallBack RescanCallBack(); + + void RegisterNonNativeApplicationTypeL(TUid aApplicationType, const TDesC& aNativeExecutable); + void DeregisterNonNativeApplicationTypeL(TUid aApplicationType); + TPtrC NativeExecutableL(TUid aNonNativeApplicationType) const; + IMPORT_C void HandleInstallationStartEvent(); IMPORT_C void HandleInstallationEndEventL(); -#endif // MIME-type recognition inline CApaDataRecognizer* MimeTypeRecognizer(); @@ -102,34 +101,23 @@ void HandleBackupOperationEventL(const TBackupOperationAttributes& aBackupOperationAttributes); public: // IMPORT_C ~CApaAppArcServer(); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK TBool NonNativeRecovery() const; void SetNonNativeRecovery(TBool aValue); -#else - void UpdateAppListL(RArray* aAppUpdateInfo, TUid aSecureID); -#endif TBool LoadMbmIconsOnDemand() const; - + void UpdateAppsByForceRegistration(); private: CApaAppArcServer(TInt aPriority); void ConstructL(); virtual CSession2* NewSessionL(const TVersion& aVersion,const RMessage2& aMessage) const; + static TInt AppFsNotifyWithForcedRegistrationsResetCallBack(TAny* aPtr); + static TInt AppFsNotifyCallBack(TAny* aPtr); static TInt PlugInNotifyCallBack(TAny* aPtr); static TInt TypeStoreNotifyCallback(TAny* aPtr); void UpdatePlugIns(); void UpdateTypeStore(); void DoUpdateTypeStoreL(); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - void InitNonNativeApplicationTypeArrayL(); - TPtrC FindAndAddNonNativeRuntimeMappingL(TUid aNonNativeApplicationType); -#else - static TInt AppFsNotifyWithForcedRegistrationsResetCallBack(TAny* aPtr); - static TInt AppFsNotifyCallBack(TAny* aPtr); void InternalizeNonNativeApplicationTypeArrayL(); - void ExternalizeNonNativeApplicationTypeArrayL(TInt aIndexToIgnore=-1) const; - void ConstructPathsToMonitorL(); -#endif + void ExternalizeNonNativeApplicationTypeArrayL(TInt aIndexToIgnore=-1) const; static void DeleteLastNonNativeApplicationType(TAny* aThis); void NotifyScanComplete(); void DeleteCustomAppInfoList(); @@ -143,6 +131,7 @@ CRecognitionResult* CachedRecognitionResult(const RFile& aFile, const TParseBase& aParser) const; void CacheRecognitionResultL(const TParseBase& aParser, const TDataRecognitionResult& aResult); void CacheRecognitionResultL(const RFile& aFile, const TParseBase& aParser, const TDataRecognitionResult& aResult); + void ConstructPathsToMonitorL(); private: enum { @@ -168,9 +157,7 @@ CApaAppList* iAppList; CPeriodic* iRecognizerUnloadTimer; CApaScanningDataRecognizer* iMimeTypeRecognizer; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK CApaFsMonitor* iAppFsMonitor; -#endif CApaFsMonitor* iTypeStoreMonitor; CTypeStoreManager* iMimeTypeToAppMappingsManager; TTime iTypeStoreModified; @@ -187,17 +174,10 @@ TBool iNonNativeRecovery; TBool iLoadRecognizersOnDemand; -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK CApaAppInstallationMonitor* iAppInstallationMonitor; //CApaAppInstallationMonitor monitors installation and uninstallation of applications. - RBuf iNonNativeApplicationTypeRegistry; - TInt iForceRegistrationStatus; -#endif TBool iLoadMbmIconsOnDemand; - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - RArray iAppUpdateInfo; -#endif - + RBuf iNonNativeApplicationTypeRegistry; + TInt iForceRegistrationStatus; }; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/APFILEU.DEF --- a/appfw/apparchitecture/bwins/APFILEU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/bwins/APFILEU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -55,9 +55,9 @@ ?reserved3@CAppSidChecker@@EAEXXZ @ 54 NONAME ABSENT ; void CAppSidChecker::reserved3(void) ?DriveList@CApaAppRegFinder@@QBEABV?$RArray@VTDriveUnitInfo@@@@XZ @ 55 NONAME ABSENT ; class RArray const & CApaAppRegFinder::DriveList(void) const ?FindAllRemovableMediaAppsL@CApaAppRegFinder@@QAEXXZ @ 56 NONAME ABSENT ; void CApaAppRegFinder::FindAllRemovableMediaAppsL(void) - ??1CApaAppInstallationMonitor@@UAE@XZ @ 57 NONAME ABSENT; CApaAppInstallationMonitor::~CApaAppInstallationMonitor(void) - ?NewL@CApaAppInstallationMonitor@@SAPAV1@PAVCApaAppArcServer@@@Z @ 58 NONAME ABSENT; class CApaAppInstallationMonitor * CApaAppInstallationMonitor::NewL(class CApaAppArcServer *) - ?Start@CApaAppInstallationMonitor@@QAEXXZ @ 59 NONAME ABSENT; void CApaAppInstallationMonitor::Start(void) + ??1CApaAppInstallationMonitor@@UAE@XZ @ 57 NONAME ; CApaAppInstallationMonitor::~CApaAppInstallationMonitor(void) + ?NewL@CApaAppInstallationMonitor@@SAPAV1@PAVCApaAppArcServer@@@Z @ 58 NONAME ; class CApaAppInstallationMonitor * CApaAppInstallationMonitor::NewL(class CApaAppArcServer *) + ?Start@CApaAppInstallationMonitor@@QAEXXZ @ 59 NONAME ; void CApaAppInstallationMonitor::Start(void) ??1CApfMimeContentPolicy@@UAE@XZ @ 60 NONAME ; CApfMimeContentPolicy::~CApfMimeContentPolicy(void) ?IsClosedExtension@CApfMimeContentPolicy@@QAEHABVTDesC16@@@Z @ 61 NONAME ; int CApfMimeContentPolicy::IsClosedExtension(class TDesC16 const &) ?IsClosedFileL@CApfMimeContentPolicy@@QAEHAAVRFile@@@Z @ 62 NONAME ; int CApfMimeContentPolicy::IsClosedFileL(class RFile &) @@ -69,4 +69,5 @@ ?NewL@CApfMimeContentPolicy@@SAPAV1@XZ @ 68 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewL(void) ?NewLC@CApfMimeContentPolicy@@SAPAV1@AAVRFs@@@Z @ 69 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewLC(class RFs &) ?NewLC@CApfMimeContentPolicy@@SAPAV1@XZ @ 70 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewLC(void) + _E32Dll=__E32Dll ; Entry point for emulation diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/APGRFXU.DEF --- a/appfw/apparchitecture/bwins/APGRFXU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/bwins/APGRFXU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -331,15 +331,7 @@ ?IsPending@CApaAppData@@QBEHXZ @ 330 NONAME ABSENT ; int CApaAppData::IsPending(void) const ?GetAppIcon@RApaLsSession@@QBEHVTUid@@AAVRFile@@@Z @ 331 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class RFile &) const ?CheckAppSecurity@CApaSecurityUtils@@SAHABVTPtrC16@@AAH1@Z @ 332 NONAME ; int CApaSecurityUtils::CheckAppSecurity(class TPtrC16 const &, int &, int &) - X @ 333 NONAME ABSENT - X @ 334 NONAME ABSENT + X @ 333 NONAME ABSENT ; + X @ 334 NONAME ABSENT ; ?ForceCommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 335 NONAME ; void RApaLsSession::ForceCommitNonNativeApplicationsUpdatesL(void) - ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @ 336 NONAME ; TInt RecognizeData(const TDesC8& aBuffer, TDataRecognitionResult& aDataType) const - ??0TApaAppUpdateInfo@@QAE@XZ @ 337 NONAME ; TApaAppUpdateInfo::TApaAppUpdateInfo(void) - ?InternalizeL@TApaAppUpdateInfo@@QAEXAAVRReadStream@@@Z @ 338 NONAME ; void TApaAppUpdateInfo::InternalizeL(class RReadStream &) - ?UpdateAppListL@RApaLsSession@@QAEHAAV?$RArray@VTApaAppUpdateInfo@@@@@Z @ 339 NONAME ; int RApaLsSession::UpdateAppListL(class RArray &) - ?ExternalizeL@TApaAppUpdateInfo@@QBEXAAVRWriteStream@@@Z @ 340 NONAME ; void TApaAppUpdateInfo::ExternalizeL(class RWriteStream &) const - ??0TApaAppUpdateInfo@@QAE@VTUid@@W4TApaAppAction@0@@Z @ 341 NONAME ; TApaAppUpdateInfo::TApaAppUpdateInfo(class TUid, enum TApaAppUpdateInfo::TApaAppAction) - ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VCApplicationRegistrationData@Usif@@@@@Z @ 342 NONAME ; int RApaLsSession::ForceRegistration(class RPointerArray const &) - ?UpdatedAppsInfoL@RApaLsSession@@QAEHAAV?$RArray@VTApaAppUpdateInfo@@@@@Z @ 343 NONAME ; int RApaLsSession::UpdatedAppsInfoL(class RArray &) - + ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @336 NONAME;TInt RecognizeData(const TDesC8& aBuffer, TDataRecognitionResult& aDataType) const diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/APSERVU.DEF --- a/appfw/apparchitecture/bwins/APSERVU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/bwins/APSERVU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -16,11 +16,11 @@ ??1CUpdatedAppsList@@UAE@XZ @ 15 NONAME ABSENT ; CUpdatedAppsList::~CUpdatedAppsList(void) ?CloseAndDeletePermanentStore@CUpdatedAppsList@@QAEXXZ @ 16 NONAME ABSENT ; void CUpdatedAppsList::CloseAndDeletePermanentStore(void) ?IsInList@CUpdatedAppsList@@QBEHABVTDesC16@@@Z @ 17 NONAME ABSENT ; int CUpdatedAppsList::IsInList(class TDesC16 const &) const - ?RescanCallBack@CApaAppArcServer@@QAE?AVTCallBack@@XZ @ 18 NONAME ABSENT; class TCallBack CApaAppArcServer::RescanCallBack(void) + ?RescanCallBack@CApaAppArcServer@@QAE?AVTCallBack@@XZ @ 18 NONAME ; class TCallBack CApaAppArcServer::RescanCallBack(void) ?KApaLoadDataRecognizersOnDemand@@3HB @ 19 NONAME DATA 4 ; int const KApaLoadDataRecognizersOnDemand ?KApaUnloadRecognizersTimeout@@3HB @ 20 NONAME DATA 4 ; int const KApaUnloadRecognizersTimeout - ?HandleInstallationEndEventL@CApaAppArcServer@@QAEXXZ @ 21 NONAME ABSENT; void CApaAppArcServer::HandleEndUninstallEventL(void) - ?HandleInstallationStartEvent@CApaAppArcServer@@QAEXXZ @ 22 NONAME ABSENT; void CApaAppArcServer::HandleStartUninstallEvent(void) + ?HandleInstallationEndEventL@CApaAppArcServer@@QAEXXZ @ 21 NONAME ; void CApaAppArcServer::HandleEndUninstallEventL(void) + ?HandleInstallationStartEvent@CApaAppArcServer@@QAEXXZ @ 22 NONAME ; void CApaAppArcServer::HandleStartUninstallEvent(void) ?KApaDrivesToMonitor@@3HB @ 23 NONAME ; int const KApaDrivesToMonitor ?KApaLoadMbmIconsOnDemand@@3HB @ 24 NONAME ; int const KApaLoadMbmIconsOnDemand diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/TICONFORLEAKSu.DEF --- a/appfw/apparchitecture/bwins/TICONFORLEAKSu.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/bwins/TICONFORLEAKSu.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -77,7 +77,7 @@ ?Exists@TApaTask@@QBEHXZ @ 76 NONAME ; int TApaTask::Exists(void) const ?ExternalizeL@CApaMaskedBitmap@@QBEXAAVRWriteStream@@@Z @ 77 NONAME ; void CApaMaskedBitmap::ExternalizeL(class RWriteStream &) const ?FileName@CApaSystemControl@@QBE?AV?$TBuf@$0BAA@@@XZ @ 78 NONAME ; class TBuf<256> CApaSystemControl::FileName(void) const - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 79 NONAME ABSENT ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) + ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 79 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) ?FindApp@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 80 NONAME ; class TApaTask TApaTaskList::FindApp(class TDesC16 const &) ?FindApp@TApaTaskList@@QAE?AVTApaTask@@VTUid@@@Z @ 81 NONAME ; class TApaTask TApaTaskList::FindApp(class TUid) ?FindByAppUid@CApaWindowGroupName@@SAXVTUid@@AAVRWsSession@@AAH@Z @ 82 NONAME ; void CApaWindowGroupName::FindByAppUid(class TUid, class RWsSession &, int &) @@ -87,7 +87,7 @@ ?FindDoc@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 86 NONAME ; class TApaTask TApaTaskList::FindDoc(class TDesC16 const &) ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@H@Z @ 87 NONAME ; class CApaAppData * CApaAppList::FirstApp(int) const ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@XZ @ 88 NONAME ; class CApaAppData * CApaAppList::FirstApp(void) const - ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VTDesC16@@@@@Z @ 89 NONAME ABSENT; int RApaLsSession::ForceRegistration(class RPointerArray const &) + ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VTDesC16@@@@@Z @ 89 NONAME ; int RApaLsSession::ForceRegistration(class RPointerArray const &) ?FsSession@RApaLsSession@@SAPAVRFs@@XZ @ 90 NONAME ; class RFs * RApaLsSession::FsSession(void) ?GetAcceptedConfidence@RApaLsSession@@QBEHAAH@Z @ 91 NONAME ; int RApaLsSession::GetAcceptedConfidence(int &) const ?GetAllApps@RApaLsSession@@QBEHH@Z @ 92 NONAME ; int RApaLsSession::GetAllApps(int) const @@ -150,11 +150,11 @@ ?IsFirstScanComplete@CApaAppList@@QBEHXZ @ 149 NONAME ; int CApaAppList::IsFirstScanComplete(void) const ?IsIdleUpdateComplete@CApaAppList@@QBEHXZ @ 150 NONAME ; int CApaAppList::IsIdleUpdateComplete(void) const ?IsLanguageChangePending@CApaAppList@@QBEHXZ @ 151 NONAME ; int CApaAppList::IsLanguageChangePending(void) const - ?IsPending@CApaAppData@@QBEHXZ @ 152 NONAME ABSENT ; int CApaAppData::IsPending(void) const + ?IsPending@CApaAppData@@QBEHXZ @ 152 NONAME ; int CApaAppData::IsPending(void) const ?IsProgram@RApaLsSession@@QBEHABVTDesC16@@AAH@Z @ 153 NONAME ; int RApaLsSession::IsProgram(class TDesC16 const &, int &) const ?IsSystem@CApaWindowGroupName@@QBEHXZ @ 154 NONAME ; int CApaWindowGroupName::IsSystem(void) const ?KillTask@TApaTask@@QAEXXZ @ 155 NONAME ; void TApaTask::KillTask(void) - ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 156 NONAME ABSENT ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const + ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 156 NONAME ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const ?MApaAppListServObserver_Reserved1@MApaAppListServObserver@@EAEXXZ @ 157 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved1(void) ?MApaAppListServObserver_Reserved2@MApaAppListServObserver@@EAEXXZ @ 158 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved2(void) ?Mask@CApaMaskedBitmap@@QBEPAVCFbsBitmap@@XZ @ 159 NONAME ; class CFbsBitmap * CApaMaskedBitmap::Mask(void) const @@ -162,7 +162,7 @@ ?MinApplicationStackSize@@YAIXZ @ 161 NONAME ; unsigned int MinApplicationStackSize(void) ?New@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@PAVHBufC16@@@Z @ 162 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::New(class RWsSession const &, class HBufC16 *) ?NewInterimFormatFileWriterLC@ForJavaMIDletInstaller@@SAPAVCApaAppInfoFileWriter@@AAVRFs@@ABVTDesC16@@VTUid@@KH@Z @ 163 NONAME ABSENT ; class CApaAppInfoFileWriter * ForJavaMIDletInstaller::NewInterimFormatFileWriterLC(class RFs &, class TDesC16 const &, class TUid, unsigned long, int) - ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 164 NONAME ABSENT ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) + ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 164 NONAME ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) ?NewL@CApaAppList@@SAPAV1@AAVRFs@@PAVCApaAppRegFinder@@HH@Z @ 165 NONAME ABSENT ; class CApaAppList * CApaAppList::NewL(class RFs &, class CApaAppRegFinder *, int, int) ?NewL@CApaAppListNotifier@@SAPAV1@PAVMApaAppListServObserver@@W4TPriority@CActive@@@Z @ 166 NONAME ; class CApaAppListNotifier * CApaAppListNotifier::NewL(class MApaAppListServObserver *, enum CActive::TPriority) ?NewL@CApaDoor@@SAPAV1@AAVRFs@@AAVCApaDocument@@ABVTSize@@@Z @ 167 NONAME ; class CApaDoor * CApaDoor::NewL(class RFs &, class CApaDocument &, class TSize const &) @@ -194,7 +194,7 @@ ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@@Z @ 193 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &) const ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@PBV2@AAH@Z @ 194 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &, class TUid const *, int &) const ?PrepareNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 195 NONAME ; void RApaLsSession::PrepareNonNativeApplicationsUpdatesL(void) - ?PurgeL@CApaAppList@@QAEXXZ @ 196 NONAME ABSENT ; void CApaAppList::PurgeL(void) + ?PurgeL@CApaAppList@@QAEXXZ @ 196 NONAME ; void CApaAppList::PurgeL(void) ?RApaLsSession_Reserved1@RApaLsSession@@EAEXXZ @ 197 NONAME ; void RApaLsSession::RApaLsSession_Reserved1(void) ?RApaLsSession_Reserved2@RApaLsSession@@EAEXXZ @ 198 NONAME ; void RApaLsSession::RApaLsSession_Reserved2(void) ?RecognizeData@RApaLsSession@@QBEHABVRFile@@AAVTDataRecognitionResult@@@Z @ 199 NONAME ; int RApaLsSession::RecognizeData(class RFile const &, class TDataRecognitionResult &) const @@ -208,12 +208,12 @@ ?RegisterListPopulationCompleteObserver@RApaLsSession@@QBEXAAVTRequestStatus@@@Z @ 207 NONAME ; void RApaLsSession::RegisterListPopulationCompleteObserver(class TRequestStatus &) const ?RegisterNonNativeApplicationL@RApaLsSession@@QAEXVTUid@@ABVTDriveUnit@@AAVCApaRegistrationResourceFileWriter@@PAVCApaLocalisableResourceFileWriter@@PBVRFile@@@Z @ 208 NONAME ; void RApaLsSession::RegisterNonNativeApplicationL(class TUid, class TDriveUnit const &, class CApaRegistrationResourceFileWriter &, class CApaLocalisableResourceFileWriter *, class RFile const *) ?RegisterNonNativeApplicationTypeL@RApaLsSession@@QAEXVTUid@@ABVTDesC16@@@Z @ 209 NONAME ; void RApaLsSession::RegisterNonNativeApplicationTypeL(class TUid, class TDesC16 const &) - ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 210 NONAME ABSENT ; class TPtrC16 CApaAppData::RegistrationFileName(void) const - ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 211 NONAME ABSENT ; int CApaAppData::RegistrationFileUsed(void) const - ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 212 NONAME ABSENT; void CApaAppList::ResetForcedRegistrations(void) + ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 210 NONAME ; class TPtrC16 CApaAppData::RegistrationFileName(void) const + ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 211 NONAME ; int CApaAppData::RegistrationFileUsed(void) const + ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 212 NONAME ; void CApaAppList::ResetForcedRegistrations(void) ?RespondsToShutdownEvent@CApaWindowGroupName@@QBEHXZ @ 213 NONAME ; int CApaWindowGroupName::RespondsToShutdownEvent(void) const ?RespondsToSwitchFilesEvent@CApaWindowGroupName@@QBEHXZ @ 214 NONAME ; int CApaWindowGroupName::RespondsToSwitchFilesEvent(void) const - ?RestartScanL@CApaAppList@@QAEXXZ @ 215 NONAME ABSENT ; void CApaAppList::RestartScanL(void) + ?RestartScanL@CApaAppList@@QAEXXZ @ 215 NONAME ; void CApaAppList::RestartScanL(void) ?RestoreL@CApaDoor@@QAEXABVCStreamStore@@VTStreamId@@@Z @ 216 NONAME ; void CApaDoor::RestoreL(class CStreamStore const &, class TStreamId) ?RollbackNonNativeApplicationsUpdates@RApaLsSession@@QAEHXZ @ 217 NONAME ; int RApaLsSession::RollbackNonNativeApplicationsUpdates(void) ?ScreenMode@CApaAppViewData@@QBEHXZ @ 218 NONAME ; int CApaAppViewData::ScreenMode(void) const @@ -275,7 +275,7 @@ ?StartIdleUpdateL@CApaAppList@@QAEXXZ @ 274 NONAME ; void CApaAppList::StartIdleUpdateL(void) ?StartupApaServer@@YAHAAVMApaAppStarter@@@Z @ 275 NONAME ABSENT ; int StartupApaServer(class MApaAppStarter &) ?StartupApaServerProcess@@YAHXZ @ 276 NONAME ; int StartupApaServerProcess(void) - ?StopScan@CApaAppList@@QAEXH@Z @ 277 NONAME ABSENT ; void CApaAppList::StopScan(int) + ?StopScan@CApaAppList@@QAEXH@Z @ 277 NONAME ; void CApaAppList::StopScan(int) ?StoreL@CApaAppInfoFileWriter@@QAEXXZ @ 278 NONAME ABSENT ; void CApaAppInfoFileWriter::StoreL(void) ?SwitchCreateFile@TApaTask@@QAEHABVTDesC16@@@Z @ 279 NONAME ; int TApaTask::SwitchCreateFile(class TDesC16 const &) ?SwitchOpenFile@TApaTask@@QAEHABVTDesC16@@@Z @ 280 NONAME ; int TApaTask::SwitchOpenFile(class TDesC16 const &) @@ -298,7 +298,7 @@ ?ForceCommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 297 NONAME ; void RApaLsSession::ForceCommitNonNativeApplicationsUpdatesL(void) ?DataTypes@TApaAppServiceInfo@@QAEAAV?$CArrayFixFlat@VTDataTypeWithPriority@@@@XZ @ 298 NONAME ; class CArrayFixFlat & TApaAppServiceInfo::DataTypes(void) ??0TApaAppIdentifier@@QAE@XZ @ 299 NONAME ; TApaAppIdentifier::TApaAppIdentifier(void) - ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 300 NONAME ABSENT; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) + ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 300 NONAME ; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) ?ExternalizeL@TApaAppCapability@@QBEXAAVRWriteStream@@@Z @ 301 NONAME ; void TApaAppCapability::ExternalizeL(class RWriteStream &) const ??0TApaAppInfo@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@11@Z @ 302 NONAME ; TApaAppInfo::TApaAppInfo(class TUid, class TBuf<256> const &, class TBuf<256> const &, class TBuf<256> const &) ?AddEmbeddability@TApaEmbeddabilityFilter@@QAEXW4TEmbeddability@TApaAppCapability@@@Z @ 303 NONAME ; void TApaEmbeddabilityFilter::AddEmbeddability(enum TApaAppCapability::TEmbeddability) @@ -330,21 +330,6 @@ ??0TApaAppInfo@@QAE@XZ @ 329 NONAME ; TApaAppInfo::TApaAppInfo(void) ??0TApaAppViewInfo@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@H@Z @ 330 NONAME ; TApaAppViewInfo::TApaAppViewInfo(class TUid, class TBuf<256> const &, int) ??0TApaAppServiceInfo@@QAE@VTUid@@PAV?$CArrayFixFlat@VTDataTypeWithPriority@@@@PAVHBufC8@@@Z @ 331 NONAME ; TApaAppServiceInfo::TApaAppServiceInfo(class TUid, class CArrayFixFlat *, class HBufC8 *) - ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 332 NONAME ABSENT ; int CApaAppList::AppListUpdatePending(void) - ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @ 333 NONAME ; TInt RecognizeData(class TDesC8 const &, class TDataRecognitionResult & ) const + ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 332 NONAME ; int CApaAppList::AppListUpdatePending(void) + ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @333 NONAME ; TInt RecognizeData(class TDesC8 const &, class TDataRecognitionResult & ) const ?UninstalledAppArray@CApaAppList@@QAEPAV?$CArrayFixFlat@VTUid@@@@XZ @ 334 NONAME ; class CArrayFixFlat * CApaAppList::UninstalledAppArray(void) - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@VTUid@@@Z @ 335 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class TUid) - ?NewL@CApaAppData@@SAPAV1@ABVCApplicationRegistrationData@Usif@@AAVRFs@@ABVRSoftwareComponentRegistry@3@@Z @ 336 NONAME ; class CApaAppData * CApaAppData::NewL(class Usif::CApplicationRegistrationData const &, class RFs &, class Usif::RSoftwareComponentRegistry const &) - ?InitializeApplistL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 337 NONAME ; void CApaAppList::InitializeApplistL(class MApaAppListObserver *) - ??0TApaAppUpdateInfo@@QAE@XZ @ 338 NONAME ; TApaAppUpdateInfo::TApaAppUpdateInfo(void) - ?InternalizeL@TApaAppUpdateInfo@@QAEXAAVRReadStream@@@Z @ 339 NONAME ; void TApaAppUpdateInfo::InternalizeL(class RReadStream &) - ?UpdateAppListL@RApaLsSession@@QAEHAAV?$RArray@VTApaAppUpdateInfo@@@@@Z @ 340 NONAME ; int RApaLsSession::UpdateAppListL(class RArray &) - ?ExternalizeL@TApaAppUpdateInfo@@QBEXAAVRWriteStream@@@Z @ 341 NONAME ; void TApaAppUpdateInfo::ExternalizeL(class RWriteStream &) const - ??0TApaAppUpdateInfo@@QAE@VTUid@@W4TApaAppAction@0@@Z @ 342 NONAME ; TApaAppUpdateInfo::TApaAppUpdateInfo(class TUid, enum TApaAppUpdateInfo::TApaAppAction) - ?UpdateApplistByForceRegAppsL@CApaAppList@@QAEXAAV?$RPointerArray@VCApplicationRegistrationData@Usif@@@@@Z @ 343 NONAME ; void CApaAppList::UpdateApplistByForceRegAppsL(class RPointerArray &) - ?UpdatedAppsInfo@CApaAppList@@QAEPAV?$CArrayFixFlat@VTApaAppUpdateInfo@@@@XZ @ 344 NONAME ; class CArrayFixFlat * CApaAppList::UpdatedAppsInfo(void) - ?UpdateApplistL@CApaAppList@@QAEXPAVMApaAppListObserver@@PAV?$RArray@VTApaAppUpdateInfo@@@@VTUid@@@Z @ 345 NONAME ; void CApaAppList::UpdateApplistL(class MApaAppListObserver *, class RArray *, class TUid) - ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VCApplicationRegistrationData@Usif@@@@@Z @ 346 NONAME ; int RApaLsSession::ForceRegistration(class RPointerArray const &) - ?UpdatedAppsInfoL@RApaLsSession@@QAEHAAV?$RArray@VTApaAppUpdateInfo@@@@@Z @ 347 NONAME ; int RApaLsSession::UpdatedAppsInfoL(class RArray &) - ?IsLangChangePending@CApaAppData@@QAEHXZ @ 348 NONAME ; int CApaAppData::IsLangChangePending(void) - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/apfile_legacyu.def --- a/appfw/apparchitecture/bwins/apfile_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -EXPORTS - ??0CApaScanningFileRecognizer@@IAE@AAVRFs@@PAVMApaAppStarter@@@Z @ 1 NONAME ABSENT - ??1CApaAppLocatorProxy@@UAE@XZ @ 2 NONAME ABSENT - ??1CApaScanningAppFinder@@UAE@XZ @ 3 NONAME ABSENT - ??1CApaScanningFileRecognizer@@UAE@XZ @ 4 NONAME ABSENT - ?ConstructL@CApaScanningFileRecognizer@@IAEXXZ @ 5 NONAME ABSENT - ?DefaultAppInfoFileName@CApaScanningAppFinder@@UBE?AV?$TBuf@$0BAA@@@XZ @ 6 NONAME ABSENT - ?FindAllAppsL@CApaScanningAppFinder@@UAEXXZ @ 7 NONAME ABSENT - ?FindAppL@CApaScanningAppFinder@@UAE?AV?$TBuf@$0BAA@@@ABVTDesC16@@VTUid@@@Z @ 8 NONAME ABSENT - ?GetAppCapabilityByUid@CApaAppLocatorProxy@@UAEHAAVTDes8@@VTUid@@@Z @ 9 NONAME ABSENT - ?GetAppEntryByUid@CApaAppLocatorProxy@@UAEHAAVTApaAppEntry@@VTUid@@@Z @ 10 NONAME ABSENT - ?NewL@CApaAppLocatorProxy@@SAPAV1@AAVRFs@@@Z @ 11 NONAME ABSENT - ?NewL@CApaScanningAppFinder@@SAPAV1@ABVRFs@@@Z @ 12 NONAME ABSENT - ?NewL@CApaScanningFileRecognizer@@SAPAV1@AAVRFs@@PAVMApaAppStarter@@@Z @ 13 NONAME ABSENT - ?NewLC@CApaScanningAppFinder@@SAPAV1@ABVRFs@@@Z @ 14 NONAME ABSENT - ?NextL@CApaScanningAppFinder@@UAEHAAVTApaAppEntry@@@Z @ 15 NONAME ABSENT - ?RecognizerCount@CApaScanningFileRecognizer@@QAEHXZ @ 16 NONAME ABSENT - ?RecognizerListLC@CApaScanningFileRecognizer@@QBEPAV?$CArrayFixFlat@VRRecognizer@CApaScanningFileRecognizer@@@@XZ @ 17 NONAME ABSENT - ?ScanForRecognizersL@CApaScanningFileRecognizer@@QAEXXZ @ 18 NONAME ABSENT - ?SetRecognizersFromListL@CApaScanningFileRecognizer@@QAEXABV?$CArrayFixFlat@VTRecognizer@CApaScanningFileRecognizer@@@@@Z @ 19 NONAME ABSENT - ?TempPath@CApaScanningAppFinder@@UBE?AV?$TBuf@$0BAA@@@XZ @ 20 NONAME ABSENT - ?TempPath@Apfile@@SA?AVTPtrC16@@XZ @ 21 NONAME ABSENT - ??ACApaScanningFileRecognizer@@QBEABVRRecognizer@0@H@Z @ 22 NONAME ABSENT ; class CApaScanningFileRecognizer::RRecognizer const & CApaScanningFileRecognizer::operator[](int) const - ?SetRecognizerL@CApaScanningFileRecognizer@@QAEXABVTRecognizer@1@@Z @ 23 NONAME ABSENT - ?UpdateCounter@CApaScanningFileRecognizer@@QBEHXZ @ 24 NONAME ABSENT - ??1CApaScanningControlFinder@@UAE@XZ @ 25 NONAME ABSENT - ?DefaultAppInfoFileName@CApaScanningControlFinder@@UBE?AV?$TBuf@$0BAA@@@XZ @ 26 NONAME ABSENT - ?FindAllAppsL@CApaScanningControlFinder@@UAEXXZ @ 27 NONAME ABSENT - ?FindAppL@CApaScanningControlFinder@@UAE?AV?$TBuf@$0BAA@@@ABVTDesC16@@VTUid@@@Z @ 28 NONAME ABSENT - ?NewL@CApaScanningControlFinder@@SAPAV1@ABVRFs@@@Z @ 29 NONAME ABSENT - ?NewLC@CApaScanningControlFinder@@SAPAV1@ABVRFs@@@Z @ 30 NONAME ABSENT - ?NextL@CApaScanningControlFinder@@UAEHAAVTApaAppEntry@@@Z @ 31 NONAME ABSENT - ?TempPath@CApaScanningControlFinder@@UBE?AV?$TBuf@$0BAA@@@XZ @ 32 NONAME ABSENT - ?SetEcomRecognizerL@CApaScanningFileRecognizer@@QAEXABVRRecognizer@1@@Z @ 33 NONAME ABSENT - ?SetEcomRecognizersFromListL@CApaScanningFileRecognizer@@QAEXABV?$CArrayFixFlat@VRRecognizer@CApaScanningFileRecognizer@@@@@Z @ 34 NONAME ABSENT - ?FindAllAppsL@CApaAppRegFinder@@QAEXXZ @ 35 NONAME ABSENT ; void CApaAppRegFinder::FindAllAppsL(void) - ?FindAppL@CApaAppRegFinder@@QAE?AV?$TBuf@$0BAA@@@ABVTDesC16@@VTUid@@@Z @ 36 NONAME ABSENT ; class TBuf<256> CApaAppRegFinder::FindAppL(class TDesC16 const &, class TUid) - ?NewL@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 37 NONAME ABSENT ; class CApaAppRegFinder * CApaAppRegFinder::NewL(class RFs const &) - ?NewLC@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 38 NONAME ABSENT ; class CApaAppRegFinder * CApaAppRegFinder::NewLC(class RFs const &) - ?NextL@CApaAppRegFinder@@QAEHAAVTApaAppEntry@@ABV?$RPointerArray@VHBufC16@@@@@Z @ 39 NONAME ABSENT ; int CApaAppRegFinder::NextL(class TApaAppEntry &, class RPointerArray const &) - ?TempPath@CApaAppRegFinder@@UBE?AV?$TBuf@$0BAA@@@XZ @ 40 NONAME ABSENT ; class TBuf<256> CApaAppRegFinder::TempPath(void) const - ??1CAppLaunchChecker@@UAE@XZ @ 41 NONAME ; CAppLaunchChecker::~CAppLaunchChecker(void) - ??ACApaScanningRuleBasedPlugIns@@QBEPAVCAppLaunchChecker@@H@Z @ 42 NONAME ; class CAppLaunchChecker * CApaScanningRuleBasedPlugIns::operator[](int) const - ??1CApaScanningRuleBasedPlugIns@@UAE@XZ @ 43 NONAME ; CApaScanningRuleBasedPlugIns::~CApaScanningRuleBasedPlugIns(void) - ?NewL@CApaScanningRuleBasedPlugIns@@SAPAV1@XZ @ 44 NONAME ; class CApaScanningRuleBasedPlugIns * CApaScanningRuleBasedPlugIns::NewL(void) - ?ScanForRuleBasedPlugInsL@CApaScanningRuleBasedPlugIns@@QAEXXZ @ 45 NONAME ; void CApaScanningRuleBasedPlugIns::ScanForRuleBasedPlugInsL(void) - ?ImplementationCount@CApaScanningRuleBasedPlugIns@@QBEHXZ @ 46 NONAME ; int CApaScanningRuleBasedPlugIns::ImplementationCount(void) const - ?Reserved_1@CAppLaunchChecker@@EAEXXZ @ 47 NONAME ; void CAppLaunchChecker::Reserved_1(void) - ?Reserved_2@CAppLaunchChecker@@EAEXXZ @ 48 NONAME ; void CAppLaunchChecker::Reserved_2(void) - ?Reserved_3@CAppLaunchChecker@@EAEXXZ @ 49 NONAME ; void CAppLaunchChecker::Reserved_3(void) - ??1CAppSidChecker@@UAE@XZ @ 50 NONAME ABSENT ; CAppSidChecker::~CAppSidChecker(void) - ?SetRescanCallBackL@CAppSidChecker@@UAEXABVTCallBack@@@Z @ 51 NONAME ABSENT ; void CAppSidChecker::SetRescanCallBackL(class TCallBack const &) - ?reserved1@CAppSidChecker@@EAEXXZ @ 52 NONAME ABSENT ; void CAppSidChecker::reserved1(void) - ?reserved2@CAppSidChecker@@EAEXXZ @ 53 NONAME ABSENT ; void CAppSidChecker::reserved2(void) - ?reserved3@CAppSidChecker@@EAEXXZ @ 54 NONAME ABSENT ; void CAppSidChecker::reserved3(void) - ?DriveList@CApaAppRegFinder@@QBEABV?$RArray@VTDriveUnitInfo@@@@XZ @ 55 NONAME ABSENT ; class RArray const & CApaAppRegFinder::DriveList(void) const - ?FindAllRemovableMediaAppsL@CApaAppRegFinder@@QAEXXZ @ 56 NONAME ABSENT ; void CApaAppRegFinder::FindAllRemovableMediaAppsL(void) - ??1CApaAppInstallationMonitor@@UAE@XZ @ 57 NONAME ; CApaAppInstallationMonitor::~CApaAppInstallationMonitor(void) - ?NewL@CApaAppInstallationMonitor@@SAPAV1@PAVCApaAppArcServer@@@Z @ 58 NONAME ; class CApaAppInstallationMonitor * CApaAppInstallationMonitor::NewL(class CApaAppArcServer *) - ?Start@CApaAppInstallationMonitor@@QAEXXZ @ 59 NONAME ; void CApaAppInstallationMonitor::Start(void) - ??1CApfMimeContentPolicy@@UAE@XZ @ 60 NONAME ; CApfMimeContentPolicy::~CApfMimeContentPolicy(void) - ?IsClosedExtension@CApfMimeContentPolicy@@QAEHABVTDesC16@@@Z @ 61 NONAME ; int CApfMimeContentPolicy::IsClosedExtension(class TDesC16 const &) - ?IsClosedFileL@CApfMimeContentPolicy@@QAEHAAVRFile@@@Z @ 62 NONAME ; int CApfMimeContentPolicy::IsClosedFileL(class RFile &) - ?IsClosedFileL@CApfMimeContentPolicy@@QAEHABVTDesC16@@@Z @ 63 NONAME ; int CApfMimeContentPolicy::IsClosedFileL(class TDesC16 const &) - ?IsClosedType@CApfMimeContentPolicy@@QAEHABVTDesC16@@@Z @ 64 NONAME ; int CApfMimeContentPolicy::IsClosedType(class TDesC16 const &) - ?IsDRMEnvelopeL@CApfMimeContentPolicy@@QAEHAAVRFile@@@Z @ 65 NONAME ; int CApfMimeContentPolicy::IsDRMEnvelopeL(class RFile &) - ?IsDRMEnvelopeL@CApfMimeContentPolicy@@QAEHABVTDesC16@@@Z @ 66 NONAME ; int CApfMimeContentPolicy::IsDRMEnvelopeL(class TDesC16 const &) - ?NewL@CApfMimeContentPolicy@@SAPAV1@AAVRFs@@@Z @ 67 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewL(class RFs &) - ?NewL@CApfMimeContentPolicy@@SAPAV1@XZ @ 68 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewL(void) - ?NewLC@CApfMimeContentPolicy@@SAPAV1@AAVRFs@@@Z @ 69 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewLC(class RFs &) - ?NewLC@CApfMimeContentPolicy@@SAPAV1@XZ @ 70 NONAME ; class CApfMimeContentPolicy * CApfMimeContentPolicy::NewLC(void) - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/apgrfx_legacyu.def --- a/appfw/apparchitecture/bwins/apgrfx_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,344 +0,0 @@ -EXPORTS - ??0RApaLsSession@@QAE@XZ @ 1 NONAME ; public: __thiscall RApaLsSession::RApaLsSession(void) - ??0TApaPictureFactory@@QAE@PAVCApaProcess@@@Z @ 2 NONAME ; public: __thiscall TApaPictureFactory::TApaPictureFactory(class CApaProcess *) - ??0TApaTask@@QAE@AAVRWsSession@@@Z @ 3 NONAME ; public: __thiscall TApaTask::TApaTask(class RWsSession &) - ??0TApaTaskList@@QAE@AAVRWsSession@@@Z @ 4 NONAME ; public: __thiscall TApaTaskList::TApaTaskList(class RWsSession &) - ??1CApaAppInfoFileReader@@UAE@XZ @ 5 NONAME ABSENT ; public: virtual __thiscall CApaAppInfoFileReader::~CApaAppInfoFileReader(void) - ??1CApaAppInfoFileWriter@@UAE@XZ @ 6 NONAME ABSENT ; public: virtual __thiscall CApaAppInfoFileWriter::~CApaAppInfoFileWriter(void) - ??1CApaAppList@@UAE@XZ @ 7 NONAME ABSENT ; public: virtual __thiscall CApaAppList::~CApaAppList(void) - ??1CApaDoor@@UAE@XZ @ 8 NONAME ; public: virtual __thiscall CApaDoor::~CApaDoor(void) - ??1CApaMaskedBitmap@@UAE@XZ @ 9 NONAME ; public: virtual __thiscall CApaMaskedBitmap::~CApaMaskedBitmap(void) - ??1CApaWindowGroupName@@UAE@XZ @ 10 NONAME ; public: virtual __thiscall CApaWindowGroupName::~CApaWindowGroupName(void) - ?AddCaptionL@CApaAppInfoFileWriter@@QAEXW4TLanguage@@ABVTDesC16@@@Z @ 11 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddCaptionL(enum TLanguage,class TDesC16 const &) - ?AddIconL@CApaAppInfoFileWriter@@QAEXAAVCApaMaskedBitmap@@@Z @ 12 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddIconL(class CApaMaskedBitmap &) - ?AddIconL@CApaAppInfoFileWriter@@QAEXABVTDesC16@@@Z @ 13 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddIconL(class TDesC16 const &) - ?AppCount@RApaLsSession@@QBEHAAH@Z @ 14 NONAME ; public: int __thiscall RApaLsSession::AppCount(int &)const - ?AppDataByUid@CApaAppList@@QBEPAVCApaAppData@@VTUid@@@Z @ 15 NONAME ABSENT ; public: class CApaAppData * __thiscall CApaAppList::AppDataByUid(class TUid)const - ?AppEntry@CApaAppData@@QBE?AVTApaAppEntry@@XZ @ 16 NONAME ABSENT ; public: class TApaAppEntry __thiscall CApaAppData::AppEntry(void)const - ?AppUid@CApaWindowGroupName@@QBE?AVTUid@@XZ @ 17 NONAME ; public: class TUid __thiscall CApaWindowGroupName::AppUid(void)const - ?AppUidL@CApaDoor@@QBE?AVTUid@@XZ @ 18 NONAME ; public: class TUid __thiscall CApaDoor::AppUidL(void)const - ?BringToForeground@TApaTask@@QAEXXZ @ 19 NONAME ; public: void __thiscall TApaTask::BringToForeground(void) - ?Capability@CApaAppData@@QBEXAAVTDes8@@@Z @ 20 NONAME ABSENT ; public: void __thiscall CApaAppData::Capability(class TDes8 &)const - ?Capability@CApaAppInfoFileReader@@QBEXAAVTDes8@@@Z @ 21 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileReader::Capability(class TDes8 &)const - ?Caption@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 22 NONAME ; public: class TPtrC16 __thiscall CApaWindowGroupName::Caption(void)const - ?CaptionL@CApaAppInfoFileReader@@QAE?AV?$TBuf@$0BAA@@@W4TLanguage@@@Z @ 23 NONAME ABSENT ; public: class TBuf<256> __thiscall CApaAppInfoFileReader::CaptionL(enum TLanguage) - ?Connect@RApaLsSession@@QAEHXZ @ 24 NONAME ; public: int __thiscall RApaLsSession::Connect(void) - ?ConstructFromWgIdL@CApaWindowGroupName@@QAEXH@Z @ 25 NONAME ; public: void __thiscall CApaWindowGroupName::ConstructFromWgIdL(int) - ?Count@CApaAppList@@QBEHXZ @ 26 NONAME ABSENT ; public: int __thiscall CApaAppList::Count(void)const - ?CreateMaskedBitmapL@CApaAppInfoFileReader@@QAEPAVCApaMaskedBitmap@@H@Z @ 27 NONAME ABSENT ; public: class CApaMaskedBitmap * __thiscall CApaAppInfoFileReader::CreateMaskedBitmapL(int) - ?CycleTasks@TApaTaskList@@QAEHVTUid@@W4TCycleDirection@1@@Z @ 28 NONAME ; public: int __thiscall TApaTaskList::CycleTasks(class TUid,enum TApaTaskList::TCycleDirection) - ?DocName@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 29 NONAME ; public: class TPtrC16 __thiscall CApaWindowGroupName::DocName(void)const - ?DocNameIsAFile@CApaWindowGroupName@@QBEHXZ @ 30 NONAME ; public: int __thiscall CApaWindowGroupName::DocNameIsAFile(void)const - ?DocumentL@CApaDoor@@QAEPAVCApaDocument@@H@Z @ 31 NONAME ; public: class CApaDocument * __thiscall CApaDoor::DocumentL(int) - ?EmbeddableAppCount@RApaLsSession@@QBEHAAH@Z @ 32 NONAME ; public: int __thiscall RApaLsSession::EmbeddableAppCount(int &)const - ?EndTask@TApaTask@@QAEXXZ @ 33 NONAME ; public: void __thiscall TApaTask::EndTask(void) - ?Exists@TApaTask@@QBEHXZ @ 34 NONAME ; public: int __thiscall TApaTask::Exists(void)const - ?ExternalizeL@CApaMaskedBitmap@@QBEXAAVRWriteStream@@@Z @ 35 NONAME ; public: void __thiscall CApaMaskedBitmap::ExternalizeL(class RWriteStream &)const - ?FindApp@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 36 NONAME ; public: class TApaTask __thiscall TApaTaskList::FindApp(class TDesC16 const &) - ?FindApp@TApaTaskList@@QAE?AVTApaTask@@VTUid@@@Z @ 37 NONAME ; public: class TApaTask __thiscall TApaTaskList::FindApp(class TUid) - ?FindByAppUid@CApaWindowGroupName@@SAXVTUid@@AAVRWsSession@@AAH@Z @ 38 NONAME ; public: static void __cdecl CApaWindowGroupName::FindByAppUid(class TUid,class RWsSession &,int &) - ?FindByCaption@CApaWindowGroupName@@SAXABVTDesC16@@AAVRWsSession@@AAH@Z @ 39 NONAME ; public: static void __cdecl CApaWindowGroupName::FindByCaption(class TDesC16 const &,class RWsSession &,int &) - ?FindByDocName@CApaWindowGroupName@@SAXABVTDesC16@@AAVRWsSession@@AAH@Z @ 40 NONAME ; public: static void __cdecl CApaWindowGroupName::FindByDocName(class TDesC16 const &,class RWsSession &,int &) - ?FindByPos@TApaTaskList@@QAE?AVTApaTask@@H@Z @ 41 NONAME ; public: class TApaTask __thiscall TApaTaskList::FindByPos(int) - ?FindDoc@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 42 NONAME ; public: class TApaTask __thiscall TApaTaskList::FindDoc(class TDesC16 const &) - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@XZ @ 43 NONAME ABSENT ; public: class CApaAppData * __thiscall CApaAppList::FirstApp(void)const - ?GetAllApps@RApaLsSession@@QBEHXZ @ 44 NONAME ; public: int __thiscall RApaLsSession::GetAllApps(void)const - ?GetAppCapability@RApaLsSession@@QBEHAAVTDes8@@VTUid@@@Z @ 45 NONAME ; public: int __thiscall RApaLsSession::GetAppCapability(class TDes8 &,class TUid)const - ?GetAppInfo@RApaLsSession@@QBEHAAVTApaAppInfo@@VTUid@@@Z @ 46 NONAME ; public: int __thiscall RApaLsSession::GetAppInfo(class TApaAppInfo &,class TUid)const - ?GetEmbeddableApps@RApaLsSession@@QBEHXZ @ 47 NONAME ; public: int __thiscall RApaLsSession::GetEmbeddableApps(void)const - ?GetNextApp@RApaLsSession@@QBEHAAVTApaAppInfo@@@Z @ 48 NONAME ; public: int __thiscall RApaLsSession::GetNextApp(class TApaAppInfo &)const - ?InternalizeL@CApaMaskedBitmap@@QAEXAAVRReadStream@@@Z @ 49 NONAME ; public: void __thiscall CApaMaskedBitmap::InternalizeL(class RReadStream &) - ?IsBusy@CApaWindowGroupName@@QBEHXZ @ 50 NONAME ; public: int __thiscall CApaWindowGroupName::IsBusy(void)const - ?IsSystem@CApaWindowGroupName@@QBEHXZ @ 51 NONAME ; public: int __thiscall CApaWindowGroupName::IsSystem(void)const - ?KillTask@TApaTask@@QAEXXZ @ 52 NONAME ; public: void __thiscall TApaTask::KillTask(void) - ?Mask@CApaMaskedBitmap@@QBEPAVCFbsBitmap@@XZ @ 53 NONAME ; public: class CFbsBitmap * __thiscall CApaMaskedBitmap::Mask(void)const - ?New@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@PAVHBufC16@@@Z @ 54 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::New(class RWsSession const &,class HBufC16 *) - ?NewL@CApaAppInfoFileReader@@SAPAV1@AAVRFs@@ABVTDesC16@@VTUid@@@Z @ 55 NONAME ABSENT ; public: static class CApaAppInfoFileReader * __cdecl CApaAppInfoFileReader::NewL(class RFs &,class TDesC16 const &,class TUid) - ?NewL@CApaAppList@@SAPAV1@AAVRFs@@PAVCApaAppRegFinder@@HH@Z @ 56 NONAME ABSENT ; class CApaAppList * CApaAppList::NewL(class RFs &, class CApaAppRegFinder *, int, int) - ?NewL@CApaDoor@@SAPAV1@AAVRFs@@AAVCApaDocument@@ABVTSize@@@Z @ 57 NONAME ; public: static class CApaDoor * __cdecl CApaDoor::NewL(class RFs &,class CApaDocument &,class TSize const &) - ?NewL@CApaDoor@@SAPAV1@AAVRFs@@ABVCStreamStore@@VTStreamId@@AAVCApaProcess@@@Z @ 58 NONAME ; public: static class CApaDoor * __cdecl CApaDoor::NewL(class RFs &,class CStreamStore const &,class TStreamId,class CApaProcess &) - ?NewL@CApaMaskedBitmap@@SAPAV1@PBV1@@Z @ 59 NONAME ; class CApaMaskedBitmap * CApaMaskedBitmap::NewL(class CApaMaskedBitmap const *) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@@Z @ 60 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewL(class RWsSession const &) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@ABVTDesC16@@@Z @ 61 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewL(class RWsSession const &,class TDesC16 const &) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@H@Z @ 62 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewL(class RWsSession const &,int) - ?NewLC@CApaAppInfoFileReader@@SAPAV1@AAVRFs@@ABVTDesC16@@VTUid@@@Z @ 63 NONAME ABSENT ; public: static class CApaAppInfoFileReader * __cdecl CApaAppInfoFileReader::NewLC(class RFs &,class TDesC16 const &,class TUid) - ?NewLC@CApaAppInfoFileWriter@@SAPAV1@AAVRFs@@ABVTDesC16@@VTUid@@@Z @ 64 NONAME ABSENT ; public: static class CApaAppInfoFileWriter * __cdecl CApaAppInfoFileWriter::NewLC(class RFs &,class TDesC16 const &,class TUid) - ?NewLC@CApaDoor@@SAPAV1@AAVRFs@@AAVCApaDocument@@ABVTSize@@@Z @ 65 NONAME ; public: static class CApaDoor * __cdecl CApaDoor::NewLC(class RFs &,class CApaDocument &,class TSize const &) - ?NewLC@CApaMaskedBitmap@@SAPAV1@XZ @ 66 NONAME ; public: static class CApaMaskedBitmap * __cdecl CApaMaskedBitmap::NewLC(void) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@@Z @ 67 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewLC(class RWsSession const &) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@ABVTDesC16@@@Z @ 68 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewLC(class RWsSession const &,class TDesC16 const &) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@H@Z @ 69 NONAME ; public: static class CApaWindowGroupName * __cdecl CApaWindowGroupName::NewLC(class RWsSession const &,int) - ?NewPictureL@TApaPictureFactory@@UBEXAAVTPictureHeader@@ABVCStreamStore@@@Z @ 70 NONAME ; public: virtual void __thiscall TApaPictureFactory::NewPictureL(class TPictureHeader &,class CStreamStore const &)const - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@@Z @ 71 NONAME ABSENT ; public: class CApaAppData * __thiscall CApaAppList::NextApp(class CApaAppData const *)const - ?PurgeL@CApaAppList@@QAEXXZ @ 72 NONAME ABSENT ; public: void __thiscall CApaAppList::PurgeL(void) - ?RespondsToShutdownEvent@CApaWindowGroupName@@QBEHXZ @ 73 NONAME ; public: int __thiscall CApaWindowGroupName::RespondsToShutdownEvent(void)const - ?RespondsToSwitchFilesEvent@CApaWindowGroupName@@QBEHXZ @ 74 NONAME ; public: int __thiscall CApaWindowGroupName::RespondsToSwitchFilesEvent(void)const - ?RestoreL@CApaDoor@@QAEXABVCStreamStore@@VTStreamId@@@Z @ 75 NONAME ; public: void __thiscall CApaDoor::RestoreL(class CStreamStore const &,class TStreamId) - ?SendKey@TApaTask@@QAEXABUTKeyEvent@@@Z @ 76 NONAME ; public: void __thiscall TApaTask::SendKey(struct TKeyEvent const &) - ?SendKey@TApaTask@@QAEXHH@Z @ 77 NONAME ; public: void __thiscall TApaTask::SendKey(int,int) - ?SendMessage@TApaTask@@QAEHVTUid@@ABVTDesC8@@@Z @ 78 NONAME ; public: int __thiscall TApaTask::SendMessage(class TUid,class TDesC8 const &) - ?SendSystemEvent@TApaTask@@QAEXW4TApaSystemEvent@@@Z @ 79 NONAME ; public: void __thiscall TApaTask::SendSystemEvent(enum TApaSystemEvent) - ?SendToBackground@TApaTask@@QAEXXZ @ 80 NONAME ; public: void __thiscall TApaTask::SendToBackground(void) - ?SetAppUid@CApaWindowGroupName@@QAEXVTUid@@@Z @ 81 NONAME ; public: void __thiscall CApaWindowGroupName::SetAppUid(class TUid) - ?SetBusy@CApaWindowGroupName@@QAEXH@Z @ 82 NONAME ; public: void __thiscall CApaWindowGroupName::SetBusy(int) - ?SetCapability@CApaAppInfoFileWriter@@QAEHABVTDesC8@@@Z @ 83 NONAME ABSENT ; public: int __thiscall CApaAppInfoFileWriter::SetCapability(class TDesC8 const &) - ?SetCaptionL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 84 NONAME ; public: void __thiscall CApaWindowGroupName::SetCaptionL(class TDesC16 const &) - ?SetDocNameIsAFile@CApaWindowGroupName@@QAEXH@Z @ 85 NONAME ; public: void __thiscall CApaWindowGroupName::SetDocNameIsAFile(int) - ?SetDocNameL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 86 NONAME ; public: void __thiscall CApaWindowGroupName::SetDocNameL(class TDesC16 const &) - ?SetFormatToGlassL@CApaDoor@@QAEXXZ @ 87 NONAME ; public: void __thiscall CApaDoor::SetFormatToGlassL(void) - ?SetFormatToIconL@CApaDoor@@QAEXXZ @ 88 NONAME ; public: void __thiscall CApaDoor::SetFormatToIconL(void) - ?SetFormatToTemporaryIconL@CApaDoor@@QAEXH@Z @ 89 NONAME ; public: void __thiscall CApaDoor::SetFormatToTemporaryIconL(int) - ?SetRespondsToShutdownEvent@CApaWindowGroupName@@QAEXH@Z @ 90 NONAME ; public: void __thiscall CApaWindowGroupName::SetRespondsToShutdownEvent(int) - ?SetRespondsToSwitchFilesEvent@CApaWindowGroupName@@QAEXH@Z @ 91 NONAME ; public: void __thiscall CApaWindowGroupName::SetRespondsToSwitchFilesEvent(int) - ?SetSystem@CApaWindowGroupName@@QAEXH@Z @ 92 NONAME ; public: void __thiscall CApaWindowGroupName::SetSystem(int) - ?SetWgId@TApaTask@@QAEXH@Z @ 93 NONAME ; public: void __thiscall TApaTask::SetWgId(int) - ?SetWindowGroupName@CApaWindowGroupName@@QAEXPAVHBufC16@@@Z @ 94 NONAME ; public: void __thiscall CApaWindowGroupName::SetWindowGroupName(class HBufC16 *) - ?SetWindowGroupName@CApaWindowGroupName@@QBEHAAVRWindowGroup@@@Z @ 95 NONAME ; public: int __thiscall CApaWindowGroupName::SetWindowGroupName(class RWindowGroup &)const - ?SetWindowGroupNameL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 96 NONAME ; public: void __thiscall CApaWindowGroupName::SetWindowGroupNameL(class TDesC16 const &) - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@@Z @ 97 NONAME ; public: int __thiscall RApaLsSession::StartApp(class CApaCommandLine const &) - ?StoreL@CApaAppInfoFileWriter@@QAEXXZ @ 98 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::StoreL(void) - ?StretchDrawL@CApaAppInfoFileReader@@SAXPAVCFbsBitmap@@0VTSize@@@Z @ 99 NONAME ABSENT ; public: static void __cdecl CApaAppInfoFileReader::StretchDrawL(class CFbsBitmap *,class CFbsBitmap *,class TSize) - ?SwitchCreateFile@TApaTask@@QAEHABVTDesC16@@@Z @ 100 NONAME ; public: int __thiscall TApaTask::SwitchCreateFile(class TDesC16 const &) - ?SwitchOpenFile@TApaTask@@QAEHABVTDesC16@@@Z @ 101 NONAME ; public: int __thiscall TApaTask::SwitchOpenFile(class TDesC16 const &) - ?ThreadId@TApaTask@@QBE?AVTThreadId@@XZ @ 102 NONAME ; public: class TThreadId __thiscall TApaTask::ThreadId(void)const - ?UpdateCounter@CApaAppList@@QBEHXZ @ 103 NONAME ABSENT ; public: int __thiscall CApaAppList::UpdateCounter(void)const - ?UpdateL@CApaAppList@@QAEXXZ @ 104 NONAME ABSENT ; public: void __thiscall CApaAppList::UpdateL(void) - ?Version@RApaLsSession@@QBE?AVTVersion@@XZ @ 105 NONAME ; public: class TVersion __thiscall RApaLsSession::Version(void)const - ?WgId@TApaTask@@QBEHXZ @ 106 NONAME ; public: int __thiscall TApaTask::WgId(void)const - ?WindowGroupName@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 107 NONAME ; public: class TPtrC16 __thiscall CApaWindowGroupName::WindowGroupName(void)const - ??1CApaSystemControlList@@UAE@XZ @ 108 NONAME ; public: virtual __thiscall CApaSystemControlList::~CApaSystemControlList(void) - ?Caption@CApaSystemControl@@QBE?AVTPtrC16@@XZ @ 109 NONAME ; public: class TPtrC16 __thiscall CApaSystemControl::Caption(void)const - ?Control@CApaSystemControlList@@QBEPAVCApaSystemControl@@H@Z @ 110 NONAME ; public: class CApaSystemControl * __thiscall CApaSystemControlList::Control(int)const - ?Control@CApaSystemControlList@@QBEPAVCApaSystemControl@@VTUid@@@Z @ 111 NONAME ; public: class CApaSystemControl * __thiscall CApaSystemControlList::Control(class TUid)const - ?Count@CApaSystemControlList@@QBEHXZ @ 112 NONAME ; public: int __thiscall CApaSystemControlList::Count(void)const - ?CreateL@CApaSystemControl@@QAEXXZ @ 113 NONAME ; public: void __thiscall CApaSystemControl::CreateL(void) - ?FileName@CApaSystemControl@@QBE?AV?$TBuf@$0BAA@@@XZ @ 114 NONAME ; public: class TBuf<256> __thiscall CApaSystemControl::FileName(void)const - ?Icon@CApaSystemControl@@QBEPAVCApaMaskedBitmap@@XZ @ 115 NONAME ; public: class CApaMaskedBitmap * __thiscall CApaSystemControl::Icon(void)const - ?Index@CApaSystemControlList@@QBEHVTUid@@@Z @ 116 NONAME ; public: int __thiscall CApaSystemControlList::Index(class TUid)const - ?NewL@CApaSystemControlList@@SAPAV1@AAVRFs@@AAVCApaAppFinder@@ABVTDesC16@@@Z @ 117 NONAME ABSENT ; public: static class CApaSystemControlList * __cdecl CApaSystemControlList::NewL(class RFs &,class CApaAppFinder &,class TDesC16 const &) - ?Type@CApaSystemControl@@QBE?AVTUid@@XZ @ 118 NONAME ; public: class TUid __thiscall CApaSystemControl::Type(void)const - ?UpdateL@CApaSystemControlList@@QAEXXZ @ 119 NONAME ; public: void __thiscall CApaSystemControlList::UpdateL(void) - ?AddDataTypeL@CApaAppInfoFileWriter@@QAEXABVTDataTypeWithPriority@@@Z @ 120 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddDataTypeL(class TDataTypeWithPriority const &) - ?AppForDataType@RApaLsSession@@QBEHABVTDataType@@AAVTUid@@@Z @ 121 NONAME ; public: int __thiscall RApaLsSession::AppForDataType(class TDataType const &,class TUid &)const - ?AppForDocument@RApaLsSession@@QBEHABVTDesC16@@AAVTUid@@AAVTDataType@@@Z @ 122 NONAME ; public: int __thiscall RApaLsSession::AppForDocument(class TDesC16 const &,class TUid &,class TDataType &)const - ?CreateDocument@RApaLsSession@@QAEHABVTDesC16@@VTUid@@AAVTThreadId@@W4TLaunchType@1@@Z @ 123 NONAME ; public: int __thiscall RApaLsSession::CreateDocument(class TDesC16 const &,class TUid,class TThreadId &,enum RApaLsSession::TLaunchType) - ?DataType@CApaAppData@@QBEJABVTDataType@@@Z @ 124 NONAME ABSENT ; long CApaAppData::DataType(class TDataType const &) const - ?DataTypesSupportedL@CApaAppInfoFileReader@@QBEXAAV?$CArrayFix@VTDataTypeWithPriority@@@@@Z @ 125 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileReader::DataTypesSupportedL(class CArrayFix &)const - ?GetAcceptedConfidence@RApaLsSession@@QBEHAAH@Z @ 126 NONAME ; public: int __thiscall RApaLsSession::GetAcceptedConfidence(int &)const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@HAAVCApaMaskedBitmap@@@Z @ 127 NONAME ; public: int __thiscall RApaLsSession::GetAppIcon(class TUid,int,class CApaMaskedBitmap &)const - ?GetMaxDataBufSize@RApaLsSession@@QBEHAAH@Z @ 128 NONAME ; public: int __thiscall RApaLsSession::GetMaxDataBufSize(int &)const - ?GetSupportedDataTypesL@RApaLsSession@@QBEHAAV?$CArrayFixFlat@VTDataType@@@@@Z @ 129 NONAME ; public: int __thiscall RApaLsSession::GetSupportedDataTypesL(class CArrayFixFlat &)const - ?IsProgram@RApaLsSession@@QBEHABVTDesC16@@AAH@Z @ 130 NONAME ; public: int __thiscall RApaLsSession::IsProgram(class TDesC16 const &,int &)const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@@Z @ 131 NONAME ABSENT ; public: class TUid __thiscall CApaAppList::PreferredDataHandlerL(class TDataType const &)const - ?RecognizeData@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@AAVTDataRecognitionResult@@@Z @ 132 NONAME ; public: int __thiscall RApaLsSession::RecognizeData(class TDesC16 const &,class TDesC8 const &,class TDataRecognitionResult &)const - ?RecognizeSpecificData@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@ABVTDataType@@AAH@Z @ 133 NONAME ; public: int __thiscall RApaLsSession::RecognizeSpecificData(class TDesC16 const &,class TDesC8 const &,class TDataType const &,int &)const - ?SetAcceptedConfidence@RApaLsSession@@QAEHH@Z @ 134 NONAME ; public: int __thiscall RApaLsSession::SetAcceptedConfidence(int) - ?SetMaxDataBufSize@RApaLsSession@@QAEHH@Z @ 135 NONAME ; public: int __thiscall RApaLsSession::SetMaxDataBufSize(int) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@AAVTThreadId@@W4TLaunchType@1@@Z @ 136 NONAME ; public: int __thiscall RApaLsSession::StartDocument(class TDesC16 const &,class TThreadId &,enum RApaLsSession::TLaunchType) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@ABVTDataType@@AAVTThreadId@@W4TLaunchType@1@@Z @ 137 NONAME ; public: int __thiscall RApaLsSession::StartDocument(class TDesC16 const &,class TDataType const &,class TThreadId &,enum RApaLsSession::TLaunchType) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@VTUid@@AAVTThreadId@@W4TLaunchType@1@@Z @ 138 NONAME ; public: int __thiscall RApaLsSession::StartDocument(class TDesC16 const &,class TUid,class TThreadId &,enum RApaLsSession::TLaunchType) - ?StartIdleUpdateL@CApaAppList@@QAEXXZ @ 139 NONAME ABSENT ; public: void __thiscall CApaAppList::StartIdleUpdateL(void) - ??1CApaAppListNotifier@@UAE@XZ @ 140 NONAME ; public: virtual __thiscall CApaAppListNotifier::~CApaAppListNotifier(void) - ?NewL@CApaAppListNotifier@@SAPAV1@PAVMApaAppListServObserver@@W4TPriority@CActive@@@Z @ 141 NONAME ; public: static class CApaAppListNotifier * __cdecl CApaAppListNotifier::NewL(class MApaAppListServObserver *,enum CActive::TPriority) - ?StartIdleUpdateL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 142 NONAME ABSENT ; public: void __thiscall CApaAppList::StartIdleUpdateL(class MApaAppListObserver *) - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@VTSize@@AAVCApaMaskedBitmap@@@Z @ 143 NONAME ; public: int __thiscall RApaLsSession::GetAppIcon(class TUid,class TSize,class CApaMaskedBitmap &)const - ?GetAppIconSizes@RApaLsSession@@QBEHVTUid@@AAV?$CArrayFixFlat@VTSize@@@@@Z @ 144 NONAME ; public: int __thiscall RApaLsSession::GetAppIconSizes(class TUid,class CArrayFixFlat &)const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@VTSize@@@Z @ 145 NONAME ABSENT ; public: class CApaMaskedBitmap * __thiscall CApaAppData::Icon(class TSize)const - ?IconSizesL@CApaAppData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 146 NONAME ABSENT ; public: class CArrayFixFlat * __thiscall CApaAppData::IconSizesL(void)const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@H@Z @ 147 NONAME ABSENT ; public: class CApaMaskedBitmap * __thiscall CApaAppData::Icon(int)const - ?Hidden@CApaWindowGroupName@@QBEHXZ @ 148 NONAME ; int CApaWindowGroupName::Hidden(void) const - ?SetHidden@CApaWindowGroupName@@QAEXH@Z @ 149 NONAME ; public: void __thiscall CApaWindowGroupName::SetHidden(int) - ?AddViewCaptionL@CApaAppInfoFileWriter@@QAEXW4TLanguage@@ABVTDesC16@@VTUid@@@Z @ 150 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddViewCaptionL(enum TLanguage,class TDesC16 const &,class TUid) - ?AddViewIconL@CApaAppInfoFileWriter@@QAEXAAVCApaMaskedBitmap@@VTUid@@@Z @ 151 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddViewIconL(class CApaMaskedBitmap &,class TUid) - ?AddViewL@CApaAppInfoFileWriter@@QAEXVTUid@@@Z @ 152 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddViewL(class TUid) - ?CaptionL@CApaAIFViewData@@QBE?AV?$TBuf@$0BAA@@@W4TLanguage@@@Z @ 153 NONAME ABSENT ; public: class TBuf<256> __thiscall CApaAIFViewData::CaptionL(enum TLanguage)const - ?GetAppViewIcon@RApaLsSession@@QBEHVTUid@@0ABVTSize@@AAVCApaMaskedBitmap@@@Z @ 154 NONAME ; public: int __thiscall RApaLsSession::GetAppViewIcon(class TUid,class TUid,class TSize const &,class CApaMaskedBitmap &)const - ?GetAppViews@RApaLsSession@@QBEHAAV?$CArrayFixFlat@VTApaAppViewInfo@@@@VTUid@@@Z @ 155 NONAME ; public: int __thiscall RApaLsSession::GetAppViews(class CArrayFixFlat &,class TUid)const - ?GetViewsL@CApaAppInfoFileReader@@QBEXAAV?$CArrayPtr@VCApaAIFViewData@@@@@Z @ 156 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileReader::GetViewsL(class CArrayPtr &)const - ?Icon@CApaAppViewData@@QBEPAVCApaMaskedBitmap@@ABVTSize@@@Z @ 157 NONAME ABSENT ; public: class CApaMaskedBitmap * __thiscall CApaAppViewData::Icon(class TSize const &)const - ?IconByIndexL@CApaAIFViewData@@QBEPAVCApaMaskedBitmap@@H@Z @ 158 NONAME ABSENT ; public: class CApaMaskedBitmap * __thiscall CApaAIFViewData::IconByIndexL(int)const - ?IconSizesL@CApaAppViewData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 159 NONAME ABSENT ; public: class CArrayFixFlat * __thiscall CApaAppViewData::IconSizesL(void)const - ?NumberOfIcons@CApaAIFViewData@@QBEHXZ @ 160 NONAME ABSENT ; public: int __thiscall CApaAIFViewData::NumberOfIcons(void)const - ?StoreViewL@CApaAppInfoFileWriter@@QAEXVTUid@@@Z @ 161 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::StoreViewL(class TUid) - ?Uid@CApaAppViewData@@QBE?AVTUid@@XZ @ 162 NONAME ABSENT ; public: class TUid __thiscall CApaAppViewData::Uid(void)const - ?ViewUid@CApaAIFViewData@@QBE?AVTUid@@XZ @ 163 NONAME ABSENT ; public: class TUid __thiscall CApaAIFViewData::ViewUid(void)const - ?Views@CApaAppData@@QBEPAV?$CArrayPtrFlat@VCApaAppViewData@@@@XZ @ 164 NONAME ABSENT ; public: class CArrayPtrFlat * __thiscall CApaAppData::Views(void)const - ?AddOwnedFileL@CApaAppInfoFileWriter@@QAEXABVTDesC16@@@Z @ 165 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddOwnedFileL(class TDesC16 const &) - ?GetOwnedFilesL@CApaAppInfoFileReader@@QBEXAAVCDesC16Array@@@Z @ 166 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileReader::GetOwnedFilesL(class CDesC16Array &)const - ?OwnedFiles@CApaAppData@@QBEPAVCDesC16Array@@XZ @ 167 NONAME ABSENT ; public: class CDesC16Array * __thiscall CApaAppData::OwnedFiles(void)const - ?GetAppOwnedFiles@RApaLsSession@@QBEHAAVCDesC16Array@@VTUid@@@Z @ 168 NONAME ; public: int __thiscall RApaLsSession::GetAppOwnedFiles(class CDesC16Array &,class TUid)const - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@AAVTThreadId@@@Z @ 169 NONAME ; public: int __thiscall RApaLsSession::StartApp(class CApaCommandLine const &,class TThreadId &) - ?GetAifFileName@AppInfoFileUtils@@SAXABVRFs@@AAVTDes16@@@Z @ 170 NONAME ABSENT ; public: static void __cdecl AppInfoFileUtils::GetAifFileName(class RFs const &,class TDes16 &) - ?AddViewL@CApaAppInfoFileWriter@@QAEXVTUid@@H@Z @ 171 NONAME ABSENT ; public: void __thiscall CApaAppInfoFileWriter::AddViewL(class TUid,int) - ?CanUseScreenMode@CApaAppData@@QAEHH@Z @ 172 NONAME ABSENT ; public: int __thiscall CApaAppData::CanUseScreenMode(int) - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@H@Z @ 173 NONAME ABSENT ; public: class CApaAppData * __thiscall CApaAppList::FirstApp(int)const - ?GetAllApps@RApaLsSession@@QBEHH@Z @ 174 NONAME ; public: int __thiscall RApaLsSession::GetAllApps(int)const - ?GetEmbeddableApps@RApaLsSession@@QBEHH@Z @ 175 NONAME ; public: int __thiscall RApaLsSession::GetEmbeddableApps(int)const - ?GetNextApp@RApaLsSession@@QBEHAAVTApaAppInfo@@H@Z @ 176 NONAME ; public: int __thiscall RApaLsSession::GetNextApp(class TApaAppInfo &,int)const - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@H@Z @ 177 NONAME ABSENT ; public: class CApaAppData * __thiscall CApaAppList::NextApp(class CApaAppData const *,int)const - ?ScreenMode@CApaAIFViewData@@QBEHXZ @ 178 NONAME ABSENT ; public: int __thiscall CApaAIFViewData::ScreenMode(void)const - ?ScreenMode@CApaAppViewData@@QBEHXZ @ 179 NONAME ABSENT ; public: int __thiscall CApaAppViewData::ScreenMode(void)const - ?ShortCaption@CApaSystemControl@@QBE?AVTPtrC16@@XZ @ 180 NONAME ; public: class TPtrC16 __thiscall CApaSystemControl::ShortCaption(void)const - ?IsIdleUpdateComplete@CApaAppList@@QBEHXZ @ 181 NONAME ABSENT ; public: int __thiscall CApaAppList::IsIdleUpdateComplete(void)const - ?IsAppReady@CApaWindowGroupName@@QBEHXZ @ 182 NONAME ; public: int __thiscall CApaWindowGroupName::IsAppReady(void)const - ?SetAppReady@CApaWindowGroupName@@QAEXH@Z @ 183 NONAME ; public: void __thiscall CApaWindowGroupName::SetAppReady(int) - ?InitListL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 184 NONAME ABSENT ; public: void __thiscall CApaAppList::InitListL(class MApaAppListObserver *) - ?NumberOfBitmaps@CApaAppInfoFileReader@@QBEHXZ @ 185 NONAME ABSENT ; public: int __thiscall CApaAppInfoFileReader::NumberOfBitmaps(void)const - ?IsFirstScanComplete@CApaAppList@@QBEHXZ @ 186 NONAME ABSENT ; public: int __thiscall CApaAppList::IsFirstScanComplete(void)const - ?SetMaskBitmap@CApaMaskedBitmap@@QAEXPAVCFbsBitmap@@@Z @ 187 NONAME ; public: void __thiscall CApaMaskedBitmap::SetMaskBitmap(class CFbsBitmap *) - ?GetAppInfo_7_0@RApaLsSession@@ABEHAAVTApaAppInfo_7_0@@VTUid@@@Z @ 188 NONAME ABSENT ; int RApaLsSession::GetAppInfo_7_0(class TApaAppInfo_7_0 &, class TUid) const - ?GetNextApp_7_0@RApaLsSession@@ABEHAAVTApaAppInfo_7_0@@@Z @ 189 NONAME ABSENT ; int RApaLsSession::GetNextApp_7_0(class TApaAppInfo_7_0 &) const - ?GetNextApp_7_0@RApaLsSession@@ABEHAAVTApaAppInfo_7_0@@H@Z @ 190 NONAME ABSENT ; int RApaLsSession::GetNextApp_7_0(class TApaAppInfo_7_0 &, int) const - ?GetIconInfo@CApaAppData@@QBEXAAH0@Z @ 191 NONAME ABSENT ; void CApaAppData::GetIconInfo(int &, int &) const - ?NumberOfOwnDefinedIcons@RApaLsSession@@QBEHVTUid@@AAH@Z @ 192 NONAME ; public: int __thiscall RApaLsSession::NumberOfOwnDefinedIcons(class TUid,int &)const - ?GetFilteredApps@RApaLsSession@@QBEHABVTApaEmbeddabilityFilter@@@Z @ 193 NONAME ; public: int __thiscall RApaLsSession::GetFilteredApps(class TApaEmbeddabilityFilter const &)const - ?GetFilteredApps@RApaLsSession@@QBEHABVTApaEmbeddabilityFilter@@H@Z @ 194 NONAME ; public: int __thiscall RApaLsSession::GetFilteredApps(class TApaEmbeddabilityFilter const &,int)const - ?NewL@CApaAppList@@SAPAV1@AAVRFs@@PAVCApaAppFinder@@PAVCApaAppRegFinder@@H@Z @ 195 NONAME ABSENT ; class CApaAppList * CApaAppList::NewL(class RFs &, class CApaAppFinder *, class CApaAppRegFinder *, int) - ?DefaultScreenNumber@CApaAppData@@QBEIXZ @ 196 NONAME ABSENT ; unsigned int CApaAppData::DefaultScreenNumber(void) const - ?GetFilteredApps@RApaLsSession@@QBEHII@Z @ 197 NONAME ; int RApaLsSession::GetFilteredApps(unsigned int, unsigned int) const - ?GetFilteredApps@RApaLsSession@@QBEHIIH@Z @ 198 NONAME ; int RApaLsSession::GetFilteredApps(unsigned int, unsigned int, int) const - ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 199 NONAME ABSENT ; int CApaAppData::RegistrationFileUsed(void) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@AAPAVHBufC16@@@Z @ 200 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class HBufC16 * &) const - ?IconFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 201 NONAME ABSENT ; class TPtrC16 CApaAppData::IconFileName(void) const - ?GetAppViewIcon@RApaLsSession@@QBEHVTUid@@0AAPAVHBufC16@@@Z @ 202 NONAME ; int RApaLsSession::GetAppViewIcon(class TUid, class TUid, class HBufC16 * &) const - ?IconFileName@CApaAppViewData@@QBE?AVTPtrC16@@XZ @ 203 NONAME ABSENT ; class TPtrC16 CApaAppViewData::IconFileName(void) const - ?NonMbmIconFile@CApaAppData@@QBEHXZ @ 204 NONAME ABSENT ; int CApaAppData::NonMbmIconFile(void) const - ?NonMbmIconFile@CApaAppViewData@@QBEHXZ @ 205 NONAME ABSENT ; int CApaAppViewData::NonMbmIconFile(void) const - ?StartupApaServer@@YAHAAVMApaAppStarter@@@Z @ 206 NONAME ABSENT ; int StartupApaServer(class MApaAppStarter &) - ?StartupApaServerProcess@@YAHXZ @ 207 NONAME ; int StartupApaServerProcess(void) - ?DeleteDataMapping@RApaLsSession@@QAEHABVTDataType@@@Z @ 208 NONAME ; int RApaLsSession::DeleteDataMapping(class TDataType const &) - ?InsertDataMapping@RApaLsSession@@QAEHABVTDataType@@JVTUid@@@Z @ 209 NONAME ; int RApaLsSession::InsertDataMapping(class TDataType const &, long, class TUid) - ?InsertDataMappingIfHigher@RApaLsSession@@QAEHABVTDataType@@JVTUid@@AAH@Z @ 210 NONAME ; int RApaLsSession::InsertDataMappingIfHigher(class TDataType const &, long, class TUid, int &) - ?ApplicationLanguage@CApaAppData@@QBE?AW4TLanguage@@XZ @ 211 NONAME ABSENT ; enum TLanguage CApaAppData::ApplicationLanguage(void) const - ?ApplicationLanguage@RApaLsSession@@QBEHVTUid@@AAW4TLanguage@@@Z @ 212 NONAME ; int RApaLsSession::ApplicationLanguage(class TUid, enum TLanguage &) const - ?NewL@CApaSystemControlList@@SAPAV1@AAVRFs@@@Z @ 213 NONAME ; class CApaSystemControlList * CApaSystemControlList::NewL(class RFs &) - ?AppForDataTypeAndService@RApaLsSession@@QBEHABVTDataType@@VTUid@@AAV3@@Z @ 214 NONAME ; int RApaLsSession::AppForDataTypeAndService(class TDataType const &, class TUid, class TUid &) const - ?AppForDocumentAndService@RApaLsSession@@QBEHABVRFile@@VTUid@@AAV3@AAVTDataType@@@Z @ 215 NONAME ; int RApaLsSession::AppForDocumentAndService(class RFile const &, class TUid, class TUid &, class TDataType &) const - ?AppForDocumentAndService@RApaLsSession@@QBEHABVTDesC16@@VTUid@@AAV3@AAVTDataType@@@Z @ 216 NONAME ; int RApaLsSession::AppForDocumentAndService(class TDesC16 const &, class TUid, class TUid &, class TDataType &) const - ?GetAppServiceOpaqueDataLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@0@Z @ 217 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetAppServiceOpaqueDataLC(class TUid, class TUid) const - ?GetAppServicesL@RApaLsSession@@QBEXVTUid@@AAV?$CArrayFixFlat@VTUid@@@@@Z @ 218 NONAME ; void RApaLsSession::GetAppServicesL(class TUid, class CArrayFixFlat &) const - ?GetAppServicesLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@@Z @ 219 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetAppServicesLC(class TUid) const - ?GetServerApps@RApaLsSession@@QBEHVTUid@@@Z @ 220 NONAME ; int RApaLsSession::GetServerApps(class TUid) const - ?GetServerApps@RApaLsSession@@QBEHVTUid@@H@Z @ 221 NONAME ; int RApaLsSession::GetServerApps(class TUid, int) const - ?GetServiceImplementationsLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@@Z @ 222 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetServiceImplementationsLC(class TUid) const - ?ImplementsService@CApaAppData@@QBEHVTUid@@@Z @ 223 NONAME ABSENT ; int CApaAppData::ImplementsService(class TUid) const - ?OpaqueData@TApaAppServiceInfo@@QBEABVTDesC8@@XZ @ 224 NONAME ABSENT ; class TDesC8 const & TApaAppServiceInfo::OpaqueData(void) const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@PBV2@AAH@Z @ 225 NONAME ABSENT ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &, class TUid const *, int &) const - ?ServiceArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 226 NONAME ABSENT ; class CBufFlat * CApaAppList::ServiceArrayBufferL(class TUid) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 227 NONAME ABSENT ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid) const - ?ServiceOpaqueDataBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@0@Z @ 228 NONAME ABSENT ; class CBufFlat * CApaAppList::ServiceOpaqueDataBufferL(class TUid, class TUid) const - ?ServiceUidBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 229 NONAME ABSENT ; class CBufFlat * CApaAppList::ServiceUidBufferL(class TUid) const - ?Uid@TApaAppServiceInfo@@QBE?AVTUid@@XZ @ 230 NONAME ABSENT ; class TUid TApaAppServiceInfo::Uid(void) const - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 231 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TThreadId &, class TRequestStatus *) - ?CreateMaskedBitmapByIndexLC@CApaAppInfoFileReader@@QAEPAVCApaMaskedBitmap@@H@Z @ 232 NONAME ABSENT ; class CApaMaskedBitmap * CApaAppInfoFileReader::CreateMaskedBitmapByIndexLC(int) - ?CancelListPopulationCompleteObserver@RApaLsSession@@QBEHXZ @ 233 NONAME ; int RApaLsSession::CancelListPopulationCompleteObserver(void) const - ?RegisterListPopulationCompleteObserver@RApaLsSession@@QBEXAAVTRequestStatus@@@Z @ 234 NONAME ; void RApaLsSession::RegisterListPopulationCompleteObserver(class TRequestStatus &) const - ?NewInterimFormatFileWriterLC@ForJavaMIDletInstaller@@SAPAVCApaAppInfoFileWriter@@AAVRFs@@ABVTDesC16@@VTUid@@KH@Z @ 235 NONAME ABSENT ; class CApaAppInfoFileWriter * ForJavaMIDletInstaller::NewInterimFormatFileWriterLC(class RFs &, class TDesC16 const &, class TUid, unsigned long, int) - ?CheckInterimFormatFileNotCorruptL@ForJavaMIDletInstaller@@SAXAAVRFile@@@Z @ 236 NONAME ABSENT ; void ForJavaMIDletInstaller::CheckInterimFormatFileNotCorruptL(class RFile &) - ?RegisterJavaMIDletViaIterimFormat@RApaLsSession@@QAEHABVTDesC16@@AAVRFile@@@Z @ 237 NONAME ABSENT ; int RApaLsSession::RegisterJavaMIDletViaIterimFormat(class TDesC16 const &, class RFile &) - ?DeregisterJavaMIDlet@RApaLsSession@@QAEHABVTDesC16@@@Z @ 238 NONAME ABSENT ; int RApaLsSession::DeregisterJavaMIDlet(class TDesC16 const &) - ?AppForDocument@RApaLsSession@@QBEHABVRFile@@AAVTUid@@AAVTDataType@@@Z @ 239 NONAME ; int RApaLsSession::AppForDocument(class RFile const &, class TUid &, class TDataType &) const - ?ClearFsSession@RApaLsSession@@SAXXZ @ 240 NONAME ; void RApaLsSession::ClearFsSession(void) - ?FsSession@RApaLsSession@@SAPAVRFs@@XZ @ 241 NONAME ; class RFs * RApaLsSession::FsSession(void) - ?RecognizeData@RApaLsSession@@QBEHABVRFile@@AAVTDataRecognitionResult@@@Z @ 242 NONAME ; int RApaLsSession::RecognizeData(class RFile const &, class TDataRecognitionResult &) const - ?RecognizeSpecificData@RApaLsSession@@QBEHABVRFile@@ABVTDataType@@AAH@Z @ 243 NONAME ; int RApaLsSession::RecognizeSpecificData(class RFile const &, class TDataType const &, int &) const - ?SetFsSessionL@RApaLsSession@@SAXAAVRFs@@@Z @ 244 NONAME ; void RApaLsSession::SetFsSessionL(class RFs &) - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@ABVTDataType@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 245 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TDataType const &, class TThreadId &, class TRequestStatus *) - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@VTUid@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 246 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TUid, class TThreadId &, class TRequestStatus *) - ?GetPreferredBufSize@RApaLsSession@@QBEHAAH@Z @ 247 NONAME ; public: int __thiscall RApaLsSession::GetPreferredBufSize(int &)const - ?GetJavaMIDletInfoL@ForJavaMIDletInstaller@@SAXAAVRFs@@ABVTDesC16@@AAK2@Z @ 248 NONAME ABSENT ; void ForJavaMIDletInstaller::GetJavaMIDletInfoL(class RFs &, class TDesC16 const &, unsigned long &, unsigned long &) - ?HandleAsRegistrationFile@ApaUtils@@SAHABVTUidType@@@Z @ 249 NONAME ABSENT ; int ApaUtils::HandleAsRegistrationFile(class TUidType const &) - ?DataTypes@TApaAppServiceInfo@@QBEABV?$CArrayFixFlat@VTDataTypeWithPriority@@@@XZ @ 250 NONAME ABSENT ; class CArrayFixFlat const & TApaAppServiceInfo::DataTypes(void) const - ?GetServiceImplementationsLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@ABVTDataType@@@Z @ 251 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetServiceImplementationsLC(class TUid, class TDataType const &) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@ABVTDataType@@@Z @ 252 NONAME ABSENT ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid, class TDataType const &) const - ?Close@RApaLsSession@@QAEXXZ @ 253 NONAME ; void RApaLsSession::Close(void) - ??0MApaAppListServObserver@@IAE@XZ @ 254 NONAME ; MApaAppListServObserver::MApaAppListServObserver(void) - ??0TApaPictureFactory@@IAE@XZ @ 255 NONAME ; TApaPictureFactory::TApaPictureFactory(void) - ?MApaAppListServObserver_Reserved1@MApaAppListServObserver@@EAEXXZ @ 256 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved1(void) - ?MApaAppListServObserver_Reserved2@MApaAppListServObserver@@EAEXXZ @ 257 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved2(void) - ?RApaLsSession_Reserved1@RApaLsSession@@EAEXXZ @ 258 NONAME ; void RApaLsSession::RApaLsSession_Reserved1(void) - ?RApaLsSession_Reserved2@RApaLsSession@@EAEXXZ @ 259 NONAME ; void RApaLsSession::RApaLsSession_Reserved2(void) - ??0CDataRecognitionResultArray@@QAE@XZ @ 260 NONAME ; CDataRecognitionResultArray::CDataRecognitionResultArray(void) - ??1CDataRecognitionResultArray@@UAE@XZ @ 261 NONAME ; CDataRecognitionResultArray::~CDataRecognitionResultArray(void) - ?CancelRecognizeFiles@RApaLsSession@@QAEXXZ @ 262 NONAME ; void RApaLsSession::CancelRecognizeFiles(void) - ?Count@CDataRecognitionResultArray@@QBEIXZ @ 263 NONAME ; unsigned int CDataRecognitionResultArray::Count(void) const - ?GetDataRecognitionResultL@CDataRecognitionResultArray@@QBEXAAVTDataRecognitionResult@@I@Z @ 264 NONAME ; void CDataRecognitionResultArray::GetDataRecognitionResultL(class TDataRecognitionResult &, unsigned int) const - ?GetFileNameL@CDataRecognitionResultArray@@QBEXAAV?$TBuf@$0BAA@@@I@Z @ 265 NONAME ; void CDataRecognitionResultArray::GetFileNameL(class TBuf<256> &, unsigned int) const - ?Path@CDataRecognitionResultArray@@QBEABV?$TBuf@$0BAA@@@XZ @ 266 NONAME ; class TBuf<256> const & CDataRecognitionResultArray::Path(void) const - ?RecognizeFilesL@RApaLsSession@@QBEHABVTDesC16@@AAVCDataRecognitionResultArray@@@Z @ 267 NONAME ; int RApaLsSession::RecognizeFilesL(class TDesC16 const &, class CDataRecognitionResultArray &) const - ?RecognizeFilesL@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@AAVCDataRecognitionResultArray@@@Z @ 268 NONAME ; int RApaLsSession::RecognizeFilesL(class TDesC16 const &, class TDesC8 const &, class CDataRecognitionResultArray &) const - ?RecognizeFilesL@RApaLsSession@@QAEXABVTDesC16@@AAVCDataRecognitionResultArray@@AAVTRequestStatus@@@Z @ 269 NONAME ; void RApaLsSession::RecognizeFilesL(class TDesC16 const &, class CDataRecognitionResultArray &, class TRequestStatus &) - ?RecognizeFilesL@RApaLsSession@@QAEXABVTDesC16@@ABVTDesC8@@AAVCDataRecognitionResultArray@@AAVTRequestStatus@@@Z @ 270 NONAME ; void RApaLsSession::RecognizeFilesL(class TDesC16 const &, class TDesC8 const &, class CDataRecognitionResultArray &, class TRequestStatus &) - ?InsertDataMapping@RApaLsSession@@QAEHABVTDataType@@JVTUid@@1@Z @ 271 NONAME ; int RApaLsSession::InsertDataMapping(class TDataType const &, long, class TUid, class TUid) - ?DeleteDataMapping@RApaLsSession@@QAEHABVTDataType@@VTUid@@@Z @ 272 NONAME ; int RApaLsSession::DeleteDataMapping(class TDataType const &, class TUid) - ?GetAppByDataType@RApaLsSession@@QBEHABVTDataType@@VTUid@@AAV3@@Z @ 273 NONAME ; int RApaLsSession::GetAppByDataType(class TDataType const &, class TUid, class TUid &) const - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 274 NONAME ; int RApaLsSession::StartApp(class CApaCommandLine const &, class TThreadId &, class TRequestStatus *) - ?RegisterNonNativeApplicationTypeL@RApaLsSession@@QAEXVTUid@@ABVTDesC16@@@Z @ 275 NONAME ; void RApaLsSession::RegisterNonNativeApplicationTypeL(class TUid, class TDesC16 const &) - ?DeregisterNonNativeApplicationTypeL@RApaLsSession@@QAEXVTUid@@@Z @ 276 NONAME ; void RApaLsSession::DeregisterNonNativeApplicationTypeL(class TUid) - ?RegisterNonNativeApplicationL@RApaLsSession@@QAEXVTUid@@ABVTDriveUnit@@AAVCApaRegistrationResourceFileWriter@@PAVCApaLocalisableResourceFileWriter@@PBVRFile@@@Z @ 277 NONAME ; void RApaLsSession::RegisterNonNativeApplicationL(class TUid, class TDriveUnit const &, class CApaRegistrationResourceFileWriter &, class CApaLocalisableResourceFileWriter *, class RFile const *) - ?DeregisterNonNativeApplicationL@RApaLsSession@@QAEXVTUid@@@Z @ 278 NONAME ; void RApaLsSession::DeregisterNonNativeApplicationL(class TUid) - ?AppDataByFileName@CApaAppList@@QBEPAVCApaAppData@@ABVTDesC16@@@Z @ 279 NONAME ABSENT ; class CApaAppData* CApaAppList::AppDataByFileName(class TDesC16 const &) const - ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 280 NONAME ABSENT ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const - ?OpaqueData@CApaAppData@@QBE?AVTPtrC8@@XZ @ 281 NONAME ABSENT ; class TPtrC8 CApaAppData::OpaqueData(void) const - ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 282 NONAME ABSENT ; class TPtrC16 CApaAppData::RegistrationFileName(void) const - ?GetDefaultScreenNumber@RApaLsSession@@QBEHAAHVTUid@@@Z @ 283 NONAME ; int RApaLsSession::GetDefaultScreenNumber(int &, class TUid) const - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 284 NONAME ABSENT ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) - ?MatchesSecurityPolicy@RApaLsSession@@QBEHAAHVTUid@@ABVTSecurityPolicy@@@Z @ 285 NONAME ; int RApaLsSession::MatchesSecurityPolicy(int &, class TUid, class TSecurityPolicy const &) const - ?AddDataTypeL@CApaRegistrationResourceFileWriter@@QAEXHABVTDesC8@@@Z @ 286 NONAME ; void CApaRegistrationResourceFileWriter::AddDataTypeL(int, class TDesC8 const &) - ?AddFileOwnershipInfoL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC16@@@Z @ 287 NONAME ; void CApaRegistrationResourceFileWriter::AddFileOwnershipInfoL(class TDesC16 const &) - ?NewL@CApaLocalisableResourceFileWriter@@SAPAV1@ABVTDesC16@@0H0@Z @ 288 NONAME ; class CApaLocalisableResourceFileWriter * CApaLocalisableResourceFileWriter::NewL(class TDesC16 const &, class TDesC16 const &, int, class TDesC16 const &) - ?NewL@CApaRegistrationResourceFileWriter@@SAPAV1@VTUid@@ABVTDesC16@@I@Z @ 289 NONAME ; class CApaRegistrationResourceFileWriter * CApaRegistrationResourceFileWriter::NewL(class TUid, class TDesC16 const &, unsigned int) - ?NonNativeApplicationType@CApaAppData@@QBE?AVTUid@@XZ @ 290 NONAME ABSENT ; class TUid CApaAppData::NonNativeApplicationType(void) const - ?SetAppIsHiddenL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 291 NONAME ; void CApaRegistrationResourceFileWriter::SetAppIsHiddenL(int) - ?SetDefaultScreenNumberL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 292 NONAME ; void CApaRegistrationResourceFileWriter::SetDefaultScreenNumberL(int) - ?SetEmbeddabilityL@CApaRegistrationResourceFileWriter@@QAEXW4TEmbeddability@TApaAppCapability@@@Z @ 293 NONAME ; void CApaRegistrationResourceFileWriter::SetEmbeddabilityL(enum TApaAppCapability::TEmbeddability) - ?SetGroupNameL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC16@@@Z @ 294 NONAME ; void CApaRegistrationResourceFileWriter::SetGroupNameL(class TDesC16 const &) - ?SetLaunchInBackgroundL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 295 NONAME ; void CApaRegistrationResourceFileWriter::SetLaunchInBackgroundL(int) - ?SetOpaqueDataL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC8@@@Z @ 296 NONAME ; void CApaRegistrationResourceFileWriter::SetOpaqueDataL(class TDesC8 const &) - ?SetSupportsNewFileL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 297 NONAME ; void CApaRegistrationResourceFileWriter::SetSupportsNewFileL(int) - ??1CApaLocalisableResourceFileWriter@@UAE@XZ @ 298 NONAME ; CApaLocalisableResourceFileWriter::~CApaLocalisableResourceFileWriter(void) - ??1CApaRegistrationResourceFileWriter@@UAE@XZ @ 299 NONAME ; CApaRegistrationResourceFileWriter::~CApaRegistrationResourceFileWriter(void) - ?AppScanInProgress@CApaAppList@@QBEHXZ @ 300 NONAME ABSENT ; int CApaAppList::AppScanInProgress(void) const - ?CancelNotify@RApaLsSession@@QAEXXZ @ 301 NONAME ; void RApaLsSession::CancelNotify(void) - ?SetNotify@RApaLsSession@@QAEXHAAVTRequestStatus@@@Z @ 302 NONAME ; void RApaLsSession::SetNotify(int, class TRequestStatus &) - ?CancelNotifyOnDataMappingChange@RApaLsSession@@QAEXXZ @ 303 NONAME ; void RApaLsSession::CancelNotifyOnDataMappingChange(void) - ?NotifyOnDataMappingChange@RApaLsSession@@QAEXAAVTRequestStatus@@@Z @ 304 NONAME ; void RApaLsSession::NotifyOnDataMappingChange(class TRequestStatus &) - ?GetAppType@RApaLsSession@@QBEHAAVTUid@@V2@@Z @ 305 NONAME ; int RApaLsSession::GetAppType(class TUid &, class TUid) const - ?CommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 306 NONAME ; void RApaLsSession::CommitNonNativeApplicationsUpdatesL(void) - ?PrepareNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 307 NONAME ; void RApaLsSession::PrepareNonNativeApplicationsUpdatesL(void) - ?RollbackNonNativeApplicationsUpdates@RApaLsSession@@QAEHXZ @ 308 NONAME ; int RApaLsSession::RollbackNonNativeApplicationsUpdates(void) - ?SetUpdatedAppsList@CApaAppList@@QAEXPAVCUpdatedAppsList@@@Z @ 309 NONAME ABSENT ; void CApaAppList::SetUpdatedAppsList(class CUpdatedAppsList *) - ?UpdatedAppsList@CApaAppList@@QAEPAVCUpdatedAppsList@@XZ @ 310 NONAME ABSENT ; class CUpdatedAppsList * CApaAppList::UpdatedAppsList(void) - ??1CApaAppData@@UAE@XZ @ 311 NONAME ABSENT ; CApaAppData::~CApaAppData(void) - ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 312 NONAME ABSENT ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) - ?Self@CApaAppList@@SAPAV1@XZ @ 313 NONAME ABSENT ; class CApaAppList * CApaAppList::Self(void) - ?ShareProtectedFileServer@CApaAppList@@QAEAAVRFs@@XZ @ 314 NONAME ABSENT ; class RFs & CApaAppList::ShareProtectedFileServer(void) - X @ 315 NONAME ABSENT ; Old @internalComponent function that never needed to be exported - X @ 316 NONAME ABSENT ; Old @internalComponent function that never needed to be exported - X @ 317 NONAME ABSENT ; Old @internalComponent function that never needed to be exported - X @ 318 NONAME ABSENT ; Old @internalComponent function that never needed to be exported - ?SetAppShortCaption@RApaLsSession@@QAEHABVTDesC16@@W4TLanguage@@VTUid@@@Z @ 319 NONAME ; int RApaLsSession::SetAppShortCaption(class TDesC16 const &, enum TLanguage, class TUid) - ?SetShortCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 320 NONAME ABSENT ; void CApaAppData::SetShortCaptionL(class TDesC16 const &) - ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VTDesC16@@@@@Z @ 321 NONAME ; int RApaLsSession::ForceRegistration(class RPointerArray const &) - ?AddForcedRegistrationL@CApaAppList@@QAEXPAVHBufC16@@@Z @ 322 NONAME ABSENT ; void CApaAppList::AddForcedRegistrationL(class HBufC16 *) - ?CompareStrings@CApaAppList@@SAHABVHBufC16@@0@Z @ 323 NONAME ABSENT ; int CApaAppList::CompareStrings(class HBufC16 const &, class HBufC16 const &) - ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 324 NONAME ABSENT ; void CApaAppList::ResetForcedRegistrations(void) - ?RestartScanL@CApaAppList@@QAEXXZ @ 325 NONAME ABSENT ; void CApaAppList::RestartScanL(void) - ?StopScan@CApaAppList@@QAEXXZ @ 326 NONAME ABSENT ; void CApaAppList::StopScan(void) - ?MinApplicationStackSize@@YAIXZ @ 327 NONAME ; unsigned int MinApplicationStackSize(void) - ?KMinApplicationStackSize@@3HB @ 328 NONAME ; int const KMinApplicationStackSize - ?IsLanguageChangePending@CApaAppList@@QBEHXZ @ 329 NONAME ABSENT ; int CApaAppList::IsLanguageChangePending(void) const - ?IsPending@CApaAppData@@QBEHXZ @ 330 NONAME ABSENT ; int CApaAppData::IsPending(void) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@AAVRFile@@@Z @ 331 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class RFile &) const - ?CheckAppSecurity@CApaSecurityUtils@@SAHABVTPtrC16@@AAH1@Z @ 332 NONAME ; int CApaSecurityUtils::CheckAppSecurity(class TPtrC16 const &, int &, int &) - X @ 333 NONAME ABSENT ; - X @ 334 NONAME ABSENT ; - ?ForceCommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 335 NONAME ; void RApaLsSession::ForceCommitNonNativeApplicationsUpdatesL(void) - ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @336 NONAME;TInt RecognizeData(const TDesC8& aBuffer, TDataRecognitionResult& aDataType) const - X @ 337 NONAME ABSENT ; - X @ 338 NONAME ABSENT ; - X @ 339 NONAME ABSENT ; - X @ 340 NONAME ABSENT ; - X @ 341 NONAME ABSENT ; - X @ 342 NONAME ABSENT ; - X @ 343 NONAME ABSENT ; \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/aplist_legacyu.def --- a/appfw/apparchitecture/bwins/aplist_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,87 +0,0 @@ -EXPORTS - ??0TApaAppEntry@@QAE@XZ @ 1 NONAME ; TApaAppEntry::TApaAppEntry(void) - ??1CApaAppData@@UAE@XZ @ 2 NONAME ; CApaAppData::~CApaAppData(void) - ??1CApaAppList@@UAE@XZ @ 3 NONAME ; CApaAppList::~CApaAppList(void) - ??1CAppSidChecker@@UAE@XZ @ 4 NONAME ; CAppSidChecker::~CAppSidChecker(void) - ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 5 NONAME ; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) - ?AppDataByFileName@CApaAppList@@QBEPAVCApaAppData@@ABVTDesC16@@@Z @ 6 NONAME ; class CApaAppData * CApaAppList::AppDataByFileName(class TDesC16 const &) const - ?AppDataByUid@CApaAppList@@QBEPAVCApaAppData@@VTUid@@@Z @ 7 NONAME ; class CApaAppData * CApaAppList::AppDataByUid(class TUid) const - ?AppEntry@CApaAppData@@QBE?AVTApaAppEntry@@XZ @ 8 NONAME ; class TApaAppEntry CApaAppData::AppEntry(void) const - ?AppScanInProgress@CApaAppList@@QBEHXZ @ 9 NONAME ; int CApaAppList::AppScanInProgress(void) const - ?ApplicationLanguage@CApaAppData@@QBE?AW4TLanguage@@XZ @ 10 NONAME ; enum TLanguage CApaAppData::ApplicationLanguage(void) const - ?CanUseScreenMode@CApaAppData@@QAEHH@Z @ 11 NONAME ; int CApaAppData::CanUseScreenMode(int) - ?Capability@CApaAppData@@QBEXAAVTDes8@@@Z @ 12 NONAME ; void CApaAppData::Capability(class TDes8 &) const - ?Count@CApaAppList@@QBEHXZ @ 13 NONAME ; int CApaAppList::Count(void) const - ?DataType@CApaAppData@@QBEJABVTDataType@@@Z @ 14 NONAME ; long CApaAppData::DataType(class TDataType const &) const - ?DefaultScreenNumber@CApaAppData@@QBEIXZ @ 15 NONAME ; unsigned int CApaAppData::DefaultScreenNumber(void) const - ?DriveList@CApaAppRegFinder@@QBE?AV?$TArray@$$CBVTDriveUnitInfo@@@@XZ @ 16 NONAME ; class TArray CApaAppRegFinder::DriveList(void) const - ?FindAllAppsL@CApaAppRegFinder@@QAEXW4TScanScope@1@@Z @ 17 NONAME ; void CApaAppRegFinder::FindAllAppsL(enum CApaAppRegFinder::TScanScope) - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 18 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@H@Z @ 19 NONAME ; class CApaAppData * CApaAppList::FirstApp(int) const - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@XZ @ 20 NONAME ; class CApaAppData * CApaAppList::FirstApp(void) const - ?GetIconInfo@CApaAppData@@QBEXAAH0@Z @ 21 NONAME ; void CApaAppData::GetIconInfo(int &, int &) const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@H@Z @ 22 NONAME ; class CApaMaskedBitmap * CApaAppData::Icon(int) const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@VTSize@@@Z @ 23 NONAME ; class CApaMaskedBitmap * CApaAppData::Icon(class TSize) const - ?Icon@CApaAppViewData@@QBEPAVCApaMaskedBitmap@@ABVTSize@@@Z @ 24 NONAME ; class CApaMaskedBitmap * CApaAppViewData::Icon(class TSize const &) const - ?IconFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 25 NONAME ; class TPtrC16 CApaAppData::IconFileName(void) const - ?IconFileName@CApaAppViewData@@QBE?AVTPtrC16@@XZ @ 26 NONAME ; class TPtrC16 CApaAppViewData::IconFileName(void) const - ?IconSizesL@CApaAppData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 27 NONAME ; class CArrayFixFlat * CApaAppData::IconSizesL(void) const - ?IconSizesL@CApaAppViewData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 28 NONAME ; class CArrayFixFlat * CApaAppViewData::IconSizesL(void) const - ?ImplementsService@CApaAppData@@QBEHVTUid@@@Z @ 29 NONAME ; int CApaAppData::ImplementsService(class TUid) const - ?InitListL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 30 NONAME ; void CApaAppList::InitListL(class MApaAppListObserver *) - ?IsFirstScanComplete@CApaAppList@@QBEHXZ @ 31 NONAME ; int CApaAppList::IsFirstScanComplete(void) const - ?IsIdleUpdateComplete@CApaAppList@@QBEHXZ @ 32 NONAME ; int CApaAppList::IsIdleUpdateComplete(void) const - ?IsLanguageChangePending@CApaAppList@@QBEHXZ @ 33 NONAME ; int CApaAppList::IsLanguageChangePending(void) const - ?IsPending@CApaAppData@@QBEHXZ @ 34 NONAME ; int CApaAppData::IsPending(void) const - ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 35 NONAME ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const - ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 36 NONAME ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) - ?NewL@CApaAppList@@SAPAV1@AAVRFs@@HH@Z @ 37 NONAME ; class CApaAppList * CApaAppList::NewL(class RFs &, int, int) - ?NewL@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 38 NONAME ; class CApaAppRegFinder * CApaAppRegFinder::NewL(class RFs const &) - ?NewLC@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 39 NONAME ; class CApaAppRegFinder * CApaAppRegFinder::NewLC(class RFs const &) - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@@Z @ 40 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *) const - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@H@Z @ 41 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *, int) const - ?NextL@CApaAppRegFinder@@QAEHAAVTApaAppEntry@@ABVCDesC16Array@@@Z @ 42 NONAME ; int CApaAppRegFinder::NextL(class TApaAppEntry &, class CDesC16Array const &) - ?NonMbmIconFile@CApaAppData@@QBEHXZ @ 43 NONAME ; int CApaAppData::NonMbmIconFile(void) const - ?NonMbmIconFile@CApaAppViewData@@QBEHXZ @ 44 NONAME ; int CApaAppViewData::NonMbmIconFile(void) const - ?NonNativeApplicationType@CApaAppData@@QBE?AVTUid@@XZ @ 45 NONAME ; class TUid CApaAppData::NonNativeApplicationType(void) const - ?OpaqueData@CApaAppData@@QBE?AVTPtrC8@@XZ @ 46 NONAME ; class TPtrC8 CApaAppData::OpaqueData(void) const - ?OwnedFiles@CApaAppData@@QBEPAVCDesC16Array@@XZ @ 47 NONAME ; class CDesC16Array * CApaAppData::OwnedFiles(void) const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@@Z @ 48 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &) const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@PBV2@AAH@Z @ 49 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &, class TUid const *, int &) const - ?PurgeL@CApaAppList@@QAEXXZ @ 50 NONAME ; void CApaAppList::PurgeL(void) - ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 51 NONAME ; class TPtrC16 CApaAppData::RegistrationFileName(void) const - ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 52 NONAME ; int CApaAppData::RegistrationFileUsed(void) const - ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 53 NONAME ; void CApaAppList::ResetForcedRegistrations(void) - ?RestartScanL@CApaAppList@@QAEXXZ @ 54 NONAME ; void CApaAppList::RestartScanL(void) - ?ScreenMode@CApaAppViewData@@QBEHXZ @ 55 NONAME ; int CApaAppViewData::ScreenMode(void) const - ?Self@CApaAppList@@SAPAV1@XZ @ 56 NONAME ; class CApaAppList * CApaAppList::Self(void) - ?ServiceArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 57 NONAME ; class CBufFlat * CApaAppList::ServiceArrayBufferL(class TUid) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 58 NONAME ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@ABVTDataType@@@Z @ 59 NONAME ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid, class TDataType const &) const - ?ServiceOpaqueDataBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@0@Z @ 60 NONAME ; class CBufFlat * CApaAppList::ServiceOpaqueDataBufferL(class TUid, class TUid) const - ?ServiceUidBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 61 NONAME ; class CBufFlat * CApaAppList::ServiceUidBufferL(class TUid) const - ?SetRescanCallBackL@CAppSidChecker@@UAEXABVTCallBack@@@Z @ 62 NONAME ; void CAppSidChecker::SetRescanCallBackL(class TCallBack const &) - ?SetShortCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 63 NONAME ; void CApaAppData::SetShortCaptionL(class TDesC16 const &) - ?StartIdleUpdateL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 64 NONAME ; void CApaAppList::StartIdleUpdateL(class MApaAppListObserver *) - ?StartIdleUpdateL@CApaAppList@@QAEXXZ @ 65 NONAME ; void CApaAppList::StartIdleUpdateL(void) - ?StopScan@CApaAppList@@QAEXH@Z @ 66 NONAME ; void CApaAppList::StopScan(int) - ?Uid@CApaAppViewData@@QBE?AVTUid@@XZ @ 67 NONAME ; class TUid CApaAppViewData::Uid(void) const - ?Views@CApaAppData@@QBEPAV?$CArrayPtrFlat@VCApaAppViewData@@@@XZ @ 68 NONAME ; class CArrayPtrFlat * CApaAppData::Views(void) const - ?reserved1@CAppSidChecker@@EAEXXZ @ 69 NONAME ; void CAppSidChecker::reserved1(void) - ?reserved2@CAppSidChecker@@EAEXXZ @ 70 NONAME ; void CAppSidChecker::reserved2(void) - ?reserved3@CAppSidChecker@@EAEXXZ @ 71 NONAME ; void CAppSidChecker::reserved3(void) - ?AddCustomAppInfoInListL@CApaAppList@@QAEXVTUid@@W4TLanguage@@ABVTDesC16@@@Z @ 72 NONAME ; void CApaAppList::AddCustomAppInfoInListL(class TUid, enum TLanguage, class TDesC16 const &) - ?UpdateAppListByShortCaptionL@CApaAppList@@QAEXXZ @ 73 NONAME ; void CApaAppList::UpdateAppListByShortCaptionL(void) - ?SetCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 74 NONAME ; void CApaAppData::SetCaptionL(class TDesC16 const &) - ?UpdateAppListByIconCaptionOverridesL@CApaAppList@@QAEXXZ @ 75 NONAME ; void CApaAppList::UpdateAppListByIconCaptionOverridesL(void) - ?SetIconsL@CApaAppData@@QAEXABVTDesC16@@H@Z @ 76 NONAME ; void CApaAppData::SetIconsL(class TDesC16 const &, int) - ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 77 NONAME ; int CApaAppList::AppListUpdatePending(void) - ?UninstalledAppArray@CApaAppList@@QAEPAV?$CArrayFixFlat@VTUid@@@@XZ @ 78 NONAME ; class CArrayFixFlat * CApaAppList::UninstalledAppArray(void) - X @ 79 NONAME ABSENT ; - X @ 80 NONAME ABSENT ; - X @ 81 NONAME ABSENT ; - X @ 82 NONAME ABSENT ; - X @ 83 NONAME ABSENT ; - X @ 84 NONAME ABSENT ; - X @ 85 NONAME ABSENT ; - X @ 86 NONAME ABSENT ; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/aplistu.def --- a/appfw/apparchitecture/bwins/aplistu.def Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/bwins/aplistu.def Wed Sep 01 12:24:48 2010 +0100 @@ -3,7 +3,7 @@ ??1CApaAppData@@UAE@XZ @ 2 NONAME ; CApaAppData::~CApaAppData(void) ??1CApaAppList@@UAE@XZ @ 3 NONAME ; CApaAppList::~CApaAppList(void) ??1CAppSidChecker@@UAE@XZ @ 4 NONAME ; CAppSidChecker::~CAppSidChecker(void) - ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 5 NONAME ABSENT; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) + ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 5 NONAME ; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) ?AppDataByFileName@CApaAppList@@QBEPAVCApaAppData@@ABVTDesC16@@@Z @ 6 NONAME ; class CApaAppData * CApaAppList::AppDataByFileName(class TDesC16 const &) const ?AppDataByUid@CApaAppList@@QBEPAVCApaAppData@@VTUid@@@Z @ 7 NONAME ; class CApaAppData * CApaAppList::AppDataByUid(class TUid) const ?AppEntry@CApaAppData@@QBE?AVTApaAppEntry@@XZ @ 8 NONAME ; class TApaAppEntry CApaAppData::AppEntry(void) const @@ -14,9 +14,9 @@ ?Count@CApaAppList@@QBEHXZ @ 13 NONAME ; int CApaAppList::Count(void) const ?DataType@CApaAppData@@QBEJABVTDataType@@@Z @ 14 NONAME ; long CApaAppData::DataType(class TDataType const &) const ?DefaultScreenNumber@CApaAppData@@QBEIXZ @ 15 NONAME ; unsigned int CApaAppData::DefaultScreenNumber(void) const - ?DriveList@CApaAppRegFinder@@QBE?AV?$TArray@$$CBVTDriveUnitInfo@@@@XZ @ 16 NONAME ABSENT ; class TArray CApaAppRegFinder::DriveList(void) const - ?FindAllAppsL@CApaAppRegFinder@@QAEXW4TScanScope@1@@Z @ 17 NONAME ABSENT ; void CApaAppRegFinder::FindAllAppsL(enum CApaAppRegFinder::TScanScope) - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 18 NONAME ABSENT ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) + ?DriveList@CApaAppRegFinder@@QBE?AV?$TArray@$$CBVTDriveUnitInfo@@@@XZ @ 16 NONAME ; class TArray CApaAppRegFinder::DriveList(void) const + ?FindAllAppsL@CApaAppRegFinder@@QAEXW4TScanScope@1@@Z @ 17 NONAME ; void CApaAppRegFinder::FindAllAppsL(enum CApaAppRegFinder::TScanScope) + ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 18 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@H@Z @ 19 NONAME ; class CApaAppData * CApaAppList::FirstApp(int) const ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@XZ @ 20 NONAME ; class CApaAppData * CApaAppList::FirstApp(void) const ?GetIconInfo@CApaAppData@@QBEXAAH0@Z @ 21 NONAME ; void CApaAppData::GetIconInfo(int &, int &) const @@ -32,15 +32,15 @@ ?IsFirstScanComplete@CApaAppList@@QBEHXZ @ 31 NONAME ; int CApaAppList::IsFirstScanComplete(void) const ?IsIdleUpdateComplete@CApaAppList@@QBEHXZ @ 32 NONAME ; int CApaAppList::IsIdleUpdateComplete(void) const ?IsLanguageChangePending@CApaAppList@@QBEHXZ @ 33 NONAME ; int CApaAppList::IsLanguageChangePending(void) const - ?IsPending@CApaAppData@@QBEHXZ @ 34 NONAME ABSENT ; int CApaAppData::IsPending(void) const - ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 35 NONAME ABSENT ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const - ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 36 NONAME ABSENT ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) + ?IsPending@CApaAppData@@QBEHXZ @ 34 NONAME ; int CApaAppData::IsPending(void) const + ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 35 NONAME ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const + ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 36 NONAME ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) ?NewL@CApaAppList@@SAPAV1@AAVRFs@@HH@Z @ 37 NONAME ; class CApaAppList * CApaAppList::NewL(class RFs &, int, int) - ?NewL@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 38 NONAME ABSENT ; class CApaAppRegFinder * CApaAppRegFinder::NewL(class RFs const &) - ?NewLC@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 39 NONAME ABSENT ; class CApaAppRegFinder * CApaAppRegFinder::NewLC(class RFs const &) + ?NewL@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 38 NONAME ; class CApaAppRegFinder * CApaAppRegFinder::NewL(class RFs const &) + ?NewLC@CApaAppRegFinder@@SAPAV1@ABVRFs@@@Z @ 39 NONAME ; class CApaAppRegFinder * CApaAppRegFinder::NewLC(class RFs const &) ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@@Z @ 40 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *) const ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@H@Z @ 41 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *, int) const - ?NextL@CApaAppRegFinder@@QAEHAAVTApaAppEntry@@ABVCDesC16Array@@@Z @ 42 NONAME ABSENT ; int CApaAppRegFinder::NextL(class TApaAppEntry &, class CDesC16Array const &) + ?NextL@CApaAppRegFinder@@QAEHAAVTApaAppEntry@@ABVCDesC16Array@@@Z @ 42 NONAME ; int CApaAppRegFinder::NextL(class TApaAppEntry &, class CDesC16Array const &) ?NonMbmIconFile@CApaAppData@@QBEHXZ @ 43 NONAME ; int CApaAppData::NonMbmIconFile(void) const ?NonMbmIconFile@CApaAppViewData@@QBEHXZ @ 44 NONAME ; int CApaAppViewData::NonMbmIconFile(void) const ?NonNativeApplicationType@CApaAppData@@QBE?AVTUid@@XZ @ 45 NONAME ; class TUid CApaAppData::NonNativeApplicationType(void) const @@ -48,11 +48,11 @@ ?OwnedFiles@CApaAppData@@QBEPAVCDesC16Array@@XZ @ 47 NONAME ; class CDesC16Array * CApaAppData::OwnedFiles(void) const ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@@Z @ 48 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &) const ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@PBV2@AAH@Z @ 49 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &, class TUid const *, int &) const - ?PurgeL@CApaAppList@@QAEXXZ @ 50 NONAME ABSENT ; void CApaAppList::PurgeL(void) - ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 51 NONAME ABSENT ; class TPtrC16 CApaAppData::RegistrationFileName(void) const - ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 52 NONAME ABSENT ; int CApaAppData::RegistrationFileUsed(void) const - ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 53 NONAME ABSENT; void CApaAppList::ResetForcedRegistrations(void) - ?RestartScanL@CApaAppList@@QAEXXZ @ 54 NONAME ABSENT ; void CApaAppList::RestartScanL(void) + ?PurgeL@CApaAppList@@QAEXXZ @ 50 NONAME ; void CApaAppList::PurgeL(void) + ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 51 NONAME ; class TPtrC16 CApaAppData::RegistrationFileName(void) const + ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 52 NONAME ; int CApaAppData::RegistrationFileUsed(void) const + ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 53 NONAME ; void CApaAppList::ResetForcedRegistrations(void) + ?RestartScanL@CApaAppList@@QAEXXZ @ 54 NONAME ; void CApaAppList::RestartScanL(void) ?ScreenMode@CApaAppViewData@@QBEHXZ @ 55 NONAME ; int CApaAppViewData::ScreenMode(void) const ?Self@CApaAppList@@SAPAV1@XZ @ 56 NONAME ; class CApaAppList * CApaAppList::Self(void) ?ServiceArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 57 NONAME ; class CBufFlat * CApaAppList::ServiceArrayBufferL(class TUid) const @@ -64,7 +64,7 @@ ?SetShortCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 63 NONAME ; void CApaAppData::SetShortCaptionL(class TDesC16 const &) ?StartIdleUpdateL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 64 NONAME ; void CApaAppList::StartIdleUpdateL(class MApaAppListObserver *) ?StartIdleUpdateL@CApaAppList@@QAEXXZ @ 65 NONAME ; void CApaAppList::StartIdleUpdateL(void) - ?StopScan@CApaAppList@@QAEXH@Z @ 66 NONAME ABSENT ; void CApaAppList::StopScan(int) + ?StopScan@CApaAppList@@QAEXH@Z @ 66 NONAME ; void CApaAppList::StopScan(int) ?Uid@CApaAppViewData@@QBE?AVTUid@@XZ @ 67 NONAME ; class TUid CApaAppViewData::Uid(void) const ?Views@CApaAppData@@QBEPAV?$CArrayPtrFlat@VCApaAppViewData@@@@XZ @ 68 NONAME ; class CArrayPtrFlat * CApaAppData::Views(void) const ?reserved1@CAppSidChecker@@EAEXXZ @ 69 NONAME ; void CAppSidChecker::reserved1(void) @@ -75,13 +75,6 @@ ?SetCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 74 NONAME ; void CApaAppData::SetCaptionL(class TDesC16 const &) ?UpdateAppListByIconCaptionOverridesL@CApaAppList@@QAEXXZ @ 75 NONAME ; void CApaAppList::UpdateAppListByIconCaptionOverridesL(void) ?SetIconsL@CApaAppData@@QAEXABVTDesC16@@H@Z @ 76 NONAME ; void CApaAppData::SetIconsL(class TDesC16 const &, int) - ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 77 NONAME ABSENT ; int CApaAppList::AppListUpdatePending(void) + ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 77 NONAME ; int CApaAppList::AppListUpdatePending(void) ?UninstalledAppArray@CApaAppList@@QAEPAV?$CArrayFixFlat@VTUid@@@@XZ @ 78 NONAME ; class CArrayFixFlat * CApaAppList::UninstalledAppArray(void) - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@VTUid@@@Z @ 79 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class TUid) - ?NewL@CApaAppData@@SAPAV1@ABVCApplicationRegistrationData@Usif@@AAVRFs@@ABVRSoftwareComponentRegistry@3@@Z @ 80 NONAME ; class CApaAppData * CApaAppData::NewL(class Usif::CApplicationRegistrationData const &, class RFs &, class Usif::RSoftwareComponentRegistry const &) - ?UpdateApplistL@CApaAppList@@QAEXPAVMApaAppListObserver@@PAV?$RArray@VTApaAppUpdateInfo@@@@VTUid@@@Z @ 81 NONAME ; void CApaAppList::UpdateApplistL(class MApaAppListObserver *, class RArray *, class TUid) - ?InitializeApplistL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 82 NONAME ; void CApaAppList::InitializeApplistL(class MApaAppListObserver *) - ?UpdateApplistByForceRegAppsL@CApaAppList@@QAEXAAV?$RPointerArray@VCApplicationRegistrationData@Usif@@@@@Z @ 83 NONAME ; void CApaAppList::UpdateApplistByForceRegAppsL(class RPointerArray &) - ?UpdatedAppsInfo@CApaAppList@@QAEPAV?$CArrayFixFlat@VTApaAppUpdateInfo@@@@XZ @ 84 NONAME ; class CArrayFixFlat * CApaAppList::UpdatedAppsInfo(void) - ?IsLangChangePending@CApaAppData@@QAEHXZ @ 85 NONAME ; int CApaAppData::IsLangChangePending(void) diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/apserv_legacyu.def --- a/appfw/apparchitecture/bwins/apserv_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -EXPORTS - ??1CApaAppArcServer@@UAE@XZ @ 1 NONAME ; public: virtual __thiscall CApaAppArcServer::~CApaAppArcServer(void) - ?NewL@CApaAppArcServer@@SAPAV1@PAVCApaAppList@@PAVCApaFileRecognizer@@@Z @ 2 NONAME ABSENT ; public: static class CApaAppArcServer * __cdecl CApaAppArcServer::NewL(class CApaAppList *,class CApaFileRecognizer *) - ??1CApaFsMonitor@@UAE@XZ @ 3 NONAME ; public: virtual __thiscall CApaFsMonitor::~CApaFsMonitor(void) - ?NameApaServServerThread@@YA?AVTPtrC16@@XZ @ 4 NONAME ; class TPtrC16 __cdecl NameApaServServerThread(void) - ?NameApaServStartSemaphore@@YA?AVTPtrC16@@XZ @ 5 NONAME ; class TPtrC16 __cdecl NameApaServStartSemaphore(void) - ?NewL@CApaAppArcServer@@SAPAV1@XZ @ 6 NONAME ; class CApaAppArcServer * CApaAppArcServer::NewL(void) - ?NewL@CApaFsMonitor@@SAPAV1@AAVRFs@@ABVTDesC16@@VTCallBack@@@Z @ 7 NONAME ; public: static class CApaFsMonitor * __cdecl CApaFsMonitor::NewL(class RFs &,class TDesC16 const &,class TCallBack) - ?NotifyType@CApaFsMonitor@@QBE?AW4TNotifyType@@XZ @ 8 NONAME ; public: enum TNotifyType __thiscall CApaFsMonitor::NotifyType(void)const - ?SetBlocked@CApaFsMonitor@@QAEXH@Z @ 9 NONAME ; public: void __thiscall CApaFsMonitor::SetBlocked(int) - ?Start@CApaFsMonitor@@QAEXW4TNotifyType@@@Z @ 10 NONAME ; public: void __thiscall CApaFsMonitor::Start(enum TNotifyType) - ?Self@CApaAppArcServer@@SAPAV1@XZ @ 11 NONAME ; class CApaAppArcServer * CApaAppArcServer::Self(void) - ?AddLocationL@CApaFsMonitor@@QAEXABVTDesC16@@@Z @ 12 NONAME ; void CApaFsMonitor::AddLocationL(class TDesC16 const &) - ?Cancel@CApaFsMonitor@@QAEXXZ @ 13 NONAME ; void CApaFsMonitor::Cancel(void) - ?ApaServThreadStart@@YAHPAX@Z @ 14 NONAME ; int ApaServThreadStart(void *) - ??1CUpdatedAppsList@@UAE@XZ @ 15 NONAME ABSENT ; CUpdatedAppsList::~CUpdatedAppsList(void) - ?CloseAndDeletePermanentStore@CUpdatedAppsList@@QAEXXZ @ 16 NONAME ABSENT ; void CUpdatedAppsList::CloseAndDeletePermanentStore(void) - ?IsInList@CUpdatedAppsList@@QBEHABVTDesC16@@@Z @ 17 NONAME ABSENT ; int CUpdatedAppsList::IsInList(class TDesC16 const &) const - ?RescanCallBack@CApaAppArcServer@@QAE?AVTCallBack@@XZ @ 18 NONAME ; class TCallBack CApaAppArcServer::RescanCallBack(void) - ?KApaLoadDataRecognizersOnDemand@@3HB @ 19 NONAME DATA 4 ; int const KApaLoadDataRecognizersOnDemand - ?KApaUnloadRecognizersTimeout@@3HB @ 20 NONAME DATA 4 ; int const KApaUnloadRecognizersTimeout - ?HandleInstallationEndEventL@CApaAppArcServer@@QAEXXZ @ 21 NONAME ; void CApaAppArcServer::HandleEndUninstallEventL(void) - ?HandleInstallationStartEvent@CApaAppArcServer@@QAEXXZ @ 22 NONAME ; void CApaAppArcServer::HandleStartUninstallEvent(void) - ?KApaDrivesToMonitor@@3HB @ 23 NONAME ; int const KApaDrivesToMonitor - ?KApaLoadMbmIconsOnDemand@@3HB @ 24 NONAME ; int const KApaLoadMbmIconsOnDemand - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/bwins/ticonforleaks_leagacyu.def --- a/appfw/apparchitecture/bwins/ticonforleaks_leagacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,351 +0,0 @@ -EXPORTS - ??0CDataRecognitionResultArray@@QAE@XZ @ 1 NONAME ; CDataRecognitionResultArray::CDataRecognitionResultArray(void) - ??0MApaAppListServObserver@@IAE@XZ @ 2 NONAME ; MApaAppListServObserver::MApaAppListServObserver(void) - ??0RApaLsSession@@QAE@XZ @ 3 NONAME ; RApaLsSession::RApaLsSession(void) - ??0TApaPictureFactory@@IAE@XZ @ 4 NONAME ; TApaPictureFactory::TApaPictureFactory(void) - ??0TApaPictureFactory@@QAE@PAVCApaProcess@@@Z @ 5 NONAME ; TApaPictureFactory::TApaPictureFactory(class CApaProcess *) - ??0TApaTask@@QAE@AAVRWsSession@@@Z @ 6 NONAME ; TApaTask::TApaTask(class RWsSession &) - ??0TApaTaskList@@QAE@AAVRWsSession@@@Z @ 7 NONAME ; TApaTaskList::TApaTaskList(class RWsSession &) - ??1CApaAppData@@UAE@XZ @ 8 NONAME ; CApaAppData::~CApaAppData(void) - ??1CApaAppInfoFileWriter@@UAE@XZ @ 9 NONAME ABSENT ; CApaAppInfoFileWriter::~CApaAppInfoFileWriter(void) - ??1CApaAppList@@UAE@XZ @ 10 NONAME ; CApaAppList::~CApaAppList(void) - ??1CApaAppListNotifier@@UAE@XZ @ 11 NONAME ; CApaAppListNotifier::~CApaAppListNotifier(void) - ??1CApaDoor@@UAE@XZ @ 12 NONAME ; CApaDoor::~CApaDoor(void) - ??1CApaLocalisableResourceFileWriter@@UAE@XZ @ 13 NONAME ; CApaLocalisableResourceFileWriter::~CApaLocalisableResourceFileWriter(void) - ??1CApaMaskedBitmap@@UAE@XZ @ 14 NONAME ; CApaMaskedBitmap::~CApaMaskedBitmap(void) - ??1CApaRegistrationResourceFileWriter@@UAE@XZ @ 15 NONAME ; CApaRegistrationResourceFileWriter::~CApaRegistrationResourceFileWriter(void) - ??1CApaSystemControlList@@UAE@XZ @ 16 NONAME ; CApaSystemControlList::~CApaSystemControlList(void) - ??1CApaWindowGroupName@@UAE@XZ @ 17 NONAME ; CApaWindowGroupName::~CApaWindowGroupName(void) - ??1CDataRecognitionResultArray@@UAE@XZ @ 18 NONAME ; CDataRecognitionResultArray::~CDataRecognitionResultArray(void) - ?AddCaptionL@CApaAppInfoFileWriter@@QAEXW4TLanguage@@ABVTDesC16@@@Z @ 19 NONAME ABSENT ; void CApaAppInfoFileWriter::AddCaptionL(enum TLanguage, class TDesC16 const &) - ?AddDataTypeL@CApaAppInfoFileWriter@@QAEXABVTDataTypeWithPriority@@@Z @ 20 NONAME ABSENT ; void CApaAppInfoFileWriter::AddDataTypeL(class TDataTypeWithPriority const &) - ?AddDataTypeL@CApaRegistrationResourceFileWriter@@QAEXHABVTDesC8@@@Z @ 21 NONAME ; void CApaRegistrationResourceFileWriter::AddDataTypeL(int, class TDesC8 const &) - ?AddFileOwnershipInfoL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC16@@@Z @ 22 NONAME ; void CApaRegistrationResourceFileWriter::AddFileOwnershipInfoL(class TDesC16 const &) - ?AddForcedRegistrationL@CApaAppList@@QAEXPAVHBufC16@@@Z @ 23 NONAME ABSENT ; void CApaAppList::AddForcedRegistrationL(class HBufC16 *) - ?AddIconL@CApaAppInfoFileWriter@@QAEXAAVCApaMaskedBitmap@@@Z @ 24 NONAME ABSENT ; void CApaAppInfoFileWriter::AddIconL(class CApaMaskedBitmap &) - ?AppCount@RApaLsSession@@QBEHAAH@Z @ 25 NONAME ; int RApaLsSession::AppCount(int &) const - ?AppDataByFileName@CApaAppList@@QBEPAVCApaAppData@@ABVTDesC16@@@Z @ 26 NONAME ; class CApaAppData * CApaAppList::AppDataByFileName(class TDesC16 const &) const - ?AppDataByUid@CApaAppList@@QBEPAVCApaAppData@@VTUid@@@Z @ 27 NONAME ; class CApaAppData * CApaAppList::AppDataByUid(class TUid) const - ?AppEntry@CApaAppData@@QBE?AVTApaAppEntry@@XZ @ 28 NONAME ; class TApaAppEntry CApaAppData::AppEntry(void) const - ?AppForDataType@RApaLsSession@@QBEHABVTDataType@@AAVTUid@@@Z @ 29 NONAME ; int RApaLsSession::AppForDataType(class TDataType const &, class TUid &) const - ?AppForDataTypeAndService@RApaLsSession@@QBEHABVTDataType@@VTUid@@AAV3@@Z @ 30 NONAME ; int RApaLsSession::AppForDataTypeAndService(class TDataType const &, class TUid, class TUid &) const - ?AppForDocument@RApaLsSession@@QBEHABVRFile@@AAVTUid@@AAVTDataType@@@Z @ 31 NONAME ; int RApaLsSession::AppForDocument(class RFile const &, class TUid &, class TDataType &) const - ?AppForDocument@RApaLsSession@@QBEHABVTDesC16@@AAVTUid@@AAVTDataType@@@Z @ 32 NONAME ; int RApaLsSession::AppForDocument(class TDesC16 const &, class TUid &, class TDataType &) const - ?AppForDocumentAndService@RApaLsSession@@QBEHABVRFile@@VTUid@@AAV3@AAVTDataType@@@Z @ 33 NONAME ; int RApaLsSession::AppForDocumentAndService(class RFile const &, class TUid, class TUid &, class TDataType &) const - ?AppForDocumentAndService@RApaLsSession@@QBEHABVTDesC16@@VTUid@@AAV3@AAVTDataType@@@Z @ 34 NONAME ; int RApaLsSession::AppForDocumentAndService(class TDesC16 const &, class TUid, class TUid &, class TDataType &) const - ?AppScanInProgress@CApaAppList@@QBEHXZ @ 35 NONAME ; int CApaAppList::AppScanInProgress(void) const - ?AppUid@CApaWindowGroupName@@QBE?AVTUid@@XZ @ 36 NONAME ; class TUid CApaWindowGroupName::AppUid(void) const - ?AppUidL@CApaDoor@@QBE?AVTUid@@XZ @ 37 NONAME ; class TUid CApaDoor::AppUidL(void) const - ?ApplicationLanguage@CApaAppData@@QBE?AW4TLanguage@@XZ @ 38 NONAME ; enum TLanguage CApaAppData::ApplicationLanguage(void) const - ?ApplicationLanguage@RApaLsSession@@QBEHVTUid@@AAW4TLanguage@@@Z @ 39 NONAME ; int RApaLsSession::ApplicationLanguage(class TUid, enum TLanguage &) const - ?BringToForeground@TApaTask@@QAEXXZ @ 40 NONAME ; void TApaTask::BringToForeground(void) - ?CanUseScreenMode@CApaAppData@@QAEHH@Z @ 41 NONAME ; int CApaAppData::CanUseScreenMode(int) - ?CancelListPopulationCompleteObserver@RApaLsSession@@QBEHXZ @ 42 NONAME ; int RApaLsSession::CancelListPopulationCompleteObserver(void) const - ?CancelNotify@RApaLsSession@@QAEXXZ @ 43 NONAME ; void RApaLsSession::CancelNotify(void) - ?CancelNotifyOnDataMappingChange@RApaLsSession@@QAEXXZ @ 44 NONAME ; void RApaLsSession::CancelNotifyOnDataMappingChange(void) - ?CancelRecognizeFiles@RApaLsSession@@QAEXXZ @ 45 NONAME ; void RApaLsSession::CancelRecognizeFiles(void) - ?Capability@CApaAppData@@QBEXAAVTDes8@@@Z @ 46 NONAME ; void CApaAppData::Capability(class TDes8 &) const - ?Caption@CApaSystemControl@@QBE?AVTPtrC16@@XZ @ 47 NONAME ; class TPtrC16 CApaSystemControl::Caption(void) const - ?Caption@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 48 NONAME ; class TPtrC16 CApaWindowGroupName::Caption(void) const - ?CheckInterimFormatFileNotCorruptL@ForJavaMIDletInstaller@@SAXAAVRFile@@@Z @ 49 NONAME ABSENT ; void ForJavaMIDletInstaller::CheckInterimFormatFileNotCorruptL(class RFile &) - ?ClearFsSession@RApaLsSession@@SAXXZ @ 50 NONAME ; void RApaLsSession::ClearFsSession(void) - ?Close@RApaLsSession@@QAEXXZ @ 51 NONAME ; void RApaLsSession::Close(void) - ?CommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 52 NONAME ; void RApaLsSession::CommitNonNativeApplicationsUpdatesL(void) - ?CompareStrings@CApaAppList@@SAHABVHBufC16@@0@Z @ 53 NONAME ABSENT ; int CApaAppList::CompareStrings(class HBufC16 const &, class HBufC16 const &) - ?Connect@RApaLsSession@@QAEHXZ @ 54 NONAME ; int RApaLsSession::Connect(void) - ?ConstructFromWgIdL@CApaWindowGroupName@@QAEXH@Z @ 55 NONAME ; void CApaWindowGroupName::ConstructFromWgIdL(int) - ?Control@CApaSystemControlList@@QBEPAVCApaSystemControl@@H@Z @ 56 NONAME ; class CApaSystemControl * CApaSystemControlList::Control(int) const - ?Control@CApaSystemControlList@@QBEPAVCApaSystemControl@@VTUid@@@Z @ 57 NONAME ; class CApaSystemControl * CApaSystemControlList::Control(class TUid) const - ?Count@CApaAppList@@QBEHXZ @ 58 NONAME ; int CApaAppList::Count(void) const - ?Count@CApaSystemControlList@@QBEHXZ @ 59 NONAME ; int CApaSystemControlList::Count(void) const - ?Count@CDataRecognitionResultArray@@QBEIXZ @ 60 NONAME ; unsigned int CDataRecognitionResultArray::Count(void) const - ?CreateDocument@RApaLsSession@@QAEHABVTDesC16@@VTUid@@AAVTThreadId@@W4TLaunchType@1@@Z @ 61 NONAME ; int RApaLsSession::CreateDocument(class TDesC16 const &, class TUid, class TThreadId &, enum RApaLsSession::TLaunchType) - ?CreateL@CApaSystemControl@@QAEXXZ @ 62 NONAME ; void CApaSystemControl::CreateL(void) - ?CycleTasks@TApaTaskList@@QAEHVTUid@@W4TCycleDirection@1@@Z @ 63 NONAME ; int TApaTaskList::CycleTasks(class TUid, enum TApaTaskList::TCycleDirection) - ?DataType@CApaAppData@@QBEJABVTDataType@@@Z @ 64 NONAME ; long CApaAppData::DataType(class TDataType const &) const - ?DataTypes@TApaAppServiceInfo@@QBEABV?$CArrayFixFlat@VTDataTypeWithPriority@@@@XZ @ 65 NONAME ; class CArrayFixFlat const & TApaAppServiceInfo::DataTypes(void) const - ?DefaultScreenNumber@CApaAppData@@QBEIXZ @ 66 NONAME ; unsigned int CApaAppData::DefaultScreenNumber(void) const - ?DeleteDataMapping@RApaLsSession@@QAEHABVTDataType@@@Z @ 67 NONAME ; int RApaLsSession::DeleteDataMapping(class TDataType const &) - ?DeleteDataMapping@RApaLsSession@@QAEHABVTDataType@@VTUid@@@Z @ 68 NONAME ; int RApaLsSession::DeleteDataMapping(class TDataType const &, class TUid) - ?DeregisterNonNativeApplicationL@RApaLsSession@@QAEXVTUid@@@Z @ 69 NONAME ; void RApaLsSession::DeregisterNonNativeApplicationL(class TUid) - ?DeregisterNonNativeApplicationTypeL@RApaLsSession@@QAEXVTUid@@@Z @ 70 NONAME ; void RApaLsSession::DeregisterNonNativeApplicationTypeL(class TUid) - ?DocName@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 71 NONAME ; class TPtrC16 CApaWindowGroupName::DocName(void) const - ?DocNameIsAFile@CApaWindowGroupName@@QBEHXZ @ 72 NONAME ; int CApaWindowGroupName::DocNameIsAFile(void) const - ?DocumentL@CApaDoor@@QAEPAVCApaDocument@@H@Z @ 73 NONAME ; class CApaDocument * CApaDoor::DocumentL(int) - ?EmbeddableAppCount@RApaLsSession@@QBEHAAH@Z @ 74 NONAME ; int RApaLsSession::EmbeddableAppCount(int &) const - ?EndTask@TApaTask@@QAEXXZ @ 75 NONAME ; void TApaTask::EndTask(void) - ?Exists@TApaTask@@QBEHXZ @ 76 NONAME ; int TApaTask::Exists(void) const - ?ExternalizeL@CApaMaskedBitmap@@QBEXAAVRWriteStream@@@Z @ 77 NONAME ; void CApaMaskedBitmap::ExternalizeL(class RWriteStream &) const - ?FileName@CApaSystemControl@@QBE?AV?$TBuf@$0BAA@@@XZ @ 78 NONAME ; class TBuf<256> CApaSystemControl::FileName(void) const - ?FindAndAddSpecificAppL@CApaAppList@@QAEPAVCApaAppData@@PAVCApaAppRegFinder@@VTUid@@@Z @ 79 NONAME ; class CApaAppData * CApaAppList::FindAndAddSpecificAppL(class CApaAppRegFinder *, class TUid) - ?FindApp@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 80 NONAME ; class TApaTask TApaTaskList::FindApp(class TDesC16 const &) - ?FindApp@TApaTaskList@@QAE?AVTApaTask@@VTUid@@@Z @ 81 NONAME ; class TApaTask TApaTaskList::FindApp(class TUid) - ?FindByAppUid@CApaWindowGroupName@@SAXVTUid@@AAVRWsSession@@AAH@Z @ 82 NONAME ; void CApaWindowGroupName::FindByAppUid(class TUid, class RWsSession &, int &) - ?FindByCaption@CApaWindowGroupName@@SAXABVTDesC16@@AAVRWsSession@@AAH@Z @ 83 NONAME ; void CApaWindowGroupName::FindByCaption(class TDesC16 const &, class RWsSession &, int &) - ?FindByDocName@CApaWindowGroupName@@SAXABVTDesC16@@AAVRWsSession@@AAH@Z @ 84 NONAME ; void CApaWindowGroupName::FindByDocName(class TDesC16 const &, class RWsSession &, int &) - ?FindByPos@TApaTaskList@@QAE?AVTApaTask@@H@Z @ 85 NONAME ; class TApaTask TApaTaskList::FindByPos(int) - ?FindDoc@TApaTaskList@@QAE?AVTApaTask@@ABVTDesC16@@@Z @ 86 NONAME ; class TApaTask TApaTaskList::FindDoc(class TDesC16 const &) - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@H@Z @ 87 NONAME ; class CApaAppData * CApaAppList::FirstApp(int) const - ?FirstApp@CApaAppList@@QBEPAVCApaAppData@@XZ @ 88 NONAME ; class CApaAppData * CApaAppList::FirstApp(void) const - ?ForceRegistration@RApaLsSession@@QAEHABV?$RPointerArray@VTDesC16@@@@@Z @ 89 NONAME ; int RApaLsSession::ForceRegistration(class RPointerArray const &) - ?FsSession@RApaLsSession@@SAPAVRFs@@XZ @ 90 NONAME ; class RFs * RApaLsSession::FsSession(void) - ?GetAcceptedConfidence@RApaLsSession@@QBEHAAH@Z @ 91 NONAME ; int RApaLsSession::GetAcceptedConfidence(int &) const - ?GetAllApps@RApaLsSession@@QBEHH@Z @ 92 NONAME ; int RApaLsSession::GetAllApps(int) const - ?GetAllApps@RApaLsSession@@QBEHXZ @ 93 NONAME ; int RApaLsSession::GetAllApps(void) const - ?GetAppByDataType@RApaLsSession@@QBEHABVTDataType@@VTUid@@AAV3@@Z @ 94 NONAME ; int RApaLsSession::GetAppByDataType(class TDataType const &, class TUid, class TUid &) const - ?GetAppCapability@RApaLsSession@@QBEHAAVTDes8@@VTUid@@@Z @ 95 NONAME ; int RApaLsSession::GetAppCapability(class TDes8 &, class TUid) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@AAPAVHBufC16@@@Z @ 96 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class HBufC16 * &) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@AAVRFile@@@Z @ 97 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class RFile &) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@HAAVCApaMaskedBitmap@@@Z @ 98 NONAME ; int RApaLsSession::GetAppIcon(class TUid, int, class CApaMaskedBitmap &) const - ?GetAppIcon@RApaLsSession@@QBEHVTUid@@VTSize@@AAVCApaMaskedBitmap@@@Z @ 99 NONAME ; int RApaLsSession::GetAppIcon(class TUid, class TSize, class CApaMaskedBitmap &) const - ?GetAppIconSizes@RApaLsSession@@QBEHVTUid@@AAV?$CArrayFixFlat@VTSize@@@@@Z @ 100 NONAME ; int RApaLsSession::GetAppIconSizes(class TUid, class CArrayFixFlat &) const - ?GetAppInfo@RApaLsSession@@QBEHAAVTApaAppInfo@@VTUid@@@Z @ 101 NONAME ; int RApaLsSession::GetAppInfo(class TApaAppInfo &, class TUid) const - ?GetAppOwnedFiles@RApaLsSession@@QBEHAAVCDesC16Array@@VTUid@@@Z @ 102 NONAME ; int RApaLsSession::GetAppOwnedFiles(class CDesC16Array &, class TUid) const - ?GetAppServiceOpaqueDataLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@0@Z @ 103 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetAppServiceOpaqueDataLC(class TUid, class TUid) const - ?GetAppServicesL@RApaLsSession@@QBEXVTUid@@AAV?$CArrayFixFlat@VTUid@@@@@Z @ 104 NONAME ; void RApaLsSession::GetAppServicesL(class TUid, class CArrayFixFlat &) const - ?GetAppServicesLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@@Z @ 105 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetAppServicesLC(class TUid) const - ?GetAppType@RApaLsSession@@QBEHAAVTUid@@V2@@Z @ 106 NONAME ; int RApaLsSession::GetAppType(class TUid &, class TUid) const - ?GetAppViewIcon@RApaLsSession@@QBEHVTUid@@0AAPAVHBufC16@@@Z @ 107 NONAME ; int RApaLsSession::GetAppViewIcon(class TUid, class TUid, class HBufC16 * &) const - ?GetAppViewIcon@RApaLsSession@@QBEHVTUid@@0ABVTSize@@AAVCApaMaskedBitmap@@@Z @ 108 NONAME ; int RApaLsSession::GetAppViewIcon(class TUid, class TUid, class TSize const &, class CApaMaskedBitmap &) const - ?GetAppViews@RApaLsSession@@QBEHAAV?$CArrayFixFlat@VTApaAppViewInfo@@@@VTUid@@@Z @ 109 NONAME ; int RApaLsSession::GetAppViews(class CArrayFixFlat &, class TUid) const - ?GetDataRecognitionResultL@CDataRecognitionResultArray@@QBEXAAVTDataRecognitionResult@@I@Z @ 110 NONAME ; void CDataRecognitionResultArray::GetDataRecognitionResultL(class TDataRecognitionResult &, unsigned int) const - ?GetDefaultScreenNumber@RApaLsSession@@QBEHAAHVTUid@@@Z @ 111 NONAME ; int RApaLsSession::GetDefaultScreenNumber(int &, class TUid) const - ?GetEmbeddableApps@RApaLsSession@@QBEHH@Z @ 112 NONAME ; int RApaLsSession::GetEmbeddableApps(int) const - ?GetEmbeddableApps@RApaLsSession@@QBEHXZ @ 113 NONAME ; int RApaLsSession::GetEmbeddableApps(void) const - ?GetFileNameL@CDataRecognitionResultArray@@QBEXAAV?$TBuf@$0BAA@@@I@Z @ 114 NONAME ; void CDataRecognitionResultArray::GetFileNameL(class TBuf<256> &, unsigned int) const - ?GetFilteredApps@RApaLsSession@@QBEHABVTApaEmbeddabilityFilter@@@Z @ 115 NONAME ; int RApaLsSession::GetFilteredApps(class TApaEmbeddabilityFilter const &) const - ?GetFilteredApps@RApaLsSession@@QBEHABVTApaEmbeddabilityFilter@@H@Z @ 116 NONAME ; int RApaLsSession::GetFilteredApps(class TApaEmbeddabilityFilter const &, int) const - ?GetFilteredApps@RApaLsSession@@QBEHII@Z @ 117 NONAME ; int RApaLsSession::GetFilteredApps(unsigned int, unsigned int) const - ?GetFilteredApps@RApaLsSession@@QBEHIIH@Z @ 118 NONAME ; int RApaLsSession::GetFilteredApps(unsigned int, unsigned int, int) const - ?GetIconInfo@CApaAppData@@QBEXAAH0@Z @ 119 NONAME ; void CApaAppData::GetIconInfo(int &, int &) const - ?GetJavaMIDletInfoL@ForJavaMIDletInstaller@@SAXAAVRFs@@ABVTDesC16@@AAK2@Z @ 120 NONAME ABSENT ; void ForJavaMIDletInstaller::GetJavaMIDletInfoL(class RFs &, class TDesC16 const &, unsigned long &, unsigned long &) - ?GetMaxDataBufSize@RApaLsSession@@QBEHAAH@Z @ 121 NONAME ; int RApaLsSession::GetMaxDataBufSize(int &) const - ?GetNextApp@RApaLsSession@@QBEHAAVTApaAppInfo@@@Z @ 122 NONAME ; int RApaLsSession::GetNextApp(class TApaAppInfo &) const - ?GetNextApp@RApaLsSession@@QBEHAAVTApaAppInfo@@H@Z @ 123 NONAME ; int RApaLsSession::GetNextApp(class TApaAppInfo &, int) const - ?GetPreferredBufSize@RApaLsSession@@QBEHAAH@Z @ 124 NONAME ; int RApaLsSession::GetPreferredBufSize(int &) const - ?GetServerApps@RApaLsSession@@QBEHVTUid@@@Z @ 125 NONAME ; int RApaLsSession::GetServerApps(class TUid) const - ?GetServerApps@RApaLsSession@@QBEHVTUid@@H@Z @ 126 NONAME ; int RApaLsSession::GetServerApps(class TUid, int) const - ?GetServiceImplementationsLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@@Z @ 127 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetServiceImplementationsLC(class TUid) const - ?GetServiceImplementationsLC@RApaLsSession@@QBEPAVCApaAppServiceInfoArray@@VTUid@@ABVTDataType@@@Z @ 128 NONAME ; class CApaAppServiceInfoArray * RApaLsSession::GetServiceImplementationsLC(class TUid, class TDataType const &) const - ?GetSupportedDataTypesL@RApaLsSession@@QBEHAAV?$CArrayFixFlat@VTDataType@@@@@Z @ 129 NONAME ; int RApaLsSession::GetSupportedDataTypesL(class CArrayFixFlat &) const - ?HandleAsRegistrationFile@ApaUtils@@SAHABVTUidType@@@Z @ 130 NONAME ABSENT ; int ApaUtils::HandleAsRegistrationFile(class TUidType const &) - ?Hidden@CApaWindowGroupName@@QBEHXZ @ 131 NONAME ; int CApaWindowGroupName::Hidden(void) const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@H@Z @ 132 NONAME ; class CApaMaskedBitmap * CApaAppData::Icon(int) const - ?Icon@CApaAppData@@QBEPAVCApaMaskedBitmap@@VTSize@@@Z @ 133 NONAME ; class CApaMaskedBitmap * CApaAppData::Icon(class TSize) const - ?Icon@CApaAppViewData@@QBEPAVCApaMaskedBitmap@@ABVTSize@@@Z @ 134 NONAME ; class CApaMaskedBitmap * CApaAppViewData::Icon(class TSize const &) const - ?Icon@CApaSystemControl@@QBEPAVCApaMaskedBitmap@@XZ @ 135 NONAME ; class CApaMaskedBitmap * CApaSystemControl::Icon(void) const - ?IconFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 136 NONAME ; class TPtrC16 CApaAppData::IconFileName(void) const - ?IconFileName@CApaAppViewData@@QBE?AVTPtrC16@@XZ @ 137 NONAME ; class TPtrC16 CApaAppViewData::IconFileName(void) const - ?IconSizesL@CApaAppData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 138 NONAME ; class CArrayFixFlat * CApaAppData::IconSizesL(void) const - ?IconSizesL@CApaAppViewData@@QBEPAV?$CArrayFixFlat@VTSize@@@@XZ @ 139 NONAME ; class CArrayFixFlat * CApaAppViewData::IconSizesL(void) const - ?ImplementsService@CApaAppData@@QBEHVTUid@@@Z @ 140 NONAME ; int CApaAppData::ImplementsService(class TUid) const - ?Index@CApaSystemControlList@@QBEHVTUid@@@Z @ 141 NONAME ; int CApaSystemControlList::Index(class TUid) const - ?InitListL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 142 NONAME ; void CApaAppList::InitListL(class MApaAppListObserver *) - ?InsertDataMapping@RApaLsSession@@QAEHABVTDataType@@JVTUid@@1@Z @ 143 NONAME ; int RApaLsSession::InsertDataMapping(class TDataType const &, long, class TUid, class TUid) - ?InsertDataMapping@RApaLsSession@@QAEHABVTDataType@@JVTUid@@@Z @ 144 NONAME ; int RApaLsSession::InsertDataMapping(class TDataType const &, long, class TUid) - ?InsertDataMappingIfHigher@RApaLsSession@@QAEHABVTDataType@@JVTUid@@AAH@Z @ 145 NONAME ; int RApaLsSession::InsertDataMappingIfHigher(class TDataType const &, long, class TUid, int &) - ?InternalizeL@CApaMaskedBitmap@@QAEXAAVRReadStream@@@Z @ 146 NONAME ; void CApaMaskedBitmap::InternalizeL(class RReadStream &) - ?IsAppReady@CApaWindowGroupName@@QBEHXZ @ 147 NONAME ; int CApaWindowGroupName::IsAppReady(void) const - ?IsBusy@CApaWindowGroupName@@QBEHXZ @ 148 NONAME ; int CApaWindowGroupName::IsBusy(void) const - ?IsFirstScanComplete@CApaAppList@@QBEHXZ @ 149 NONAME ; int CApaAppList::IsFirstScanComplete(void) const - ?IsIdleUpdateComplete@CApaAppList@@QBEHXZ @ 150 NONAME ; int CApaAppList::IsIdleUpdateComplete(void) const - ?IsLanguageChangePending@CApaAppList@@QBEHXZ @ 151 NONAME ; int CApaAppList::IsLanguageChangePending(void) const - ?IsPending@CApaAppData@@QBEHXZ @ 152 NONAME ; int CApaAppData::IsPending(void) const - ?IsProgram@RApaLsSession@@QBEHABVTDesC16@@AAH@Z @ 153 NONAME ; int RApaLsSession::IsProgram(class TDesC16 const &, int &) const - ?IsSystem@CApaWindowGroupName@@QBEHXZ @ 154 NONAME ; int CApaWindowGroupName::IsSystem(void) const - ?KillTask@TApaTask@@QAEXXZ @ 155 NONAME ; void TApaTask::KillTask(void) - ?LocalisableResourceFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 156 NONAME ; class TPtrC16 CApaAppData::LocalisableResourceFileName(void) const - ?MApaAppListServObserver_Reserved1@MApaAppListServObserver@@EAEXXZ @ 157 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved1(void) - ?MApaAppListServObserver_Reserved2@MApaAppListServObserver@@EAEXXZ @ 158 NONAME ; void MApaAppListServObserver::MApaAppListServObserver_Reserved2(void) - ?Mask@CApaMaskedBitmap@@QBEPAVCFbsBitmap@@XZ @ 159 NONAME ; class CFbsBitmap * CApaMaskedBitmap::Mask(void) const - ?MatchesSecurityPolicy@RApaLsSession@@QBEHAAHVTUid@@ABVTSecurityPolicy@@@Z @ 160 NONAME ; int RApaLsSession::MatchesSecurityPolicy(int &, class TUid, class TSecurityPolicy const &) const - ?MinApplicationStackSize@@YAIXZ @ 161 NONAME ; unsigned int MinApplicationStackSize(void) - ?New@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@PAVHBufC16@@@Z @ 162 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::New(class RWsSession const &, class HBufC16 *) - ?NewInterimFormatFileWriterLC@ForJavaMIDletInstaller@@SAPAVCApaAppInfoFileWriter@@AAVRFs@@ABVTDesC16@@VTUid@@KH@Z @ 163 NONAME ABSENT ; class CApaAppInfoFileWriter * ForJavaMIDletInstaller::NewInterimFormatFileWriterLC(class RFs &, class TDesC16 const &, class TUid, unsigned long, int) - ?NewL@CApaAppData@@SAPAV1@ABVTApaAppEntry@@AAVRFs@@@Z @ 164 NONAME ; class CApaAppData * CApaAppData::NewL(class TApaAppEntry const &, class RFs &) - ?NewL@CApaAppList@@SAPAV1@AAVRFs@@PAVCApaAppRegFinder@@HH@Z @ 165 NONAME ABSENT ; class CApaAppList * CApaAppList::NewL(class RFs &, class CApaAppRegFinder *, int, int) - ?NewL@CApaAppListNotifier@@SAPAV1@PAVMApaAppListServObserver@@W4TPriority@CActive@@@Z @ 166 NONAME ; class CApaAppListNotifier * CApaAppListNotifier::NewL(class MApaAppListServObserver *, enum CActive::TPriority) - ?NewL@CApaDoor@@SAPAV1@AAVRFs@@AAVCApaDocument@@ABVTSize@@@Z @ 167 NONAME ; class CApaDoor * CApaDoor::NewL(class RFs &, class CApaDocument &, class TSize const &) - ?NewL@CApaDoor@@SAPAV1@AAVRFs@@ABVCStreamStore@@VTStreamId@@AAVCApaProcess@@@Z @ 168 NONAME ; class CApaDoor * CApaDoor::NewL(class RFs &, class CStreamStore const &, class TStreamId, class CApaProcess &) - ?NewL@CApaLocalisableResourceFileWriter@@SAPAV1@ABVTDesC16@@0H0@Z @ 169 NONAME ; class CApaLocalisableResourceFileWriter * CApaLocalisableResourceFileWriter::NewL(class TDesC16 const &, class TDesC16 const &, int, class TDesC16 const &) - ?NewL@CApaMaskedBitmap@@SAPAV1@PBV1@@Z @ 170 NONAME ; class CApaMaskedBitmap * CApaMaskedBitmap::NewL(class CApaMaskedBitmap const *) - ?NewL@CApaRegistrationResourceFileWriter@@SAPAV1@VTUid@@ABVTDesC16@@I@Z @ 171 NONAME ; class CApaRegistrationResourceFileWriter * CApaRegistrationResourceFileWriter::NewL(class TUid, class TDesC16 const &, unsigned int) - ?NewL@CApaSystemControlList@@SAPAV1@AAVRFs@@@Z @ 172 NONAME ; class CApaSystemControlList * CApaSystemControlList::NewL(class RFs &) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@@Z @ 173 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewL(class RWsSession const &) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@ABVTDesC16@@@Z @ 174 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewL(class RWsSession const &, class TDesC16 const &) - ?NewL@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@H@Z @ 175 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewL(class RWsSession const &, int) - ?NewLC@CApaDoor@@SAPAV1@AAVRFs@@AAVCApaDocument@@ABVTSize@@@Z @ 176 NONAME ; class CApaDoor * CApaDoor::NewLC(class RFs &, class CApaDocument &, class TSize const &) - ?NewLC@CApaMaskedBitmap@@SAPAV1@XZ @ 177 NONAME ; class CApaMaskedBitmap * CApaMaskedBitmap::NewLC(void) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@@Z @ 178 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewLC(class RWsSession const &) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@ABVTDesC16@@@Z @ 179 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewLC(class RWsSession const &, class TDesC16 const &) - ?NewLC@CApaWindowGroupName@@SAPAV1@ABVRWsSession@@H@Z @ 180 NONAME ; class CApaWindowGroupName * CApaWindowGroupName::NewLC(class RWsSession const &, int) - ?NewPictureL@TApaPictureFactory@@UBEXAAVTPictureHeader@@ABVCStreamStore@@@Z @ 181 NONAME ; void TApaPictureFactory::NewPictureL(class TPictureHeader &, class CStreamStore const &) const - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@@Z @ 182 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *) const - ?NextApp@CApaAppList@@QBEPAVCApaAppData@@PBV2@H@Z @ 183 NONAME ; class CApaAppData * CApaAppList::NextApp(class CApaAppData const *, int) const - ?NonMbmIconFile@CApaAppData@@QBEHXZ @ 184 NONAME ; int CApaAppData::NonMbmIconFile(void) const - ?NonMbmIconFile@CApaAppViewData@@QBEHXZ @ 185 NONAME ; int CApaAppViewData::NonMbmIconFile(void) const - ?NonNativeApplicationType@CApaAppData@@QBE?AVTUid@@XZ @ 186 NONAME ; class TUid CApaAppData::NonNativeApplicationType(void) const - ?NotifyOnDataMappingChange@RApaLsSession@@QAEXAAVTRequestStatus@@@Z @ 187 NONAME ; void RApaLsSession::NotifyOnDataMappingChange(class TRequestStatus &) - ?NumberOfOwnDefinedIcons@RApaLsSession@@QBEHVTUid@@AAH@Z @ 188 NONAME ; int RApaLsSession::NumberOfOwnDefinedIcons(class TUid, int &) const - ?OpaqueData@CApaAppData@@QBE?AVTPtrC8@@XZ @ 189 NONAME ; class TPtrC8 CApaAppData::OpaqueData(void) const - ?OpaqueData@TApaAppServiceInfo@@QBEABVTDesC8@@XZ @ 190 NONAME ; class TDesC8 const & TApaAppServiceInfo::OpaqueData(void) const - ?OwnedFiles@CApaAppData@@QBEPAVCDesC16Array@@XZ @ 191 NONAME ; class CDesC16Array * CApaAppData::OwnedFiles(void) const - ?Path@CDataRecognitionResultArray@@QBEABV?$TBuf@$0BAA@@@XZ @ 192 NONAME ; class TBuf<256> const & CDataRecognitionResultArray::Path(void) const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@@Z @ 193 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &) const - ?PreferredDataHandlerL@CApaAppList@@QBE?AVTUid@@ABVTDataType@@PBV2@AAH@Z @ 194 NONAME ; class TUid CApaAppList::PreferredDataHandlerL(class TDataType const &, class TUid const *, int &) const - ?PrepareNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 195 NONAME ; void RApaLsSession::PrepareNonNativeApplicationsUpdatesL(void) - ?PurgeL@CApaAppList@@QAEXXZ @ 196 NONAME ; void CApaAppList::PurgeL(void) - ?RApaLsSession_Reserved1@RApaLsSession@@EAEXXZ @ 197 NONAME ; void RApaLsSession::RApaLsSession_Reserved1(void) - ?RApaLsSession_Reserved2@RApaLsSession@@EAEXXZ @ 198 NONAME ; void RApaLsSession::RApaLsSession_Reserved2(void) - ?RecognizeData@RApaLsSession@@QBEHABVRFile@@AAVTDataRecognitionResult@@@Z @ 199 NONAME ; int RApaLsSession::RecognizeData(class RFile const &, class TDataRecognitionResult &) const - ?RecognizeData@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@AAVTDataRecognitionResult@@@Z @ 200 NONAME ; int RApaLsSession::RecognizeData(class TDesC16 const &, class TDesC8 const &, class TDataRecognitionResult &) const - ?RecognizeFilesL@RApaLsSession@@QAEXABVTDesC16@@AAVCDataRecognitionResultArray@@AAVTRequestStatus@@@Z @ 201 NONAME ; void RApaLsSession::RecognizeFilesL(class TDesC16 const &, class CDataRecognitionResultArray &, class TRequestStatus &) - ?RecognizeFilesL@RApaLsSession@@QAEXABVTDesC16@@ABVTDesC8@@AAVCDataRecognitionResultArray@@AAVTRequestStatus@@@Z @ 202 NONAME ; void RApaLsSession::RecognizeFilesL(class TDesC16 const &, class TDesC8 const &, class CDataRecognitionResultArray &, class TRequestStatus &) - ?RecognizeFilesL@RApaLsSession@@QBEHABVTDesC16@@AAVCDataRecognitionResultArray@@@Z @ 203 NONAME ; int RApaLsSession::RecognizeFilesL(class TDesC16 const &, class CDataRecognitionResultArray &) const - ?RecognizeFilesL@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@AAVCDataRecognitionResultArray@@@Z @ 204 NONAME ; int RApaLsSession::RecognizeFilesL(class TDesC16 const &, class TDesC8 const &, class CDataRecognitionResultArray &) const - ?RecognizeSpecificData@RApaLsSession@@QBEHABVRFile@@ABVTDataType@@AAH@Z @ 205 NONAME ; int RApaLsSession::RecognizeSpecificData(class RFile const &, class TDataType const &, int &) const - ?RecognizeSpecificData@RApaLsSession@@QBEHABVTDesC16@@ABVTDesC8@@ABVTDataType@@AAH@Z @ 206 NONAME ; int RApaLsSession::RecognizeSpecificData(class TDesC16 const &, class TDesC8 const &, class TDataType const &, int &) const - ?RegisterListPopulationCompleteObserver@RApaLsSession@@QBEXAAVTRequestStatus@@@Z @ 207 NONAME ; void RApaLsSession::RegisterListPopulationCompleteObserver(class TRequestStatus &) const - ?RegisterNonNativeApplicationL@RApaLsSession@@QAEXVTUid@@ABVTDriveUnit@@AAVCApaRegistrationResourceFileWriter@@PAVCApaLocalisableResourceFileWriter@@PBVRFile@@@Z @ 208 NONAME ; void RApaLsSession::RegisterNonNativeApplicationL(class TUid, class TDriveUnit const &, class CApaRegistrationResourceFileWriter &, class CApaLocalisableResourceFileWriter *, class RFile const *) - ?RegisterNonNativeApplicationTypeL@RApaLsSession@@QAEXVTUid@@ABVTDesC16@@@Z @ 209 NONAME ; void RApaLsSession::RegisterNonNativeApplicationTypeL(class TUid, class TDesC16 const &) - ?RegistrationFileName@CApaAppData@@QBE?AVTPtrC16@@XZ @ 210 NONAME ; class TPtrC16 CApaAppData::RegistrationFileName(void) const - ?RegistrationFileUsed@CApaAppData@@QBEHXZ @ 211 NONAME ; int CApaAppData::RegistrationFileUsed(void) const - ?ResetForcedRegistrations@CApaAppList@@QAEXXZ @ 212 NONAME ; void CApaAppList::ResetForcedRegistrations(void) - ?RespondsToShutdownEvent@CApaWindowGroupName@@QBEHXZ @ 213 NONAME ; int CApaWindowGroupName::RespondsToShutdownEvent(void) const - ?RespondsToSwitchFilesEvent@CApaWindowGroupName@@QBEHXZ @ 214 NONAME ; int CApaWindowGroupName::RespondsToSwitchFilesEvent(void) const - ?RestartScanL@CApaAppList@@QAEXXZ @ 215 NONAME ; void CApaAppList::RestartScanL(void) - ?RestoreL@CApaDoor@@QAEXABVCStreamStore@@VTStreamId@@@Z @ 216 NONAME ; void CApaDoor::RestoreL(class CStreamStore const &, class TStreamId) - ?RollbackNonNativeApplicationsUpdates@RApaLsSession@@QAEHXZ @ 217 NONAME ; int RApaLsSession::RollbackNonNativeApplicationsUpdates(void) - ?ScreenMode@CApaAppViewData@@QBEHXZ @ 218 NONAME ; int CApaAppViewData::ScreenMode(void) const - ?Self@CApaAppList@@SAPAV1@XZ @ 219 NONAME ; class CApaAppList * CApaAppList::Self(void) - ?SendKey@TApaTask@@QAEXABUTKeyEvent@@@Z @ 220 NONAME ; void TApaTask::SendKey(struct TKeyEvent const &) - ?SendKey@TApaTask@@QAEXHH@Z @ 221 NONAME ; void TApaTask::SendKey(int, int) - ?SendMessage@TApaTask@@QAEHVTUid@@ABVTDesC8@@@Z @ 222 NONAME ; int TApaTask::SendMessage(class TUid, class TDesC8 const &) - ?SendSystemEvent@TApaTask@@QAEXW4TApaSystemEvent@@@Z @ 223 NONAME ; void TApaTask::SendSystemEvent(enum TApaSystemEvent) - ?SendToBackground@TApaTask@@QAEXXZ @ 224 NONAME ; void TApaTask::SendToBackground(void) - ?ServiceArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 225 NONAME ; class CBufFlat * CApaAppList::ServiceArrayBufferL(class TUid) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 226 NONAME ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid) const - ?ServiceImplArrayBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@ABVTDataType@@@Z @ 227 NONAME ; class CBufFlat * CApaAppList::ServiceImplArrayBufferL(class TUid, class TDataType const &) const - ?ServiceOpaqueDataBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@0@Z @ 228 NONAME ; class CBufFlat * CApaAppList::ServiceOpaqueDataBufferL(class TUid, class TUid) const - ?ServiceUidBufferL@CApaAppList@@QBEPAVCBufFlat@@VTUid@@@Z @ 229 NONAME ; class CBufFlat * CApaAppList::ServiceUidBufferL(class TUid) const - ?SetAcceptedConfidence@RApaLsSession@@QAEHH@Z @ 230 NONAME ; int RApaLsSession::SetAcceptedConfidence(int) - ?SetAppIsHiddenL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 231 NONAME ; void CApaRegistrationResourceFileWriter::SetAppIsHiddenL(int) - ?SetAppReady@CApaWindowGroupName@@QAEXH@Z @ 232 NONAME ; void CApaWindowGroupName::SetAppReady(int) - ?SetAppShortCaption@RApaLsSession@@QAEHABVTDesC16@@W4TLanguage@@VTUid@@@Z @ 233 NONAME ; int RApaLsSession::SetAppShortCaption(class TDesC16 const &, enum TLanguage, class TUid) - ?SetAppUid@CApaWindowGroupName@@QAEXVTUid@@@Z @ 234 NONAME ; void CApaWindowGroupName::SetAppUid(class TUid) - ?SetBusy@CApaWindowGroupName@@QAEXH@Z @ 235 NONAME ; void CApaWindowGroupName::SetBusy(int) - ?SetCapability@CApaAppInfoFileWriter@@QAEHABVTDesC8@@@Z @ 236 NONAME ABSENT ; int CApaAppInfoFileWriter::SetCapability(class TDesC8 const &) - ?SetCaptionL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 237 NONAME ; void CApaWindowGroupName::SetCaptionL(class TDesC16 const &) - ?SetDefaultScreenNumberL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 238 NONAME ; void CApaRegistrationResourceFileWriter::SetDefaultScreenNumberL(int) - ?SetDocNameIsAFile@CApaWindowGroupName@@QAEXH@Z @ 239 NONAME ; void CApaWindowGroupName::SetDocNameIsAFile(int) - ?SetDocNameL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 240 NONAME ; void CApaWindowGroupName::SetDocNameL(class TDesC16 const &) - ?SetEmbeddabilityL@CApaRegistrationResourceFileWriter@@QAEXW4TEmbeddability@TApaAppCapability@@@Z @ 241 NONAME ; void CApaRegistrationResourceFileWriter::SetEmbeddabilityL(enum TApaAppCapability::TEmbeddability) - ?SetFormatToGlassL@CApaDoor@@QAEXXZ @ 242 NONAME ; void CApaDoor::SetFormatToGlassL(void) - ?SetFormatToIconL@CApaDoor@@QAEXXZ @ 243 NONAME ; void CApaDoor::SetFormatToIconL(void) - ?SetFormatToTemporaryIconL@CApaDoor@@QAEXH@Z @ 244 NONAME ; void CApaDoor::SetFormatToTemporaryIconL(int) - ?SetFsSessionL@RApaLsSession@@SAXAAVRFs@@@Z @ 245 NONAME ; void RApaLsSession::SetFsSessionL(class RFs &) - ?SetGroupNameL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC16@@@Z @ 246 NONAME ; void CApaRegistrationResourceFileWriter::SetGroupNameL(class TDesC16 const &) - ?SetHidden@CApaWindowGroupName@@QAEXH@Z @ 247 NONAME ; void CApaWindowGroupName::SetHidden(int) - ?SetLaunchInBackgroundL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 248 NONAME ; void CApaRegistrationResourceFileWriter::SetLaunchInBackgroundL(int) - ?SetMaskBitmap@CApaMaskedBitmap@@QAEXPAVCFbsBitmap@@@Z @ 249 NONAME ; void CApaMaskedBitmap::SetMaskBitmap(class CFbsBitmap *) - ?SetMaxDataBufSize@RApaLsSession@@QAEHH@Z @ 250 NONAME ; int RApaLsSession::SetMaxDataBufSize(int) - ?SetNotify@RApaLsSession@@QAEXHAAVTRequestStatus@@@Z @ 251 NONAME ; void RApaLsSession::SetNotify(int, class TRequestStatus &) - ?SetOpaqueDataL@CApaRegistrationResourceFileWriter@@QAEXABVTDesC8@@@Z @ 252 NONAME ; void CApaRegistrationResourceFileWriter::SetOpaqueDataL(class TDesC8 const &) - ?SetRespondsToShutdownEvent@CApaWindowGroupName@@QAEXH@Z @ 253 NONAME ; void CApaWindowGroupName::SetRespondsToShutdownEvent(int) - ?SetRespondsToSwitchFilesEvent@CApaWindowGroupName@@QAEXH@Z @ 254 NONAME ; void CApaWindowGroupName::SetRespondsToSwitchFilesEvent(int) - ?SetShortCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 255 NONAME ; void CApaAppData::SetShortCaptionL(class TDesC16 const &) - ?SetSupportsNewFileL@CApaRegistrationResourceFileWriter@@QAEXH@Z @ 256 NONAME ; void CApaRegistrationResourceFileWriter::SetSupportsNewFileL(int) - ?SetSystem@CApaWindowGroupName@@QAEXH@Z @ 257 NONAME ; void CApaWindowGroupName::SetSystem(int) - ?SetUpdatedAppsList@CApaAppList@@QAEXPAVCUpdatedAppsList@@@Z @ 258 NONAME ABSENT ; void CApaAppList::SetUpdatedAppsList(class CUpdatedAppsList *) - ?SetWgId@TApaTask@@QAEXH@Z @ 259 NONAME ; void TApaTask::SetWgId(int) - ?SetWindowGroupName@CApaWindowGroupName@@QAEXPAVHBufC16@@@Z @ 260 NONAME ; void CApaWindowGroupName::SetWindowGroupName(class HBufC16 *) - ?SetWindowGroupName@CApaWindowGroupName@@QBEHAAVRWindowGroup@@@Z @ 261 NONAME ; int CApaWindowGroupName::SetWindowGroupName(class RWindowGroup &) const - ?SetWindowGroupNameL@CApaWindowGroupName@@QAEXABVTDesC16@@@Z @ 262 NONAME ; void CApaWindowGroupName::SetWindowGroupNameL(class TDesC16 const &) - ?ShortCaption@CApaSystemControl@@QBE?AVTPtrC16@@XZ @ 263 NONAME ; class TPtrC16 CApaSystemControl::ShortCaption(void) const - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@@Z @ 264 NONAME ; int RApaLsSession::StartApp(class CApaCommandLine const &) - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@AAVTThreadId@@@Z @ 265 NONAME ; int RApaLsSession::StartApp(class CApaCommandLine const &, class TThreadId &) - ?StartApp@RApaLsSession@@QAEHABVCApaCommandLine@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 266 NONAME ; int RApaLsSession::StartApp(class CApaCommandLine const &, class TThreadId &, class TRequestStatus *) - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 267 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TThreadId &, class TRequestStatus *) - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@ABVTDataType@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 268 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TDataType const &, class TThreadId &, class TRequestStatus *) - ?StartDocument@RApaLsSession@@QAEHAAVRFile@@VTUid@@AAVTThreadId@@PAVTRequestStatus@@@Z @ 269 NONAME ; int RApaLsSession::StartDocument(class RFile &, class TUid, class TThreadId &, class TRequestStatus *) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@AAVTThreadId@@W4TLaunchType@1@@Z @ 270 NONAME ; int RApaLsSession::StartDocument(class TDesC16 const &, class TThreadId &, enum RApaLsSession::TLaunchType) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@ABVTDataType@@AAVTThreadId@@W4TLaunchType@1@@Z @ 271 NONAME ; int RApaLsSession::StartDocument(class TDesC16 const &, class TDataType const &, class TThreadId &, enum RApaLsSession::TLaunchType) - ?StartDocument@RApaLsSession@@QAEHABVTDesC16@@VTUid@@AAVTThreadId@@W4TLaunchType@1@@Z @ 272 NONAME ; int RApaLsSession::StartDocument(class TDesC16 const &, class TUid, class TThreadId &, enum RApaLsSession::TLaunchType) - ?StartIdleUpdateL@CApaAppList@@QAEXPAVMApaAppListObserver@@@Z @ 273 NONAME ; void CApaAppList::StartIdleUpdateL(class MApaAppListObserver *) - ?StartIdleUpdateL@CApaAppList@@QAEXXZ @ 274 NONAME ; void CApaAppList::StartIdleUpdateL(void) - ?StartupApaServer@@YAHAAVMApaAppStarter@@@Z @ 275 NONAME ABSENT ; int StartupApaServer(class MApaAppStarter &) - ?StartupApaServerProcess@@YAHXZ @ 276 NONAME ; int StartupApaServerProcess(void) - ?StopScan@CApaAppList@@QAEXH@Z @ 277 NONAME ; void CApaAppList::StopScan(int) - ?StoreL@CApaAppInfoFileWriter@@QAEXXZ @ 278 NONAME ABSENT ; void CApaAppInfoFileWriter::StoreL(void) - ?SwitchCreateFile@TApaTask@@QAEHABVTDesC16@@@Z @ 279 NONAME ; int TApaTask::SwitchCreateFile(class TDesC16 const &) - ?SwitchOpenFile@TApaTask@@QAEHABVTDesC16@@@Z @ 280 NONAME ; int TApaTask::SwitchOpenFile(class TDesC16 const &) - ?TestIconLoaderAndIconArrayL@TIconLoaderAndIconArrayForLeaks@@SAXXZ @ 281 NONAME ; void TIconLoaderAndIconArrayForLeaks::TestIconLoaderAndIconArrayL(void) - ?ThreadId@TApaTask@@QBE?AVTThreadId@@XZ @ 282 NONAME ; class TThreadId TApaTask::ThreadId(void) const - ?Type@CApaSystemControl@@QBE?AVTUid@@XZ @ 283 NONAME ; class TUid CApaSystemControl::Type(void) const - ?Uid@CApaAppViewData@@QBE?AVTUid@@XZ @ 284 NONAME ; class TUid CApaAppViewData::Uid(void) const - ?Uid@TApaAppServiceInfo@@QBE?AVTUid@@XZ @ 285 NONAME ; class TUid TApaAppServiceInfo::Uid(void) const - ?UpdateL@CApaSystemControlList@@QAEXXZ @ 286 NONAME ; void CApaSystemControlList::UpdateL(void) - ?UpdatedAppsList@CApaAppList@@QAEPAVCUpdatedAppsList@@XZ @ 287 NONAME ABSENT ; class CUpdatedAppsList * CApaAppList::UpdatedAppsList(void) - ?Version@RApaLsSession@@QBE?AVTVersion@@XZ @ 288 NONAME ; class TVersion RApaLsSession::Version(void) const - ?Views@CApaAppData@@QBEPAV?$CArrayPtrFlat@VCApaAppViewData@@@@XZ @ 289 NONAME ; class CArrayPtrFlat * CApaAppData::Views(void) const - ?WgId@TApaTask@@QBEHXZ @ 290 NONAME ; int TApaTask::WgId(void) const - ?WindowGroupName@CApaWindowGroupName@@QBE?AVTPtrC16@@XZ @ 291 NONAME ; class TPtrC16 CApaWindowGroupName::WindowGroupName(void) const - ?KMinApplicationStackSize@@3HB @ 292 NONAME ; int const KMinApplicationStackSize - ?CheckAppSecurity@CApaSecurityUtils@@SAHABVTPtrC16@@AAH1@Z @ 293 NONAME ; int CApaSecurityUtils::CheckAppSecurity(class TPtrC16 const &, int &, int &) - ?SetCaptionL@CApaAppData@@QAEXABVTDesC16@@@Z @ 294 NONAME ; void CApaAppData::SetCaptionL(class TDesC16 const &) - ?SetIconsL@CApaAppData@@QAEXABVTDesC16@@H@Z @ 295 NONAME ; void CApaAppData::SetIconsL(class TDesC16 const &, int) - ?TestIconCaptionOverridesL@TIconLoaderAndIconArrayForLeaks@@SAXXZ @ 296 NONAME ; void TIconLoaderAndIconArrayForLeaks::TestIconCaptionOverridesL(void) - ?ForceCommitNonNativeApplicationsUpdatesL@RApaLsSession@@QAEXXZ @ 297 NONAME ; void RApaLsSession::ForceCommitNonNativeApplicationsUpdatesL(void) - ?DataTypes@TApaAppServiceInfo@@QAEAAV?$CArrayFixFlat@VTDataTypeWithPriority@@@@XZ @ 298 NONAME ; class CArrayFixFlat & TApaAppServiceInfo::DataTypes(void) - ??0TApaAppIdentifier@@QAE@XZ @ 299 NONAME ; TApaAppIdentifier::TApaAppIdentifier(void) - ?AddForcedRegistrationL@CApaAppList@@QAEXABVTDesC16@@@Z @ 300 NONAME ; void CApaAppList::AddForcedRegistrationL(class TDesC16 const &) - ?ExternalizeL@TApaAppCapability@@QBEXAAVRWriteStream@@@Z @ 301 NONAME ; void TApaAppCapability::ExternalizeL(class RWriteStream &) const - ??0TApaAppInfo@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@11@Z @ 302 NONAME ; TApaAppInfo::TApaAppInfo(class TUid, class TBuf<256> const &, class TBuf<256> const &, class TBuf<256> const &) - ?AddEmbeddability@TApaEmbeddabilityFilter@@QAEXW4TEmbeddability@TApaAppCapability@@@Z @ 303 NONAME ; void TApaEmbeddabilityFilter::AddEmbeddability(enum TApaAppCapability::TEmbeddability) - ?InternalizeL@TApaAppServiceInfo@@QAEXAAVRReadStream@@@Z @ 304 NONAME ; void TApaAppServiceInfo::InternalizeL(class RReadStream &) - ?InternalizeL@TApaAppViewInfo@@QAEXAAVRReadStream@@@Z @ 305 NONAME ; void TApaAppViewInfo::InternalizeL(class RReadStream &) - ?MatchesEmbeddability@TApaEmbeddabilityFilter@@QBEHW4TEmbeddability@TApaAppCapability@@@Z @ 306 NONAME ; int TApaEmbeddabilityFilter::MatchesEmbeddability(enum TApaAppCapability::TEmbeddability) const - ?ExternalizeL@TApaAppServiceInfo@@QBEXAAVRWriteStream@@@Z @ 307 NONAME ; void TApaAppServiceInfo::ExternalizeL(class RWriteStream &) const - ??0CApaAppServiceInfoArray@@IAE@XZ @ 308 NONAME ; CApaAppServiceInfoArray::CApaAppServiceInfoArray(void) - ??0TApaAppIdentifier@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@@Z @ 309 NONAME ; TApaAppIdentifier::TApaAppIdentifier(class TUid, class TBuf<256> const &) - ?CopyCapability@TApaAppCapability@@SAXAAVTDes8@@ABVTDesC8@@@Z @ 310 NONAME ; void TApaAppCapability::CopyCapability(class TDes8 &, class TDesC8 const &) - ??0TApaAppServiceInfo@@QAE@XZ @ 311 NONAME ; TApaAppServiceInfo::TApaAppServiceInfo(void) - ?Release@TApaAppServiceInfo@@QAEXXZ @ 312 NONAME ; void TApaAppServiceInfo::Release(void) - ?UpdateAppListByShortCaptionL@CApaAppList@@QAEXXZ @ 313 NONAME ; void CApaAppList::UpdateAppListByShortCaptionL(void) - ?ExternalizeL@TApaAppIdentifier@@QBEXAAVRWriteStream@@@Z @ 314 NONAME ; void TApaAppIdentifier::ExternalizeL(class RWriteStream &) const - ?ExternalizeL@TApaAppViewInfo@@QBEXAAVRWriteStream@@@Z @ 315 NONAME ; void TApaAppViewInfo::ExternalizeL(class RWriteStream &) const - ?NewL@CApaAppList@@SAPAV1@AAVRFs@@HH@Z @ 316 NONAME ; class CApaAppList * CApaAppList::NewL(class RFs &, int, int) - ?CApaAppServiceInfoArray_Reserved1@CApaAppServiceInfoArray@@EAEXXZ @ 317 NONAME ; void CApaAppServiceInfoArray::CApaAppServiceInfoArray_Reserved1(void) - ?ExternalizeL@TApaAppInfo@@QBEXAAVRWriteStream@@@Z @ 318 NONAME ; void TApaAppInfo::ExternalizeL(class RWriteStream &) const - ?InternalizeL@TApaAppCapability@@QAEXAAVRReadStream@@@Z @ 319 NONAME ; void TApaAppCapability::InternalizeL(class RReadStream &) - ??0TApaAppEntry@@QAE@XZ @ 320 NONAME ; TApaAppEntry::TApaAppEntry(void) - ?AddCustomAppInfoInListL@CApaAppList@@QAEXVTUid@@W4TLanguage@@ABVTDesC16@@@Z @ 321 NONAME ; void CApaAppList::AddCustomAppInfoInListL(class TUid, enum TLanguage, class TDesC16 const &) - ?CApaAppServiceInfoArray_Reserved2@CApaAppServiceInfoArray@@EAEXXZ @ 322 NONAME ; void CApaAppServiceInfoArray::CApaAppServiceInfoArray_Reserved2(void) - ?UpdateAppListByIconCaptionOverridesL@CApaAppList@@QAEXXZ @ 323 NONAME ; void CApaAppList::UpdateAppListByIconCaptionOverridesL(void) - ??0TApaAppInfo@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@1@Z @ 324 NONAME ; TApaAppInfo::TApaAppInfo(class TUid, class TBuf<256> const &, class TBuf<256> const &) - ?InternalizeL@TApaAppInfo@@QAEXAAVRReadStream@@@Z @ 325 NONAME ; void TApaAppInfo::InternalizeL(class RReadStream &) - ??0TApaEmbeddabilityFilter@@QAE@XZ @ 326 NONAME ; TApaEmbeddabilityFilter::TApaEmbeddabilityFilter(void) - ?InternalizeL@TApaAppIdentifier@@QAEXAAVRReadStream@@@Z @ 327 NONAME ; void TApaAppIdentifier::InternalizeL(class RReadStream &) - ??0TApaAppViewInfo@@QAE@XZ @ 328 NONAME ; TApaAppViewInfo::TApaAppViewInfo(void) - ??0TApaAppInfo@@QAE@XZ @ 329 NONAME ; TApaAppInfo::TApaAppInfo(void) - ??0TApaAppViewInfo@@QAE@VTUid@@ABV?$TBuf@$0BAA@@@H@Z @ 330 NONAME ; TApaAppViewInfo::TApaAppViewInfo(class TUid, class TBuf<256> const &, int) - ??0TApaAppServiceInfo@@QAE@VTUid@@PAV?$CArrayFixFlat@VTDataTypeWithPriority@@@@PAVHBufC8@@@Z @ 331 NONAME ; TApaAppServiceInfo::TApaAppServiceInfo(class TUid, class CArrayFixFlat *, class HBufC8 *) - ?AppListUpdatePending@CApaAppList@@QAEHXZ @ 332 NONAME ; int CApaAppList::AppListUpdatePending(void) - ?RecognizeData@RApaLsSession@@QBEHABVTDesC8@@AAVTDataRecognitionResult@@@Z @333 NONAME ; TInt RecognizeData(class TDesC8 const &, class TDataRecognitionResult & ) const - ?UninstalledAppArray@CApaAppList@@QAEPAV?$CArrayFixFlat@VTUid@@@@XZ @ 334 NONAME ; class CArrayFixFlat * CApaAppList::UninstalledAppArray(void) - X @ 335 NONAME ABSENT ; - X @ 336 NONAME ABSENT ; - X @ 337 NONAME ABSENT ; - X @ 338 NONAME ABSENT ; - X @ 339 NONAME ABSENT ; - X @ 340 NONAME ABSENT ; - X @ 341 NONAME ABSENT ; - X @ 342 NONAME ABSENT ; - X @ 343 NONAME ABSENT ; - X @ 344 NONAME ABSENT ; - X @ 345 NONAME ABSENT ; - X @ 346 NONAME ABSENT ; - X @ 347 NONAME ABSENT ; - X @ 348 NONAME ABSENT ; - X @ 349 NONAME ABSENT ; - \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/APFILEU.DEF --- a/appfw/apparchitecture/eabi/APFILEU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/eabi/APFILEU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -92,11 +92,11 @@ _ZTV14CAppSidChecker @ 91 NONAME ABSENT ; ## _ZNK16CApaAppRegFinder9DriveListEv @ 92 NONAME ABSENT _ZN16CApaAppRegFinder26FindAllRemovableMediaAppsLEv @ 93 NONAME ABSENT - _ZN26CApaAppInstallationMonitor4NewLEP16CApaAppArcServer @ 94 NONAME ABSENT - _ZN26CApaAppInstallationMonitor5StartEv @ 95 NONAME ABSENT - _ZN26CApaAppInstallationMonitorD0Ev @ 96 NONAME ABSENT - _ZN26CApaAppInstallationMonitorD1Ev @ 97 NONAME ABSENT - _ZN26CApaAppInstallationMonitorD2Ev @ 98 NONAME ABSENT + _ZN26CApaAppInstallationMonitor4NewLEP16CApaAppArcServer @ 94 NONAME + _ZN26CApaAppInstallationMonitor5StartEv @ 95 NONAME + _ZN26CApaAppInstallationMonitorD0Ev @ 96 NONAME + _ZN26CApaAppInstallationMonitorD1Ev @ 97 NONAME + _ZN26CApaAppInstallationMonitorD2Ev @ 98 NONAME _ZN21CApfMimeContentPolicy12IsClosedTypeERK7TDesC16 @ 99 NONAME _ZN21CApfMimeContentPolicy13IsClosedFileLER5RFile @ 100 NONAME _ZN21CApfMimeContentPolicy13IsClosedFileLERK7TDesC16 @ 101 NONAME diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/APGRFXU.DEF --- a/appfw/apparchitecture/eabi/APGRFXU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/eabi/APGRFXU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -433,13 +433,3 @@ X @ 432 NONAME ABSENT _ZN13RApaLsSession40ForceCommitNonNativeApplicationsUpdatesLEv @ 433 NONAME _ZNK13RApaLsSession13RecognizeDataERK6TDesC8R22TDataRecognitionResult @ 434 NONAME - _ZN13RApaLsSession14UpdateAppListLER6RArrayI17TApaAppUpdateInfoE @ 435 NONAME - _ZN17TApaAppUpdateInfo12InternalizeLER11RReadStream @ 436 NONAME - _ZN17TApaAppUpdateInfoC1Ev @ 437 NONAME - _ZN17TApaAppUpdateInfoC2Ev @ 438 NONAME - _ZNK17TApaAppUpdateInfo12ExternalizeLER12RWriteStream @ 439 NONAME - _ZN17TApaAppUpdateInfoC1E4TUidNS_13TApaAppActionE @ 440 NONAME - _ZN17TApaAppUpdateInfoC2E4TUidNS_13TApaAppActionE @ 441 NONAME - _ZN13RApaLsSession16UpdatedAppsInfoLER6RArrayI17TApaAppUpdateInfoE @ 442 NONAME - _ZN13RApaLsSession17ForceRegistrationERK13RPointerArrayIN4Usif28CApplicationRegistrationDataEE @ 443 NONAME - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/APSERVU.DEF --- a/appfw/apparchitecture/eabi/APSERVU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/eabi/APSERVU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -56,13 +56,13 @@ _ZNK16CUpdatedAppsList8IsInListERK7TDesC16 @ 55 NONAME ABSENT _ZTIN16CUpdatedAppsList15CUpdatedAppInfoE @ 56 NONAME ABSENT ; ## _ZTVN16CUpdatedAppsList15CUpdatedAppInfoE @ 57 NONAME ABSENT ; ## - _ZN16CApaAppArcServer14RescanCallBackEv @ 58 NONAME ABSENT + _ZN16CApaAppArcServer14RescanCallBackEv @ 58 NONAME _ZTI18CCustomAppInfoData @ 59 NONAME ABSENT ; ## _ZTV18CCustomAppInfoData @ 60 NONAME ABSENT ; ## KApaLoadDataRecognizersOnDemand @ 61 NONAME DATA 4 KApaUnloadRecognizersTimeout @ 62 NONAME DATA 4 - _ZN16CApaAppArcServer27HandleInstallationEndEventLEv @ 63 NONAME ABSENT - _ZN16CApaAppArcServer28HandleInstallationStartEventEv @ 64 NONAME ABSENT + _ZN16CApaAppArcServer27HandleInstallationEndEventLEv @ 63 NONAME + _ZN16CApaAppArcServer28HandleInstallationStartEventEv @ 64 NONAME KApaDrivesToMonitor @ 65 NONAME DATA 4 KApaLoadMbmIconsOnDemand @ 66 NONAME DATA 4 _ZTI21CApaAppArcServSession @ 67 NONAME diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/TICONFORLEAKSu.DEF --- a/appfw/apparchitecture/eabi/TICONFORLEAKSu.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/eabi/TICONFORLEAKSu.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -5,23 +5,23 @@ _Z23StartupApaServerProcessv @ 4 NONAME _ZN11CApaAppData16CanUseScreenModeEi @ 5 NONAME _ZN11CApaAppData16SetShortCaptionLERK7TDesC16 @ 6 NONAME - _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 7 NONAME ABSENT + _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 7 NONAME _ZN11CApaAppDataD0Ev @ 8 NONAME _ZN11CApaAppDataD1Ev @ 9 NONAME _ZN11CApaAppDataD2Ev @ 10 NONAME - _ZN11CApaAppList12RestartScanLEv @ 11 NONAME ABSENT + _ZN11CApaAppList12RestartScanLEv @ 11 NONAME _ZN11CApaAppList14CompareStringsERK7HBufC16S2_ @ 12 NONAME ABSENT _ZN11CApaAppList15UpdatedAppsListEv @ 13 NONAME ABSENT _ZN11CApaAppList16StartIdleUpdateLEP19MApaAppListObserver @ 14 NONAME _ZN11CApaAppList16StartIdleUpdateLEv @ 15 NONAME _ZN11CApaAppList18SetUpdatedAppsListEP16CUpdatedAppsList @ 16 NONAME ABSENT _ZN11CApaAppList22AddForcedRegistrationLEP7HBufC16 @ 17 NONAME ABSENT - _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 18 NONAME ABSENT - _ZN11CApaAppList24ResetForcedRegistrationsEv @ 19 NONAME ABSENT + _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 18 NONAME + _ZN11CApaAppList24ResetForcedRegistrationsEv @ 19 NONAME _ZN11CApaAppList4NewLER3RFsP16CApaAppRegFinderii @ 20 NONAME ABSENT _ZN11CApaAppList4SelfEv @ 21 NONAME - _ZN11CApaAppList6PurgeLEv @ 22 NONAME ABSENT - _ZN11CApaAppList8StopScanEi @ 23 NONAME ABSENT + _ZN11CApaAppList6PurgeLEv @ 22 NONAME + _ZN11CApaAppList8StopScanEi @ 23 NONAME _ZN11CApaAppList9InitListLEP19MApaAppListObserver @ 24 NONAME _ZN11CApaAppListD0Ev @ 25 NONAME _ZN11CApaAppListD1Ev @ 26 NONAME @@ -194,16 +194,16 @@ _ZNK11CApaAppData17ImplementsServiceE4TUid @ 193 NONAME _ZNK11CApaAppData19ApplicationLanguageEv @ 194 NONAME _ZNK11CApaAppData19DefaultScreenNumberEv @ 195 NONAME - _ZNK11CApaAppData20RegistrationFileNameEv @ 196 NONAME ABSENT - _ZNK11CApaAppData20RegistrationFileUsedEv @ 197 NONAME ABSENT + _ZNK11CApaAppData20RegistrationFileNameEv @ 196 NONAME + _ZNK11CApaAppData20RegistrationFileUsedEv @ 197 NONAME _ZNK11CApaAppData24NonNativeApplicationTypeEv @ 198 NONAME - _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 199 NONAME ABSENT + _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 199 NONAME _ZNK11CApaAppData4IconE5TSize @ 200 NONAME _ZNK11CApaAppData4IconEi @ 201 NONAME _ZNK11CApaAppData5ViewsEv @ 202 NONAME _ZNK11CApaAppData8AppEntryEv @ 203 NONAME _ZNK11CApaAppData8DataTypeERK9TDataType @ 204 NONAME - _ZNK11CApaAppData9IsPendingEv @ 205 NONAME ABSENT + _ZNK11CApaAppData9IsPendingEv @ 205 NONAME _ZNK11CApaAppList12AppDataByUidE4TUid @ 206 NONAME _ZNK11CApaAppList17AppDataByFileNameERK7TDesC16 @ 207 NONAME _ZNK11CApaAppList17AppScanInProgressEv @ 208 NONAME @@ -320,7 +320,7 @@ _ZNK8TApaTask6ExistsEv @ 319 NONAME _ZNK8TApaTask8ThreadIdEv @ 320 NONAME _ZN17CApaSecurityUtils16CheckAppSecurityERK7TPtrC16RiS3_ @ 321 NONAME - _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 322 NONAME ABSENT + _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 322 NONAME _ZN11CApaAppList23AddCustomAppInfoInListLE4TUid9TLanguageRK7TDesC16 @ 323 NONAME _ZN11CApaAppList28UpdateAppListByShortCaptionLEv @ 324 NONAME _ZN11CApaAppList4NewLER3RFsii @ 325 NONAME @@ -411,23 +411,6 @@ _ZN11CApaAppList36UpdateAppListByIconCaptionOverridesLEv @ 410 NONAME _ZN13RApaLsSession40ForceCommitNonNativeApplicationsUpdatesLEv @ 411 NONAME _ZN31TIconLoaderAndIconArrayForLeaks25TestIconCaptionOverridesLEv @ 412 NONAME - _ZN11CApaAppList20AppListUpdatePendingEv @ 413 NONAME ABSENT + _ZN11CApaAppList20AppListUpdatePendingEv @ 413 NONAME _ZNK13RApaLsSession13RecognizeDataERK6TDesC8R22TDataRecognitionResult @ 414 NONAME _ZN11CApaAppList19UninstalledAppArrayEv @ 415 NONAME - _ZN11CApaAppData4NewLERKN4Usif28CApplicationRegistrationDataER3RFsRKNS0_26RSoftwareComponentRegistryE @ 416 NONAME - _ZN11CApaAppList18InitializeApplistLEP19MApaAppListObserver @ 417 NONAME - _ZN11CApaAppList22FindAndAddSpecificAppLE4TUid @ 418 NONAME - _ZN13RApaLsSession14UpdateAppListLER6RArrayI17TApaAppUpdateInfoE @ 419 NONAME - _ZN17TApaAppUpdateInfo12InternalizeLER11RReadStream @ 420 NONAME - _ZN17TApaAppUpdateInfoC1Ev @ 421 NONAME - _ZN17TApaAppUpdateInfoC2Ev @ 422 NONAME - _ZNK17TApaAppUpdateInfo12ExternalizeLER12RWriteStream @ 423 NONAME - _ZN17TApaAppUpdateInfoC1E4TUidNS_13TApaAppActionE @ 424 NONAME - _ZN17TApaAppUpdateInfoC2E4TUidNS_13TApaAppActionE @ 425 NONAME - _ZN11CApaAppData19IsLangChangePendingEv @ 426 NONAME - _ZN11CApaAppList14UpdateApplistLEP19MApaAppListObserverP6RArrayI17TApaAppUpdateInfoE4TUid @ 427 NONAME - _ZN11CApaAppList15UpdatedAppsInfoEv @ 428 NONAME - _ZN11CApaAppList28UpdateApplistByForceRegAppsLER13RPointerArrayIN4Usif28CApplicationRegistrationDataEE @ 429 NONAME - _ZN13RApaLsSession16UpdatedAppsInfoLER6RArrayI17TApaAppUpdateInfoE @ 430 NONAME - _ZN13RApaLsSession17ForceRegistrationERK13RPointerArrayIN4Usif28CApplicationRegistrationDataEE @ 431 NONAME - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/apfile_legacyu.def --- a/appfw/apparchitecture/eabi/apfile_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +0,0 @@ -EXPORTS - _ZN19CApaAppLocatorProxy16GetAppEntryByUidER12TApaAppEntry4TUid @ 1 NONAME ABSENT - _ZN19CApaAppLocatorProxy21GetAppCapabilityByUidER5TDes84TUid @ 2 NONAME ABSENT - _ZN19CApaAppLocatorProxy4NewLER3RFs @ 3 NONAME ABSENT - _ZN19CApaAppLocatorProxyD0Ev @ 4 NONAME ABSENT - _ZN19CApaAppLocatorProxyD1Ev @ 5 NONAME ABSENT - _ZN19CApaAppLocatorProxyD2Ev @ 6 NONAME ABSENT - _ZN21CApaScanningAppFinder12FindAllAppsLEv @ 7 NONAME ABSENT - _ZN21CApaScanningAppFinder4NewLERK3RFs @ 8 NONAME ABSENT - _ZN21CApaScanningAppFinder5NewLCERK3RFs @ 9 NONAME ABSENT - _ZN21CApaScanningAppFinder5NextLER12TApaAppEntry @ 10 NONAME ABSENT - _ZN21CApaScanningAppFinder8FindAppLERK7TDesC164TUid @ 11 NONAME ABSENT - _ZN21CApaScanningAppFinderD0Ev @ 12 NONAME ABSENT - _ZN21CApaScanningAppFinderD1Ev @ 13 NONAME ABSENT - _ZN21CApaScanningAppFinderD2Ev @ 14 NONAME ABSENT - _ZN25CApaScanningControlFinder12FindAllAppsLEv @ 15 NONAME ABSENT - _ZN25CApaScanningControlFinder4NewLERK3RFs @ 16 NONAME ABSENT - _ZN25CApaScanningControlFinder5NewLCERK3RFs @ 17 NONAME ABSENT - _ZN25CApaScanningControlFinder5NextLER12TApaAppEntry @ 18 NONAME ABSENT - _ZN25CApaScanningControlFinder8FindAppLERK7TDesC164TUid @ 19 NONAME ABSENT - _ZN25CApaScanningControlFinderD0Ev @ 20 NONAME ABSENT - _ZN25CApaScanningControlFinderD1Ev @ 21 NONAME ABSENT - _ZN25CApaScanningControlFinderD2Ev @ 22 NONAME ABSENT - _ZN26CApaScanningFileRecognizer10ConstructLEv @ 23 NONAME ABSENT - _ZN26CApaScanningFileRecognizer14SetRecognizerLERKNS_11TRecognizerE @ 24 NONAME ABSENT - _ZN26CApaScanningFileRecognizer15RecognizerCountEv @ 25 NONAME ABSENT - _ZN26CApaScanningFileRecognizer19ScanForRecognizersLEv @ 26 NONAME ABSENT - _ZN26CApaScanningFileRecognizer23SetRecognizersFromListLERK13CArrayFixFlatINS_11TRecognizerEE @ 27 NONAME ABSENT - _ZN26CApaScanningFileRecognizer4NewLER3RFsP14MApaAppStarter @ 28 NONAME ABSENT - _ZN26CApaScanningFileRecognizerC1ER3RFsP14MApaAppStarter @ 29 NONAME ABSENT - _ZN26CApaScanningFileRecognizerC2ER3RFsP14MApaAppStarter @ 30 NONAME ABSENT - _ZN26CApaScanningFileRecognizerD0Ev @ 31 NONAME ABSENT - _ZN26CApaScanningFileRecognizerD1Ev @ 32 NONAME ABSENT - _ZN26CApaScanningFileRecognizerD2Ev @ 33 NONAME ABSENT - _ZN6Apfile8TempPathEv @ 34 NONAME ABSENT - _ZNK21CApaScanningAppFinder22DefaultAppInfoFileNameEv @ 35 NONAME ABSENT - _ZNK21CApaScanningAppFinder8TempPathEv @ 36 NONAME ABSENT - _ZNK25CApaScanningControlFinder22DefaultAppInfoFileNameEv @ 37 NONAME ABSENT - _ZNK25CApaScanningControlFinder8TempPathEv @ 38 NONAME ABSENT - _ZNK26CApaScanningFileRecognizer13UpdateCounterEv @ 39 NONAME ABSENT - _ZNK26CApaScanningFileRecognizer16RecognizerListLCEv @ 40 NONAME ABSENT - _ZNK26CApaScanningFileRecognizerixEi @ 41 NONAME ABSENT - _ZTI26CApaScanningFileRecognizer @ 42 NONAME ABSENT ; ## - _ZTV26CApaScanningFileRecognizer @ 43 NONAME ABSENT ; ## - _ZN26CApaScanningFileRecognizer18SetEcomRecognizerLERKNS_11TRecognizerE @ 44 NONAME ABSENT - _ZN26CApaScanningFileRecognizer27SetEcomRecognizersFromListLERK13CArrayFixFlatINS_11TRecognizerEE @ 45 NONAME ABSENT - _ZTI17CApaRecognizerDll @ 46 NONAME ABSENT ; ## - _ZTI19CApaAppLocatorProxy @ 47 NONAME ABSENT ; ## - _ZTI21CApaScanningAppFinder @ 48 NONAME ABSENT ; ## - _ZTI25CApaScanningControlFinder @ 49 NONAME ABSENT ; ## - _ZTIN26CApaScanningFileRecognizer27CApaBackupOperationObserverE @ 50 NONAME ABSENT ; ## - _ZTV17CApaRecognizerDll @ 51 NONAME ABSENT ; ## - _ZTV19CApaAppLocatorProxy @ 52 NONAME ABSENT ; ## - _ZTV21CApaScanningAppFinder @ 53 NONAME ABSENT ; ## - _ZTV25CApaScanningControlFinder @ 54 NONAME ABSENT ; ## - _ZTVN26CApaScanningFileRecognizer27CApaBackupOperationObserverE @ 55 NONAME ABSENT ; ## - _ZN16CApaAppRegFinder12FindAllAppsLEv @ 56 NONAME ABSENT - _ZN16CApaAppRegFinder4NewLERK3RFs @ 57 NONAME ABSENT - _ZN16CApaAppRegFinder5NewLCERK3RFs @ 58 NONAME ABSENT - _ZN16CApaAppRegFinder5NextLER12TApaAppEntry @ 59 NONAME ABSENT - _ZN16CApaAppRegFinder5NextLER12TApaAppEntryRK13RPointerArrayI7HBufC16E @ 60 NONAME ABSENT - _ZNK16CApaAppRegFinder8TempPathEv @ 61 NONAME ABSENT - _ZTI16CApaAppRegFinder @ 62 NONAME ABSENT ; ## - _ZTV16CApaAppRegFinder @ 63 NONAME ABSENT ; ## - _ZN17CAppLaunchChecker10Reserved_1Ev @ 64 NONAME - _ZN17CAppLaunchChecker10Reserved_2Ev @ 65 NONAME - _ZN17CAppLaunchChecker10Reserved_3Ev @ 66 NONAME - _ZN17CAppLaunchCheckerD0Ev @ 67 NONAME - _ZN17CAppLaunchCheckerD1Ev @ 68 NONAME - _ZN17CAppLaunchCheckerD2Ev @ 69 NONAME - _ZN28CApaScanningRuleBasedPlugIns4NewLEv @ 70 NONAME - _ZNK28CApaScanningRuleBasedPlugInsixEi @ 71 NONAME - _ZTI16CApaRuleBasedDll @ 72 NONAME ; ## - _ZTI17CAppLaunchChecker @ 73 NONAME ; ## - _ZTV16CApaRuleBasedDll @ 74 NONAME ; ## - _ZTV17CAppLaunchChecker @ 75 NONAME ; ## - _ZN28CApaScanningRuleBasedPlugInsD0Ev @ 76 NONAME - _ZN28CApaScanningRuleBasedPlugInsD1Ev @ 77 NONAME - _ZN28CApaScanningRuleBasedPlugInsD2Ev @ 78 NONAME - _ZTI28CApaScanningRuleBasedPlugIns @ 79 NONAME ; ## - _ZTV28CApaScanningRuleBasedPlugIns @ 80 NONAME ; ## - _ZN28CApaScanningRuleBasedPlugIns24ScanForRuleBasedPlugInsLEv @ 81 NONAME - _ZNK28CApaScanningRuleBasedPlugIns19ImplementationCountEv @ 82 NONAME - _ZN14CAppSidChecker18SetRescanCallBackLERK9TCallBack @ 83 NONAME ABSENT - _ZN14CAppSidChecker9reserved1Ev @ 84 NONAME ABSENT - _ZN14CAppSidChecker9reserved2Ev @ 85 NONAME ABSENT - _ZN14CAppSidChecker9reserved3Ev @ 86 NONAME ABSENT - _ZN14CAppSidCheckerD0Ev @ 87 NONAME ABSENT - _ZN14CAppSidCheckerD1Ev @ 88 NONAME ABSENT - _ZN14CAppSidCheckerD2Ev @ 89 NONAME ABSENT - _ZTI14CAppSidChecker @ 90 NONAME ABSENT ; ## - _ZTV14CAppSidChecker @ 91 NONAME ABSENT ; ## - _ZNK16CApaAppRegFinder9DriveListEv @ 92 NONAME ABSENT - _ZN16CApaAppRegFinder26FindAllRemovableMediaAppsLEv @ 93 NONAME ABSENT - _ZN26CApaAppInstallationMonitor4NewLEP16CApaAppArcServer @ 94 NONAME - _ZN26CApaAppInstallationMonitor5StartEv @ 95 NONAME - _ZN26CApaAppInstallationMonitorD0Ev @ 96 NONAME - _ZN26CApaAppInstallationMonitorD1Ev @ 97 NONAME - _ZN26CApaAppInstallationMonitorD2Ev @ 98 NONAME - _ZN21CApfMimeContentPolicy12IsClosedTypeERK7TDesC16 @ 99 NONAME - _ZN21CApfMimeContentPolicy13IsClosedFileLER5RFile @ 100 NONAME - _ZN21CApfMimeContentPolicy13IsClosedFileLERK7TDesC16 @ 101 NONAME - _ZN21CApfMimeContentPolicy14IsDRMEnvelopeLER5RFile @ 102 NONAME - _ZN21CApfMimeContentPolicy14IsDRMEnvelopeLERK7TDesC16 @ 103 NONAME - _ZN21CApfMimeContentPolicy17IsClosedExtensionERK7TDesC16 @ 104 NONAME - _ZN21CApfMimeContentPolicy4NewLER3RFs @ 105 NONAME - _ZN21CApfMimeContentPolicy4NewLEv @ 106 NONAME - _ZN21CApfMimeContentPolicy5NewLCER3RFs @ 107 NONAME - _ZN21CApfMimeContentPolicy5NewLCEv @ 108 NONAME - _ZN21CApfMimeContentPolicyD0Ev @ 109 NONAME - _ZN21CApfMimeContentPolicyD1Ev @ 110 NONAME - _ZN21CApfMimeContentPolicyD2Ev @ 111 NONAME - _ZTI21CApfMimeContentPolicy @ 112 NONAME - _ZTV21CApfMimeContentPolicy @ 113 NONAME - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/apgrfx_legacyu.def --- a/appfw/apparchitecture/eabi/apgrfx_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,445 +0,0 @@ -EXPORTS - _ZNK11CApaAppData11GetIconInfoERiS0_ @ 1 NONAME ABSENT - _ZN11CApaAppData16CanUseScreenModeEi @ 2 NONAME ABSENT - _ZN11CApaAppList16StartIdleUpdateLEP19MApaAppListObserver @ 3 NONAME ABSENT - _ZN11CApaAppList16StartIdleUpdateLEv @ 4 NONAME ABSENT - _ZN11CApaAppList4NewLER3RFsP16CApaAppRegFinderii @ 5 NONAME ABSENT - _ZN11CApaAppList6PurgeLEv @ 6 NONAME ABSENT - _ZN11CApaAppList7UpdateLEv @ 7 NONAME ABSENT - _ZN11CApaAppList9InitListLEP19MApaAppListObserver @ 8 NONAME ABSENT - _ZN11CApaAppListD0Ev @ 9 NONAME ABSENT - _ZN11CApaAppListD1Ev @ 10 NONAME ABSENT - _ZN11CApaAppListD2Ev @ 11 NONAME ABSENT - _ZN12TApaTaskList10CycleTasksE4TUidNS_15TCycleDirectionE @ 12 NONAME - _ZN12TApaTaskList7FindAppE4TUid @ 13 NONAME - _ZN12TApaTaskList7FindAppERK7TDesC16 @ 14 NONAME - _ZN12TApaTaskList7FindDocERK7TDesC16 @ 15 NONAME - _ZN12TApaTaskList9FindByPosEi @ 16 NONAME - _ZN12TApaTaskListC1ER10RWsSession @ 17 NONAME - _ZN12TApaTaskListC2ER10RWsSession @ 18 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC164TUidR9TThreadIdNS_11TLaunchTypeE @ 19 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC16R9TThreadIdNS_11TLaunchTypeE @ 20 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC16RK9TDataTypeR9TThreadIdNS_11TLaunchTypeE @ 21 NONAME - _ZN13RApaLsSession14CreateDocumentERK7TDesC164TUidR9TThreadIdNS_11TLaunchTypeE @ 22 NONAME - _ZN13RApaLsSession17SetMaxDataBufSizeEi @ 23 NONAME - _ZN13RApaLsSession21SetAcceptedConfidenceEi @ 24 NONAME - _ZN13RApaLsSession7ConnectEv @ 25 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLine @ 26 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLineR9TThreadId @ 27 NONAME - _ZN13RApaLsSessionC1Ev @ 28 NONAME - _ZN13RApaLsSessionC2Ev @ 29 NONAME - _ZN16AppInfoFileUtils14GetAifFileNameERK3RFsR6TDes16 @ 30 NONAME ABSENT - _ZN16CApaMaskedBitmap12InternalizeLER11RReadStream @ 31 NONAME - _ZN16CApaMaskedBitmap13SetMaskBitmapEP10CFbsBitmap @ 32 NONAME - _ZN16CApaMaskedBitmap4NewLEPKS_ @ 33 NONAME - _ZN16CApaMaskedBitmap5NewLCEv @ 34 NONAME - _ZN16CApaMaskedBitmapD0Ev @ 35 NONAME - _ZN16CApaMaskedBitmapD1Ev @ 36 NONAME - _ZN16CApaMaskedBitmapD2Ev @ 37 NONAME - _ZN17CApaSystemControl7CreateLEv @ 38 NONAME - _ZN18TApaPictureFactoryC1EP11CApaProcess @ 39 NONAME - _ZN18TApaPictureFactoryC2EP11CApaProcess @ 40 NONAME - _ZN19CApaAppListNotifier4NewLEP23MApaAppListServObserverN7CActive9TPriorityE @ 41 NONAME - _ZN19CApaAppListNotifierD0Ev @ 42 NONAME - _ZN19CApaAppListNotifierD1Ev @ 43 NONAME - _ZN19CApaAppListNotifierD2Ev @ 44 NONAME - _ZN19CApaWindowGroupName11SetAppReadyEi @ 45 NONAME - _ZN19CApaWindowGroupName11SetCaptionLERK7TDesC16 @ 46 NONAME - _ZN19CApaWindowGroupName11SetDocNameLERK7TDesC16 @ 47 NONAME - _ZN19CApaWindowGroupName12FindByAppUidE4TUidR10RWsSessionRi @ 48 NONAME - _ZN19CApaWindowGroupName13FindByCaptionERK7TDesC16R10RWsSessionRi @ 49 NONAME - _ZN19CApaWindowGroupName13FindByDocNameERK7TDesC16R10RWsSessionRi @ 50 NONAME - _ZN19CApaWindowGroupName17SetDocNameIsAFileEi @ 51 NONAME - _ZN19CApaWindowGroupName18ConstructFromWgIdLEi @ 52 NONAME - _ZN19CApaWindowGroupName18SetWindowGroupNameEP7HBufC16 @ 53 NONAME - _ZN19CApaWindowGroupName19SetWindowGroupNameLERK7TDesC16 @ 54 NONAME - _ZN19CApaWindowGroupName26SetRespondsToShutdownEventEi @ 55 NONAME - _ZN19CApaWindowGroupName29SetRespondsToSwitchFilesEventEi @ 56 NONAME - _ZN19CApaWindowGroupName3NewERK10RWsSessionP7HBufC16 @ 57 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSession @ 58 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSessionRK7TDesC16 @ 59 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSessioni @ 60 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSession @ 61 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSessionRK7TDesC16 @ 62 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSessioni @ 63 NONAME - _ZNK19CApaWindowGroupName6HiddenEv @ 64 NONAME - _ZN19CApaWindowGroupName7SetBusyEi @ 65 NONAME - _ZN19CApaWindowGroupName9SetAppUidE4TUid @ 66 NONAME - _ZN19CApaWindowGroupName9SetHiddenEi @ 67 NONAME - _ZN19CApaWindowGroupName9SetSystemEi @ 68 NONAME - _ZN19CApaWindowGroupNameD0Ev @ 69 NONAME - _ZN19CApaWindowGroupNameD1Ev @ 70 NONAME - _ZN19CApaWindowGroupNameD2Ev @ 71 NONAME - _ZN21CApaAppInfoFileReader12StretchDrawLEP10CFbsBitmapS1_5TSize @ 72 NONAME ABSENT - _ZN21CApaAppInfoFileReader19CreateMaskedBitmapLEi @ 73 NONAME ABSENT - _ZN21CApaAppInfoFileReader4NewLER3RFsRK7TDesC164TUid @ 74 NONAME ABSENT - _ZN21CApaAppInfoFileReader5NewLCER3RFsRK7TDesC164TUid @ 75 NONAME ABSENT - _ZN21CApaAppInfoFileReader8CaptionLE9TLanguage @ 76 NONAME ABSENT - _ZN21CApaAppInfoFileReaderD0Ev @ 77 NONAME ABSENT - _ZN21CApaAppInfoFileReaderD1Ev @ 78 NONAME ABSENT - _ZN21CApaAppInfoFileReaderD2Ev @ 79 NONAME ABSENT - _ZN21CApaAppInfoFileWriter10StoreViewLE4TUid @ 80 NONAME ABSENT - _ZN21CApaAppInfoFileWriter11AddCaptionLE9TLanguageRK7TDesC16 @ 81 NONAME ABSENT - _ZN21CApaAppInfoFileWriter12AddDataTypeLERK21TDataTypeWithPriority @ 82 NONAME ABSENT - _ZN21CApaAppInfoFileWriter12AddViewIconLER16CApaMaskedBitmap4TUid @ 83 NONAME ABSENT - _ZN21CApaAppInfoFileWriter13AddOwnedFileLERK7TDesC16 @ 84 NONAME ABSENT - _ZN21CApaAppInfoFileWriter13SetCapabilityERK6TDesC8 @ 85 NONAME ABSENT - _ZN21CApaAppInfoFileWriter15AddViewCaptionLE9TLanguageRK7TDesC164TUid @ 86 NONAME ABSENT - _ZN21CApaAppInfoFileWriter5NewLCER3RFsRK7TDesC164TUid @ 87 NONAME ABSENT - _ZN21CApaAppInfoFileWriter6StoreLEv @ 88 NONAME ABSENT - _ZN21CApaAppInfoFileWriter8AddIconLER16CApaMaskedBitmap @ 89 NONAME ABSENT - _ZN21CApaAppInfoFileWriter8AddIconLERK7TDesC16 @ 90 NONAME ABSENT - _ZN21CApaAppInfoFileWriter8AddViewLE4TUid @ 91 NONAME ABSENT - _ZN21CApaAppInfoFileWriter8AddViewLE4TUidi @ 92 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD0Ev @ 93 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD1Ev @ 94 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD2Ev @ 95 NONAME ABSENT - _ZN21CApaSystemControlList4NewLER3RFsR13CApaAppFinderRK7TDesC16 @ 96 NONAME ABSENT - _ZN21CApaSystemControlList7UpdateLEv @ 97 NONAME - _ZN21CApaSystemControlListD0Ev @ 98 NONAME - _ZN21CApaSystemControlListD1Ev @ 99 NONAME - _ZN21CApaSystemControlListD2Ev @ 100 NONAME - _ZN8CApaDoor16SetFormatToIconLEv @ 101 NONAME - _ZN8CApaDoor17SetFormatToGlassLEv @ 102 NONAME - _ZN8CApaDoor25SetFormatToTemporaryIconLEi @ 103 NONAME - _ZN8CApaDoor4NewLER3RFsR12CApaDocumentRK5TSize @ 104 NONAME - _ZN8CApaDoor4NewLER3RFsRK12CStreamStore9TStreamIdR11CApaProcess @ 105 NONAME - _ZN8CApaDoor5NewLCER3RFsR12CApaDocumentRK5TSize @ 106 NONAME - _ZN8CApaDoor8RestoreLERK12CStreamStore9TStreamId @ 107 NONAME - _ZN8CApaDoor9DocumentLEi @ 108 NONAME - _ZN8CApaDoorD0Ev @ 109 NONAME - _ZN8CApaDoorD1Ev @ 110 NONAME - _ZN8CApaDoorD2Ev @ 111 NONAME - _ZN8TApaTask11SendMessageE4TUidRK6TDesC8 @ 112 NONAME - _ZN8TApaTask14SwitchOpenFileERK7TDesC16 @ 113 NONAME - _ZN8TApaTask15SendSystemEventE15TApaSystemEvent @ 114 NONAME - _ZN8TApaTask16SendToBackgroundEv @ 115 NONAME - _ZN8TApaTask16SwitchCreateFileERK7TDesC16 @ 116 NONAME - _ZN8TApaTask17BringToForegroundEv @ 117 NONAME - _ZN8TApaTask7EndTaskEv @ 118 NONAME - _ZN8TApaTask7SendKeyERK9TKeyEvent @ 119 NONAME - _ZN8TApaTask7SendKeyEii @ 120 NONAME - _ZN8TApaTask7SetWgIdEi @ 121 NONAME - _ZN8TApaTask8KillTaskEv @ 122 NONAME - _ZN8TApaTaskC1ER10RWsSession @ 123 NONAME - _ZN8TApaTaskC2ER10RWsSession @ 124 NONAME - _ZNK11CApaAppData10CapabilityER5TDes8 @ 125 NONAME ABSENT - _ZNK11CApaAppData10IconSizesLEv @ 126 NONAME ABSENT - _ZNK11CApaAppData10OwnedFilesEv @ 127 NONAME ABSENT - _ZNK11CApaAppData4IconE5TSize @ 128 NONAME ABSENT - _ZNK11CApaAppData4IconEi @ 129 NONAME ABSENT - _ZNK11CApaAppData5ViewsEv @ 130 NONAME ABSENT - _ZNK11CApaAppData8AppEntryEv @ 131 NONAME ABSENT - _ZNK11CApaAppData8DataTypeERK9TDataType @ 132 NONAME ABSENT - _ZNK11CApaAppList12AppDataByUidE4TUid @ 133 NONAME ABSENT - _ZNK11CApaAppList13UpdateCounterEv @ 134 NONAME ABSENT - _ZNK11CApaAppList19IsFirstScanCompleteEv @ 135 NONAME ABSENT - _ZNK11CApaAppList20IsIdleUpdateCompleteEv @ 136 NONAME ABSENT - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataType @ 137 NONAME ABSENT - _ZNK11CApaAppList5CountEv @ 138 NONAME ABSENT - _ZNK11CApaAppList7NextAppEPK11CApaAppData @ 139 NONAME ABSENT - _ZNK11CApaAppList7NextAppEPK11CApaAppDatai @ 140 NONAME ABSENT - _ZNK11CApaAppList8FirstAppEi @ 141 NONAME ABSENT - _ZNK11CApaAppList8FirstAppEv @ 142 NONAME ABSENT - _ZNK13RApaLsSession10GetAllAppsEi @ 143 NONAME - _ZNK13RApaLsSession10GetAllAppsEv @ 144 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUid5TSizeR16CApaMaskedBitmap @ 145 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUidiR16CApaMaskedBitmap @ 146 NONAME - _ZNK13RApaLsSession10GetAppInfoER11TApaAppInfo4TUid @ 147 NONAME - _ZNK13RApaLsSession10GetNextAppER11TApaAppInfo @ 148 NONAME - _ZNK13RApaLsSession10GetNextAppER11TApaAppInfoi @ 149 NONAME - _ZNK13RApaLsSession11GetAppViewsER13CArrayFixFlatI15TApaAppViewInfoE4TUid @ 150 NONAME - _ZNK13RApaLsSession13RecognizeDataERK7TDesC16RK6TDesC8R22TDataRecognitionResult @ 151 NONAME - _ZNK13RApaLsSession14AppForDataTypeERK9TDataTypeR4TUid @ 152 NONAME - _ZNK13RApaLsSession14AppForDocumentERK7TDesC16R4TUidR9TDataType @ 153 NONAME - _ZNK13RApaLsSession14GetAppInfo_7_0ER15TApaAppInfo_7_04TUid @ 154 NONAME ABSENT - _ZNK13RApaLsSession14GetAppViewIconE4TUidS0_RK5TSizeR16CApaMaskedBitmap @ 155 NONAME - _ZNK13RApaLsSession14GetNextApp_7_0ER15TApaAppInfo_7_0 @ 156 NONAME ABSENT - _ZNK13RApaLsSession14GetNextApp_7_0ER15TApaAppInfo_7_0i @ 157 NONAME ABSENT - _ZNK13RApaLsSession15GetAppIconSizesE4TUidR13CArrayFixFlatI5TSizeE @ 158 NONAME - _ZNK13RApaLsSession15GetFilteredAppsERK23TApaEmbeddabilityFilter @ 159 NONAME - _ZNK13RApaLsSession15GetFilteredAppsERK23TApaEmbeddabilityFilteri @ 160 NONAME - _ZNK13RApaLsSession16GetAppCapabilityER5TDes84TUid @ 161 NONAME - _ZNK13RApaLsSession16GetAppOwnedFilesER12CDesC16Array4TUid @ 162 NONAME - _ZNK13RApaLsSession17GetEmbeddableAppsEi @ 163 NONAME - _ZNK13RApaLsSession17GetEmbeddableAppsEv @ 164 NONAME - _ZNK13RApaLsSession17GetMaxDataBufSizeERi @ 165 NONAME - _ZNK13RApaLsSession18EmbeddableAppCountERi @ 166 NONAME - _ZNK13RApaLsSession21GetAcceptedConfidenceERi @ 167 NONAME - _ZNK13RApaLsSession21RecognizeSpecificDataERK7TDesC16RK6TDesC8RK9TDataTypeRi @ 168 NONAME - _ZNK13RApaLsSession22GetSupportedDataTypesLER13CArrayFixFlatI9TDataTypeE @ 169 NONAME - _ZNK13RApaLsSession23NumberOfOwnDefinedIconsE4TUidRi @ 170 NONAME - _ZNK13RApaLsSession7VersionEv @ 171 NONAME - _ZNK13RApaLsSession8AppCountERi @ 172 NONAME - _ZNK13RApaLsSession9IsProgramERK7TDesC16Ri @ 173 NONAME - _ZNK15CApaAIFViewData10ScreenModeEv @ 174 NONAME ABSENT - _ZNK15CApaAIFViewData12IconByIndexLEi @ 175 NONAME ABSENT - _ZNK15CApaAIFViewData13NumberOfIconsEv @ 176 NONAME ABSENT - _ZNK15CApaAIFViewData7ViewUidEv @ 177 NONAME ABSENT - _ZNK15CApaAIFViewData8CaptionLE9TLanguage @ 178 NONAME ABSENT - _ZNK15CApaAppViewData10IconSizesLEv @ 179 NONAME ABSENT - _ZNK15CApaAppViewData10ScreenModeEv @ 180 NONAME ABSENT - _ZNK15CApaAppViewData3UidEv @ 181 NONAME ABSENT - _ZNK15CApaAppViewData4IconERK5TSize @ 182 NONAME ABSENT - _ZNK16CApaMaskedBitmap12ExternalizeLER12RWriteStream @ 183 NONAME - _ZNK16CApaMaskedBitmap4MaskEv @ 184 NONAME - _ZNK17CApaSystemControl12ShortCaptionEv @ 185 NONAME - _ZNK17CApaSystemControl4IconEv @ 186 NONAME - _ZNK17CApaSystemControl4TypeEv @ 187 NONAME - _ZNK17CApaSystemControl7CaptionEv @ 188 NONAME - _ZNK17CApaSystemControl8FileNameEv @ 189 NONAME - _ZNK18TApaPictureFactory11NewPictureLER14TPictureHeaderRK12CStreamStore @ 190 NONAME - _ZNK19CApaWindowGroupName10IsAppReadyEv @ 191 NONAME - _ZNK19CApaWindowGroupName14DocNameIsAFileEv @ 192 NONAME - _ZNK19CApaWindowGroupName15WindowGroupNameEv @ 193 NONAME - _ZNK19CApaWindowGroupName18SetWindowGroupNameER12RWindowGroup @ 194 NONAME - _ZNK19CApaWindowGroupName23RespondsToShutdownEventEv @ 195 NONAME - _ZNK19CApaWindowGroupName26RespondsToSwitchFilesEventEv @ 196 NONAME - _ZNK19CApaWindowGroupName6AppUidEv @ 197 NONAME - _ZNK19CApaWindowGroupName6IsBusyEv @ 198 NONAME - _ZNK19CApaWindowGroupName7CaptionEv @ 199 NONAME - _ZNK19CApaWindowGroupName7DocNameEv @ 200 NONAME - _ZNK19CApaWindowGroupName8IsSystemEv @ 201 NONAME - _ZNK21CApaAppInfoFileReader10CapabilityER5TDes8 @ 202 NONAME ABSENT - _ZNK21CApaAppInfoFileReader14GetOwnedFilesLER12CDesC16Array @ 203 NONAME ABSENT - _ZNK21CApaAppInfoFileReader15NumberOfBitmapsEv @ 204 NONAME ABSENT - _ZNK21CApaAppInfoFileReader19DataTypesSupportedLER9CArrayFixI21TDataTypeWithPriorityE @ 205 NONAME ABSENT - _ZNK21CApaAppInfoFileReader9GetViewsLER9CArrayPtrI15CApaAIFViewDataE @ 206 NONAME ABSENT - _ZNK21CApaSystemControlList5CountEv @ 207 NONAME - _ZNK21CApaSystemControlList5IndexE4TUid @ 208 NONAME - _ZNK21CApaSystemControlList7ControlE4TUid @ 209 NONAME - _ZNK21CApaSystemControlList7ControlEi @ 210 NONAME - _ZNK8CApaDoor7AppUidLEv @ 211 NONAME - _ZNK8TApaTask4WgIdEv @ 212 NONAME - _ZNK8TApaTask6ExistsEv @ 213 NONAME - _ZNK8TApaTask8ThreadIdEv @ 214 NONAME - _ZTI18TApaPictureFactory @ 215 NONAME ; ## - _ZTV18TApaPictureFactory @ 216 NONAME ; ## - _ZTI11CApaAppData @ 217 NONAME ABSENT ; ## - _ZTI11CApaAppList @ 218 NONAME ABSENT ; ## - _ZTI12CApaAppEntry @ 219 NONAME ABSENT ; ## - _ZTI14CApaAIFCaption @ 220 NONAME ABSENT ; ## - _ZTI15CApaAIFViewData @ 221 NONAME ABSENT ; ## - _ZTI15CApaAppInfoFile @ 222 NONAME ABSENT ; ## - _ZTI15CApaAppViewData @ 223 NONAME ABSENT ; ## - _ZTI15CApaIconPicture @ 224 NONAME ; ## - _ZTI16CApaMaskedBitmap @ 225 NONAME ; ## - _ZTI16TDesCArrayFiller @ 226 NONAME ABSENT ; ## - _ZTI16TSizeArrayFiller @ 227 NONAME ABSENT ; ## - _ZTI17CApaSystemControl @ 228 NONAME ; ## - _ZTI19CApaAppListNotifier @ 229 NONAME ; ## - _ZTI19CApaWindowGroupName @ 230 NONAME ; ## - _ZTI20TViewDataArrayFiller @ 231 NONAME ABSENT ; ## - _ZTI21CApaAppInfoFileReader @ 232 NONAME ABSENT ; ## - _ZTI21CApaAppInfoFileWriter @ 233 NONAME ABSENT ; ## - _ZTI21CApaSystemControlList @ 234 NONAME ; ## - _ZTI7HBufBuf @ 235 NONAME ; ## - _ZTI8CApaDoor @ 236 NONAME ; ## - _ZTV11CApaAppData @ 237 NONAME ABSENT ; ## - _ZTV11CApaAppList @ 238 NONAME ABSENT ; ## - _ZTV12CApaAppEntry @ 239 NONAME ABSENT ; ## - _ZTV14CApaAIFCaption @ 240 NONAME ABSENT ; ## - _ZTV15CApaAIFViewData @ 241 NONAME ABSENT ; ## - _ZTV15CApaAppInfoFile @ 242 NONAME ABSENT ; ## - _ZTV15CApaAppViewData @ 243 NONAME ABSENT ; ## - _ZTV15CApaIconPicture @ 244 NONAME ; ## - _ZTV16CApaMaskedBitmap @ 245 NONAME ; ## - _ZTV16TDesCArrayFiller @ 246 NONAME ABSENT ; ## - _ZTV16TSizeArrayFiller @ 247 NONAME ABSENT ; ## - _ZTV17CApaSystemControl @ 248 NONAME ; ## - _ZTV19CApaAppListNotifier @ 249 NONAME ; ## - _ZTV19CApaWindowGroupName @ 250 NONAME ; ## - _ZTV20TViewDataArrayFiller @ 251 NONAME ABSENT ; ## - _ZTV21CApaAppInfoFileReader @ 252 NONAME ABSENT ; ## - _ZTV21CApaAppInfoFileWriter @ 253 NONAME ABSENT ; ## - _ZTV21CApaSystemControlList @ 254 NONAME ; ## - _ZTV7HBufBuf @ 255 NONAME ; ## - _ZTV8CApaDoor @ 256 NONAME ; ## - _ZN11CApaAppList4NewLER3RFsP13CApaAppFinderP16CApaAppRegFinderi @ 257 NONAME ABSENT - _ZNK11CApaAppData12IconFileNameEv @ 258 NONAME ABSENT - _ZNK11CApaAppData14NonMbmIconFileEv @ 259 NONAME ABSENT - _ZNK11CApaAppData19DefaultScreenNumberEv @ 260 NONAME ABSENT - _ZNK11CApaAppData20RegistrationFileUsedEv @ 261 NONAME ABSENT - _ZNK13RApaLsSession10GetAppIconE4TUidRP7HBufC16 @ 262 NONAME - _ZNK13RApaLsSession14GetAppViewIconE4TUidS0_RP7HBufC16 @ 263 NONAME - _ZNK13RApaLsSession15GetFilteredAppsEjj @ 264 NONAME - _ZNK13RApaLsSession15GetFilteredAppsEjji @ 265 NONAME - _ZNK15CApaAppViewData12IconFileNameEv @ 266 NONAME ABSENT - _ZNK15CApaAppViewData14NonMbmIconFileEv @ 267 NONAME ABSENT - _ZTI17CApaAppInfoReader @ 268 NONAME ABSENT ; ## - _ZTI19CApaAppInfoReaderV1 @ 269 NONAME ABSENT ; ## - _ZTI19CApaAppInfoReaderV2 @ 270 NONAME ABSENT ; ## - _ZTV17CApaAppInfoReader @ 271 NONAME ABSENT ; ## - _ZTV19CApaAppInfoReaderV1 @ 272 NONAME ABSENT ; ## - _ZTV19CApaAppInfoReaderV2 @ 273 NONAME ABSENT ; ## - _Z16StartupApaServerR14MApaAppStarter @ 274 NONAME ABSENT - _Z23StartupApaServerProcessv @ 275 NONAME - _ZN13RApaLsSession17DeleteDataMappingERK9TDataType @ 276 NONAME - _ZN13RApaLsSession17InsertDataMappingERK9TDataTypel4TUid @ 277 NONAME - _ZN13RApaLsSession25InsertDataMappingIfHigherERK9TDataTypel4TUidRi @ 278 NONAME - _ZNK11CApaAppData19ApplicationLanguageEv @ 279 NONAME ABSENT - _ZNK13RApaLsSession19ApplicationLanguageE4TUidR9TLanguage @ 280 NONAME - _ZN21CApaSystemControlList4NewLER3RFs @ 281 NONAME - _ZNK11CApaAppData17ImplementsServiceE4TUid @ 282 NONAME ABSENT - _ZNK11CApaAppList17ServiceUidBufferLE4TUid @ 283 NONAME ABSENT - _ZNK11CApaAppList19ServiceArrayBufferLE4TUid @ 284 NONAME ABSENT - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataTypePK4TUidRi @ 285 NONAME ABSENT - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUid @ 286 NONAME ABSENT - _ZNK11CApaAppList24ServiceOpaqueDataBufferLE4TUidS0_ @ 287 NONAME ABSENT - _ZNK13RApaLsSession13GetServerAppsE4TUid @ 288 NONAME - _ZNK13RApaLsSession13GetServerAppsE4TUidi @ 289 NONAME - _ZNK13RApaLsSession15GetAppServicesLE4TUidR13CArrayFixFlatIS0_E @ 290 NONAME - _ZNK13RApaLsSession16GetAppServicesLCE4TUid @ 291 NONAME - _ZNK13RApaLsSession24AppForDataTypeAndServiceERK9TDataType4TUidRS3_ @ 292 NONAME - _ZNK13RApaLsSession24AppForDocumentAndServiceERK5RFile4TUidRS3_R9TDataType @ 293 NONAME - _ZNK13RApaLsSession24AppForDocumentAndServiceERK7TDesC164TUidRS3_R9TDataType @ 294 NONAME - _ZNK13RApaLsSession25GetAppServiceOpaqueDataLCE4TUidS0_ @ 295 NONAME - _ZNK13RApaLsSession27GetServiceImplementationsLCE4TUid @ 296 NONAME - _ZNK18TApaAppServiceInfo10OpaqueDataEv @ 297 NONAME ABSENT - _ZNK18TApaAppServiceInfo3UidEv @ 298 NONAME ABSENT - _ZTI30CApaAppServiceInfoArrayWrapper @ 299 NONAME ABSENT ; ## - _ZTV30CApaAppServiceInfoArrayWrapper @ 300 NONAME ABSENT ; ## - _ZN13RApaLsSession13StartDocumentER5RFileR9TThreadIdP14TRequestStatus @ 301 NONAME - _ZN21CApaAppInfoFileReader27CreateMaskedBitmapByIndexLCEi @ 302 NONAME ABSENT - _ZNK13RApaLsSession36CancelListPopulationCompleteObserverEv @ 303 NONAME - _ZNK13RApaLsSession38RegisterListPopulationCompleteObserverER14TRequestStatus @ 304 NONAME - _ZN8ApaUtils24HandleAsRegistrationFileERK8TUidType @ 305 NONAME ABSENT - _ZN13RApaLsSession33RegisterJavaMIDletViaIterimFormatERK7TDesC16R5RFile @ 306 NONAME ABSENT - _ZN22ForJavaMIDletInstaller33CheckInterimFormatFileNotCorruptLER5RFile @ 307 NONAME ABSENT - _ZN13RApaLsSession20DeregisterJavaMIDletERK7TDesC16 @ 308 NONAME ABSENT - _ZN13RApaLsSession13SetFsSessionLER3RFs @ 309 NONAME - _ZN13RApaLsSession13StartDocumentER5RFile4TUidR9TThreadIdP14TRequestStatus @ 310 NONAME - _ZN13RApaLsSession13StartDocumentER5RFileRK9TDataTypeR9TThreadIdP14TRequestStatus @ 311 NONAME - _ZN13RApaLsSession14ClearFsSessionEv @ 312 NONAME - _ZN13RApaLsSession9FsSessionEv @ 313 NONAME - _ZNK13RApaLsSession13RecognizeDataERK5RFileR22TDataRecognitionResult @ 314 NONAME - _ZNK13RApaLsSession14AppForDocumentERK5RFileR4TUidR9TDataType @ 315 NONAME - _ZNK13RApaLsSession21RecognizeSpecificDataERK5RFileRK9TDataTypeRi @ 316 NONAME - _ZNK13RApaLsSession19GetPreferredBufSizeERi @ 317 NONAME - _ZN22ForJavaMIDletInstaller18GetJavaMIDletInfoLER3RFsRK7TDesC16RmS5_ @ 318 NONAME ABSENT - _ZN22ForJavaMIDletInstaller28NewInterimFormatFileWriterLCER3RFsRK7TDesC164TUidmi @ 319 NONAME ABSENT - _ZNK18TApaAppServiceInfo9DataTypesEv @ 320 NONAME ABSENT - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUidRK9TDataType @ 321 NONAME ABSENT - _ZNK13RApaLsSession27GetServiceImplementationsLCE4TUidRK9TDataType @ 322 NONAME - _ZN13RApaLsSession5CloseEv @ 323 NONAME - _ZTI22CApaLsSessionExtension @ 324 NONAME ABSENT ; ## - _ZTV22CApaLsSessionExtension @ 325 NONAME ABSENT ; ## - _ZN13RApaLsSession23RApaLsSession_Reserved1Ev @ 326 NONAME - _ZN13RApaLsSession23RApaLsSession_Reserved2Ev @ 327 NONAME - _ZN18TApaPictureFactoryC1Ev @ 328 NONAME - _ZN18TApaPictureFactoryC2Ev @ 329 NONAME - _ZN23MApaAppListServObserver33MApaAppListServObserver_Reserved1Ev @ 330 NONAME - _ZN23MApaAppListServObserver33MApaAppListServObserver_Reserved2Ev @ 331 NONAME - _ZN23MApaAppListServObserverC2Ev @ 332 NONAME - _ZTI13RApaLsSession @ 333 NONAME ; ## - _ZTI23MApaAppListServObserver @ 334 NONAME ; ## - _ZTV13RApaLsSession @ 335 NONAME ; ## - _ZTV23MApaAppListServObserver @ 336 NONAME ; ## - _ZNK13RApaLsSession15RecognizeFilesLERK7TDesC16R27CDataRecognitionResultArray @ 337 NONAME - _ZN13RApaLsSession15RecognizeFilesLERK7TDesC16R27CDataRecognitionResultArrayR14TRequestStatus @ 338 NONAME - _ZNK13RApaLsSession15RecognizeFilesLERK7TDesC16RK6TDesC8R27CDataRecognitionResultArray @ 339 NONAME - _ZN13RApaLsSession15RecognizeFilesLERK7TDesC16RK6TDesC8R27CDataRecognitionResultArrayR14TRequestStatus @ 340 NONAME - _ZN13RApaLsSession20CancelRecognizeFilesEv @ 341 NONAME - _ZN27CDataRecognitionResultArrayC1Ev @ 342 NONAME - _ZN27CDataRecognitionResultArrayC2Ev @ 343 NONAME - _ZN27CDataRecognitionResultArrayD0Ev @ 344 NONAME - _ZN27CDataRecognitionResultArrayD1Ev @ 345 NONAME - _ZN27CDataRecognitionResultArrayD2Ev @ 346 NONAME - _ZNK27CDataRecognitionResultArray12GetFileNameLER4TBufILi256EEj @ 347 NONAME - _ZNK27CDataRecognitionResultArray25GetDataRecognitionResultLER22TDataRecognitionResultj @ 348 NONAME - _ZNK27CDataRecognitionResultArray4PathEv @ 349 NONAME - _ZNK27CDataRecognitionResultArray5CountEv @ 350 NONAME - _ZTI21CAsyncFileRecognition @ 351 NONAME ABSENT ; ## - _ZTI27CDataRecognitionResultArray @ 352 NONAME ; ## - _ZTI32CDataRecognitionResultArrayEntry @ 353 NONAME ABSENT ; ## - _ZTV21CAsyncFileRecognition @ 354 NONAME ABSENT ; ## - _ZTV27CDataRecognitionResultArray @ 355 NONAME ; ## - _ZTV32CDataRecognitionResultArrayEntry @ 356 NONAME ABSENT ; ## - _ZNK13RApaLsSession16GetAppByDataTypeERK9TDataType4TUidRS3_ @ 357 NONAME - _ZN13RApaLsSession17DeleteDataMappingERK9TDataType4TUid @ 358 NONAME - _ZN13RApaLsSession17InsertDataMappingERK9TDataTypel4TUidS3_ @ 359 NONAME - _ZN13RApaLsSession29RegisterNonNativeApplicationLE4TUidRK10TDriveUnitR34CApaRegistrationResourceFileWriterP33CApaLocalisableResourceFileWriterPK5RFile @ 360 NONAME - _ZN13RApaLsSession31DeregisterNonNativeApplicationLE4TUid @ 361 NONAME - _ZN13RApaLsSession33RegisterNonNativeApplicationTypeLE4TUidRK7TDesC16 @ 362 NONAME - _ZN13RApaLsSession35DeregisterNonNativeApplicationTypeLE4TUid @ 363 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLineR9TThreadIdP14TRequestStatus @ 364 NONAME - _ZNK11CApaAppData10OpaqueDataEv @ 365 NONAME ABSENT - _ZNK11CApaAppData20RegistrationFileNameEv @ 366 NONAME ABSENT - _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 367 NONAME ABSENT - _ZNK11CApaAppList17AppDataByFileNameERK7TDesC16 @ 368 NONAME ABSENT - _ZNK13RApaLsSession22GetDefaultScreenNumberERi4TUid @ 369 NONAME - _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 370 NONAME ABSENT - _ZNK13RApaLsSession21MatchesSecurityPolicyERi4TUidRK15TSecurityPolicy @ 371 NONAME - _ZN33CApaLocalisableResourceFileWriterD1Ev @ 372 NONAME - _ZN33CApaLocalisableResourceFileWriterD2Ev @ 373 NONAME - _ZN34CApaRegistrationResourceFileWriter12AddDataTypeLEiRK6TDesC8 @ 374 NONAME - _ZN34CApaRegistrationResourceFileWriter13SetGroupNameLERK7TDesC16 @ 375 NONAME - _ZN34CApaRegistrationResourceFileWriter14SetOpaqueDataLERK6TDesC8 @ 376 NONAME - _ZN34CApaRegistrationResourceFileWriter15SetAppIsHiddenLEi @ 377 NONAME - _ZN34CApaRegistrationResourceFileWriter17SetEmbeddabilityLEN17TApaAppCapability14TEmbeddabilityE @ 378 NONAME - _ZN34CApaRegistrationResourceFileWriter19SetSupportsNewFileLEi @ 379 NONAME - _ZN34CApaRegistrationResourceFileWriter21AddFileOwnershipInfoLERK7TDesC16 @ 380 NONAME - _ZN34CApaRegistrationResourceFileWriter22SetLaunchInBackgroundLEi @ 381 NONAME - _ZN34CApaRegistrationResourceFileWriter23SetDefaultScreenNumberLEi @ 382 NONAME - _ZN34CApaRegistrationResourceFileWriter4NewLE4TUidRK7TDesC16j @ 383 NONAME - _ZN34CApaRegistrationResourceFileWriterD0Ev @ 384 NONAME - _ZN34CApaRegistrationResourceFileWriterD1Ev @ 385 NONAME - _ZN34CApaRegistrationResourceFileWriterD2Ev @ 386 NONAME - _ZNK11CApaAppData24NonNativeApplicationTypeEv @ 387 NONAME ABSENT - _ZTI33CApaLocalisableResourceFileWriter @ 388 NONAME ; ## - _ZTI34CApaRegistrationResourceFileWriter @ 389 NONAME ; ## - _ZTIN26CApaResourceFileWriterBase11RBufferSinkE @ 390 NONAME ; ## - _ZTV33CApaLocalisableResourceFileWriter @ 391 NONAME ; ## - _ZTV34CApaRegistrationResourceFileWriter @ 392 NONAME ; ## - _ZTVN26CApaResourceFileWriterBase11RBufferSinkE @ 393 NONAME ; ## - _ZN33CApaLocalisableResourceFileWriter4NewLERK7TDesC16S2_iS2_ @ 394 NONAME - _ZN33CApaLocalisableResourceFileWriterD0Ev @ 395 NONAME - _ZN13RApaLsSession12CancelNotifyEv @ 396 NONAME - _ZN13RApaLsSession9SetNotifyEiR14TRequestStatus @ 397 NONAME - _ZNK11CApaAppList17AppScanInProgressEv @ 398 NONAME ABSENT - _ZN13RApaLsSession25NotifyOnDataMappingChangeER14TRequestStatus @ 399 NONAME - _ZN13RApaLsSession31CancelNotifyOnDataMappingChangeEv @ 400 NONAME - _ZNK13RApaLsSession10GetAppTypeER4TUidS0_ @ 401 NONAME - _ZN13RApaLsSession35CommitNonNativeApplicationsUpdatesLEv @ 402 NONAME - _ZN13RApaLsSession36PrepareNonNativeApplicationsUpdatesLEv @ 403 NONAME - _ZN13RApaLsSession36RollbackNonNativeApplicationsUpdatesEv @ 404 NONAME - _ZN11CApaAppList15UpdatedAppsListEv @ 405 NONAME ABSENT - _ZN11CApaAppList18SetUpdatedAppsListEP16CUpdatedAppsList @ 406 NONAME ABSENT - _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 407 NONAME ABSENT - _ZN11CApaAppDataD0Ev @ 408 NONAME ABSENT - _ZN11CApaAppDataD1Ev @ 409 NONAME ABSENT - _ZN11CApaAppDataD2Ev @ 410 NONAME ABSENT - _ZN11CApaAppList24ShareProtectedFileServerEv @ 411 NONAME ABSENT - _ZN11CApaAppList4SelfEv @ 412 NONAME ABSENT - X @ 413 NONAME ABSENT - X @ 414 NONAME ABSENT - X @ 415 NONAME ABSENT - X @ 416 NONAME ABSENT - _ZN13RApaLsSession18SetAppShortCaptionERK7TDesC169TLanguage4TUid @ 417 NONAME - _ZN11CApaAppData16SetShortCaptionLERK7TDesC16 @ 418 NONAME ABSENT - _ZN11CApaAppList14CompareStringsERK7HBufC16S2_ @ 419 NONAME ABSENT - _ZN11CApaAppList22AddForcedRegistrationLEP7HBufC16 @ 420 NONAME ABSENT - _ZN13RApaLsSession17ForceRegistrationERK13RPointerArrayI7TDesC16E @ 421 NONAME - _ZN11CApaAppList24ResetForcedRegistrationsEv @ 422 NONAME ABSENT - _ZN11CApaAppList12RestartScanLEv @ 423 NONAME ABSENT - _ZN11CApaAppList8StopScanEv @ 424 NONAME ABSENT - KMinApplicationStackSize @ 425 NONAME DATA 4 - _Z23MinApplicationStackSizev @ 426 NONAME - _ZNK11CApaAppData9IsPendingEv @ 427 NONAME ABSENT - _ZNK11CApaAppList23IsLanguageChangePendingEv @ 428 NONAME ABSENT - _ZNK13RApaLsSession10GetAppIconE4TUidR5RFile @ 429 NONAME - _ZN17CApaSecurityUtils16CheckAppSecurityERK7TPtrC16RiS3_ @ 430 NONAME - X @ 431 NONAME ABSENT - X @ 432 NONAME ABSENT - _ZN13RApaLsSession40ForceCommitNonNativeApplicationsUpdatesLEv @ 433 NONAME - _ZNK13RApaLsSession13RecognizeDataERK6TDesC8R22TDataRecognitionResult @ 434 NONAME - X @ 435 NONAME ABSENT - X @ 436 NONAME ABSENT - X @ 437 NONAME ABSENT - X @ 438 NONAME ABSENT - X @ 439 NONAME ABSENT - X @ 440 NONAME ABSENT - X @ 441 NONAME ABSENT - X @ 442 NONAME ABSENT - X @ 443 NONAME ABSENT - \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/aplist_legacyu.def --- a/appfw/apparchitecture/eabi/aplist_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -EXPORTS - _ZN11CApaAppData16CanUseScreenModeEi @ 1 NONAME - _ZN11CApaAppData16SetShortCaptionLERK7TDesC16 @ 2 NONAME - _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 3 NONAME - _ZN11CApaAppDataD0Ev @ 4 NONAME - _ZN11CApaAppDataD1Ev @ 5 NONAME - _ZN11CApaAppDataD2Ev @ 6 NONAME - _ZN11CApaAppList12RestartScanLEv @ 7 NONAME - _ZN11CApaAppList16StartIdleUpdateLEP19MApaAppListObserver @ 8 NONAME - _ZN11CApaAppList16StartIdleUpdateLEv @ 9 NONAME - _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 10 NONAME - _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 11 NONAME - _ZN11CApaAppList23AddCustomAppInfoInListLE4TUid9TLanguageRK7TDesC16 @ 12 NONAME - _ZN11CApaAppList24ResetForcedRegistrationsEv @ 13 NONAME - _ZN11CApaAppList28UpdateAppListByShortCaptionLEv @ 14 NONAME - _ZN11CApaAppList4NewLER3RFsii @ 15 NONAME - _ZN11CApaAppList4SelfEv @ 16 NONAME - _ZN11CApaAppList6PurgeLEv @ 17 NONAME - _ZN11CApaAppList8StopScanEi @ 18 NONAME - _ZN11CApaAppList9InitListLEP19MApaAppListObserver @ 19 NONAME - _ZN11CApaAppListD0Ev @ 20 NONAME - _ZN11CApaAppListD1Ev @ 21 NONAME - _ZN11CApaAppListD2Ev @ 22 NONAME - _ZN12TApaAppEntryC1Ev @ 23 NONAME - _ZN12TApaAppEntryC2Ev @ 24 NONAME - _ZN14CAppSidChecker18SetRescanCallBackLERK9TCallBack @ 25 NONAME - _ZN14CAppSidChecker9reserved1Ev @ 26 NONAME - _ZN14CAppSidChecker9reserved2Ev @ 27 NONAME - _ZN14CAppSidChecker9reserved3Ev @ 28 NONAME - _ZN14CAppSidCheckerD0Ev @ 29 NONAME - _ZN14CAppSidCheckerD1Ev @ 30 NONAME - _ZN14CAppSidCheckerD2Ev @ 31 NONAME - _ZN16CApaAppRegFinder12FindAllAppsLENS_10TScanScopeE @ 32 NONAME - _ZN16CApaAppRegFinder4NewLERK3RFs @ 33 NONAME - _ZN16CApaAppRegFinder5NewLCERK3RFs @ 34 NONAME - _ZN16CApaAppRegFinder5NextLER12TApaAppEntryRK12CDesC16Array @ 35 NONAME - _ZNK11CApaAppData10CapabilityER5TDes8 @ 36 NONAME - _ZNK11CApaAppData10IconSizesLEv @ 37 NONAME - _ZNK11CApaAppData10OpaqueDataEv @ 38 NONAME - _ZNK11CApaAppData10OwnedFilesEv @ 39 NONAME - _ZNK11CApaAppData11GetIconInfoERiS0_ @ 40 NONAME - _ZNK11CApaAppData12IconFileNameEv @ 41 NONAME - _ZNK11CApaAppData14NonMbmIconFileEv @ 42 NONAME - _ZNK11CApaAppData17ImplementsServiceE4TUid @ 43 NONAME - _ZNK11CApaAppData19ApplicationLanguageEv @ 44 NONAME - _ZNK11CApaAppData19DefaultScreenNumberEv @ 45 NONAME - _ZNK11CApaAppData20RegistrationFileNameEv @ 46 NONAME - _ZNK11CApaAppData20RegistrationFileUsedEv @ 47 NONAME - _ZNK11CApaAppData24NonNativeApplicationTypeEv @ 48 NONAME - _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 49 NONAME - _ZNK11CApaAppData4IconE5TSize @ 50 NONAME - _ZNK11CApaAppData4IconEi @ 51 NONAME - _ZNK11CApaAppData5ViewsEv @ 52 NONAME - _ZNK11CApaAppData8AppEntryEv @ 53 NONAME - _ZNK11CApaAppData8DataTypeERK9TDataType @ 54 NONAME - _ZNK11CApaAppData9IsPendingEv @ 55 NONAME - _ZNK11CApaAppList12AppDataByUidE4TUid @ 56 NONAME - _ZNK11CApaAppList17AppDataByFileNameERK7TDesC16 @ 57 NONAME - _ZNK11CApaAppList17AppScanInProgressEv @ 58 NONAME - _ZNK11CApaAppList17ServiceUidBufferLE4TUid @ 59 NONAME - _ZNK11CApaAppList19IsFirstScanCompleteEv @ 60 NONAME - _ZNK11CApaAppList19ServiceArrayBufferLE4TUid @ 61 NONAME - _ZNK11CApaAppList20IsIdleUpdateCompleteEv @ 62 NONAME - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataType @ 63 NONAME - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataTypePK4TUidRi @ 64 NONAME - _ZNK11CApaAppList23IsLanguageChangePendingEv @ 65 NONAME - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUid @ 66 NONAME - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUidRK9TDataType @ 67 NONAME - _ZNK11CApaAppList24ServiceOpaqueDataBufferLE4TUidS0_ @ 68 NONAME - _ZNK11CApaAppList5CountEv @ 69 NONAME - _ZNK11CApaAppList7NextAppEPK11CApaAppData @ 70 NONAME - _ZNK11CApaAppList7NextAppEPK11CApaAppDatai @ 71 NONAME - _ZNK11CApaAppList8FirstAppEi @ 72 NONAME - _ZNK11CApaAppList8FirstAppEv @ 73 NONAME - _ZNK15CApaAppViewData10IconSizesLEv @ 74 NONAME - _ZNK15CApaAppViewData10ScreenModeEv @ 75 NONAME - _ZNK15CApaAppViewData12IconFileNameEv @ 76 NONAME - _ZNK15CApaAppViewData14NonMbmIconFileEv @ 77 NONAME - _ZNK15CApaAppViewData3UidEv @ 78 NONAME - _ZNK15CApaAppViewData4IconERK5TSize @ 79 NONAME - _ZNK16CApaAppRegFinder9DriveListEv @ 80 NONAME - _ZTI11CApaAppData @ 81 NONAME - _ZTI11CApaAppList @ 82 NONAME - _ZTI12CApaAppEntry @ 83 NONAME - _ZTI14CAppSidChecker @ 84 NONAME - _ZTI15CApaAppViewData @ 85 NONAME - _ZTI16CApaAppRegFinder @ 86 NONAME - _ZTI17CApaAppInfoReader @ 87 NONAME - _ZTV11CApaAppData @ 88 NONAME - _ZTV11CApaAppList @ 89 NONAME - _ZTV12CApaAppEntry @ 90 NONAME - _ZTV14CAppSidChecker @ 91 NONAME - _ZTV15CApaAppViewData @ 92 NONAME - _ZTV16CApaAppRegFinder @ 93 NONAME - _ZTV17CApaAppInfoReader @ 94 NONAME - _ZN11CApaAppData11SetCaptionLERK7TDesC16 @ 95 NONAME - _ZN11CApaAppData9SetIconsLERK7TDesC16i @ 96 NONAME - _ZN11CApaAppList36UpdateAppListByIconCaptionOverridesLEv @ 97 NONAME - _ZN11CApaAppList20AppListUpdatePendingEv @ 98 NONAME - _ZN11CApaAppList19UninstalledAppArrayEv @ 99 NONAME - X @ 100 NONAME ABSENT - X @ 101 NONAME ABSENT - X @ 102 NONAME ABSENT - X @ 103 NONAME ABSENT - X @ 104 NONAME ABSENT - X @ 105 NONAME ABSENT - X @ 106 NONAME ABSENT - X @ 107 NONAME ABSENT \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/aplistu.def --- a/appfw/apparchitecture/eabi/aplistu.def Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/eabi/aplistu.def Wed Sep 01 12:24:48 2010 +0100 @@ -1,22 +1,22 @@ EXPORTS _ZN11CApaAppData16CanUseScreenModeEi @ 1 NONAME _ZN11CApaAppData16SetShortCaptionLERK7TDesC16 @ 2 NONAME - _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 3 NONAME ABSENT + _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 3 NONAME _ZN11CApaAppDataD0Ev @ 4 NONAME _ZN11CApaAppDataD1Ev @ 5 NONAME _ZN11CApaAppDataD2Ev @ 6 NONAME - _ZN11CApaAppList12RestartScanLEv @ 7 NONAME ABSENT + _ZN11CApaAppList12RestartScanLEv @ 7 NONAME _ZN11CApaAppList16StartIdleUpdateLEP19MApaAppListObserver @ 8 NONAME _ZN11CApaAppList16StartIdleUpdateLEv @ 9 NONAME - _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 10 NONAME ABSENT - _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 11 NONAME ABSENT + _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 10 NONAME + _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 11 NONAME _ZN11CApaAppList23AddCustomAppInfoInListLE4TUid9TLanguageRK7TDesC16 @ 12 NONAME - _ZN11CApaAppList24ResetForcedRegistrationsEv @ 13 NONAME ABSENT + _ZN11CApaAppList24ResetForcedRegistrationsEv @ 13 NONAME _ZN11CApaAppList28UpdateAppListByShortCaptionLEv @ 14 NONAME _ZN11CApaAppList4NewLER3RFsii @ 15 NONAME _ZN11CApaAppList4SelfEv @ 16 NONAME - _ZN11CApaAppList6PurgeLEv @ 17 NONAME ABSENT - _ZN11CApaAppList8StopScanEi @ 18 NONAME ABSENT + _ZN11CApaAppList6PurgeLEv @ 17 NONAME + _ZN11CApaAppList8StopScanEi @ 18 NONAME _ZN11CApaAppList9InitListLEP19MApaAppListObserver @ 19 NONAME _ZN11CApaAppListD0Ev @ 20 NONAME _ZN11CApaAppListD1Ev @ 21 NONAME @@ -30,10 +30,10 @@ _ZN14CAppSidCheckerD0Ev @ 29 NONAME _ZN14CAppSidCheckerD1Ev @ 30 NONAME _ZN14CAppSidCheckerD2Ev @ 31 NONAME - _ZN16CApaAppRegFinder12FindAllAppsLENS_10TScanScopeE @ 32 NONAME ABSENT - _ZN16CApaAppRegFinder4NewLERK3RFs @ 33 NONAME ABSENT - _ZN16CApaAppRegFinder5NewLCERK3RFs @ 34 NONAME ABSENT - _ZN16CApaAppRegFinder5NextLER12TApaAppEntryRK12CDesC16Array @ 35 NONAME ABSENT + _ZN16CApaAppRegFinder12FindAllAppsLENS_10TScanScopeE @ 32 NONAME + _ZN16CApaAppRegFinder4NewLERK3RFs @ 33 NONAME + _ZN16CApaAppRegFinder5NewLCERK3RFs @ 34 NONAME + _ZN16CApaAppRegFinder5NextLER12TApaAppEntryRK12CDesC16Array @ 35 NONAME _ZNK11CApaAppData10CapabilityER5TDes8 @ 36 NONAME _ZNK11CApaAppData10IconSizesLEv @ 37 NONAME _ZNK11CApaAppData10OpaqueDataEv @ 38 NONAME @@ -44,16 +44,16 @@ _ZNK11CApaAppData17ImplementsServiceE4TUid @ 43 NONAME _ZNK11CApaAppData19ApplicationLanguageEv @ 44 NONAME _ZNK11CApaAppData19DefaultScreenNumberEv @ 45 NONAME - _ZNK11CApaAppData20RegistrationFileNameEv @ 46 NONAME ABSENT - _ZNK11CApaAppData20RegistrationFileUsedEv @ 47 NONAME ABSENT + _ZNK11CApaAppData20RegistrationFileNameEv @ 46 NONAME + _ZNK11CApaAppData20RegistrationFileUsedEv @ 47 NONAME _ZNK11CApaAppData24NonNativeApplicationTypeEv @ 48 NONAME - _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 49 NONAME ABSENT + _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 49 NONAME _ZNK11CApaAppData4IconE5TSize @ 50 NONAME _ZNK11CApaAppData4IconEi @ 51 NONAME _ZNK11CApaAppData5ViewsEv @ 52 NONAME _ZNK11CApaAppData8AppEntryEv @ 53 NONAME _ZNK11CApaAppData8DataTypeERK9TDataType @ 54 NONAME - _ZNK11CApaAppData9IsPendingEv @ 55 NONAME ABSENT + _ZNK11CApaAppData9IsPendingEv @ 55 NONAME _ZNK11CApaAppList12AppDataByUidE4TUid @ 56 NONAME _ZNK11CApaAppList17AppDataByFileNameERK7TDesC16 @ 57 NONAME _ZNK11CApaAppList17AppScanInProgressEv @ 58 NONAME @@ -78,31 +78,24 @@ _ZNK15CApaAppViewData14NonMbmIconFileEv @ 77 NONAME _ZNK15CApaAppViewData3UidEv @ 78 NONAME _ZNK15CApaAppViewData4IconERK5TSize @ 79 NONAME - _ZNK16CApaAppRegFinder9DriveListEv @ 80 NONAME ABSENT + _ZNK16CApaAppRegFinder9DriveListEv @ 80 NONAME _ZTI11CApaAppData @ 81 NONAME _ZTI11CApaAppList @ 82 NONAME _ZTI12CApaAppEntry @ 83 NONAME _ZTI14CAppSidChecker @ 84 NONAME _ZTI15CApaAppViewData @ 85 NONAME - _ZTI16CApaAppRegFinder @ 86 NONAME ABSENT + _ZTI16CApaAppRegFinder @ 86 NONAME _ZTI17CApaAppInfoReader @ 87 NONAME _ZTV11CApaAppData @ 88 NONAME _ZTV11CApaAppList @ 89 NONAME _ZTV12CApaAppEntry @ 90 NONAME _ZTV14CAppSidChecker @ 91 NONAME _ZTV15CApaAppViewData @ 92 NONAME - _ZTV16CApaAppRegFinder @ 93 NONAME ABSENT + _ZTV16CApaAppRegFinder @ 93 NONAME _ZTV17CApaAppInfoReader @ 94 NONAME _ZN11CApaAppData11SetCaptionLERK7TDesC16 @ 95 NONAME _ZN11CApaAppData9SetIconsLERK7TDesC16i @ 96 NONAME _ZN11CApaAppList36UpdateAppListByIconCaptionOverridesLEv @ 97 NONAME - _ZN11CApaAppList20AppListUpdatePendingEv @ 98 NONAME ABSENT + _ZN11CApaAppList20AppListUpdatePendingEv @ 98 NONAME _ZN11CApaAppList19UninstalledAppArrayEv @ 99 NONAME - _ZN11CApaAppData4NewLERKN4Usif28CApplicationRegistrationDataER3RFsRKNS0_26RSoftwareComponentRegistryE @ 100 NONAME - _ZN11CApaAppList22FindAndAddSpecificAppLE4TUid @ 101 NONAME - _ZN11CApaAppList18InitializeApplistLEP19MApaAppListObserver @ 102 NONAME - _ZN11CApaAppData19IsLangChangePendingEv @ 103 NONAME - _ZN11CApaAppList14UpdateApplistLEP19MApaAppListObserverP6RArrayI17TApaAppUpdateInfoE4TUid @ 104 NONAME - _ZN11CApaAppList15UpdatedAppsInfoEv @ 105 NONAME - _ZN11CApaAppList28UpdateApplistByForceRegAppsLER13RPointerArrayIN4Usif28CApplicationRegistrationDataEE @ 106 NONAME diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/apserv_legacyu.def --- a/appfw/apparchitecture/eabi/apserv_legacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -EXPORTS - _Z23NameApaServServerThreadv @ 1 NONAME - _Z25NameApaServStartSemaphorev @ 2 NONAME - _ZN13CApaFsMonitor10SetBlockedEi @ 3 NONAME - _ZN13CApaFsMonitor4NewLER3RFsRK7TDesC169TCallBack @ 4 NONAME - _ZN13CApaFsMonitor5StartE11TNotifyType @ 5 NONAME - _ZN13CApaFsMonitorD0Ev @ 6 NONAME - _ZN13CApaFsMonitorD1Ev @ 7 NONAME - _ZN13CApaFsMonitorD2Ev @ 8 NONAME - _ZN16CApaAppArcServer4NewLEP11CApaAppListP18CApaFileRecognizer @ 9 NONAME ABSENT - _ZN16CApaAppArcServer4NewLEv @ 10 NONAME - _ZN16CApaAppArcServerD0Ev @ 11 NONAME - _ZN16CApaAppArcServerD1Ev @ 12 NONAME - _ZN16CApaAppArcServerD2Ev @ 13 NONAME - _ZNK13CApaFsMonitor10NotifyTypeEv @ 14 NONAME - _ZTI13CApaFsMonitor @ 15 NONAME ; ## - _ZTI15CApaEComMonitor @ 16 NONAME ; ## - _ZTI16CApaAppArcServer @ 17 NONAME ; ## - _ZTI20TDesCArrayItemWriter @ 18 NONAME ABSENT ; ## - _ZTI20TSizeArrayItemWriter @ 19 NONAME ABSENT ; ## - _ZTI22CApaAppListServSession @ 20 NONAME ; ## - _ZTI24TViewDataArrayItemWriter @ 21 NONAME ABSENT ; ## - _ZTV13CApaFsMonitor @ 22 NONAME ; ## - _ZTV15CApaEComMonitor @ 23 NONAME ; ## - _ZTV16CApaAppArcServer @ 24 NONAME ; ## - _ZTV20TDesCArrayItemWriter @ 25 NONAME ABSENT ; ## - _ZTV20TSizeArrayItemWriter @ 26 NONAME ABSENT ; ## - _ZTV22CApaAppListServSession @ 27 NONAME ; ## - _ZTV24TViewDataArrayItemWriter @ 28 NONAME ABSENT ; ## - _ZN13CApaFsMonitor12AddLocationLERK7TDesC16 @ 29 NONAME - _ZTIN13CApaFsMonitor14CApaFsNotifierE @ 30 NONAME ; ## - _ZTVN13CApaFsMonitor14CApaFsNotifierE @ 31 NONAME ; ## - _ZN16CApaAppArcServer4SelfEv @ 32 NONAME - _ZN13CApaFsMonitor6CancelEv @ 33 NONAME - _Z18ApaServThreadStartPv @ 34 NONAME - _ZTI18CRecognitionResult @ 35 NONAME ABSENT ; ## - _ZTI20CApsRecognitionCache @ 36 NONAME ; ## - _ZTI20CCacheDirectoryEntry @ 37 NONAME ; ## - _ZTI23CFileRecognitionUtility @ 38 NONAME ABSENT ; ## - _ZTI25CRecognitionResultHashMap @ 39 NONAME ; ## - _ZTI27CDirectoryRecognitionResult @ 40 NONAME ABSENT ; ## - _ZTI30CRecognitionResultHashMapEntry @ 41 NONAME ; ## - _ZTV18CRecognitionResult @ 42 NONAME ABSENT ; ## - _ZTV20CApsRecognitionCache @ 43 NONAME ; ## - _ZTV20CCacheDirectoryEntry @ 44 NONAME ; ## - _ZTV23CFileRecognitionUtility @ 45 NONAME ABSENT ; ## - _ZTV25CRecognitionResultHashMap @ 46 NONAME ; ## - _ZTV27CDirectoryRecognitionResult @ 47 NONAME ABSENT ; ## - _ZTV30CRecognitionResultHashMapEntry @ 48 NONAME ; ## - _ZN16CUpdatedAppsList28CloseAndDeletePermanentStoreEv @ 49 NONAME ABSENT - _ZN16CUpdatedAppsListD0Ev @ 50 NONAME ABSENT - _ZN16CUpdatedAppsListD1Ev @ 51 NONAME ABSENT - _ZN16CUpdatedAppsListD2Ev @ 52 NONAME ABSENT - _ZTI16CUpdatedAppsList @ 53 NONAME ABSENT ; ## - _ZTV16CUpdatedAppsList @ 54 NONAME ABSENT ; ## - _ZNK16CUpdatedAppsList8IsInListERK7TDesC16 @ 55 NONAME ABSENT - _ZTIN16CUpdatedAppsList15CUpdatedAppInfoE @ 56 NONAME ABSENT ; ## - _ZTVN16CUpdatedAppsList15CUpdatedAppInfoE @ 57 NONAME ABSENT ; ## - _ZN16CApaAppArcServer14RescanCallBackEv @ 58 NONAME - _ZTI18CCustomAppInfoData @ 59 NONAME ABSENT ; ## - _ZTV18CCustomAppInfoData @ 60 NONAME ABSENT ; ## - KApaLoadDataRecognizersOnDemand @ 61 NONAME DATA 4 - KApaUnloadRecognizersTimeout @ 62 NONAME DATA 4 - _ZN16CApaAppArcServer27HandleInstallationEndEventLEv @ 63 NONAME - _ZN16CApaAppArcServer28HandleInstallationStartEventEv @ 64 NONAME - KApaDrivesToMonitor @ 65 NONAME DATA 4 - KApaLoadMbmIconsOnDemand @ 66 NONAME DATA 4 - _ZTI21CApaAppArcServSession @ 67 NONAME - _ZTV21CApaAppArcServSession @ 68 NONAME - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/eabi/ticonforleaks_leagacyu.def --- a/appfw/apparchitecture/eabi/ticonforleaks_leagacyu.def Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,433 +0,0 @@ -EXPORTS - KMinApplicationStackSize @ 1 NONAME DATA 4 - _Z16StartupApaServerR14MApaAppStarter @ 2 NONAME ABSENT - _Z23MinApplicationStackSizev @ 3 NONAME - _Z23StartupApaServerProcessv @ 4 NONAME - _ZN11CApaAppData16CanUseScreenModeEi @ 5 NONAME - _ZN11CApaAppData16SetShortCaptionLERK7TDesC16 @ 6 NONAME - _ZN11CApaAppData4NewLERK12TApaAppEntryR3RFs @ 7 NONAME - _ZN11CApaAppDataD0Ev @ 8 NONAME - _ZN11CApaAppDataD1Ev @ 9 NONAME - _ZN11CApaAppDataD2Ev @ 10 NONAME - _ZN11CApaAppList12RestartScanLEv @ 11 NONAME - _ZN11CApaAppList14CompareStringsERK7HBufC16S2_ @ 12 NONAME ABSENT - _ZN11CApaAppList15UpdatedAppsListEv @ 13 NONAME ABSENT - _ZN11CApaAppList16StartIdleUpdateLEP19MApaAppListObserver @ 14 NONAME - _ZN11CApaAppList16StartIdleUpdateLEv @ 15 NONAME - _ZN11CApaAppList18SetUpdatedAppsListEP16CUpdatedAppsList @ 16 NONAME ABSENT - _ZN11CApaAppList22AddForcedRegistrationLEP7HBufC16 @ 17 NONAME ABSENT - _ZN11CApaAppList22FindAndAddSpecificAppLEP16CApaAppRegFinder4TUid @ 18 NONAME - _ZN11CApaAppList24ResetForcedRegistrationsEv @ 19 NONAME - _ZN11CApaAppList4NewLER3RFsP16CApaAppRegFinderii @ 20 NONAME ABSENT - _ZN11CApaAppList4SelfEv @ 21 NONAME - _ZN11CApaAppList6PurgeLEv @ 22 NONAME - _ZN11CApaAppList8StopScanEi @ 23 NONAME - _ZN11CApaAppList9InitListLEP19MApaAppListObserver @ 24 NONAME - _ZN11CApaAppListD0Ev @ 25 NONAME - _ZN11CApaAppListD1Ev @ 26 NONAME - _ZN11CApaAppListD2Ev @ 27 NONAME - _ZN12TApaTaskList10CycleTasksE4TUidNS_15TCycleDirectionE @ 28 NONAME - _ZN12TApaTaskList7FindAppE4TUid @ 29 NONAME - _ZN12TApaTaskList7FindAppERK7TDesC16 @ 30 NONAME - _ZN12TApaTaskList7FindDocERK7TDesC16 @ 31 NONAME - _ZN12TApaTaskList9FindByPosEi @ 32 NONAME - _ZN12TApaTaskListC1ER10RWsSession @ 33 NONAME - _ZN12TApaTaskListC2ER10RWsSession @ 34 NONAME - _ZN13RApaLsSession12CancelNotifyEv @ 35 NONAME - _ZN13RApaLsSession13SetFsSessionLER3RFs @ 36 NONAME - _ZN13RApaLsSession13StartDocumentER5RFile4TUidR9TThreadIdP14TRequestStatus @ 37 NONAME - _ZN13RApaLsSession13StartDocumentER5RFileR9TThreadIdP14TRequestStatus @ 38 NONAME - _ZN13RApaLsSession13StartDocumentER5RFileRK9TDataTypeR9TThreadIdP14TRequestStatus @ 39 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC164TUidR9TThreadIdNS_11TLaunchTypeE @ 40 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC16R9TThreadIdNS_11TLaunchTypeE @ 41 NONAME - _ZN13RApaLsSession13StartDocumentERK7TDesC16RK9TDataTypeR9TThreadIdNS_11TLaunchTypeE @ 42 NONAME - _ZN13RApaLsSession14ClearFsSessionEv @ 43 NONAME - _ZN13RApaLsSession14CreateDocumentERK7TDesC164TUidR9TThreadIdNS_11TLaunchTypeE @ 44 NONAME - _ZN13RApaLsSession15RecognizeFilesLERK7TDesC16R27CDataRecognitionResultArrayR14TRequestStatus @ 45 NONAME - _ZN13RApaLsSession15RecognizeFilesLERK7TDesC16RK6TDesC8R27CDataRecognitionResultArrayR14TRequestStatus @ 46 NONAME - _ZN13RApaLsSession17DeleteDataMappingERK9TDataType @ 47 NONAME - _ZN13RApaLsSession17DeleteDataMappingERK9TDataType4TUid @ 48 NONAME - _ZN13RApaLsSession17ForceRegistrationERK13RPointerArrayI7TDesC16E @ 49 NONAME - _ZN13RApaLsSession17InsertDataMappingERK9TDataTypel4TUid @ 50 NONAME - _ZN13RApaLsSession17InsertDataMappingERK9TDataTypel4TUidS3_ @ 51 NONAME - _ZN13RApaLsSession17SetMaxDataBufSizeEi @ 52 NONAME - _ZN13RApaLsSession18SetAppShortCaptionERK7TDesC169TLanguage4TUid @ 53 NONAME - _ZN13RApaLsSession20CancelRecognizeFilesEv @ 54 NONAME - _ZN13RApaLsSession21SetAcceptedConfidenceEi @ 55 NONAME - _ZN13RApaLsSession23RApaLsSession_Reserved1Ev @ 56 NONAME - _ZN13RApaLsSession23RApaLsSession_Reserved2Ev @ 57 NONAME - _ZN13RApaLsSession25InsertDataMappingIfHigherERK9TDataTypel4TUidRi @ 58 NONAME - _ZN13RApaLsSession25NotifyOnDataMappingChangeER14TRequestStatus @ 59 NONAME - _ZN13RApaLsSession29RegisterNonNativeApplicationLE4TUidRK10TDriveUnitR34CApaRegistrationResourceFileWriterP33CApaLocalisableResourceFileWriterPK5RFile @ 60 NONAME - _ZN13RApaLsSession31CancelNotifyOnDataMappingChangeEv @ 61 NONAME - _ZN13RApaLsSession31DeregisterNonNativeApplicationLE4TUid @ 62 NONAME - _ZN13RApaLsSession33RegisterNonNativeApplicationTypeLE4TUidRK7TDesC16 @ 63 NONAME - _ZN13RApaLsSession35CommitNonNativeApplicationsUpdatesLEv @ 64 NONAME - _ZN13RApaLsSession35DeregisterNonNativeApplicationTypeLE4TUid @ 65 NONAME - _ZN13RApaLsSession36PrepareNonNativeApplicationsUpdatesLEv @ 66 NONAME - _ZN13RApaLsSession36RollbackNonNativeApplicationsUpdatesEv @ 67 NONAME - _ZN13RApaLsSession5CloseEv @ 68 NONAME - _ZN13RApaLsSession7ConnectEv @ 69 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLine @ 70 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLineR9TThreadId @ 71 NONAME - _ZN13RApaLsSession8StartAppERK15CApaCommandLineR9TThreadIdP14TRequestStatus @ 72 NONAME - _ZN13RApaLsSession9FsSessionEv @ 73 NONAME - _ZN13RApaLsSession9SetNotifyEiR14TRequestStatus @ 74 NONAME - _ZN13RApaLsSessionC1Ev @ 75 NONAME - _ZN13RApaLsSessionC2Ev @ 76 NONAME - _ZN16CApaMaskedBitmap12InternalizeLER11RReadStream @ 77 NONAME - _ZN16CApaMaskedBitmap13SetMaskBitmapEP10CFbsBitmap @ 78 NONAME - _ZN16CApaMaskedBitmap4NewLEPKS_ @ 79 NONAME - _ZN16CApaMaskedBitmap5NewLCEv @ 80 NONAME - _ZN16CApaMaskedBitmapD0Ev @ 81 NONAME - _ZN16CApaMaskedBitmapD1Ev @ 82 NONAME - _ZN16CApaMaskedBitmapD2Ev @ 83 NONAME - _ZN17CApaSystemControl7CreateLEv @ 84 NONAME - _ZN18TApaPictureFactoryC1EP11CApaProcess @ 85 NONAME - _ZN18TApaPictureFactoryC1Ev @ 86 NONAME - _ZN18TApaPictureFactoryC2EP11CApaProcess @ 87 NONAME - _ZN18TApaPictureFactoryC2Ev @ 88 NONAME - _ZN19CApaAppListNotifier4NewLEP23MApaAppListServObserverN7CActive9TPriorityE @ 89 NONAME - _ZN19CApaAppListNotifierD0Ev @ 90 NONAME - _ZN19CApaAppListNotifierD1Ev @ 91 NONAME - _ZN19CApaAppListNotifierD2Ev @ 92 NONAME - _ZN19CApaWindowGroupName11SetAppReadyEi @ 93 NONAME - _ZN19CApaWindowGroupName11SetCaptionLERK7TDesC16 @ 94 NONAME - _ZN19CApaWindowGroupName11SetDocNameLERK7TDesC16 @ 95 NONAME - _ZN19CApaWindowGroupName12FindByAppUidE4TUidR10RWsSessionRi @ 96 NONAME - _ZN19CApaWindowGroupName13FindByCaptionERK7TDesC16R10RWsSessionRi @ 97 NONAME - _ZN19CApaWindowGroupName13FindByDocNameERK7TDesC16R10RWsSessionRi @ 98 NONAME - _ZN19CApaWindowGroupName17SetDocNameIsAFileEi @ 99 NONAME - _ZN19CApaWindowGroupName18ConstructFromWgIdLEi @ 100 NONAME - _ZN19CApaWindowGroupName18SetWindowGroupNameEP7HBufC16 @ 101 NONAME - _ZN19CApaWindowGroupName19SetWindowGroupNameLERK7TDesC16 @ 102 NONAME - _ZN19CApaWindowGroupName26SetRespondsToShutdownEventEi @ 103 NONAME - _ZN19CApaWindowGroupName29SetRespondsToSwitchFilesEventEi @ 104 NONAME - _ZN19CApaWindowGroupName3NewERK10RWsSessionP7HBufC16 @ 105 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSession @ 106 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSessionRK7TDesC16 @ 107 NONAME - _ZN19CApaWindowGroupName4NewLERK10RWsSessioni @ 108 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSession @ 109 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSessionRK7TDesC16 @ 110 NONAME - _ZN19CApaWindowGroupName5NewLCERK10RWsSessioni @ 111 NONAME - _ZN19CApaWindowGroupName7SetBusyEi @ 112 NONAME - _ZN19CApaWindowGroupName9SetAppUidE4TUid @ 113 NONAME - _ZN19CApaWindowGroupName9SetHiddenEi @ 114 NONAME - _ZN19CApaWindowGroupName9SetSystemEi @ 115 NONAME - _ZN19CApaWindowGroupNameD0Ev @ 116 NONAME - _ZN19CApaWindowGroupNameD1Ev @ 117 NONAME - _ZN19CApaWindowGroupNameD2Ev @ 118 NONAME - _ZN21CApaAppInfoFileWriter11AddCaptionLE9TLanguageRK7TDesC16 @ 119 NONAME ABSENT - _ZN21CApaAppInfoFileWriter12AddDataTypeLERK21TDataTypeWithPriority @ 120 NONAME ABSENT - _ZN21CApaAppInfoFileWriter13SetCapabilityERK6TDesC8 @ 121 NONAME ABSENT - _ZN21CApaAppInfoFileWriter6StoreLEv @ 122 NONAME ABSENT - _ZN21CApaAppInfoFileWriter8AddIconLER16CApaMaskedBitmap @ 123 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD0Ev @ 124 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD1Ev @ 125 NONAME ABSENT - _ZN21CApaAppInfoFileWriterD2Ev @ 126 NONAME ABSENT - _ZN21CApaSystemControlList4NewLER3RFs @ 127 NONAME - _ZN21CApaSystemControlList7UpdateLEv @ 128 NONAME - _ZN21CApaSystemControlListD0Ev @ 129 NONAME - _ZN21CApaSystemControlListD1Ev @ 130 NONAME - _ZN21CApaSystemControlListD2Ev @ 131 NONAME - _ZN22ForJavaMIDletInstaller18GetJavaMIDletInfoLER3RFsRK7TDesC16RmS5_ @ 132 NONAME ABSENT - _ZN22ForJavaMIDletInstaller28NewInterimFormatFileWriterLCER3RFsRK7TDesC164TUidmi @ 133 NONAME ABSENT - _ZN22ForJavaMIDletInstaller33CheckInterimFormatFileNotCorruptLER5RFile @ 134 NONAME ABSENT - _ZN23MApaAppListServObserver33MApaAppListServObserver_Reserved1Ev @ 135 NONAME - _ZN23MApaAppListServObserver33MApaAppListServObserver_Reserved2Ev @ 136 NONAME - _ZN23MApaAppListServObserverC2Ev @ 137 NONAME - _ZN27CDataRecognitionResultArrayC1Ev @ 138 NONAME - _ZN27CDataRecognitionResultArrayC2Ev @ 139 NONAME - _ZN27CDataRecognitionResultArrayD0Ev @ 140 NONAME - _ZN27CDataRecognitionResultArrayD1Ev @ 141 NONAME - _ZN27CDataRecognitionResultArrayD2Ev @ 142 NONAME - _ZN31TIconLoaderAndIconArrayForLeaks27TestIconLoaderAndIconArrayLEv @ 143 NONAME - _ZN33CApaLocalisableResourceFileWriter4NewLERK7TDesC16S2_iS2_ @ 144 NONAME - _ZN33CApaLocalisableResourceFileWriterD0Ev @ 145 NONAME - _ZN33CApaLocalisableResourceFileWriterD1Ev @ 146 NONAME - _ZN33CApaLocalisableResourceFileWriterD2Ev @ 147 NONAME - _ZN34CApaRegistrationResourceFileWriter12AddDataTypeLEiRK6TDesC8 @ 148 NONAME - _ZN34CApaRegistrationResourceFileWriter13SetGroupNameLERK7TDesC16 @ 149 NONAME - _ZN34CApaRegistrationResourceFileWriter14SetOpaqueDataLERK6TDesC8 @ 150 NONAME - _ZN34CApaRegistrationResourceFileWriter15SetAppIsHiddenLEi @ 151 NONAME - _ZN34CApaRegistrationResourceFileWriter17SetEmbeddabilityLEN17TApaAppCapability14TEmbeddabilityE @ 152 NONAME - _ZN34CApaRegistrationResourceFileWriter19SetSupportsNewFileLEi @ 153 NONAME - _ZN34CApaRegistrationResourceFileWriter21AddFileOwnershipInfoLERK7TDesC16 @ 154 NONAME - _ZN34CApaRegistrationResourceFileWriter22SetLaunchInBackgroundLEi @ 155 NONAME - _ZN34CApaRegistrationResourceFileWriter23SetDefaultScreenNumberLEi @ 156 NONAME - _ZN34CApaRegistrationResourceFileWriter4NewLE4TUidRK7TDesC16j @ 157 NONAME - _ZN34CApaRegistrationResourceFileWriterD0Ev @ 158 NONAME - _ZN34CApaRegistrationResourceFileWriterD1Ev @ 159 NONAME - _ZN34CApaRegistrationResourceFileWriterD2Ev @ 160 NONAME - _ZN8ApaUtils24HandleAsRegistrationFileERK8TUidType @ 161 NONAME ABSENT - _ZN8CApaDoor16SetFormatToIconLEv @ 162 NONAME - _ZN8CApaDoor17SetFormatToGlassLEv @ 163 NONAME - _ZN8CApaDoor25SetFormatToTemporaryIconLEi @ 164 NONAME - _ZN8CApaDoor4NewLER3RFsR12CApaDocumentRK5TSize @ 165 NONAME - _ZN8CApaDoor4NewLER3RFsRK12CStreamStore9TStreamIdR11CApaProcess @ 166 NONAME - _ZN8CApaDoor5NewLCER3RFsR12CApaDocumentRK5TSize @ 167 NONAME - _ZN8CApaDoor8RestoreLERK12CStreamStore9TStreamId @ 168 NONAME - _ZN8CApaDoor9DocumentLEi @ 169 NONAME - _ZN8CApaDoorD0Ev @ 170 NONAME - _ZN8CApaDoorD1Ev @ 171 NONAME - _ZN8CApaDoorD2Ev @ 172 NONAME - _ZN8TApaTask11SendMessageE4TUidRK6TDesC8 @ 173 NONAME - _ZN8TApaTask14SwitchOpenFileERK7TDesC16 @ 174 NONAME - _ZN8TApaTask15SendSystemEventE15TApaSystemEvent @ 175 NONAME - _ZN8TApaTask16SendToBackgroundEv @ 176 NONAME - _ZN8TApaTask16SwitchCreateFileERK7TDesC16 @ 177 NONAME - _ZN8TApaTask17BringToForegroundEv @ 178 NONAME - _ZN8TApaTask7EndTaskEv @ 179 NONAME - _ZN8TApaTask7SendKeyERK9TKeyEvent @ 180 NONAME - _ZN8TApaTask7SendKeyEii @ 181 NONAME - _ZN8TApaTask7SetWgIdEi @ 182 NONAME - _ZN8TApaTask8KillTaskEv @ 183 NONAME - _ZN8TApaTaskC1ER10RWsSession @ 184 NONAME - _ZN8TApaTaskC2ER10RWsSession @ 185 NONAME - _ZNK11CApaAppData10CapabilityER5TDes8 @ 186 NONAME - _ZNK11CApaAppData10IconSizesLEv @ 187 NONAME - _ZNK11CApaAppData10OpaqueDataEv @ 188 NONAME - _ZNK11CApaAppData10OwnedFilesEv @ 189 NONAME - _ZNK11CApaAppData11GetIconInfoERiS0_ @ 190 NONAME - _ZNK11CApaAppData12IconFileNameEv @ 191 NONAME - _ZNK11CApaAppData14NonMbmIconFileEv @ 192 NONAME - _ZNK11CApaAppData17ImplementsServiceE4TUid @ 193 NONAME - _ZNK11CApaAppData19ApplicationLanguageEv @ 194 NONAME - _ZNK11CApaAppData19DefaultScreenNumberEv @ 195 NONAME - _ZNK11CApaAppData20RegistrationFileNameEv @ 196 NONAME - _ZNK11CApaAppData20RegistrationFileUsedEv @ 197 NONAME - _ZNK11CApaAppData24NonNativeApplicationTypeEv @ 198 NONAME - _ZNK11CApaAppData27LocalisableResourceFileNameEv @ 199 NONAME - _ZNK11CApaAppData4IconE5TSize @ 200 NONAME - _ZNK11CApaAppData4IconEi @ 201 NONAME - _ZNK11CApaAppData5ViewsEv @ 202 NONAME - _ZNK11CApaAppData8AppEntryEv @ 203 NONAME - _ZNK11CApaAppData8DataTypeERK9TDataType @ 204 NONAME - _ZNK11CApaAppData9IsPendingEv @ 205 NONAME - _ZNK11CApaAppList12AppDataByUidE4TUid @ 206 NONAME - _ZNK11CApaAppList17AppDataByFileNameERK7TDesC16 @ 207 NONAME - _ZNK11CApaAppList17AppScanInProgressEv @ 208 NONAME - _ZNK11CApaAppList17ServiceUidBufferLE4TUid @ 209 NONAME - _ZNK11CApaAppList19IsFirstScanCompleteEv @ 210 NONAME - _ZNK11CApaAppList19ServiceArrayBufferLE4TUid @ 211 NONAME - _ZNK11CApaAppList20IsIdleUpdateCompleteEv @ 212 NONAME - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataType @ 213 NONAME - _ZNK11CApaAppList21PreferredDataHandlerLERK9TDataTypePK4TUidRi @ 214 NONAME - _ZNK11CApaAppList23IsLanguageChangePendingEv @ 215 NONAME - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUid @ 216 NONAME - _ZNK11CApaAppList23ServiceImplArrayBufferLE4TUidRK9TDataType @ 217 NONAME - _ZNK11CApaAppList24ServiceOpaqueDataBufferLE4TUidS0_ @ 218 NONAME - _ZNK11CApaAppList5CountEv @ 219 NONAME - _ZNK11CApaAppList7NextAppEPK11CApaAppData @ 220 NONAME - _ZNK11CApaAppList7NextAppEPK11CApaAppDatai @ 221 NONAME - _ZNK11CApaAppList8FirstAppEi @ 222 NONAME - _ZNK11CApaAppList8FirstAppEv @ 223 NONAME - _ZNK13RApaLsSession10GetAllAppsEi @ 224 NONAME - _ZNK13RApaLsSession10GetAllAppsEv @ 225 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUid5TSizeR16CApaMaskedBitmap @ 226 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUidR5RFile @ 227 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUidRP7HBufC16 @ 228 NONAME - _ZNK13RApaLsSession10GetAppIconE4TUidiR16CApaMaskedBitmap @ 229 NONAME - _ZNK13RApaLsSession10GetAppInfoER11TApaAppInfo4TUid @ 230 NONAME - _ZNK13RApaLsSession10GetAppTypeER4TUidS0_ @ 231 NONAME - _ZNK13RApaLsSession10GetNextAppER11TApaAppInfo @ 232 NONAME - _ZNK13RApaLsSession10GetNextAppER11TApaAppInfoi @ 233 NONAME - _ZNK13RApaLsSession11GetAppViewsER13CArrayFixFlatI15TApaAppViewInfoE4TUid @ 234 NONAME - _ZNK13RApaLsSession13GetServerAppsE4TUid @ 235 NONAME - _ZNK13RApaLsSession13GetServerAppsE4TUidi @ 236 NONAME - _ZNK13RApaLsSession13RecognizeDataERK5RFileR22TDataRecognitionResult @ 237 NONAME - _ZNK13RApaLsSession13RecognizeDataERK7TDesC16RK6TDesC8R22TDataRecognitionResult @ 238 NONAME - _ZNK13RApaLsSession14AppForDataTypeERK9TDataTypeR4TUid @ 239 NONAME - _ZNK13RApaLsSession14AppForDocumentERK5RFileR4TUidR9TDataType @ 240 NONAME - _ZNK13RApaLsSession14AppForDocumentERK7TDesC16R4TUidR9TDataType @ 241 NONAME - _ZNK13RApaLsSession14GetAppViewIconE4TUidS0_RK5TSizeR16CApaMaskedBitmap @ 242 NONAME - _ZNK13RApaLsSession14GetAppViewIconE4TUidS0_RP7HBufC16 @ 243 NONAME - _ZNK13RApaLsSession15GetAppIconSizesE4TUidR13CArrayFixFlatI5TSizeE @ 244 NONAME - _ZNK13RApaLsSession15GetAppServicesLE4TUidR13CArrayFixFlatIS0_E @ 245 NONAME - _ZNK13RApaLsSession15GetFilteredAppsERK23TApaEmbeddabilityFilter @ 246 NONAME - _ZNK13RApaLsSession15GetFilteredAppsERK23TApaEmbeddabilityFilteri @ 247 NONAME - _ZNK13RApaLsSession15GetFilteredAppsEjj @ 248 NONAME - _ZNK13RApaLsSession15GetFilteredAppsEjji @ 249 NONAME - _ZNK13RApaLsSession15RecognizeFilesLERK7TDesC16R27CDataRecognitionResultArray @ 250 NONAME - _ZNK13RApaLsSession15RecognizeFilesLERK7TDesC16RK6TDesC8R27CDataRecognitionResultArray @ 251 NONAME - _ZNK13RApaLsSession16GetAppByDataTypeERK9TDataType4TUidRS3_ @ 252 NONAME - _ZNK13RApaLsSession16GetAppCapabilityER5TDes84TUid @ 253 NONAME - _ZNK13RApaLsSession16GetAppOwnedFilesER12CDesC16Array4TUid @ 254 NONAME - _ZNK13RApaLsSession16GetAppServicesLCE4TUid @ 255 NONAME - _ZNK13RApaLsSession17GetEmbeddableAppsEi @ 256 NONAME - _ZNK13RApaLsSession17GetEmbeddableAppsEv @ 257 NONAME - _ZNK13RApaLsSession17GetMaxDataBufSizeERi @ 258 NONAME - _ZNK13RApaLsSession18EmbeddableAppCountERi @ 259 NONAME - _ZNK13RApaLsSession19ApplicationLanguageE4TUidR9TLanguage @ 260 NONAME - _ZNK13RApaLsSession19GetPreferredBufSizeERi @ 261 NONAME - _ZNK13RApaLsSession21GetAcceptedConfidenceERi @ 262 NONAME - _ZNK13RApaLsSession21MatchesSecurityPolicyERi4TUidRK15TSecurityPolicy @ 263 NONAME - _ZNK13RApaLsSession21RecognizeSpecificDataERK5RFileRK9TDataTypeRi @ 264 NONAME - _ZNK13RApaLsSession21RecognizeSpecificDataERK7TDesC16RK6TDesC8RK9TDataTypeRi @ 265 NONAME - _ZNK13RApaLsSession22GetDefaultScreenNumberERi4TUid @ 266 NONAME - _ZNK13RApaLsSession22GetSupportedDataTypesLER13CArrayFixFlatI9TDataTypeE @ 267 NONAME - _ZNK13RApaLsSession23NumberOfOwnDefinedIconsE4TUidRi @ 268 NONAME - _ZNK13RApaLsSession24AppForDataTypeAndServiceERK9TDataType4TUidRS3_ @ 269 NONAME - _ZNK13RApaLsSession24AppForDocumentAndServiceERK5RFile4TUidRS3_R9TDataType @ 270 NONAME - _ZNK13RApaLsSession24AppForDocumentAndServiceERK7TDesC164TUidRS3_R9TDataType @ 271 NONAME - _ZNK13RApaLsSession25GetAppServiceOpaqueDataLCE4TUidS0_ @ 272 NONAME - _ZNK13RApaLsSession27GetServiceImplementationsLCE4TUid @ 273 NONAME - _ZNK13RApaLsSession27GetServiceImplementationsLCE4TUidRK9TDataType @ 274 NONAME - _ZNK13RApaLsSession36CancelListPopulationCompleteObserverEv @ 275 NONAME - _ZNK13RApaLsSession38RegisterListPopulationCompleteObserverER14TRequestStatus @ 276 NONAME - _ZNK13RApaLsSession7VersionEv @ 277 NONAME - _ZNK13RApaLsSession8AppCountERi @ 278 NONAME - _ZNK13RApaLsSession9IsProgramERK7TDesC16Ri @ 279 NONAME - _ZNK15CApaAppViewData10IconSizesLEv @ 280 NONAME - _ZNK15CApaAppViewData10ScreenModeEv @ 281 NONAME - _ZNK15CApaAppViewData12IconFileNameEv @ 282 NONAME - _ZNK15CApaAppViewData14NonMbmIconFileEv @ 283 NONAME - _ZNK15CApaAppViewData3UidEv @ 284 NONAME - _ZNK15CApaAppViewData4IconERK5TSize @ 285 NONAME - _ZNK16CApaMaskedBitmap12ExternalizeLER12RWriteStream @ 286 NONAME - _ZNK16CApaMaskedBitmap4MaskEv @ 287 NONAME - _ZNK17CApaSystemControl12ShortCaptionEv @ 288 NONAME - _ZNK17CApaSystemControl4IconEv @ 289 NONAME - _ZNK17CApaSystemControl4TypeEv @ 290 NONAME - _ZNK17CApaSystemControl7CaptionEv @ 291 NONAME - _ZNK17CApaSystemControl8FileNameEv @ 292 NONAME - _ZNK18TApaAppServiceInfo10OpaqueDataEv @ 293 NONAME - _ZNK18TApaAppServiceInfo3UidEv @ 294 NONAME - _ZNK18TApaAppServiceInfo9DataTypesEv @ 295 NONAME - _ZNK18TApaPictureFactory11NewPictureLER14TPictureHeaderRK12CStreamStore @ 296 NONAME - _ZNK19CApaWindowGroupName10IsAppReadyEv @ 297 NONAME - _ZNK19CApaWindowGroupName14DocNameIsAFileEv @ 298 NONAME - _ZNK19CApaWindowGroupName15WindowGroupNameEv @ 299 NONAME - _ZNK19CApaWindowGroupName18SetWindowGroupNameER12RWindowGroup @ 300 NONAME - _ZNK19CApaWindowGroupName23RespondsToShutdownEventEv @ 301 NONAME - _ZNK19CApaWindowGroupName26RespondsToSwitchFilesEventEv @ 302 NONAME - _ZNK19CApaWindowGroupName6AppUidEv @ 303 NONAME - _ZNK19CApaWindowGroupName6HiddenEv @ 304 NONAME - _ZNK19CApaWindowGroupName6IsBusyEv @ 305 NONAME - _ZNK19CApaWindowGroupName7CaptionEv @ 306 NONAME - _ZNK19CApaWindowGroupName7DocNameEv @ 307 NONAME - _ZNK19CApaWindowGroupName8IsSystemEv @ 308 NONAME - _ZNK21CApaSystemControlList5CountEv @ 309 NONAME - _ZNK21CApaSystemControlList5IndexE4TUid @ 310 NONAME - _ZNK21CApaSystemControlList7ControlE4TUid @ 311 NONAME - _ZNK21CApaSystemControlList7ControlEi @ 312 NONAME - _ZNK27CDataRecognitionResultArray12GetFileNameLER4TBufILi256EEj @ 313 NONAME - _ZNK27CDataRecognitionResultArray25GetDataRecognitionResultLER22TDataRecognitionResultj @ 314 NONAME - _ZNK27CDataRecognitionResultArray4PathEv @ 315 NONAME - _ZNK27CDataRecognitionResultArray5CountEv @ 316 NONAME - _ZNK8CApaDoor7AppUidLEv @ 317 NONAME - _ZNK8TApaTask4WgIdEv @ 318 NONAME - _ZNK8TApaTask6ExistsEv @ 319 NONAME - _ZNK8TApaTask8ThreadIdEv @ 320 NONAME - _ZN17CApaSecurityUtils16CheckAppSecurityERK7TPtrC16RiS3_ @ 321 NONAME - _ZN11CApaAppList22AddForcedRegistrationLERK7TDesC16 @ 322 NONAME - _ZN11CApaAppList23AddCustomAppInfoInListLE4TUid9TLanguageRK7TDesC16 @ 323 NONAME - _ZN11CApaAppList28UpdateAppListByShortCaptionLEv @ 324 NONAME - _ZN11CApaAppList4NewLER3RFsii @ 325 NONAME - _ZN11TApaAppInfo12InternalizeLER11RReadStream @ 326 NONAME - _ZN11TApaAppInfoC1E4TUidRK4TBufILi256EES4_ @ 327 NONAME - _ZN11TApaAppInfoC1E4TUidRK4TBufILi256EES4_S4_ @ 328 NONAME - _ZN11TApaAppInfoC1Ev @ 329 NONAME - _ZN11TApaAppInfoC2E4TUidRK4TBufILi256EES4_ @ 330 NONAME - _ZN11TApaAppInfoC2E4TUidRK4TBufILi256EES4_S4_ @ 331 NONAME - _ZN11TApaAppInfoC2Ev @ 332 NONAME - _ZN12TApaAppEntryC1Ev @ 333 NONAME - _ZN12TApaAppEntryC2Ev @ 334 NONAME - _ZN15TApaAppViewInfo12InternalizeLER11RReadStream @ 335 NONAME - _ZN15TApaAppViewInfoC1E4TUidRK4TBufILi256EEi @ 336 NONAME - _ZN15TApaAppViewInfoC1Ev @ 337 NONAME - _ZN15TApaAppViewInfoC2E4TUidRK4TBufILi256EEi @ 338 NONAME - _ZN15TApaAppViewInfoC2Ev @ 339 NONAME - _ZN17TApaAppCapability12InternalizeLER11RReadStream @ 340 NONAME - _ZN17TApaAppCapability14CopyCapabilityER5TDes8RK6TDesC8 @ 341 NONAME - _ZN17TApaAppIdentifier12InternalizeLER11RReadStream @ 342 NONAME - _ZN17TApaAppIdentifierC1E4TUidRK4TBufILi256EE @ 343 NONAME - _ZN17TApaAppIdentifierC1Ev @ 344 NONAME - _ZN17TApaAppIdentifierC2E4TUidRK4TBufILi256EE @ 345 NONAME - _ZN17TApaAppIdentifierC2Ev @ 346 NONAME - _ZN18TApaAppServiceInfo12InternalizeLER11RReadStream @ 347 NONAME - _ZN18TApaAppServiceInfo7ReleaseEv @ 348 NONAME - _ZN18TApaAppServiceInfo9DataTypesEv @ 349 NONAME - _ZN18TApaAppServiceInfoC1E4TUidP13CArrayFixFlatI21TDataTypeWithPriorityEP6HBufC8 @ 350 NONAME - _ZN18TApaAppServiceInfoC1Ev @ 351 NONAME - _ZN18TApaAppServiceInfoC2E4TUidP13CArrayFixFlatI21TDataTypeWithPriorityEP6HBufC8 @ 352 NONAME - _ZN18TApaAppServiceInfoC2Ev @ 353 NONAME - _ZN23CApaAppServiceInfoArray33CApaAppServiceInfoArray_Reserved1Ev @ 354 NONAME - _ZN23CApaAppServiceInfoArray33CApaAppServiceInfoArray_Reserved2Ev @ 355 NONAME - _ZN23CApaAppServiceInfoArrayC2Ev @ 356 NONAME - _ZN23TApaEmbeddabilityFilter16AddEmbeddabilityEN17TApaAppCapability14TEmbeddabilityE @ 357 NONAME - _ZN23TApaEmbeddabilityFilterC1Ev @ 358 NONAME - _ZN23TApaEmbeddabilityFilterC2Ev @ 359 NONAME - _ZNK11TApaAppInfo12ExternalizeLER12RWriteStream @ 360 NONAME - _ZNK15TApaAppViewInfo12ExternalizeLER12RWriteStream @ 361 NONAME - _ZNK17TApaAppCapability12ExternalizeLER12RWriteStream @ 362 NONAME - _ZNK17TApaAppIdentifier12ExternalizeLER12RWriteStream @ 363 NONAME - _ZNK18TApaAppServiceInfo12ExternalizeLER12RWriteStream @ 364 NONAME - _ZNK23TApaEmbeddabilityFilter20MatchesEmbeddabilityEN17TApaAppCapability14TEmbeddabilityE @ 365 NONAME - _ZTI11CApaAppData @ 366 NONAME - _ZTI11CApaAppList @ 367 NONAME - _ZTI12CApaAppEntry @ 368 NONAME - _ZTI13RApaLsSession @ 369 NONAME - _ZTI15CApaAppViewData @ 370 NONAME - _ZTI15CApaIconPicture @ 371 NONAME - _ZTI16CApaMaskedBitmap @ 372 NONAME - _ZTI17CApaAppInfoReader @ 373 NONAME - _ZTI17CApaSystemControl @ 374 NONAME - _ZTI18TApaPictureFactory @ 375 NONAME - _ZTI19CApaAppListNotifier @ 376 NONAME - _ZTI19CApaWindowGroupName @ 377 NONAME - _ZTI21CApaSystemControlList @ 378 NONAME - _ZTI23CApaAppServiceInfoArray @ 379 NONAME - _ZTI23MApaAppListServObserver @ 380 NONAME - _ZTI27CDataRecognitionResultArray @ 381 NONAME - _ZTI33CApaLocalisableResourceFileWriter @ 382 NONAME - _ZTI34CApaRegistrationResourceFileWriter @ 383 NONAME - _ZTI7HBufBuf @ 384 NONAME - _ZTI8CApaDoor @ 385 NONAME - _ZTIN26CApaResourceFileWriterBase11RBufferSinkE @ 386 NONAME - _ZTV11CApaAppData @ 387 NONAME - _ZTV11CApaAppList @ 388 NONAME - _ZTV12CApaAppEntry @ 389 NONAME - _ZTV13RApaLsSession @ 390 NONAME - _ZTV15CApaAppViewData @ 391 NONAME - _ZTV15CApaIconPicture @ 392 NONAME - _ZTV16CApaMaskedBitmap @ 393 NONAME - _ZTV17CApaAppInfoReader @ 394 NONAME - _ZTV17CApaSystemControl @ 395 NONAME - _ZTV18TApaPictureFactory @ 396 NONAME - _ZTV19CApaAppListNotifier @ 397 NONAME - _ZTV19CApaWindowGroupName @ 398 NONAME - _ZTV21CApaSystemControlList @ 399 NONAME - _ZTV23CApaAppServiceInfoArray @ 400 NONAME - _ZTV23MApaAppListServObserver @ 401 NONAME - _ZTV27CDataRecognitionResultArray @ 402 NONAME - _ZTV33CApaLocalisableResourceFileWriter @ 403 NONAME - _ZTV34CApaRegistrationResourceFileWriter @ 404 NONAME - _ZTV7HBufBuf @ 405 NONAME - _ZTV8CApaDoor @ 406 NONAME - _ZTVN26CApaResourceFileWriterBase11RBufferSinkE @ 407 NONAME - _ZN11CApaAppData11SetCaptionLERK7TDesC16 @ 408 NONAME - _ZN11CApaAppData9SetIconsLERK7TDesC16i @ 409 NONAME - _ZN11CApaAppList36UpdateAppListByIconCaptionOverridesLEv @ 410 NONAME - _ZN13RApaLsSession40ForceCommitNonNativeApplicationsUpdatesLEv @ 411 NONAME - _ZN31TIconLoaderAndIconArrayForLeaks25TestIconCaptionOverridesLEv @ 412 NONAME - _ZN11CApaAppList20AppListUpdatePendingEv @ 413 NONAME - _ZNK13RApaLsSession13RecognizeDataERK6TDesC8R22TDataRecognitionResult @ 414 NONAME - _ZN11CApaAppList19UninstalledAppArrayEv @ 415 NONAME - X @ 416 NONAME ABSENT - X @ 417 NONAME ABSENT - X @ 418 NONAME ABSENT - X @ 419 NONAME ABSENT - X @ 420 NONAME ABSENT - X @ 421 NONAME ABSENT - X @ 422 NONAME ABSENT - X @ 423 NONAME ABSENT - X @ 424 NONAME ABSENT - X @ 425 NONAME ABSENT - X @ 426 NONAME ABSENT - X @ 427 NONAME ABSENT - X @ 428 NONAME ABSENT - X @ 429 NONAME ABSENT - X @ 430 NONAME ABSENT - X @ 431 NONAME ABSENT - X @ 432 NONAME ABSENT \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/APFILE.MMP --- a/appfw/apparchitecture/group/APFILE.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/APFILE.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -38,13 +38,9 @@ macro UI_FRAMEWORKS_V1_REMNANT_FOR_JAVA_MIDLET_INSTALLER -source APFREC.CPP APFSTD.CPP APRuleBased.CPP ApLaunchChecker.cpp +source APFREC.CPP APFSTD.CPP APRuleBased.CPP ApLaunchChecker.cpp apinstallationmonitor.cpp source apfmimecontentpolicy.cpp -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -source apinstallationmonitor.cpp -#endif - library euser.lib efsrv.lib apparc.lib apgrfx.lib bafl.lib apserv.lib ecom.lib library apmime.lib caf.lib library centralrepository.lib @@ -57,12 +53,6 @@ START MARM END -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - deffile APFILE.DEF -#else - deffile apfile_legacy.def -#endif - // For the benefit of Eshell which cannot build a resource registration file START RESOURCE eshell_reg.rss TARGETPATH /private/10003a3f/apps diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/APGRFX.MMP --- a/appfw/apparchitecture/group/APGRFX.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/APGRFX.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -42,19 +42,12 @@ source apgnotif.cpp APSCLI.CPP apgconstdata.cpp SOURCE apsecutils.cpp -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -SOURCE apgupdate.cpp -#endif - library euser.lib apparc.lib apmime.lib gdi.lib estor.lib efsrv.lib fbscli.lib library bitgdi.lib ws32.lib bafl.lib library apserv.lib apfile.lib -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -library scrclient.lib -#endif - #ifdef USE_IH_RAISE_EVENT +APP_LAYER_SYSTEMINCLUDE_SYMBIAN LIBRARY instrumentationhandler.lib #endif // USE_IH_RAISE_EVENT @@ -64,12 +57,7 @@ macro SYMBIAN_SUPPORT_UI_FRAMEWORKS_V1 -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - deffile APGRFX.DEF -#else - deffile apgrfx_legacy.def -#endif - +deffile APGRFX.DEF START WINS baseaddress 0x42F00000 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/APLIST.MMP --- a/appfw/apparchitecture/group/APLIST.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/APLIST.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -32,18 +32,18 @@ option MSVC /Od - SOURCEPATH ../aplist userinclude ../inc MW_LAYER_SYSTEMINCLUDE_SYMBIAN -source aplapplist.cpp aplapplistitem.cpp aplappinforeader.cpp apsidchecker.cpp +source aplapplist.cpp aplapplistitem.cpp aplappinforeader.cpp aplappregfinder.cpp apsidchecker.cpp source apsiconcaptionoverride.cpp - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -source aplappregfinder.cpp -#endif +// source APGCTL.CPP apgdoor.cpp APGICNFL.CPP APGSTD.CPP APGTASK.CPP +// source APGWGNAM.CPP apgcli.cpp apgstart.cpp apgrecog.cpp APGPRIV.CPP +// source apgnotif.cpp APGAIR.CPP APGAIRV2.CPP APSCLI.CPP APGCONSTDATA.CPP +// SOURCE apsecutils.cpp +// source APGAPLSTV2.CPP library euser.lib gdi.lib estor.lib efsrv.lib fbscli.lib library bitgdi.lib ws32.lib bafl.lib ecom.lib @@ -59,13 +59,10 @@ library apmime.lib // TDataType referenced from CApaAppData library centralrepository.lib -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -library scrclient.lib -#endif - //library apserv.lib apfile.lib apparc.lib #ifdef USE_IH_RAISE_EVENT +APP_LAYER_SYSTEMINCLUDE_SYMBIAN LIBRARY instrumentationhandler.lib #endif // USE_IH_RAISE_EVENT @@ -79,12 +76,4 @@ START MARM END -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - deffile aplist.def -#else - deffile aplist_legacy.def -#endif - - - SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/APSERV.MMP --- a/appfw/apparchitecture/group/APSERV.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/APSERV.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -41,27 +41,16 @@ source APSSERV.CPP APSSES.CPP APSSTD.CPP APSSCAN.CPP source APSSTART.CPP APSRECCACHE.cpp APSRECUTIL.CPP source APSCONSTDATA.CPP -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK source apsnnapps.cpp apsnnappupdates.cpp -#endif library euser.lib efsrv.lib apparc.lib apgrfx.lib apmime.lib fbscli.lib apfile.lib library estor.lib bafl.lib ws32.lib ecom.lib library aplist.lib -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -library scrclient.lib -library sisregistryclient.lib -#endif - macro UI_FRAMEWORKS_V1_REMNANT_FOR_JAVA_MIDLET_INSTALLER -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - deffile APSERV.DEF -#else - deffile apserv_legacy.def -#endif +deffile APSERV.DEF START WINS baseaddress 0x43700000 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/BLD.INF --- a/appfw/apparchitecture/group/BLD.INF Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/BLD.INF Wed Sep 01 12:24:48 2010 +0100 @@ -29,7 +29,7 @@ // specify the source file followed by its destination here // copy will be used to copy the source file to its destination // If there's no destination then the source file will be copied -// to the same name in /epoc32/include +// to the same name in \epoc32\include // Files from aincc.prj ../inc/APACLN.H SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(apacln.h) @@ -60,17 +60,11 @@ ../inc/APFCTLF.H SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(apfctlf.h) ../inc/APRuleBased.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(aprulebased.h) ../inc/ApLaunchChecker.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(aplaunchchecker.h) - ../inc/ApSidChecker.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(apsidchecker.h) // Files from gincc.prj ../inc/APGAPLST.H SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(apgaplst.h) ../inc/APGCLI.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(apgcli.h) - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -../inc/apgupdate.h SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(apgupdate.h) -#endif - ../inc/APGDOOR.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(apgdoor.h) ../inc/APGICNFL.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(apgicnfl.h) #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS @@ -95,7 +89,7 @@ ../group/apparc.iby /epoc32/rom/include/apparc.iby -// File from ../inc (which is relocated from app-framework/aiftool/inc) +// File from ..\inc (which is relocated from app-framework\aiftool\inc) ../inc/AIFTOOL.RH /epoc32/include/aiftool.rh //Backup and restore exports @@ -136,28 +130,13 @@ // i.e. tests where no user input is required. The default will apply if neither "manual" // or "support" is specified. ../tef/apparctestserver.MMP - ../tef/TAppInstall/TestAppInstall.mmp -../tef/CustomiseDefaultIconApp.mmp support -../tef/TCtrlPnlApp.mmp support -../tef/T_DataPrioritySystem3.mmp support -../tef/T_groupname.mmp support -../tef/T_groupname_ver1.mmp support -../tef/T_groupname_ver2.mmp support -../tef/TestTrustedPriorityApp1.mmp support -../tef/TestTrustedPriorityApp2.mmp support -../tef/TestUnTrustedPriorityApp1.mmp support -../tef/TestUnTrustedPriorityApp2.mmp support -../tef/openservice1app.mmp support -../tef/openservice2app.mmp support -../tef/serverapp.mmp support -../tef/serverapp2.mmp support -../tef/serverapp3.mmp support -../tef/serverapp4.mmp support -../tef/serverapp6.mmp support -../tef/serverapp7.mmp support +../tef/TSTAPP_embedded.MMP support +../tef/TSTAPP_standalone.MMP support +../tef/m_ctrl_v2.mmp support ../tef/SimpleApparcTestApp.mmp support ../tef/zerosizedicontestapp.mmp support +../tef/TEXE_V2.MMP support ../tef/TAppNotEmbeddable_v2.mmp support ../tef/TAppEmbeddable_embedded.mmp support ../tef/TAppEmbeddable_standalone.mmp support @@ -168,115 +147,77 @@ ../tef/TStartDocApp_v2.mmp support ../tef/t_winchainChild.mmp support ../tef/t_winchainLaunch.mmp support +../tef/TLongUrlRecognizer_v2.mmp support +../tef/TRApaLsSessionStartAppTestRecognizer_v2.mmp support ../tef/TRApaLsSessionStartAppTestApp_v2.mmp support ../tef/tRuleBasedApps/tRuleBasedApp1.mmp support ../tef/tRuleBasedApps/tRuleBasedApp2.mmp support ../tef/tRuleBasedApps/tRuleBasedApp3.mmp support ../tef/tRuleBasedApps/tRuleBasedApp4.mmp support +../tef/TCmdLineExe.mmp support ../tef/TApparcTestApp.mmp support +../tef/TAppLaunchChecker.mmp support +../tef/TAppLaunchChecker2.mmp support +../tef/TNonNativeAppLaunchChecker.mmp support ../tef/app_CTRL.MMP +../tef/app_CTRL2.MMP ../tef/T_EnvSlots/T_EnvSlots.MMP +../tef/TESTREC/TESTREC.MMP ../tef/ParentProcess.mmp ../tef/ChildI.mmp ../tef/ChildII.mmp ../tef/ChildIII.mmp +../tef/tssaac/tssaac.mmp +../tef/tssaac/tssaac_tapp.mmp ../tef/T_DataPrioritySystem1/T_DataPrioritySystem1.MMP ../tef/T_DataPrioritySystem2/T_DataPrioritySystem2.MMP +../tef/TBufferOnlyRec/TBufferOnlyRec.mmp +../tef/TNonNative/TNonNativeRec.mmp ../tef/TNonNative/TNNApp1.mmp ../tef/TNonNative/TNNApp2.mmp - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK ../tef/TSidChecker/TestSidChecker.mmp -#endif - +../tef/TMimeRec/recmime.MMP ../tef/TEndTaskTestApp/EndTaskTestApp.mmp ../tef/tlargestack/tlargestackapp.mmp ../tef/UnProctectedUidApp.mmp support +../tef/TIconLoaderAndIconArrayForLeaks.mmp +// RecMime_1 binaries are used to install and uninstall the mime type recognizer during runtime in TRApaLsSessionTestStep. +//../tef/TMimeRec1/RecMime_1.MMP ../tef/tupgradeiconapp/tupgradeiconapp.mmp ../tef/tnotifydrivesapp/tnotifydrivesapp.mmp -../tef/ticoncaptionoverride.mmp +../tef/TRecUpgrade/recupgrade.mmp +//***************************************************************************************************************************************************************************************************** +//recupgrade_1 plug-in is used to upgrade the mime type recognizer during runtime in T_RecUpgrade test. +// It is build for armv5 and rename to recupgrade_armv5_rel.dll and copied to apparc\Tdata before actual code builds. If you are making any change in recupgrade_1.cpp then uncomment +// “recupgrade_1.MMP” , build , rename (.dll) and copy as mentioned above . +//***************************************************************************************************************************************************************************************************** +//../tef/TRecUpgrade_1/recupgrade_1.MMP + ../tef/testapp/testforceregistrationapp1/testforceregistrationapp1.mmp +// *************************************************************************************************************************************************************************************************** +// recupgrade_2 plug-in is used to upgrade the mime type recognizer during runtime in T_RecUpgrade test. +// It is build for armv5 and rename to recupgrade2_armv5_rel.dll and copied to apparc\Tdata before actual code builds. If you are making any change in recupgrade_2.cpp then uncomment +// “recupgrade_2.MMP” , build , rename (.dll) and copy as mentioned above . +// *************************************************************************************************************************************************************************************************** +//../tef/TRecUpgrade_2/recupgrade_2.MMP +../tef/ticoncaptionoverride.mmp // testupdregappuninstallation is used in t_serviceregistry test. If any changes done to // this application, uncomment testupdregappuninstallation.mmp file and build it. -// Then comment it and copy the testupdregappuninstallation_reg.rsc file to ../tdata folder. +// Then comment it and copy the testupdregappuninstallation_reg.rsc file to ..\tdata folder. // Delete any testupdregappuninstallation* files from epoc32 directory. //../tef/testapp/testupdregappuninstallation/testupdregappuninstallation.mmp // testupgradeupdregappuninstallation is used in t_serviceregistry test. If any changes done to // this application, uncomment testupdregappuninstallation.mmp file and build it. -// Then comment it and copy the testupgradeupdregappuninstallation_reg.rsc file to ../tdata folder. +// Then comment it and copy the testupgradeupdregappuninstallation_reg.rsc file to ..\tdata folder. // Delete any testupdregappuninstallation* files from epoc32 directory. //../tef/testapp/testupgradeupdregappuninstallation/testupgradeupdregappuninstallation.mmp -//plugins -../tef/TNonNativeAppLaunchChecker.mmp support -../tef/TAppLaunchChecker.mmp support -../tef/TAppLaunchChecker2.mmp support -../tef/TESTREC/TESTREC.MMP -../tef/TBufferOnlyRec/TBufferOnlyRec.mmp -../tef/TMimeRec/recmime.MMP -// RecMime_1 binaries are used to install and uninstall the mime type recognizer during runtime in TRApaLsSessionTestStep. -//../tef/TMimeRec1/RecMime_1.MMP - - -../tef/m_ctrl_v2.mmp support -../tef/m_ctrl_v2_Stub.mmp -../tef/TSTAPP_embedded.MMP support -../tef/TCmdLineExe.mmp support -../tef/app_CTRL2.MMP -../tef/app_CTRL2_stub.MMP -../tef/tssaac/tssaac.mmp -../tef/tssaac/tssaac_tapp.mmp -../tef/TEXE_V2.MMP support - - -../tef/TSTAPP_standalone.MMP support -../tef/TSTAPP_standalone_Stub.MMP -../tef/TNonNative/TNonNativeRec.mmp -../tef/TLongUrlRecognizer_v2.mmp support -../tef/TRApaLsSessionStartAppTestRecognizer_v2.mmp support - -../tef/TIconLoaderAndIconArrayForLeaks.mmp - -../tef/TRecUpgrade/recupgrade.mmp -../tef/refnativeplugin/refnativeplugin.mmp - -//***************************************************************************************************************************************************************************************************** -//recupgrade_1 plug-in is used to upgrade the mime type recognizer during runtime in T_RecUpgrade test. -// It is build for armv5 and rename to recupgrade_armv5_rel.dll and copied to apparc/Tdata before actual code builds. If you are making any change in recupgrade_1.cpp then uncomment -// “recupgrade_1.MMP” , build , rename (.dll) and copy as mentioned above . -//***************************************************************************************************************************************************************************************************** -//../tef/TRecUpgrade_1/recupgrade_1.MMP - - -// *************************************************************************************************************************************************************************************************** -// recupgrade_2 plug-in is used to upgrade the mime type recognizer during runtime in T_RecUpgrade test. -// It is build for armv5 and rename to recupgrade2_armv5_rel.dll and copied to apparc/Tdata before actual code builds. If you are making any change in recupgrade_2.cpp then uncomment -// “recupgrade_2.MMP” , build , rename (.dll) and copy as mentioned above . -// *************************************************************************************************************************************************************************************************** -//../tef/TRecUpgrade_2/recupgrade_2.MMP - - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -../tef/forceregapps/forceregapp1.mmp -../tef/forceregapps/forceregapp2.mmp -../tef/forceregapps/TForceRegAppRec.mmp -../tef/tnonnativeruntime/tnonnativeruntime.mmp -#endif - -makefile ../tef/testpkg/preparesis.fil -makefile ../tef/testpkg/preparesis_stub.fil - PRJ_TESTEXPORTS -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK ../group/apparcTest.iby /epoc32/rom/include/apparctest.iby -#else -../group/apparcTest_new.iby /epoc32/rom/include/apparctest.iby -#endif - ../tef/scripts/hardware/apparctest_run.bat z:/apparctest/apparctest_run.bat ../tef/scripts/emulator/apparctest_run.bat /epoc32/release/winscw/udeb/apparctest_run.bat @@ -335,12 +276,6 @@ ../tef/scripts/apparctest_t_servicebase.script z:/apparctest/apparctest_t_servicebase.script ../tef/scripts/apparctest_t_RecUpgrade.script z:/apparctest/apparctest_t_recupgrade.script -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -../tef/scripts/apparctest_t_UpdateAppList.script z:/apparctest/apparctest_t_updateapplist.script -../tef/scripts/apparctest_t_forcereg.script z:/apparctest/apparctest_t_forcereg.script -../tef/scripts/apparctest_t_clientnotif.script z:/apparctest/apparctest_t_clientnotif.script -../tef/scripts/apparctest_t_nonnativetest.script z:/apparctest/apparctest_t_nonnativetest.script -#endif //SysStart Apparc Scripts ../tef/scripts/apparctest_T_TestStartApp1L.script z:/apparctest/apparctest_t_teststartapp1l.script @@ -376,38 +311,17 @@ ../tef/tssaac/scripts/emulator/sysstart_apparc_setup.bat /epoc32/release/winscw/urel/z/apparctest/sysstart_apparc_setup.bat ../tef/tssaac/scripts/emulator/sysstart_apparc_checkEpocWind.bat /epoc32/release/winscw/urel/z/apparctest/sysstart_apparc_checkepocwind.bat -../tef/tupgradeiconapp/tupgradeiconapp.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/tupgradeiconapp.mbm - -// epoc32/data - -// export certificates for creating sis files -../tef/testpkg/Nokia_RnDCert_02.der /epoc32/tools/Nokia_RnDCert_02.der -../tef/testpkg/Nokia_RnDCert_02.key /epoc32/tools/Nokia_RnDCert_02.key -../tef/testpkg/swicertstore.dat /epoc32/release/winscw/udeb/z/resource/swicertstore.dat - - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -../tef/tstnnapp.mbm /epoc32/data/z/resource/apps/tstnnapp.mbm -../tdata/AAA_reg.Rsc /epoc32/data/z/apparctest/aaa_reg.rsc -#endif +../tef/tupgradeiconapp/tupgradeiconapp.mbm /epoc32/winscw/c/resource/apps/tupgradeiconapp.mbm -../tdata/forcegtestapp1.frg1 /epoc32/data/z/apparctest/forcegtestapp1.frg1 -../tdata/forcegtestapp2.frg2 /epoc32/data/z/apparctest/forcegtestapp2.frg2 -../tdata/scr_test.db /epoc32/data/z/apparctest/scr_test.db - +// epoc32\data +../tef/tstappviewneg.xyz /epoc32/data/z/resource/apps/tstappviewneg.xyz ../tef/tstappviewneg.mbm /epoc32/data/z/resource/apps/tstappviewneg.mbm -../tef/App_ctrl.MBM /epoc32/release/winscw/udeb/z/apparctestregfiles/app_ctrl.mbm -../tef/svg_icon.svg /epoc32/release/winscw/udeb/z/apparctestregfiles/svg_icon.svg -../tef/zerosizedicon.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/zerosizedicon.mbm +../tef/tstnnapp.mbm /epoc32/data/z/resource/apps/tstnnapp.mbm +../tef/App_ctrl.MBM /epoc32/data/z/system/data/app_ctrl.mbm +../tef/zerosizedicon.mbm /epoc32/data/Z/resource/apps/zerosizedicon.mbm +../tef/svg_icon.svg /epoc32/data/z/system/data/svg_icon.svg +../tdata/AAA_reg.Rsc /epoc32/data/z/apparctest/aaa_reg.rsc ../tdata/Corrupted_reg.RSC /epoc32/data/z/apparctest/corrupted_reg.rsc - -../tdata/testfile4.txt /epoc32/data/z/system/data/testpath/filtertests/testfile4.txt -../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/apparctestregfiles/tstappviewneg.xyz -../tef/tstappviewneg.xyz /epoc32/data/z/resource/apps/tstappviewneg.xyz -../tdata/GIF.NNA1 /epoc32/data/z/private/101f289c/gif.nna1 -../tdata/HTML.NNA2 /epoc32/data/z/private/101f289c/html.nna2 -../tdata/CONTACT.NNA3 /epoc32/data/z/private/101f289c/contact.nna3 -../tdata/TXT.NNA4 /epoc32/data/z/private/101f289c/txt.nna4 ../tdata/TSTAPPU.DOC /epoc32/data/z/system/data/tstapp.doc ../tdata/zero_len.txt /epoc32/data/z/system/data/zero_len.txt ../tdata/one_byte.txt /epoc32/data/z/system/data/one_byte.txt @@ -417,48 +331,34 @@ ../tdata/testfile1.txt /epoc32/data/z/system/data/testpath/filtertests/testfile1.txt ../tdata/testfile2.txt /epoc32/data/z/system/data/testpath/filtertests/testfile2.txt ../tdata/testfile3.txt /epoc32/data/z/system/data/testpath/filtertests/testfile3.txt +../tdata/testfile4.txt /epoc32/data/z/system/data/testpath/filtertests/testfile4.txt +../tdata/GIF.NNA1 /epoc32/data/z/private/101f289c/gif.nna1 +../tdata/HTML.NNA2 /epoc32/data/z/private/101f289c/html.nna2 +../tdata/CONTACT.NNA3 /epoc32/data/z/private/101f289c/contact.nna3 +../tdata/TXT.NNA4 /epoc32/data/z/private/101f289c/txt.nna4 ../tdata/FileWithUnknownMimeType.UnrecognisableExtention /epoc32/data/z/system/data/filewithunknownmimetype.unrecognisableextention ../tdata/TApsRecogAppTest.mmr /epoc32/data/z/system/data/tapsrecogapptest.mmr -../tdata/TApsRecogUpgradeTest.upg /epoc32/data/z/system/data/tapsrecogupgradetest.upg -../tdata/TApsRecogUpgradeTest.upr /epoc32/data/z/system/data/tapsrecogupgradetest.upr +../tdata/TApsRecogUpgradeTest.upg /epoc32/data/z/system/data/tapsrecogupgradetest.upg +../tdata/TApsRecogUpgradeTest.upr /epoc32/data/z/system/data/tapsrecogupgradetest.upr ../tdata/mimecontentpolicy/sd_goo.dcf /epoc32/data/z/system/data/sd_goo.dcf ../tdata/mimecontentpolicy/fl_goo.dm /epoc32/data/z/system/data/fl_goo.dm -../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/data/z/system/data/jpeg_wes.dm -../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/data/z/system/data/gif_wallpaper.gif +../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/data/z/system/data/jpeg_wes.dm +../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/data/z/system/data/gif_wallpaper.gif ../tdata/mimecontentpolicy/propelli.jpg /epoc32/data/z/system/data/propelli.jpg ../tdata/mimecontentpolicy/type-r.jpg /epoc32/data/z/system/data/type-r.jpg ../tdata/1028583d.txt /epoc32/data/z/private/10202be9/1028583d.txt //test Central Repository initialisation file ../tdata/10003a3f.txt /epoc32/data/z/private/10202be9/10003a3f.txt //Test repository file contains closed content and extension information - // WINSCW UDEB -// exporting db & certstore for winscw -../tdata/scr.db /epoc32/release/winscw/udeb/z/sys/install/scr/provisioned/scr.db - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK +../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/resource/apps/tstappviewneg.xyz +../tef/tstappviewneg.mbm /epoc32/release/winscw/udeb/z/resource/apps/tstappviewneg.mbm ../tef/tstnnapp.mbm /epoc32/release/winscw/udeb/z/resource/apps/tstnnapp.mbm ../tef/App_ctrl.MBM /epoc32/release/winscw/udeb/z/resource/apps/app_ctrl.mbm +../tef/zerosizedicon.mbm /epoc32/release/winscw/udeb/z/resource/apps/zerosizedicon.mbm ../tef/svg_icon.svg /epoc32/release/winscw/udeb/z/resource/apps/svg_icon.svg ../tdata/AAA_reg.Rsc /epoc32/release/winscw/udeb/z/apparctest/aaa_reg.rsc -../tdata/102081cf_reg.rsc /epoc32/release/winscw/udeb/z/system/data/102081cf_reg.rsc -../tdata/102081ce_reg.rsc /epoc32/release/winscw/udeb/z/system/data/102081ce_reg.rsc -../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/winscw/udeb/z/system/data/testupdregappuninstallation_reg.rsc -../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/winscw/udeb/z/system/data/testupgradeupdregappuninstallation_reg.rsc -../tef/zerosizedicon.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/zerosizedicon.mbm -../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/apparctestregfiles/tstappviewneg.xyz -#endif - -../tdata/scr_test.db /epoc32/release/winscw/udeb/z/apparctest/scr_test.db -../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/resource/apps/tstappviewneg.xyz -../tef/tstappviewneg.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/tstappviewneg.mbm -../tef/tstappviewneg.mbm /epoc32/release/winscw/udeb/z/resource/apps/tstappviewneg.mbm ../tdata/Corrupted_reg.RSC /epoc32/release/winscw/udeb/z/apparctest/corrupted_reg.rsc - -../tdata/GIF.NNA1 /epoc32/release/winscw/udeb/z/private/101f289c/gif.nna1 -../tdata/HTML.NNA2 /epoc32/release/winscw/udeb/z/private/101f289c/html.nna2 -../tdata/CONTACT.NNA3 /epoc32/release/winscw/udeb/z/private/101f289c/contact.nna3 -../tdata/TXT.NNA4 /epoc32/release/winscw/udeb/z/private/101f289c/txt.nna4 ../tdata/TSTAPPU.DOC /epoc32/release/winscw/udeb/z/system/data/tstapp.doc ../tdata/zero_len.txt /epoc32/release/winscw/udeb/z/system/data/zero_len.txt ../tdata/one_byte.txt /epoc32/release/winscw/udeb/z/system/data/one_byte.txt @@ -469,42 +369,38 @@ ../tdata/testfile2.txt /epoc32/release/winscw/udeb/z/system/data/testpath/filtertests/testfile2.txt ../tdata/testfile3.txt /epoc32/release/winscw/udeb/z/system/data/testpath/filtertests/testfile3.txt ../tdata/testfile4.txt /epoc32/release/winscw/udeb/z/system/data/testpath/filtertests/testfile4.txt +../tdata/GIF.NNA1 /epoc32/release/winscw/udeb/z/private/101f289c/gif.nna1 +../tdata/HTML.NNA2 /epoc32/release/winscw/udeb/z/private/101f289c/html.nna2 +../tdata/CONTACT.NNA3 /epoc32/release/winscw/udeb/z/private/101f289c/contact.nna3 +../tdata/TXT.NNA4 /epoc32/release/winscw/udeb/z/private/101f289c/txt.nna4 ../tdata/UpdatedAppsList.bin /epoc32/release/winscw/udeb/z/system/data/updatedappslist.bin +../tdata/102081cf_reg.rsc /epoc32/release/winscw/udeb/z/system/data/102081cf_reg.rsc +../tdata/102081ce_reg.rsc /epoc32/release/winscw/udeb/z/system/data/102081ce_reg.rsc ../tdata/FileWithUnknownMimeType.UnrecognisableExtention /epoc32/release/winscw/udeb/z/system/data/filewithunknownmimetype.unrecognisableextention ../tdata/TApsRecogAppTest.mmr /epoc32/release/winscw/udeb/z/system/data/tapsrecogapptest.mmr -../tdata/recmime_1.rsc /epoc32/release/winscw/udeb/z/system/data/recmime_1.rsc +../tdata/recmime_1.rsc /epoc32/release/winscw/udeb/z/system/data/recmime_1.rsc ../tdata/recmime_winscw.dll /epoc32/release/winscw/udeb/z/system/data/recmime_winscw.dll ../tdata/mimecontentpolicy/sd_goo.dcf /epoc32/release/winscw/udeb/z/system/data/sd_goo.dcf ../tdata/mimecontentpolicy/fl_goo.dm /epoc32/release/winscw/udeb/z/system/data/fl_goo.dm -../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/release/winscw/udeb/z/system/data/jpeg_wes.dm -../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/release/winscw/udeb/z/system/data/gif_wallpaper.gif +../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/release/winscw/udeb/z/system/data/jpeg_wes.dm +../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/release/winscw/udeb/z/system/data/gif_wallpaper.gif ../tdata/mimecontentpolicy/propelli.jpg /epoc32/release/winscw/udeb/z/system/data/propelli.jpg ../tdata/mimecontentpolicy/type-r.jpg /epoc32/release/winscw/udeb/z/system/data/type-r.jpg ../tdata/1028583d.txt /epoc32/release/winscw/udeb/z/private/10202be9/1028583d.txt //test Central Repository initialisation file ../tdata/10003a3f.txt /epoc32/release/winscw/udeb/z/private/10202be9/10003a3f.txt //Test repository file contains closed content and extension information - +../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/winscw/udeb/z/system/data/testupdregappuninstallation_reg.rsc +../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/winscw/udeb/z/system/data/testupgradeupdregappuninstallation_reg.rsc // WINSCW UREL - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -../tef/tstnnapp.mbm /epoc32/release/winscw/urel/z/resource/apps/tstnnapp.mbm +../tef/tstappviewneg.xyz /epoc32/release/winscw/urel/z/resource/apps/tstappviewneg.xyz +../tef/tstappviewneg.mbm /epoc32/release/winscw/urel/z/resource/apps/tstappviewneg.mbm +../tef/tstnnapp.mbm /epoc32/release/winscw/urel/z/resource/apps/tstnnapp.mbm ../tef/App_ctrl.MBM /epoc32/release/winscw/urel/z/resource/apps/app_ctrl.mbm +../tef/zerosizedicon.mbm /epoc32/release/winscw/urel/z/resource/apps/zerosizedicon.mbm ../tef/svg_icon.svg /epoc32/release/winscw/urel/z/resource/apps/svg_icon.svg ../tdata/AAA_reg.Rsc /epoc32/release/winscw/urel/z/apparctest/aaa_reg.rsc ../tdata/Corrupted_reg.RSC /epoc32/release/winscw/urel/z/apparctest/corrupted_reg.rsc -../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/winscw/urel/z/system/data/testupdregappuninstallation_reg.rsc -../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/winscw/urel/z/system/data/testupgradeupdregappuninstallation_reg.rsc -../tef/zerosizedicon.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/zerosizedicon.mbm -../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/apparctestregfiles/tstappviewneg.xyz -#endif - -../tef/tstappviewneg.mbm /epoc32/release/winscw/urel/z/resource/apps/tstappviewneg.mbm -../tef/tstappviewneg.xyz /epoc32/release/winscw/urel/z/resource/apps/tstappviewneg.xyz -../tdata/GIF.NNA1 /epoc32/release/winscw/urel/z/private/101f289c/gif.nna1 -../tdata/HTML.NNA2 /epoc32/release/winscw/urel/z/private/101f289c/html.nna2 -../tdata/CONTACT.NNA3 /epoc32/release/winscw/urel/z/private/101f289c/contact.nna3 -../tdata/TXT.NNA4 /epoc32/release/winscw/urel/z/private/101f289c/txt.nna4 ../tdata/TSTAPPU.DOC /epoc32/release/winscw/urel/z/system/data/tstapp.doc ../tdata/zero_len.txt /epoc32/release/winscw/urel/z/system/data/zero_len.txt ../tdata/one_byte.txt /epoc32/release/winscw/urel/z/system/data/one_byte.txt @@ -515,41 +411,35 @@ ../tdata/testfile2.txt /epoc32/release/winscw/urel/z/system/data/testpath/filtertests/testfile2.txt ../tdata/testfile3.txt /epoc32/release/winscw/urel/z/system/data/testpath/filtertests/testfile3.txt ../tdata/testfile4.txt /epoc32/release/winscw/urel/z/system/data/testpath/filtertests/testfile4.txt +../tdata/GIF.NNA1 /epoc32/release/winscw/urel/z/private/101f289c/gif.nna1 +../tdata/HTML.NNA2 /epoc32/release/winscw/urel/z/private/101f289c/html.nna2 +../tdata/CONTACT.NNA3 /epoc32/release/winscw/urel/z/private/101f289c/contact.nna3 +../tdata/TXT.NNA4 /epoc32/release/winscw/urel/z/private/101f289c/txt.nna4 ../tdata/FileWithUnknownMimeType.UnrecognisableExtention /epoc32/release/winscw/urel/z/system/data/filewithunknownmimetype.unrecognisableextention ../tdata/TApsRecogAppTest.mmr /epoc32/release/winscw/urel/z/system/data/tapsrecogapptest.mmr -../tdata/recmime_1.rsc /epoc32/release/winscw/urel/z/system/data/recmime_1.rsc +../tdata/recmime_1.rsc /epoc32/release/winscw/urel/z/system/data/recmime_1.rsc ../tdata/recmime_winscw.dll /epoc32/release/winscw/urel/z/system/data/recmime_winscw.dll -../tdata/mimecontentpolicy/sd_goo.dcf /epoc32/release/winscw/urel/z/system/data/sd_goo.dcf -../tdata/mimecontentpolicy/fl_goo.dm /epoc32/release/winscw/urel/z/system/data/fl_goo.dm -../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/release/winscw/urel/z/system/data/jpeg_wes.dm -../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/release/winscw/urel/z/system/data/gif_wallpaper.gif -../tdata/mimecontentpolicy/propelli.jpg /epoc32/release/winscw/urel/z/system/data/propelli.jpg -../tdata/mimecontentpolicy/type-r.jpg /epoc32/release/winscw/urel/z/system/data/type-r.jpg -../tdata/1028583d.txt /epoc32/release/winscw/urel/z/private/10202be9/1028583d.txt //test Central Repository initialisation file -../tdata/10003a3f.txt /epoc32/release/winscw/urel/z/private/10202be9/10003a3f.txt //Test repository file contains closed content and extension information +../tdata/mimecontentpolicy/sd_goo.dcf /epoc32/release/winscw/urel/z/system/data/sd_goo.dcf +../tdata/mimecontentpolicy/fl_goo.dm /epoc32/release/winscw/urel/z/system/data/fl_goo.dm +../tdata/mimecontentpolicy/jpeg_wes.dm /epoc32/release/winscw/urel/z/system/data/jpeg_wes.dm +../tdata/mimecontentpolicy/gif_wallpaper.gif /epoc32/release/winscw/urel/z/system/data/gif_wallpaper.gif +../tdata/mimecontentpolicy/propelli.jpg /epoc32/release/winscw/urel/z/system/data/propelli.jpg +../tdata/mimecontentpolicy/type-r.jpg /epoc32/release/winscw/urel/z/system/data/type-r.jpg +../tdata/1028583d.txt /epoc32/release/winscw/urel/z/private/10202be9/1028583d.txt //test Central Repository initialisation file +../tdata/10003a3f.txt /epoc32/release/winscw/urel/z/private/10202be9/10003a3f.txt //Test repository file contains closed content and extension information +../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/winscw/urel/z/system/data/testupdregappuninstallation_reg.rsc +../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/winscw/urel/z/system/data/testupgradeupdregappuninstallation_reg.rsc // ARMV5 UDEB - -// exporting db & certstore for armv5 -../tdata/scr.db /epoc32/data/z/sys/install/scr/provisioned/scr.db -../tef/testpkg/swicertstore.dat /epoc32/data/z/resource/swicertstore.dat - - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK +../tef/tstappviewneg.xyz /epoc32/release/armv5/udeb/z/resource/apps/tstappviewneg.xyz +../tef/tstappviewneg.mbm /epoc32/release/armv5/udeb/z/resource/apps/tstappviewneg.mbm ../tef/tstnnapp.mbm /epoc32/release/armv5/udeb/z/resource/apps/tstnnapp.mbm +../tef/App_ctrl.MBM /epoc32/release/armv5/udeb/z/resource/apps/app_ctrl.mbm +../tef/zerosizedicon.mbm /epoc32/release/armv5/udeb/z/resource/apps/zerosizedicon.mbm +../tef/svg_icon.svg /epoc32/release/armv5/udeb/z/resource/apps/svg_icon.svg ../tdata/AAA_reg.Rsc /epoc32/release/armv5/udeb/z/apparctest/aaa_reg.rsc ../tdata/Corrupted_reg.RSC /epoc32/release/armv5/udeb/z/apparctest/corrupted_reg.rsc -../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/armv5/udeb/z/system/data/testupdregappuninstallation_reg.rsc -../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/armv5/udeb/z/system/data/testupgradeupdregappuninstallation_reg.rsc -#endif -../tef/tstappviewneg.mbm /epoc32/release/armv5/udeb/z/resource/apps/tstappviewneg.mbm -../tef/tstappviewneg.xyz /epoc32/release/armv5/udeb/z/resource/apps/tstappviewneg.xyz - -../tdata/GIF.NNA1 /epoc32/release/armv5/udeb/z/private/101f289c/gif.nna1 -../tdata/HTML.NNA2 /epoc32/release/armv5/udeb/z/private/101f289c/html.nna2 -../tdata/CONTACT.NNA3 /epoc32/release/armv5/udeb/z/private/101f289c/contact.nna3 -../tdata/TXT.NNA4 /epoc32/release/armv5/udeb/z/private/101f289c/txt.nna4 ../tdata/TSTAPPU.DOC /epoc32/release/armv5/udeb/tstapp.doc ../tdata/zero_len.txt /epoc32/release/armv5/udeb/zero_len.txt ../tdata/one_byte.txt /epoc32/release/armv5/udeb/one_byte.txt @@ -560,6 +450,10 @@ ../tdata/testfile2.txt /epoc32/release/armv5/udeb/z/system/data/testpath/filtertests/testfile2.txt ../tdata/testfile3.txt /epoc32/release/armv5/udeb/z/system/data/testpath/filtertests/testfile3.txt ../tdata/testfile4.txt /epoc32/release/armv5/udeb/z/system/data/testpath/filtertests/testfile4.txt +../tdata/GIF.NNA1 /epoc32/release/armv5/udeb/z/private/101f289c/gif.nna1 +../tdata/HTML.NNA2 /epoc32/release/armv5/udeb/z/private/101f289c/html.nna2 +../tdata/CONTACT.NNA3 /epoc32/release/armv5/udeb/z/private/101f289c/contact.nna3 +../tdata/TXT.NNA4 /epoc32/release/armv5/udeb/z/private/101f289c/txt.nna4 ../tdata/FileWithUnknownMimeType.UnrecognisableExtention /epoc32/release/armv5/udeb/z/system/data/filewithunknownmimetype.unrecognisableextention ../tdata/TApsRecogAppTest.mmr /epoc32/release/armv5/udeb/z/system/data/tapsrecogapptest.mmr ../tdata/recmime_1.rsc /epoc32/release/armv5/udeb/z/system/data/recmime_1.rsc @@ -577,34 +471,19 @@ ../tdata/recupgrade2.rsc /epoc32/release/armv5/udeb/z/system/data/recupgrade2.rsc ../tdata/recupgrade_armv5_rel.dll /epoc32/release/armv5/udeb/z/system/data/recupgrade_armv5_rel.dll ../tdata/recupgrade2_armv5_rel.dll /epoc32/release/armv5/udeb/z/system/data/recupgrade2_armv5_rel.dll +../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/armv5/udeb/z/system/data/testupdregappuninstallation_reg.rsc +../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/armv5/udeb/z/system/data/testupgradeupdregappuninstallation_reg.rsc // ARMV5 UREL - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK +../tef/tstappviewneg.xyz /epoc32/release/armv5/urel/z/resource/apps/tstappviewneg.xyz +../tef/tstappviewneg.mbm /epoc32/release/armv5/urel/z/resource/apps/tstappviewneg.mbm ../tef/tstnnapp.mbm /epoc32/release/armv5/urel/z/resource/apps/tstnnapp.mbm ../tef/App_ctrl.MBM /epoc32/release/armv5/urel/z/resource/apps/app_ctrl.mbm +../tef/zerosizedicon.mbm /epoc32/release/armv5/urel/z/resource/apps/zerosizedicon.mbm ../tef/svg_icon.svg /epoc32/release/armv5/urel/z/resource/apps/svg_icon.svg ../tdata/AAA_reg.Rsc /epoc32/release/armv5/urel/z/apparctest/aaa_reg.rsc ../tdata/Corrupted_reg.RSC /epoc32/release/armv5/urel/z/apparctest/corrupted_reg.rsc -../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/armv5/urel/z/system/data/testupdregappuninstallation_reg.rsc -../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/armv5/urel/z/system/data/testupgradeupdregappuninstallation_reg.rsc -../tef/zerosizedicon.mbm /epoc32/release/winscw/udeb/z/apparctestregfiles/zerosizedicon.mbm -../tef/tstappviewneg.xyz /epoc32/release/winscw/udeb/z/apparctestregfiles/tstappviewneg.xyz -#endif -../tef/tstappviewneg.xyz /epoc32/release/armv5/urel/z/resource/apps/tstappviewneg.xyz -../tef/tstappviewneg.mbm /epoc32/release/armv5/urel/z/resource/apps/tstappviewneg.mbm -../tef/tstappviewneg.mbm /epoc32/data/z/apparctestregfiles/tstappviewneg.mbm -../tef/App_ctrl.MBM /epoc32/data/z/apparctestregfiles/App_ctrl.MBM -../tef/svg_icon.svg /epoc32/data/z/apparctestregfiles/svg_icon.svg -../tef/tstappviewneg.xyz /epoc32/data/z/apparctestregfiles/tstappviewneg.xyz -../tef/tupgradeiconapp/tupgradeiconapp.mbm /epoc32/data/z/apparctestregfiles/tupgradeiconapp.mbm -../tef/zerosizedicon.mbm /epoc32/data/z/apparctestregfiles/zerosizedicon.mbm - -../tdata/GIF.NNA1 /epoc32/release/armv5/urel/z/private/101f289c/gif.nna1 -../tdata/HTML.NNA2 /epoc32/release/armv5/urel/z/private/101f289c/html.nna2 -../tdata/CONTACT.NNA3 /epoc32/release/armv5/urel/z/private/101f289c/contact.nna3 -../tdata/TXT.NNA4 /epoc32/release/armv5/urel/z/private/101f289c/txt.nna4 ../tdata/TSTAPPU.DOC /epoc32/release/armv5/urel/tstapp.doc ../tdata/zero_len.txt /epoc32/release/armv5/urel/zero_len.txt ../tdata/one_byte.txt /epoc32/release/armv5/urel/one_byte.txt @@ -615,6 +494,10 @@ ../tdata/testfile2.txt /epoc32/release/armv5/urel/z/system/data/testpath/filtertests/testfile2.txt ../tdata/testfile3.txt /epoc32/release/armv5/urel/z/system/data/testpath/filtertests/testfile3.txt ../tdata/testfile4.txt /epoc32/release/armv5/urel/z/system/data/testpath/filtertests/testfile4.txt +../tdata/GIF.NNA1 /epoc32/release/armv5/urel/z/private/101f289c/gif.nna1 +../tdata/HTML.NNA2 /epoc32/release/armv5/urel/z/private/101f289c/html.nna2 +../tdata/CONTACT.NNA3 /epoc32/release/armv5/urel/z/private/101f289c/contact.nna3 +../tdata/TXT.NNA4 /epoc32/release/armv5/urel/z/private/101f289c/txt.nna4 ../tdata/FileWithUnknownMimeType.UnrecognisableExtention /epoc32/release/armv5/urel/z/system/data/filewithunknownmimetype.unrecognisableextention ../tdata/TApsRecogAppTest.mmr /epoc32/release/armv5/urel/z/system/data/tapsrecogapptest.mmr ../tdata/recmime_1.rsc /epoc32/release/armv5/urel/z/system/data/recmime_1.rsc @@ -632,4 +515,6 @@ ../tdata/recupgrade2.rsc /epoc32/release/armv5/urel/z/system/data/recupgrade2.rsc ../tdata/recupgrade_armv5_rel.dll /epoc32/release/armv5/urel/z/system/data/recupgrade_armv5_rel.dll ../tdata/recupgrade2_armv5_rel.dll /epoc32/release/armv5/urel/z/system/data/recupgrade2_armv5_rel.dll +../tdata/testupdregappuninstallation_reg.rsc /epoc32/release/armv5/urel/z/system/data/testupdregappuninstallation_reg.rsc +../tdata/testupgradeupdregappuninstallation_reg.rsc /epoc32/release/armv5/urel/z/system/data/testupgradeupdregappuninstallation_reg.rsc diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/apparc.iby --- a/appfw/apparchitecture/group/apparc.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/apparc.iby Wed Sep 01 12:24:48 2010 +0100 @@ -17,37 +17,6 @@ #ifndef __APPARC_IBY__ #define __APPARC_IBY__ -#ifdef __TEXTSHELL_OBY__ - -#include -#include -#include -file=ABI_DIR\BUILD_DIR\sisregistryclient.dll sys\bin\sisregistryclient.dll -file=ABI_DIR\BUILD_DIR\sisregistryserver.exe sys\bin\sisregistryserver.exe -file=ABI_DIR\BUILD_DIR\plan.dll sys\bin\plan.dll -file=ABI_DIR\BUILD_DIR\siscontroller.dll sys\bin\siscontroller.dll -file=ABI_DIR\BUILD_DIR\apprscparser.dll sys\bin\apprscparser.dll -file=ABI_DIR\BUILD_DIR\swtypereginfo.dll sys\bin\swtypereginfo.dll -file=ABI_DIR\BUILD_DIR\swidataprovider.dll sys\bin\swidataprovider.dll -file=ABI_DIR\BUILD_DIR\securitymanager.dll sys\bin\securitymanager.dll -file=ABI_DIR\BUILD_DIR\sislauncherclient.dll sys\bin\sislauncherclient.dll -file=ABI_DIR\BUILD_DIR\sislauncherserver.exe sys\bin\sislauncherserver.exe -file=ABI_DIR\BUILD_DIR\swiobserverclient.dll sys\bin\swiobserverclient.dll -file=ABI_DIR\BUILD_DIR\uissclient.dll sys\bin\uissclient.dll -#include -#include -#include -#include -file=ABI_DIR\BUILD_DIR\devinfosupportclient.dll sys\bin\devinfosupportclient.dll -file=ABI_DIR\BUILD_DIR\devinfosupportcommon.dll sys\bin\devinfosupportcommon.dll -file=ABI_DIR\BUILD_DIR\ocspsupportclient.dll sys\bin\ocspsupportclient.dll -file=ABI_DIR\BUILD_DIR\ocspsupport.exe sys\bin\ocspsupport.exe -file=ABI_DIR\BUILD_DIR\swiobserver.exe sys\bin\swiobserver.exe -file=ABI_DIR\BUILD_DIR\Http.dll System\Libs\Http.dll -file=ABI_DIR\BUILD_DIR\httputils.dll System\Libs\httputils.dll - -#endif - REM Application Architecture file=ABI_DIR\BUILD_DIR\apparc.dll System\Libs\apparc.dll @@ -59,6 +28,7 @@ file=ABI_DIR\BUILD_DIR\ServiceRegistry.dll System\Libs\ServiceRegistry.dll + #ifndef SYMBIAN_SYSTEM_STATE_MANAGEMENT file=ABI_DIR\BUILD_DIR\apstart.dll System\Libs\apstart.dll #endif // SYMBIAN_SYSTEM_STATE_MANAGEMENT diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/apparcTest.iby --- a/appfw/apparchitecture/group/apparcTest.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/group/apparcTest.iby Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009-2010 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" @@ -135,6 +135,7 @@ data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\TCtrlPnlApp_reg.RSC private\10003a3f\apps\TCtrlPnlApp_reg.RSC data=EPOCROOTepoc32\data\Z\private\10202be9\1028583d.txt private\10202be9\1028583d.txt +data=EPOCROOTepoc32\data\Z\private\10202be9\10003a3f.txt private\10202be9\10003a3f.txt // Change for Control panel Start diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/group/apparcTest_new.iby --- a/appfw/apparchitecture/group/apparcTest_new.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,313 +0,0 @@ -/* -* Copyright (c) 2009-2010 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 __APPARCTEST_IBY__ -#define __APPARCTEST_IBY__ - -REM Application Architecture Framework unit test iby file - - -#ifndef __APPFWK_TEST_FRAMEWORK_IBY__ - #include -#endif - - -file=ABI_DIR\BUILD_DIR\texe.exe sys\bin\texe.exe - -file=ABI_DIR\BUILD_DIR\TCmdLineExe.exe sys\bin\TCmdLineExe.exe - -file=ABI_DIR\BUILD_DIR\tstapp.exe sys\bin\tstapp.exe -data=EPOCROOTepoc32\data\Z\private\10003a3f\import\apps\tstapp_reg.rsc private\10003a3f\import\apps\tstapp_reg.rsc -file=ABI_DIR\BUILD_DIR\tnonnativeruntime.exe sys\bin\tnonnativeruntime.exe -data=EPOCROOTepoc32\data\Z\private\10003a3f\import\apps\tnonnativeruntime_reg.rsc private\10003a3f\import\apps\tnonnativeruntime_reg.rsc -data=ZRESOURCE\apps\tstapp.rsc Resource\apps\tstapp.rsc -data=ZRESOURCE\apps\tstapp_loc.r01 Resource\apps\tstapp_loc.r01 -data=ZRESOURCE\apps\tstapp_loc.r02 Resource\apps\tstapp_loc.r02 -data=ZRESOURCE\apps\tstapp_loc.r03 Resource\apps\tstapp_loc.r03 -data=ZRESOURCE\apps\tstapp_loc.r04 Resource\apps\tstapp_loc.r04 -data=ZRESOURCE\apps\tstapp_loc.r05 Resource\apps\tstapp_loc.r05 -data=ZRESOURCE\apps\tstapp_loc.rsc Resource\apps\tstapp_loc.rsc -data=ZRESOURCE\apps\tstapp.mbm Resource\apps\tstapp.mbm -data=ZRESOURCE\apps\tstapp02.m02 Resource\apps\tstapp02.m02 -data=ZRESOURCE\apps\tstappview01.m01 Resource\apps\tstappview01.m01 -data=ZRESOURCE\apps\tstappview02.k Resource\apps\tstappview02.k -data=ZRESOURCE\apps\tstappview01.m02 Resource\apps\tstappview01.m02 -data=ZRESOURCE\apps\tstappview Resource\apps\tstappview -data=ZRESOURCE\apps\tstappviewneg.xyz Resource\apps\tstappviewneg.xyz -data=ZRESOURCE\apps\tstappviewneg.mbm Resource\apps\tstappviewneg.mbm - - -file=ABI_DIR\BUILD_DIR\m_ctrl.exe sys\bin\m_ctrl.exe -data=ZRESOURCE\apps\m_ctrl.rsc Resource\Apps\m_ctrl.rsc -data=ZRESOURCE\apps\m_ctrl_loc.rsc Resource\Apps\m_ctrl_loc.rsc -data=EPOCROOTepoc32\data\Z\private\10003a3f\import\apps\m_ctrl_reg.rsc private\10003a3f\import\apps\m_ctrl_reg.rsc - -data=EPOCROOT##epoc32\data\Z\resource\swicertstore.dat resource\swicertstore.dat -data=EPOCROOT##epoc32\data\z\apparctest\scr_test.db apparctest\scr_test.db - - -ECOM_PLUGIN(refnativeplugin.dll,10285BC3.rsc) -ECOM_PLUGIN(tstapp_embedded.dll,10004c66.rsc) - -data=ZSYSTEM\install\TSTAPP_standalone_Stub.sis system\install\TSTAPP_standalone_Stub.sis -data=ZSYSTEM\install\app_CTRL2_stub.sis system\install\app_CTRL2_stub.sis -data=ZSYSTEM\install\m_ctrl_v2_Stub.sis system\install\m_ctrl_v2_Stub.sis - -data=ZSYSTEM\apparctestsisfiles\app_CTRL2.sis apparctest\apparctestsisfiles\app_CTRL2.sis -data=ZSYSTEM\apparctestsisfiles\EndTaskTestApp.sis apparctest\apparctestsisfiles\EndTaskTestApp.sis -data=ZSYSTEM\apparctestsisfiles\SimpleApparcTestApp.sis apparctest\apparctestsisfiles\SimpleApparcTestApp.sis -data=ZSYSTEM\apparctestsisfiles\T_EnvSlots.sis apparctest\apparctestsisfiles\T_EnvSlots.sis -data=ZSYSTEM\apparctestsisfiles\t_groupname.sis apparctest\apparctestsisfiles\t_groupname.sis -data=ZSYSTEM\apparctestsisfiles\t_winchainChild.sis apparctest\apparctestsisfiles\t_winchainChild.sis -data=ZSYSTEM\apparctestsisfiles\t_winchainLaunch.sis apparctest\apparctestsisfiles\t_winchainLaunch.sis -data=ZSYSTEM\apparctestsisfiles\TApparcTestApp.sis apparctest\apparctestsisfiles\TApparcTestApp.sis -data=ZSYSTEM\apparctestsisfiles\TestTrustedPriorityApp2.sis apparctest\apparctestsisfiles\TestTrustedPriorityApp2.sis -data=ZSYSTEM\apparctestsisfiles\TestUnTrustedPriorityApp2.sis apparctest\apparctestsisfiles\TestUnTrustedPriorityApp2.sis -data=ZSYSTEM\apparctestsisfiles\TSTAPP_standalone.sis apparctest\apparctestsisfiles\TSTAPP_standalone.sis -data=ZSYSTEM\apparctestsisfiles\TStartDocApp_v2.sis apparctest\apparctestsisfiles\TStartDocApp_v2.sis -data=ZSYSTEM\apparctestsisfiles\UnProctectedUidApp.sis apparctest\apparctestsisfiles\UnProctectedUidApp.sis -data=ZSYSTEM\apparctestsisfiles\tnotifydrivesapp.sis apparctest\apparctestsisfiles\tnotifydrivesapp.sis -data=ZSYSTEM\apparctestsisfiles\T_groupname_ver1.sis apparctest\apparctestsisfiles\T_groupname_ver1.sis -data=ZSYSTEM\apparctestsisfiles\T_groupname_ver2.sis apparctest\apparctestsisfiles\T_groupname_ver2.sis -data=ZSYSTEM\apparctestsisfiles\tlargestackapp.sis apparctest\apparctestsisfiles\tlargestackapp.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddable_embedded.sis apparctest\apparctestsisfiles\TAppEmbeddable_embedded.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddable_standalone.sis apparctest\apparctestsisfiles\TAppEmbeddable_standalone.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddableOnly_v2.sis apparctest\apparctestsisfiles\TAppEmbeddableOnly_v2.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddableUiNotStandAlone_v2.sis apparctest\apparctestsisfiles\TAppEmbeddableUiNotStandAlone_v2.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddableUiOrStandAlone_embedded.sis apparctest\apparctestsisfiles\TAppEmbeddableUiOrStandAlone_embedded.sis -data=ZSYSTEM\apparctestsisfiles\TAppEmbeddableUiOrStandalone_standalone.sis apparctest\apparctestsisfiles\TAppEmbeddableUiOrStandalone_standalone.sis -data=ZSYSTEM\apparctestsisfiles\TAppNotEmbeddable_v2.sis apparctest\apparctestsisfiles\TAppNotEmbeddable_v2.sis -data=ZSYSTEM\apparctestsisfiles\TNNApp1.sis apparctest\apparctestsisfiles\TNNApp1.sis -data=ZSYSTEM\apparctestsisfiles\serverapp2.sis apparctest\apparctestsisfiles\serverapp2.sis -data=ZSYSTEM\apparctestsisfiles\serverapp4.sis apparctest\apparctestsisfiles\serverapp4.sis -data=ZSYSTEM\apparctestsisfiles\serverapp6.sis apparctest\apparctestsisfiles\serverapp6.sis -data=ZSYSTEM\apparctestsisfiles\serverapp7.sis apparctest\apparctestsisfiles\serverapp7.sis -data=ZSYSTEM\apparctestsisfiles\TRApaLsSessionStartAppTestApp_v2.sis apparctest\apparctestsisfiles\TRApaLsSessionStartAppTestApp_v2.sis -data=ZSYSTEM\apparctestsisfiles\TestMultipleApps.sis apparctest\apparctestsisfiles\TestMultipleApps.sis -//data=ZSYSTEM\apparctestsisfiles\TInvalidApp.sis apparctest\apparctestsisfiles\TInvalidApp.sis -data=ZSYSTEM\apparctestsisfiles\m_ctrl_v2.sis apparctest\apparctestsisfiles\m_ctrl_v2.sis -data=ZSYSTEM\apparctestsisfiles\openservice1app.sis apparctest\apparctestsisfiles\openservice1app.sis -data=ZSYSTEM\apparctestsisfiles\openservice2app.sis apparctest\apparctestsisfiles\openservice2app.sis -data=ZSYSTEM\apparctestsisfiles\T_DataPrioritySystem1.sis apparctest\apparctestsisfiles\T_DataPrioritySystem1.sis -data=ZSYSTEM\apparctestsisfiles\T_DataPrioritySystem2.sis apparctest\apparctestsisfiles\T_DataPrioritySystem2.sis -data=ZSYSTEM\apparctestsisfiles\T_DataPrioritySystem3.sis apparctest\apparctestsisfiles\T_DataPrioritySystem3.sis -data=ZSYSTEM\apparctestsisfiles\TCtrlPnlApp.sis apparctest\apparctestsisfiles\TCtrlPnlApp.sis -data=ZSYSTEM\apparctestsisfiles\TestTrustedPriorityApp1.sis apparctest\apparctestsisfiles\TestTrustedPriorityApp1.sis -data=ZSYSTEM\apparctestsisfiles\TestUnTrustedPriorityApp1.sis apparctest\apparctestsisfiles\TestUnTrustedPriorityApp1.sis -data=ZSYSTEM\apparctestsisfiles\tRuleBasedApp1.sis apparctest\apparctestsisfiles\tRuleBasedApp1.sis -data=ZSYSTEM\apparctestsisfiles\tRuleBasedApp2.sis apparctest\apparctestsisfiles\tRuleBasedApp2.sis -data=ZSYSTEM\apparctestsisfiles\tRuleBasedApp3.sis apparctest\apparctestsisfiles\tRuleBasedApp3.sis -data=ZSYSTEM\apparctestsisfiles\tRuleBasedApp4.sis apparctest\apparctestsisfiles\tRuleBasedApp4.sis -data=ZSYSTEM\apparctestsisfiles\zerosizedicontestapp.sis apparctest\apparctestsisfiles\zerosizedicontestapp.sis -data=ZSYSTEM\apparctestsisfiles\ForceRegApp1.sis apparctest\apparctestsisfiles\ForceRegApp1.sis -data=ZSYSTEM\apparctestsisfiles\ForceRegApp2.sis apparctest\apparctestsisfiles\ForceRegApp2.sis -data=ZSYSTEM\apparctestsisfiles\ForceRegMultipleApps.sis apparctest\apparctestsisfiles\ForceRegMultipleApps.sis -data=ZSYSTEM\apparctestsisfiles\CustomiseDefaultIconApp.sis apparctest\apparctestsisfiles\CustomiseDefaultIconApp.sis -data=ZSYSTEM\apparctestsisfiles\TestMultipleAppsDowngrade.sis apparctest\apparctestsisfiles\TestMultipleAppsDowngrade.sis -data=ZSYSTEM\apparctestsisfiles\ticoncaptionoverride.sis apparctest\apparctestsisfiles\ticoncaptionoverride.sis - -file=ABI_DIR\BUILD_DIR\ParentProcess.exe Sys\bin\ParentProcess.exe -file=ABI_DIR\BUILD_DIR\ChildI.exe Sys\bin\ChildI.exe -file=ABI_DIR\BUILD_DIR\ChildII.exe Sys\bin\ChildII.exe -file=ABI_DIR\BUILD_DIR\ChildIII.exe Sys\bin\ChildIII.exe -data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\ParentProcess_reg.Rsc private\10003a3f\apps\ParentProcess_reg.RSC -data=EPOCROOTepoc32\data\z\Resource\apps\ParentProcess.Rsc Resource\apps\ParentProcess.Rsc -data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\ChildI_reg.RSC private\10003a3f\apps\ChildI_reg.RSC -data=EPOCROOTepoc32\data\z\Resource\apps\ChildI.Rsc Resource\apps\ChildI.Rsc -data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\ChildII_reg.RSC private\10003a3f\apps\ChildII_reg.RSC -data=EPOCROOTepoc32\data\z\Resource\apps\ChildII.Rsc Resource\apps\ChildII.Rsc -data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\ChildIII_reg.RSC private\10003a3f\apps\ChildIII_reg.RSC -data=EPOCROOTepoc32\data\z\Resource\apps\ChildIII.Rsc Resource\apps\ChildIII.Rsc - -data=ABI_DIR\BUILD_DIR\tstapp.doc System\data\tstapp.doc -data=ABI_DIR\BUILD_DIR\zero_len.txt System\data\zero_len.txt -data=ABI_DIR\BUILD_DIR\one_byte.txt System\data\one_byte.txt - - -#ifdef SYMBIAN_DISTINCT_LOCALE_MODEL -REM Copy new locale language dlls to ROM SFTB10.1 onwards -file=ABI_DIR\BUILD_DIR\elocl_lan.002 Sys\bin\elocl_lan.002 -file=ABI_DIR\BUILD_DIR\elocl_lan.004 Sys\bin\elocl_lan.004 -file=ABI_DIR\BUILD_DIR\elocl_lan.005 Sys\bin\elocl_lan.005 -file=ABI_DIR\BUILD_DIR\elocl_lan.032 Sys\bin\elocl_lan.032 -#else -// These are pre SYMBIAN_DISTINCT_LOCALE_MODEL language locale dlls.Not to be use SFTB10.1 onwards. -file=ABI_DIR\BUILD_DIR\ELOCL.01 Sys\bin\ELOCL.01 -file=ABI_DIR\BUILD_DIR\ELOCL.02 Sys\bin\ELOCL.02 -file=ABI_DIR\BUILD_DIR\ELOCL.03 Sys\bin\ELOCL.03 -file=ABI_DIR\BUILD_DIR\ELOCL.04 Sys\bin\ELOCL.04 -file=ABI_DIR\BUILD_DIR\ELOCL.05 Sys\bin\ELOCL.05 -file=ABI_DIR\BUILD_DIR\ELOCL.10 Sys\bin\ELOCL.10 -file=ABI_DIR\BUILD_DIR\ELOCL.32 Sys\bin\ELOCL.32 -#endif -// This is now included in techview, from initlocale.iby -//file=ABI_DIR\BUILD_DIR\ELOCL.LOC Sys\bin\ELOCL.LOC - - -data=EPOCROOT##epoc32\data\Z\Apparctest\Corrupted_reg.rsc ApparcTest\Corrupted_reg.rsc -data=EPOCROOT##epoc32\data\z\system\data\Testpath\file1.txt System\data\Testpath\file1.txt -data=EPOCROOT##epoc32\data\z\system\data\Testpath\file2.txt System\data\Testpath\file2.txt -data=EPOCROOT##epoc32\data\z\system\data\Testpath\FilterTests\testfile1.txt System\data\Testpath\FilterTests\testfile1.txt -data=EPOCROOT##epoc32\data\z\system\data\Testpath\FilterTests\testfile2.txt System\data\Testpath\FilterTests\testfile2.txt -data=EPOCROOT##epoc32\data\z\system\data\Testpath\FilterTests\testfile3.txt System\data\Testpath\FilterTests\testfile3.txt -data=EPOCROOT##epoc32\data\z\system\data\Testpath\FilterTests\testfile4.txt System\data\Testpath\FilterTests\testfile4.txt -data=EPOCROOT##epoc32\data\z\system\data\FileWithUnknownMimeType.UnrecognisableExtention System\data\FileWithUnknownMimeType.UnrecognisableExtention -data=ABI_DIR\BUILD_DIR\z\system\data\recmime_1.rsc System\data\recmime_1.rsc -data=ABI_DIR\BUILD_DIR\z\system\data\recmime_armv5.dll System\data\recmime_armv5.dll -data=ABI_DIR\BUILD_DIR\z\system\data\TApsRecogAppTest.mmr System\data\TApsRecogAppTest.mmr -data=ABI_DIR\BUILD_DIR\z\system\data\recupgrade.rsc System\data\recupgrade.rsc -data=ABI_DIR\BUILD_DIR\z\system\data\recupgrade2.rsc System\data\recupgrade2.rsc -data=ABI_DIR\BUILD_DIR\z\system\data\recupgrade_armv5_rel.dll System\data\recupgrade_armv5_rel.dll -data=ABI_DIR\BUILD_DIR\z\system\data\recupgrade2_armv5_rel.dll System\data\recupgrade2_armv5_rel.dll -data=ABI_DIR\BUILD_DIR\z\system\data\TApsRecogUpgradeTest.upg System\data\TApsRecogUpgradeTest.upg -data=ABI_DIR\BUILD_DIR\z\system\data\TApsRecogUpgradeTest.upr System\data\TApsRecogUpgradeTest.upr - - -data=EPOCROOT##epoc32\data\Z\Apparctest\testforceregistrationapp1_reg.rsc ApparcTest\testforceregistrationapp1_reg.rsc -data=EPOCROOT##epoc32\data\Z\Apparctest\testforceregistrationapp1_loc.rsc ApparcTest\testforceregistrationapp1_loc.rsc - -data=EPOCROOTepoc32\data\Z\resource\apps\default_app_icon.m02 resource\apps\default_app_icon.m02 - -data=EPOCROOTepoc32\data\Z\private\10202be9\1028583d.txt private\10202be9\1028583d.txt -data=EPOCROOTepoc32\data\Z\private\10202be9\10003a3f.txt private\10202be9\10003a3f.txt - - -// Change for Control panel Start -file=ABI_DIR\BUILD_DIR\app_ctrl.exe Sys\bin\app_ctrl.exe -file=ABI_DIR\BUILD_DIR\app_ctrl2.exe Sys\bin\app_ctrl2.exe -data=EPOCROOTepoc32\data\z\private\10003a3f\import\apps\App_CTRL2_reg.Rsc private\10003a3f\import\apps\App_CTRL2_reg.Rsc -data=EPOCROOTepoc32\data\z\Resource\apps\App_CTRL2.Rsc Resource\apps\App_CTRL2.Rsc -// Change for Control panel End - -ECOM_PLUGIN(tforceregapprec.dll, A0001010.rsc) - -ECOM_PLUGIN(TLongUrlRecognizer.DLL,10004c4e.rsc) -ECOM_PLUGIN(TBufferOnlyRec.DLL, 10207f88.rsc) - -data=ABI_DIR\BUILD_DIR\z\system\data\TRApaLsSessionStartAppTest.tst System\data\TRApaLsSessionStartAppTest.tst -ECOM_PLUGIN(TRApaLsSessionStartAppTestRecognizer.DLL,10000182.rsc) - -ECOM_PLUGIN(TAppLaunchChecker.DLL,1020d465.rsc) -ECOM_PLUGIN(TAppLaunchChecker2.DLL,102722ba.rsc) -ECOM_PLUGIN(TNonNativeAppLaunchChecker.DLL,A0000B70.rsc) - -ECOM_PLUGIN(testrec.dll,102032A5.rsc) - -file=ABI_DIR\BUILD_DIR\tssaac.exe sys\bin\tssaac.exe -file=ABI_DIR\BUILD_DIR\tssaac_tapp.exe sys\bin\tssaac_tapp.exe -data=EPOCROOTepoc32\data\Z\private\10003a3f\apps\tssaac_tapp_reg.rsc private\10003a3f\apps\tssaac_tapp_reg.rsc -data=ZRESOURCE\apps\tssaac_tapp.rsc resource\apps\tssaac_tapp.rsc -data=ZRESOURCE\apps\tssaac_tapp_loc.rsc resource\apps\tssaac_tapp_loc.rsc - -ECOM_PLUGIN(TNonNativeRec.DLL, 10207f95.rsc) -data=EPOCROOTepoc32\data\Z\private\101F289C\gif.nna1 private\101F289C\gif.nna1 -data=EPOCROOTepoc32\data\Z\private\101F289C\html.nna2 private\101F289C\html.nna2 -data=EPOCROOTepoc32\data\Z\private\101F289C\contact.nna3 private\101F289C\contact.nna3 -data=EPOCROOTepoc32\data\Z\private\101F289C\txt.nna4 private\101F289C\txt.nna4 - -data=EPOCROOT##epoc32\data\z\system\data\fl_goo.dm System\data\fl_goo.dm -data=EPOCROOT##epoc32\data\z\system\data\jpeg_wes.dm System\data\jpeg_wes.dm -data=EPOCROOT##epoc32\data\z\system\data\gif_wallpaper.gif System\data\gif_wallpaper.gif -data=EPOCROOT##epoc32\data\z\system\data\propelli.jpg System\data\propelli.jpg -data=EPOCROOT##epoc32\data\z\system\data\type-r.jpg System\data\type-r.jpg -data=EPOCROOT##epoc32\data\z\system\data\sd_goo.dcf System\data\sd_goo.dcf - -ECOM_PLUGIN(recmime.DLL, 102822B7.rsc) -data=EPOCROOTepoc32\data\z\Resource\Plugins\recmime.RSC apparctest\dummy.rsc - -ECOM_PLUGIN(recupgrade.DLL, recupgrade.rsc) - -data=ABI_DIR\DEBUG_DIR\ApparcTestServer.exe sys\bin\ApparcTestServer.exe -data=ABI_DIR\DEBUG_DIR\TIconLoaderAndIconArrayForLeaks.dll sys\bin\TIconLoaderAndIconArrayForLeaks.dll - -data=DATAZ_\apparctest\apparctest_run.bat \apparctest_run.bat - -data=DATAZ_\apparctest\apparctest_t_ApsScan.script \apparctest\apparctest_t_ApsScan.script -data=DATAZ_\apparctest\apparctest_t_AppList.script \apparctest\apparctest_t_AppList.script -data=DATAZ_\apparctest\apparctest_t_AppListFileUpdate.script \apparctest\apparctest_t_AppListFileUpdate.script -data=DATAZ_\apparctest\apparctest_t_AutoMMCReaderOpen.script \apparctest\apparctest_t_AutoMMCReaderOpen.script -data=DATAZ_\apparctest\apparctest_t_Backup.script \apparctest\apparctest_t_Backup.script -data=DATAZ_\apparctest\apparctest_t_Capability1.script \apparctest\apparctest_t_Capability1.script -data=DATAZ_\apparctest\apparctest_t_Capability2.script \apparctest\apparctest_t_Capability2.script -data=DATAZ_\apparctest\apparctest_t_DataTypeMappingWithSid.script \apparctest\apparctest_t_DataTypeMappingWithSid.script -data=DATAZ_\apparctest\apparctest_t_Caption.script \apparctest\apparctest_t_Caption.script -data=DATAZ_\apparctest\apparctest_t_Cmdln.script \apparctest\apparctest_t_Cmdln.script -data=DATAZ_\apparctest\apparctest_t_ControlPanelTest.script \apparctest\apparctest_t_ControlPanelTest.script -data=DATAZ_\apparctest\apparctest_T_DataMappingPersistenceA.script \apparctest\apparctest_T_DataMappingPersistenceA.script -data=DATAZ_\apparctest\apparctest_T_DataMappingPersistenceB.script \apparctest\apparctest_T_DataMappingPersistenceB.script -data=DATAZ_\apparctest\apparctest_T_DataMappingPersistenceC.script \apparctest\apparctest_T_DataMappingPersistenceC.script -data=DATAZ_\apparctest\apparctest_t_EndTask.script \apparctest\apparctest_t_EndTask.script -data=DATAZ_\apparctest\apparctest_t_Exe.script \apparctest\apparctest_t_Exe.script -data=DATAZ_\apparctest\apparctest_t_File2.script \apparctest\apparctest_t_File2.script -data=DATAZ_\apparctest\apparctest_t_File3.script \apparctest\apparctest_t_File3.script -data=DATAZ_\apparctest\apparctest_t_Foreground.script \apparctest\apparctest_t_Foreground.script -data=DATAZ_\apparctest\apparctest_t_GroupName.script \apparctest\apparctest_t_GroupName.script -data=DATAZ_\apparctest\apparctest_t_GroupName_ver1.script \apparctest\apparctest_t_GroupName_ver1.script -data=DATAZ_\apparctest\apparctest_t_GroupName_ver2.script \apparctest\apparctest_t_GroupName_ver2.script -data=DATAZ_\apparctest\apparctest_t_Locale.script \apparctest\apparctest_t_Locale.script -data=DATAZ_\apparctest\apparctest_t_Mdr.script \apparctest\apparctest_t_Mdr.script -data=DATAZ_\apparctest\apparctest_t_mimecontentpolicy.script \apparctest\apparctest_t_mimecontentpolicy.script -data=DATAZ_\apparctest\apparctest_t_Mru.script \apparctest\apparctest_t_Mru.script -data=DATAZ_\apparctest\apparctest_t_NonNativeApps.script \apparctest\apparctest_t_NonNativeApps.script -data=DATAZ_\apparctest\apparctest_t_Notif.script \apparctest\apparctest_t_Notif.script -data=DATAZ_\apparctest\apparctest_t_OOM.script \apparctest\apparctest_t_OOM.script -data=DATAZ_\apparctest\apparctest_t_Pro.script \apparctest\apparctest_t_Pro.script -data=DATAZ_\apparctest\apparctest_t_Proc.script \apparctest\apparctest_t_Proc.script -data=DATAZ_\apparctest\apparctest_t_RApaLsSession.script \apparctest\apparctest_t_RApaLsSession.script -data=DATAZ_\apparctest\apparctest_t_RuleBasedLaunching.script \apparctest\apparctest_t_RuleBasedLaunching.script -data=DATAZ_\apparctest\apparctest_t_Serv2.script \apparctest\apparctest_t_Serv2.script -data=DATAZ_\apparctest\apparctest_t_Serv3.script \apparctest\apparctest_t_Serv3.script -data=DATAZ_\apparctest\apparctest_t_ServiceRegistry.script \apparctest\apparctest_t_ServiceRegistry.script -data=DATAZ_\apparctest\apparctest_t_Services.script \apparctest\apparctest_t_Services.script -data=DATAZ_\apparctest\apparctest_t_StartApp.script \apparctest\apparctest_t_StartApp.script -data=DATAZ_\apparctest\apparctest_t_StartDoc.script \apparctest\apparctest_t_StartDoc.script -data=DATAZ_\apparctest\apparctest_t_WindowChaining.script \apparctest\apparctest_t_WindowChaining.script -data=DATAZ_\apparctest\apparctest_t_Wgnam.script \apparctest\apparctest_t_Wgnam.script -data=DATAZ_\apparctest\apparctest_t_IntegritySupport.script \apparctest\apparctest_t_IntegritySupport.script -data=DATAZ_\apparctest\apparctest_t_IntegritySupportReboot1.script \apparctest\apparctest_t_IntegritySupportReboot1.script -data=DATAZ_\apparctest\apparctest_t_IntegritySupportReboot2.script \apparctest\apparctest_t_IntegritySupportReboot2.script -data=DATAZ_\apparctest\apparctest_t_largestack.script \apparctest\apparctest_t_largestack.script -data=DATAZ_\apparctest\apparctest_t_drivenotification.script \apparctest\apparctest_t_drivenotification.script -data=DATAZ_\apparctest\apparctest_t_servicebase.script \apparctest\apparctest_t_servicebase.script -data=DATAZ_\apparctest\apparctest_t_RecUpgrade.script \apparctest\apparctest_t_RecUpgrade.script -data=DATAZ_\apparctest\apparctest_t_UpdateAppList.script \apparctest\apparctest_t_UpdateAppList.script - -data=DATAZ_\apparctest\apparctest_t_forcereg.script \apparctest\apparctest_t_forcereg.script -data=DATAZ_\apparctest\apparctest_t_clientnotif.script \apparctest\apparctest_t_clientnotif.script -data=DATAZ_\apparctest\apparctest_t_nonnativetest.script \apparctest\apparctest_t_nonnativetest.script - -REM SysStart Apparc Scripts -data=DATAZ_\apparctest\apparctest_T_TestStartApp1L.script \apparctest\apparctest_T_TestStartApp1L.script -data=DATAZ_\apparctest\apparctest_T_TestStartApp2L.script \apparctest\apparctest_T_TestStartApp2L.script -data=DATAZ_\apparctest\apparctest_T_TestStartApp3L.script \apparctest\apparctest_T_TestStartApp3L.script -data=DATAZ_\apparctest\apparctest_T_TestStartApp4L.script \apparctest\apparctest_T_TestStartApp4L.script -data=DATAZ_\apparctest\apparctest_T_TestStartApp5L.script \apparctest\apparctest_T_TestStartApp5L.script -data=DATAZ_\apparctest\apparctest_T_TestStartApp6L.script \apparctest\apparctest_T_TestStartApp6L.script -data=DATAZ_\apparctest\apparctest_T_TestGetAllApps.script \apparctest\apparctest_T_TestGetAllApps.script -data=DATAZ_\apparctest\apparctest_T_TestInsertDataTypeL.script \apparctest\apparctest_T_TestInsertDataTypeL.script -data=DATAZ_\apparctest\apparctest_T_TestAppForDataTypeL.script \apparctest\apparctest_T_TestAppForDataTypeL.script -data=DATAZ_\apparctest\apparctest_T_TestDeleteDataTypeL.script \apparctest\apparctest_T_TestDeleteDataTypeL.script -data=DATAZ_\apparctest\apparctest_T_TestServiceDiscovery.script \apparctest\apparctest_T_TestServiceDiscovery.script -data=DATAZ_\apparctest\apparctest_T_TestGetAppInfo.script \apparctest\apparctest_T_TestGetAppInfo.script -data=DATAZ_\apparctest\apparctest_T_TestAppCount.script \apparctest\apparctest_T_TestAppCount.script -data=DATAZ_\apparctest\apparctest_T_TestCreateDoc.script \apparctest\apparctest_T_TestCreateDoc.script -data=DATAZ_\apparctest\apparctest_T_TestLocalisedCaptionL.script \apparctest\apparctest_T_TestLocalisedCaptionL.script - -REM End of Application Architecture Framework unit test iby file - -patchdata apgrfx.dll @ KMinApplicationStackSize 0xf000 -patchdata apserv.dll @ KApaDrivesToMonitor 4 -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/inc/APGCLI.H --- a/appfw/apparchitecture/inc/APGCLI.H Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/inc/APGCLI.H Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -24,12 +24,6 @@ #include #include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include "apgupdate.h" -//#include -#include -#endif - // classes referenced class RFile; class MArrayFiller; @@ -71,6 +65,7 @@ RPointerArray iItems; }; + /** A session with the application architecture server. The server provides access to a cached list of the applications on the device. @@ -239,7 +234,6 @@ IMPORT_C TInt RollbackNonNativeApplicationsUpdates(); IMPORT_C TInt GetAppType(TUid& aTypeUid, TUid aAppUid) const; IMPORT_C TInt ForceRegistration(const RPointerArray& aRegFiles); - private: // Reserved for future use IMPORT_C virtual void RApaLsSession_Reserved1(); IMPORT_C virtual void RApaLsSession_Reserved2(); @@ -251,12 +245,6 @@ */ IMPORT_C void ForceCommitNonNativeApplicationsUpdatesL(); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - IMPORT_C TInt UpdateAppListL(RArray& aAppUpdateInfo); - IMPORT_C TInt ForceRegistration(const RPointerArray& aForceRegAppsInfo); - IMPORT_C TInt UpdatedAppsInfoL(RArray& aUpdatedApps); -#endif - private: void DoGetAppOwnedFilesL(CDesCArray& aArrayToFill, TUid aAppUid) const; void DoGetAppViewsL(CApaAppViewArray& aArrayToFill, TUid aAppUid) const; @@ -279,17 +267,9 @@ void DoStartAppL(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous); static void GetMainThreadIdL(TThreadId& aThreadId, const RProcess& aProcess); static void DeletePointerToPointerToTAny(TAny* aPointerToPointerToTAny); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK static CBufFlat* CreateRegFilesBufferL(const RPointerArray& aRegFiles); -#endif - static void CleanupOperation(TAny* aAny); -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - CBufFlat* CreateAppUpdateInfoBufferL(RArray& aAppUpdateInfo); - CBufFlat* CreateForceRegAppInfoBufferL(const RPointerArray& aForceRegAppsInfo); -#endif private: // data friend class CApaLsSessionExtension; CApaLsSessionExtension* iExtension; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/inc/apaapp.h --- a/appfw/apparchitecture/inc/apaapp.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/inc/apaapp.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -19,6 +19,11 @@ #ifndef __APAAPP_H__ #define __APAAPP_H__ +#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS +#if !defined(__APAID_PARTNER_H__) +#include "apaidpartner.h" +#endif +#endif //SYMBIAN_ENABLE_SPLIT_HEADERS #include #include #include diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/inc/apgupdate.h --- a/appfw/apparchitecture/inc/apgupdate.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -// Copyright (c) 2010 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: -// apgupdate.h -// - -#ifndef __APGUPDATE_H__ -#define __APGUPDATE_H__ - -#include -#include -#include - - -/* - * Contains application uid and corresponding action performed by installer. - * @publishedAll - */ -class TApaAppUpdateInfo - { -public: - /* - * Defines actions performed by installers on an application. - * @publishedAll - */ - enum TApaAppAction - { - //Application is installed or upgraded. - EAppPresent, - //Application is uninstalled. - EAppNotPresent, - //Application information is changed. - EAppInfoChanged - }; - -public: - IMPORT_C void InternalizeL(RReadStream& aReadStream); - IMPORT_C void ExternalizeL(RWriteStream& aWriteStream) const; - IMPORT_C TApaAppUpdateInfo(TUid aAppUid, TApaAppUpdateInfo::TApaAppAction aAction); - IMPORT_C TApaAppUpdateInfo(); -public: - TUid iAppUid; - TApaAppAction iAction; - }; -#endif //__APGUPDATE_H__ diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tdata/1028583d.txt Binary file appfw/apparchitecture/tdata/1028583d.txt has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tdata/forcegtestapp1.frg1 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tdata/forcegtestapp2.frg2 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tdata/scr.db Binary file appfw/apparchitecture/tdata/scr.db has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tdata/scr_test.db Binary file appfw/apparchitecture/tdata/scr_test.db has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/App_ctrl_loc.RSS --- a/appfw/apparchitecture/tef/App_ctrl_loc.RSS Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/App_ctrl_loc.RSS Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -28,7 +28,7 @@ { caption="Test icon"; number_of_icons=1; - icon_file="C:\\Resource\\Apps\\APP_CTRL.MBM"; + icon_file="Z:\\Resource\\Apps\\APP_CTRL.MBM"; } }; } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/CustomiseDefaultIconApp.mmp --- a/appfw/apparchitecture/tef/CustomiseDefaultIconApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET CustomiseDefaultIconApp.exe -TARGETTYPE exe -UID 0x100039CE 0x10208181 -VENDORID 0x70000001 - - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - - -// Application localisable resource file -resource CustomiseDefaultIconApp_loc.RSS -start resource CustomiseDefaultIconApp_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - -START RESOURCE CustomiseDefaultIconApp_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/SimpleApparcTestApp.mmp --- a/appfw/apparchitecture/tef/SimpleApparcTestApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/SimpleApparcTestApp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2000-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" @@ -36,14 +36,14 @@ // Application exe specific resource which is localised to the application RESOURCE SimpleApparcTestApp.rss start resource SimpleApparcTestApp.rss -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end // Application exe registration resource file START RESOURCE SimpleApparcTestApp_Reg.RSS -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps lang sc END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddableOnly_v2.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddableOnly_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddableOnly_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -36,12 +36,11 @@ //reg added for Datacaging START RESOURCE TAppEmbeddableOnly_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END START RESOURCE 10004c5C.rss -TARGET /tappembeddableonly.rsc -targetpath /apparctestregfiles +TARGET tappembeddableonly.rsc END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddableUiNotStandAlone_v2.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddableUiNotStandAlone_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddableUiNotStandAlone_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -36,12 +36,11 @@ //reg added for Datacaging START RESOURCE TAppEmbeddableUiNotStandAlone_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END START RESOURCE 10004c5E.rss -TARGET /tappembeddableuinotstandalone.rsc -targetpath /apparctestregfiles +TARGET tappembeddableuinotstandalone.rsc END LIBRARY apparc.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddableUiOrStandAlone_embedded.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddableUiOrStandAlone_embedded.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddableUiOrStandAlone_embedded.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -35,8 +35,7 @@ //SYSTEMINCLUDE /epoc32/include/ecom START RESOURCE 10004c5D.rss -TARGET /tappembeddableuiorstandalone_embedded.rsc -targetpath /apparctestregfiles +TARGET tappembeddableuiorstandalone_embedded.rsc END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddableUiOrStandalone_standalone.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddableUiOrStandalone_standalone.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddableUiOrStandalone_standalone.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -37,7 +37,7 @@ //reg added for Datacaging START RESOURCE TAppEmbeddableUiOrStandAlone_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END LIBRARY euser.lib apparc.lib eikcore.lib cone.lib //added cone.lib from original? diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddable_embedded.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddable_embedded.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddable_embedded.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -35,9 +35,7 @@ START RESOURCE 10004c5B.rss -// TARGET /apparctestregfiles/tappembeddable_embedded.rsc //bpermi -TARGET /tappembeddable_embedded.rsc -targetpath /apparctestregfiles +TARGET tappembeddable_embedded.rsc END LIBRARY apparc.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppEmbeddable_standalone.mmp --- a/appfw/apparchitecture/tef/TAppEmbeddable_standalone.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppEmbeddable_standalone.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -38,7 +38,7 @@ //reg added for Datacaging START RESOURCE TAppEmbeddable_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END LIBRARY euser.lib apparc.lib eikcore.lib cone.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppInstall/TestAppInstall.mmp --- a/appfw/apparchitecture/tef/TAppInstall/TestAppInstall.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppInstall/TestAppInstall.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -38,11 +38,11 @@ START RESOURCE TestAppInstall.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps end START RESOURCE TestAppInstall_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /apparctest END LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TAppNotEmbeddable_v2.mmp --- a/appfw/apparchitecture/tef/TAppNotEmbeddable_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TAppNotEmbeddable_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -36,7 +36,7 @@ //reg added for Datacaging START RESOURCE TAppNotEmbeddable_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TApparcTestApp.mmp --- a/appfw/apparchitecture/tef/TApparcTestApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TApparcTestApp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -44,15 +44,15 @@ START RESOURCE tapparctestapp.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tapparctestapp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/import/apps END START RESOURCE tapparctestapp_loc.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps LANG sc END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TCtrlPnlApp.mmp --- a/appfw/apparchitecture/tef/TCtrlPnlApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET TCtrlPnlApp.exe -TARGETTYPE exe -UID 0x100039CE 0x10207f79 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE TCtrlPnlApp_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TEndTaskTestApp/EndTaskTestApp.mmp --- a/appfw/apparchitecture/tef/TEndTaskTestApp/EndTaskTestApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TEndTaskTestApp/EndTaskTestApp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -42,14 +42,14 @@ // Registration file SOURCEPATH . START RESOURCE EndTask_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END // Application resource file SOURCEPATH . START RESOURCE EndTaskTestApp.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TIconLoaderAndIconArrayForLeaks.mmp --- a/appfw/apparchitecture/tef/TIconLoaderAndIconArrayForLeaks.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TIconLoaderAndIconArrayForLeaks.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -38,15 +38,9 @@ source APGWGNAM.CPP apgcli.cpp APGPRIV.CPP apgstart.cpp apgrecog.cpp source apgnotif.cpp APSCLI.CPP apgconstdata.cpp source apsecutils.cpp - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -SOURCE apgupdate.cpp -#endif - SOURCEPATH ../apparc source apaid.cpp apastd.cpp - USERINCLUDE . USERINCLUDE ../apgrfx USERINCLUDE ../apserv @@ -63,17 +57,9 @@ library sysutil.lib #endif -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -library scrclient.lib -#endif - macro UI_FRAMEWORKS_V1_REMNANT_FOR_JAVA_MIDLET_INSTALLER -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - deffile ticonforleaks.def -#else - deffile ticonforleaks_legacy.def -#endif +deffile TICONFORLEAKS.DEF SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TNonNative/TNNApp1.mmp --- a/appfw/apparchitecture/tef/TNonNative/TNNApp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TNonNative/TNNApp1.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -38,7 +38,7 @@ resource TNNApp1_reg.rss start resource TNNApp1_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TNonNative/TNNApp2.mmp --- a/appfw/apparchitecture/tef/TNonNative/TNNApp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TNonNative/TNNApp2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -32,7 +32,7 @@ resource TNNApp2_reg.rss start resource TNNApp2_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TRApaLsSessionStartAppTestApp_v2.mmp --- a/appfw/apparchitecture/tef/TRApaLsSessionStartAppTestApp_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TRApaLsSessionStartAppTestApp_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -34,7 +34,7 @@ // Application exe registration resource file START RESOURCE TRApaLsSessionStartAppTestApp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SOURCE TRApaLsSessionStartAppTestApp.cpp diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TSTAPP_standalone.MMP --- a/appfw/apparchitecture/tef/TSTAPP_standalone.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TSTAPP_standalone.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -44,20 +44,20 @@ //reg added for Datacaging START RESOURCE tstapp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/import/apps END START RESOURCE TSTAPP.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tstapp_loc.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps LANG SC 01 02 03 04 05 END START BITMAP tstapp.mbm -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp @@ -66,19 +66,19 @@ END START BITMAP tstapp02.m02 -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 def25.bmp def25m.bmp def25.bmp def25m.bmp def50.bmp def50m.bmp END START BITMAP tstappview01.m01 -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 def25.bmp def25m.bmp def35.bmp def35m.bmp def50.bmp def50m.bmp END START BITMAP tstappview02.k -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp @@ -86,13 +86,13 @@ END START BITMAP tstappview01.m02 -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 def25.bmp def25m.bmp def35.bmp def35m.bmp def50.bmp def50m.bmp END START BITMAP tstappview -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TSTAPP_standalone_Stub.MMP --- a/appfw/apparchitecture/tef/TSTAPP_standalone_Stub.MMP Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - - - - TARGET tstapp.exe - TARGETTYPE exe - TARGETPATH /sys/bin - -CAPABILITY All -Tcb - -UID 0x100039CE 10 //the original UID -VENDORID 0x70000001 -EPOCSTACKSIZE 0x5000 - -SOURCEPATH . -SOURCE TSTAPP_standalone.CPP - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview -//systeminclude /epoc32/include/ecom - - -//reg added for Datacaging -START RESOURCE tstapp_reg.rss -TARGETPATH /private/10003a3f/import/apps -END - -START RESOURCE TSTAPP.rss -TARGETPATH /resource/apps -END - -START RESOURCE tstapp_loc.rss -TARGETPATH /resource/apps -LANG SC 01 02 03 04 05 -END - -START BITMAP tstapp.mbm -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon40x55.bmp tstappicon40x55m.bmp - -END - -START BITMAP tstapp02.m02 -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 def25.bmp def25m.bmp def25.bmp def25m.bmp def50.bmp def50m.bmp -END - -START BITMAP tstappview01.m01 -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 def25.bmp def25m.bmp def35.bmp def35m.bmp def50.bmp def50m.bmp -END - -START BITMAP tstappview02.k -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon40x55.bmp tstappicon40x55m.bmp -END - -START BITMAP tstappview01.m02 -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 def25.bmp def25m.bmp def35.bmp def35m.bmp def50.bmp def50m.bmp -END - -START BITMAP tstappview -TARGETPATH /resource/apps -SOURCEPATH ../tdatasrc -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp -SOURCE c8,1 tstappicon40x55.bmp tstappicon40x55m.bmp -END - -LIBRARY euser.lib apparc.lib eikcore.lib cone.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TStartDocApp_v2.mmp --- a/appfw/apparchitecture/tef/TStartDocApp_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TStartDocApp_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -28,7 +28,7 @@ SOURCE TStartDocApp.cpp START RESOURCE TStartDocApp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END USERINCLUDE . diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TWindowChaining.h --- a/appfw/apparchitecture/tef/TWindowChaining.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/TWindowChaining.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -44,6 +44,6 @@ const TInt KQueryChainChild1 = 428; const TInt KQueryChainChild2 = 429; -_LIT(KWinChainChildAppFileName, "c:\\sys\\bin\\t_winchainLaunch.exe"); +_LIT(KWinChainChildAppFileName, "z:\\sys\\bin\\t_winchainLaunch.exe"); #endif // __TWINDOWCHAINING_H__ diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_AppList.cpp --- a/appfw/apparchitecture/tef/T_AppList.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_AppList.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -23,12 +23,6 @@ #include #include "T_AppList.h" -#include "T_SisFileInstaller.h" - -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); - - CTestAppListStep::CTestAppListStep() { @@ -66,23 +60,6 @@ TEST(ret==KErrNone); } -TVerdict CTestAppListStep::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CTestAppListStep::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KApparcTestAppComponent); - - return TestStepResult(); - } TVerdict CTestAppListStep::doTestStepL() { @@ -98,5 +75,3 @@ INFO_PRINTF1(_L("Test Finished")); return TestStepResult(); } - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_AppList.h --- a/appfw/apparchitecture/tef/T_AppList.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_AppList.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -38,8 +38,6 @@ CTestAppListStep(); ~CTestAppListStep(); void TestAppList(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); private: RTestableApaLsSession iApaLsSession; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_AppListFileUpdateStep.cpp --- a/appfw/apparchitecture/tef/T_AppListFileUpdateStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_AppListFileUpdateStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -34,13 +34,12 @@ #include #include "T_AppListFileUpdateStep.h" -#include "T_SisFileInstaller.h" -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); - +_LIT(KTestAppZPath,"Z:\\ApparcTest\\TestAppInstall_reg.RSC"); _LIT(KAppListFileName,"C:\\private\\10003a3f\\AppsListCache\\AppsList.bin"); _LIT(KAppTimeFormat,"%:0%H%:1%T%:2%S%:3"); +_LIT(KAppDirectory,"C:\\Private\\10003a3f\\Import\\apps\\"); +_LIT(KTestAppObsolutePath1,"C:\\Private\\10003a3f\\Import\\apps\\TestAppInstall_reg.RSC"); const TInt KMaxTimeCount = 18; // 18 * 10 is 180 Seconds @@ -129,6 +128,9 @@ void CT_AppListFileUpdateStep::TestTimeStampL() { + // Create KAppDirectory + TInt err = iUtils.CreateDirectoryL(KAppDirectory); + TEST(err == KErrNone || err == KErrAlreadyExists); // Wait until KAppListFileName is present and check that the file has been created indeed TBool present = CheckForFilePresent(); @@ -141,11 +143,8 @@ // Install an application INFO_PRINTF1(_L("Install application...")); - - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); - + InstallApplicationL(KTestAppObsolutePath1); + // wait 5 seconds for the app to be properly installed User::After(5 * 1000000); @@ -163,10 +162,34 @@ // Uninstall & delete... INFO_PRINTF1(_L("Uninstalling application...")); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KApparcTestAppComponent); + DeleteApplicationL(KTestAppObsolutePath1); } +/* +Delete a registration resource file (TestAppInstall.rsc) in the path "C:\private\10003a3f\import\apps" . +*/ +void CT_AppListFileUpdateStep::DeleteApplicationL(const TDesC& aAppName) + { + INFO_PRINTF2(_L("Deleting file '%S'"), &aAppName); + + TInt ret = iUtils.SetReadOnly(aAppName, 0); + TEST(ret == KErrNone); + ret = iUtils.DeleteFileL(aAppName); + TEST(ret == KErrNone); + } + + +/* +Copy a registration resource file (TestAppInstall.rsc) in the path "c:\private\10003a3f\import\apps" . +*/ +void CT_AppListFileUpdateStep::InstallApplicationL(const TDesC& aAppName) + { + INFO_PRINTF3(_L("Copying file '%S' to folder '%S'"), &aAppName, &KTestAppZPath); + + TInt ret = iUtils.CopyFileL(KTestAppZPath, aAppName); + TEST(ret == KErrNone); + } /* @@ -224,13 +247,10 @@ // Do a rescan and check that the file exists again. INFO_PRINTF1(_L("Do a rescan and check that the file exists again....")); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); - + RPointerArray dummy; + TEST(iSession.ForceRegistration(dummy) == KErrNone); present = CheckForFilePresent(); TEST(present); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KApparcTestAppComponent); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_AppListFileUpdateStep.h --- a/appfw/apparchitecture/tef/T_AppListFileUpdateStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_AppListFileUpdateStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -40,6 +40,8 @@ private: void TestTimeStampL(); void AppsListModifiedTimeL(TTime &); + void DeleteApplicationL(const TDesC&); + void InstallApplicationL(const TDesC&); private: void TestDeleteAppListFileL(); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_CaptionStep.cpp --- a/appfw/apparchitecture/tef/T_CaptionStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_CaptionStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -57,7 +57,6 @@ #include "appfwk_test.h" #include "ticoncaptionoverride.h" //KUidTestIconCapOverride defined here #include "TIconLoaderAndIconArrayForLeaks.h" -#include "T_SisFileInstaller.h" // @@ -90,21 +89,11 @@ // Cenrep configuration details for English language _LIT(KCenRepCaption, "CRTstCap UK"); _LIT(KCenRepShortCaption, "CRTC UK"); -_LIT(KCenRepIconFilename, "C:\\resource\\apps\\ticoncapoverride.mbm"); - -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - -_LIT(KTstAppTiconcaptionoverrideSisFile, "z:\\apparctest\\apparctestsisfiles\\ticoncaptionoverride.sis"); -_LIT(KTstAppTiconcaptionoverrideComponent, "ticoncaptionoverride"); - -_LIT(KForceRegAppSisFile, "z:\\apparctest\\apparctestsisfiles\\ForceRegApp1.sis"); -_LIT(KForceRegAppComponent, "ForceRegApp1"); +_LIT(KCenRepIconFilename, "Z:\\resource\\apps\\ticoncapoverride.mbm"); const TUid KUidIconCaptionRepository = {0x1028583d}; // Central Repository UID. const TInt KTextSize = 100; -const TInt KDelay = 4000000; // // // CT_CaptionStep @@ -115,61 +104,41 @@ void CT_CaptionStep::ChangeLocaleL(TLanguage aLanguage) { #ifdef SYMBIAN_DISTINCT_LOCALE_MODEL - _LIT(KLitLanguageLocaleDllNameBase, "elocl_lan"); - //Region and collation code values are hard coded, as the check, after changing the locale is made for the language only. - _LIT(KLitRegionLocaleDllNameBase, "elocl_reg.826"); - _LIT(KLitCollationLocaleDllNameBase, "elocl_col.001"); - _LIT(ThreeDigExt,".%03d"); - TExtendedLocale localeDll; - const TUidType uidType(TUid::Uid(0x10000079),TUid::Uid(0x100039e6)); - TBuf<16> languageLocaleDllName(KLitLanguageLocaleDllNameBase); - languageLocaleDllName.AppendFormat(ThreeDigExt, aLanguage); - TBuf<16> regionLocaleDllName(KLitRegionLocaleDllNameBase); - TBuf<16> collationLocaleDllName(KLitCollationLocaleDllNameBase); - // Try to load the locale dll - TInt error=localeDll.LoadLocale(languageLocaleDllName, regionLocaleDllName, collationLocaleDllName); - - if (error==KErrNotFound) - { - // Locale dll is not found for the asked language. - ERR_PRINTF2(_L("Failed to find the locale dll for %d"), aLanguage); - } - - User::LeaveIfError(error); - localeDll.SaveSystemSettings(); + _LIT(KLitLocaleDllNameBase, "elocl_lan"); + _LIT(KLitLocaleDllNameExtension, ".loc"); #else _LIT(KLitLocaleDllNameBase, "ELOCL"); - _LIT(TwoDigExt,".%02d"); - - RLibrary localeDll; + _LIT(KLitLocaleDllNameExtension, ".LOC"); +#endif + RLibrary localeDll; + TBuf<16> localeDllName(KLitLocaleDllNameBase); CleanupClosePushL(localeDll); - const TUidType uidType(TUid::Uid(0x10000079),TUid::Uid(0x100039e6)); - TBuf<16> localeDllName(KLitLocaleDllNameBase); - localeDllName.AppendFormat(TwoDigExt, language); - - // Try to load the locale dll +#ifdef SYMBIAN_DISTINCT_LOCALE_MODEL + _LIT(ThreeDigExt,".%03d"); + localeDllName.AppendFormat(ThreeDigExt, aLanguage); +#else + _LIT(TwoDigExt,".%02d"); + localeDllName.AppendFormat(TwoDigExt, aLanguage); +#endif + TInt error=localeDll.Load(localeDllName, uidType); if (error==KErrNotFound) { - // Locale dll is not found for the asked language. - ERR_PRINTF2(_L("Failed to find the locale dll for %d"), language); + localeDllName=KLitLocaleDllNameBase; + localeDllName.Append(KLitLocaleDllNameExtension); + error=localeDll.Load(localeDllName, uidType); } - User::LeaveIfError(error); + +#ifdef SYMBIAN_DISTINCT_LOCALE_MODEL + TExtendedLocale myExtendedLocale; + User::LeaveIfError(myExtendedLocale.LoadLocaleAspect(localeDllName)); + User::LeaveIfError(myExtendedLocale.SaveSystemSettings()); +#else User::LeaveIfError(UserSvr::ChangeLocale(localeDllName)); - CleanupStack: opAndDestroy(); // localeDll #endif - - // Check if the device locale has changed - if (aLanguage == User::Language()) - { - SetTestStepResult(EPass); - } - else - { - ERR_PRINTF3(_L("Failed to change the locale to %d whereas the current locale is"), aLanguage, User::Language()); - } + CleanupStack::PopAndDestroy(&localeDll); } @@ -213,11 +182,12 @@ }; // Change the locale - if(languageToTest != User::Language()) - { - ChangeLocaleWaitForApplistUpdate(languageToTest); - TEST(User::Language() == languageToTest); - } + ChangeLocaleL(languageToTest); + TEST(User::Language() == languageToTest); + + // Force the applist to be updated (so test app gets new language settings) + RPointerArray dummy; + User::LeaveIfError(iLs.ForceRegistration(dummy)); // Do the same set of tests for each language TestCApaSystemControlListL(); @@ -229,9 +199,7 @@ } // restore original locale, just in case... - if(User::Language() != language) - ChangeLocaleWaitForApplistUpdate(language); - + ChangeLocaleL(language); TEST(User::Language() == language); } @@ -440,7 +408,7 @@ { INFO_PRINTF1(_L("Testing TApaAppInfo streams... ")); - TApaAppInfo appInfoShort(KUidTestApp, _L("c:\\sys\\bin\\tstapp.exe"), _L("TstCap UK"),_L("TC UK")); + TApaAppInfo appInfoShort(KUidTestApp, _L("z:\\sys\\bin\\tstapp.exe"), _L("TstCap UK"),_L("TC UK")); TEST(appInfoShort.iShortCaption.Compare(_L("TC UK"))==0); TFileName tempFile=_L("c:\\system\\test\\TC_temp.txt"); @@ -502,7 +470,8 @@ TEST(User::Language() == ELangEnglish); // Force the applist to be updated (so test app gets new language settings) - ForceApplistUpdate(); + RPointerArray dummy; + User::LeaveIfError(iLs.ForceRegistration(dummy)); // SetAppShortCaption should return KErrNotFound if it could not find the app INFO_PRINTF1(_L(".....setting short caption for an unknown app")); @@ -540,16 +509,18 @@ // Check short caption remains updated after a refresh of the applist INFO_PRINTF1(_L(".....checking short caption remains updated after a refresh of the applist")); - ForceApplistUpdate(); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // Check short caption remains updated after a locale change INFO_PRINTF1(_L(".....checking short caption remains updated after a locale change")); - ChangeLocaleWaitForApplistUpdate(ELangJapanese); + ChangeLocaleL(ELangJapanese); TEST(User::Language() == ELangJapanese); // Japanese locale exists in epoc32 tree but not defined in test app - ChangeLocaleWaitForApplistUpdate(ELangEnglish); // back to English to see what happened in between + User::LeaveIfError(iLs.ForceRegistration(dummy)); + ChangeLocaleL(ELangEnglish); // back to English to see what happened in between TEST(User::Language() == ELangEnglish); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); @@ -559,15 +530,17 @@ TEST(err == KErrNone); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // English, the current app language, doesn't change... - ChangeLocaleWaitForApplistUpdate(ELangFrench); + ChangeLocaleL(ELangFrench); TEST(User::Language() == ELangFrench); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption2); // Set short caption of an app for a language which the app does not include (ELangAmerican) INFO_PRINTF1(_L(".....setting short caption of an app for a language which the app does not include")); - ChangeLocaleWaitForApplistUpdate(ELangAmerican); + ChangeLocaleL(ELangAmerican); TEST(User::Language() == ELangAmerican); + User::LeaveIfError(iLs.ForceRegistration(dummy)); err = iLs.SetAppShortCaption(KShortCaption2, ELangAmerican, KUidTestApp); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // American takes the default...so English...which has just been updated. @@ -578,31 +551,37 @@ TEST(err == KErrNone); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // American takes the default...so English...which has just been updated. - ChangeLocaleWaitForApplistUpdate(ELangEnglish); + ChangeLocaleL(ELangEnglish); TEST(User::Language() == ELangEnglish); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // English set individually ===> not updated by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangFrench); + ChangeLocaleL(ELangFrench); TEST(User::Language() == ELangFrench); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption2); // French set individually ===> not updated by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangGerman); + ChangeLocaleL(ELangGerman); TEST(User::Language() == ELangGerman); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption3); // German takes the one set by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangItalian); + ChangeLocaleL(ELangItalian); TEST(User::Language() == ELangItalian); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption3); // Italian takes the one set by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangSpanish); + ChangeLocaleL(ELangSpanish); TEST(User::Language() == ELangSpanish); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption3); // Spanish takes the one set by ELangNone // Set short caption of an app for a language which was set by the previous ELangNone INFO_PRINTF1(_L(".....setting short caption of an app which was set by the previous ELangNone")); - ChangeLocaleWaitForApplistUpdate(ELangItalian); + ChangeLocaleL(ELangItalian); TEST(User::Language() == ELangItalian); + User::LeaveIfError(iLs.ForceRegistration(dummy)); err = iLs.SetAppShortCaption(KShortCaption4, ELangItalian, KUidTestApp); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption4); @@ -613,30 +592,35 @@ TEST(err == KErrNone); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption4); // Italian set individually ===> not updated by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangEnglish); + ChangeLocaleL(ELangEnglish); TEST(User::Language() == ELangEnglish); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // English set individually ===> not updated by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangFrench); + ChangeLocaleL(ELangFrench); TEST(User::Language() == ELangFrench); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption2); // French set individually ===> not updated by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangGerman); + ChangeLocaleL(ELangGerman); TEST(User::Language() == ELangGerman); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption5); // German takes the one set by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangSpanish); + ChangeLocaleL(ELangSpanish); TEST(User::Language() == ELangSpanish); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption5); // Spanish takes the one set by ELangNone - ChangeLocaleWaitForApplistUpdate(ELangAmerican); + ChangeLocaleL(ELangAmerican); TEST(User::Language() == ELangAmerican); + User::LeaveIfError(iLs.ForceRegistration(dummy)); iLs.GetAppInfo(appInfo, KUidTestApp); TEST(appInfo.iShortCaption == KShortCaption1); // American takes the default...so English...which has just been updated. // restore original settings.... INFO_PRINTF1(_L(".....restoring original settings")); - ChangeLocaleWaitForApplistUpdate(language); + ChangeLocaleL(language); TEST(User::Language() == language); // restore original short captions for all langs....(h4 doesn't perform reboots between tests) TEST(iLs.SetAppShortCaption(KTestTApaAppInfoShortCaptionEnglish, ELangEnglish, KUidTestApp) == KErrNone); @@ -678,11 +662,9 @@ { INFO_PRINTF1(_L("APPFWK-APPARC-0087:TestIconCaptionOverridesL started...")); - //Change the system language to English before starting the tests - TRAPD(ret,ChangeLocaleL(ELangEnglish)); - TEST(ret == KErrNone); - TEST(User::Language() == ELangEnglish); - ForceApplistUpdate(); + //Change the system language to English before starting the tests + TRAPD(ret,ChangeLocaleL(ELangEnglish)); + TEST(ret == KErrNone); TApaAppInfo appInfo; //Get test app's information @@ -796,8 +778,10 @@ //tests whether the process with WriteDeviceData capability can update the configuration settings. TEST(error == KErrNone); - ForceApplistUpdate(); - + // Force the applist to be updated (so test app gets new language settings) + RPointerArray dummy; + User::LeaveIfError(iLs.ForceRegistration(dummy)); + TApaAppInfo appInfo; //Get test app's information iLs.GetAppInfo(appInfo, KUidTestIconCapOverride); @@ -813,8 +797,8 @@ //sets the short caption back to the actual for other tests to work error = cenRep->Set(shortCapKey,KCenRepShortCaption); - // Force the applist to be updated (so test app gets new language settings) - ForceApplistUpdate(); + // Force the applist to be updated (so test app gets new language settings) + User::LeaveIfError(iLs.ForceRegistration(dummy)); CleanupStack::PopAndDestroy(cenRep); //cenRep object INFO_PRINTF1(_L("APPFWK-APPARC-0089:TestCenRepChangeNotificationL finished...")); @@ -852,12 +836,12 @@ //French _LIT(KCaptionFrench, "CRTstCap FR"); _LIT(KShortCaptionFrench, "CRTC FR"); - _LIT(KIconFilenameFrench, "C:\\resource\\apps\\svg_icon.svg"); + _LIT(KIconFilenameFrench, "Z:\\resource\\apps\\svg_icon.svg"); //German _LIT(KCaptionGerman, "TstCap GE"); _LIT(KShortCaptionGerman, "TC GE"); - _LIT(KIconFilenameGerman, "C:\\resource\\apps\\ticoncapoverride.mbm"); + _LIT(KIconFilenameGerman, "Z:\\resource\\apps\\ticoncapoverride.mbm"); TApaAppInfo appInfo; RFile file; @@ -871,7 +855,9 @@ TEST(User::Language() == ELangFrench);//check language is set to French. - ForceApplistUpdate(); + // Force the applist to be updated (so test app gets new language settings) + RPointerArray dummy; + User::LeaveIfError(iLs.ForceRegistration(dummy)); //Get test app's information iLs.GetAppInfo(appInfo, KUidTestIconCapOverride); @@ -910,7 +896,7 @@ TEST(User::Language() == ELangGerman);//check language is set to German. // Force the applist to be updated (so test app gets new language settings) - ForceApplistUpdate(); + User::LeaveIfError(iLs.ForceRegistration(dummy)); //Get test app's information iLs.GetAppInfo(appInfo, KUidTestIconCapOverride); @@ -954,7 +940,7 @@ TEST(User::Language() == ELangEnglish);//check language is set to English. // Force the applist to be updated (so test app gets new language settings) - ForceApplistUpdate(); + User::LeaveIfError(iLs.ForceRegistration(dummy)); //Get test app's information iLs.GetAppInfo(appInfo, KUidTestIconCapOverride); @@ -987,7 +973,7 @@ INFO_PRINTF2(_L("----Expected icon filename==>%S"), &printString); INFO_PRINTF2(_L("----Retrieved icon filename==>%S"), &fileName); TEST(fileName.Compare(KCenRepIconFilename)==0); - file.Close(); + INFO_PRINTF1(_L("APPFWK-APPARC-0090:TestIconCaptionOverridesWithChangeLangL finished...")); } @@ -1025,42 +1011,6 @@ TestApiPrecedenceOverCenRepConfigInfoL(); } -void CT_CaptionStep::ForceApplistUpdate() -{ - // Force the applist to be updated (so test app gets new language settings) - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KForceRegAppSisFile); - sisFileInstaller.InstallSisL(KForceRegAppSisFile); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KForceRegAppComponent); -} - -void CT_CaptionStep::ChangeLocaleWaitForApplistUpdate(TLanguage aLanguage) - { - TRequestStatus status; - iLs.SetNotify(EFalse, status); - ChangeLocaleL(aLanguage); - User::WaitForRequest(status); - } - -TVerdict CT_CaptionStep::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppTiconcaptionoverrideSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppTiconcaptionoverrideSisFile); - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_CaptionStep::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KTstAppStandAloneComponent); - sisFileInstaller.UninstallSisL(KTstAppTiconcaptionoverrideComponent); - return TestStepResult(); - } - TVerdict CT_CaptionStep::doTestStepL() { INFO_PRINTF1(_L("Test T_Caption step started....\n")); @@ -1069,11 +1019,6 @@ TEST(iFs.Connect() == KErrNone); TEST(iLs.Connect() == KErrNone); - // Change the locale - ChangeLocaleL(ELangEnglish); - TEST(User::Language() == ELangEnglish); - ForceApplistUpdate(); - // run language tests for the test caption TRAPD(r, DoLanguageTestL()); TEST(r==KErrNone); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_CaptionStep.h --- a/appfw/apparchitecture/tef/T_CaptionStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_CaptionStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -42,8 +42,6 @@ public: CT_CaptionStep(); ~CT_CaptionStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); private: void DoLanguageTestL(); @@ -60,8 +58,6 @@ void TestCenRepChangeNotificationL(); void TestIconCaptionOverridesWithChangeLangL(); void TestIconCaptionOverridesMemoryLeaksL(); - void ForceApplistUpdate(); - void ChangeLocaleWaitForApplistUpdate(TLanguage aLanguage); private: RFs iFs; RTestableApaLsSession iLs; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_CmdlnStep.CPP --- a/appfw/apparchitecture/tef/T_CmdlnStep.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_CmdlnStep.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -24,10 +24,6 @@ #include "T_CmdlnStep.h" #include "testableapalssession.h" -#include "T_SisFileInstaller.h" - -_LIT(KTEnvSlotsAppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_EnvSlots.sis"); -_LIT(KTEnvSlotsAppComponent, "T_EnvSlots"); /** @SYMTestCaseID T-CmdlnStep-testSecureCmdLinesL @@ -642,10 +638,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTEnvSlotsAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTEnvSlotsAppSisFile); - SetTestStepResult(EPass); return TestStepResult(); } @@ -656,9 +648,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KTEnvSlotsAppComponent); - return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_CmdlnStep.h --- a/appfw/apparchitecture/tef/T_CmdlnStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_CmdlnStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -69,7 +69,7 @@ _LIT(KTLogFileAccess,"TestLogFile"); _LIT(KEnvFilePath,"c:\\Logs\\TestExecute\\EnvSlots.txt"); -_LIT(KTAppName,"C:\\sys\\bin\\T_EnvSlots.exe"); +_LIT(KTAppName,"Z:\\sys\\bin\\T_EnvSlots.exe"); _LIT(KTDocName,"C:\\System\\data\\temp.test"); _LIT(KTempDir,"C:\\System\\data\\"); _LIT(KTNoDocName,"C:\\Logs\\TestExecute\\NotFound.aaa"); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ControlPanelTest.cpp --- a/appfw/apparchitecture/tef/T_ControlPanelTest.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ControlPanelTest.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -48,16 +48,15 @@ #if !defined(__E32TEST_H__) #include #endif -#include "T_SisFileInstaller.h" _LIT(KCompleted, "Completed."); -_LIT(KCtrlApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\app_CTRL2.sis"); -_LIT(KCtrlApp2Component, "app_CTRL2"); - +_LIT(KRSCDIR,"C:\\Resource\\apps\\"); +_LIT(KRSCREGDIR,"C:\\private\\10003a3f\\import\\apps\\"); _LIT(KNEWCTLPATH,"C:\\sys\\bin\\app_CTRL2.exe"); - +_LIT(KSRCRESOURCEPATH,"Z:\\private\\10003a3f\\import\\apps\\App_CTRL2_reg.Rsc"); +_LIT(KDESTRESOURCEPATH,"C:\\private\\10003a3f\\import\\apps\\App_CTRL2_reg.Rsc"); LOCAL_D TInt SimulateKeyL(TAny*) { @@ -88,6 +87,17 @@ return KErrNone; } +void CT_ControlPanelTestStep::RemoveFilesFromCDrive() + { + TInt ret = iTestServ.SetReadOnly(KDESTRESOURCEPATH,0); //remove READ ONLY option + TEST(ret==KErrNone); + + TRAP(ret,iTestServ.DeleteFileL(KDESTRESOURCEPATH)); + TEST(ret==KErrNone); + } + + + /** Auxiliary Fn for Test Case ID T-ControlPanelStep-testControls1L, T-ControlPanelStep-testControls2L, T-ControlPanelStep-testControls3L @@ -199,15 +209,15 @@ { INFO_PRINTF1(_L("In testControls2L......")); - INFO_PRINTF1(_L("Application installing to C Drive......")); + iTestServ.CreateDirectoryL(KRSCDIR); + iTestServ.CreateDirectoryL(KRSCREGDIR); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KCtrlApp2SisFile); - sisFileInstaller.InstallSisL(KCtrlApp2SisFile); - - INFO_PRINTF1(_L("Updating the list ......")); - TInt ret; - iControlCount=iControlList->UpdateCount(); + TInt ret=iTestServ.CopyFileL(KSRCRESOURCEPATH,KDESTRESOURCEPATH); + TEST(ret==KErrNone); + + INFO_PRINTF1(_L("Files Copied to C Drive......")); + INFO_PRINTF1(_L("Updating the list ......")); + iControlCount=iControlList->UpdateCount(); while(iControlList->UpdateCount()<=iControlCount) { TRAP(ret, iControlList->UpdateL()); @@ -228,9 +238,8 @@ TFileName name=iControlList->Control(iIndex)->FileName(); TEST(name.CompareF(KNEWCTLPATH)==0); - - sisFileInstaller.UninstallSisL(KCtrlApp2Component); - INFO_PRINTF1(_L("Removed application from C Drive......")); + RemoveFilesFromCDrive(); + INFO_PRINTF1(_L("Removed the file from C Drive......")); INFO_PRINTF1(_L("Updating the list ......")); iControlCount=iControlList->UpdateCount(); while(iControlList->UpdateCount()<=iControlCount) @@ -440,14 +449,6 @@ // connect to the test utils server User::LeaveIfError(iTestServ.Connect()); - RApaLsSession ls; - User::LeaveIfError(ls.Connect()); - - TRequestStatus status; - ls.SetNotify(ETrue, status); - User::WaitForRequest(status); - ls.Close(); - // Run the tests...w TRAPD(ret,DoStepTestsInCallbackL()) TEST(ret==KErrNone); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataMappingPersistenceA.cpp --- a/appfw/apparchitecture/tef/T_DataMappingPersistenceA.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataMappingPersistenceA.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -19,9 +19,7 @@ */ #include "T_DataMappingPersistenceA.h" -#include "T_SisFileInstaller.h" -_LIT(KServerApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp2.sis"); /** * Constructor @@ -46,11 +44,7 @@ */ TVerdict CT_DataMappingPersistenceATestStep::doTestStepPreambleL() { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp2SisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KServerApp2SisFile); - - SetTestStepResult(EPass); + SetTestStepResult(EPass); TInt error = iSession.Connect(); TEST(error==KErrNone); return TestStepResult(); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataMappingPersistenceC.cpp --- a/appfw/apparchitecture/tef/T_DataMappingPersistenceC.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataMappingPersistenceC.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -20,9 +20,7 @@ #include "T_DataMappingPersistenceC.h" -#include "T_SisFileInstaller.h" -_LIT(KServerApp2Component, "serverapp2"); /** @@ -60,9 +58,6 @@ */ TVerdict CT_DataMappingPersistenceCTestStep::doTestStepPostambleL() { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KServerApp2Component); - return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataPrioritySystem1/T_DataPrioritySystem1.MMP --- a/appfw/apparchitecture/tef/T_DataPrioritySystem1/T_DataPrioritySystem1.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataPrioritySystem1/T_DataPrioritySystem1.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -42,11 +42,11 @@ userinclude ../../../uiftestfw/inc start resource T_DataPrioritySystem1_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps end start resource T_DataPrioritySystem1_loc.rss -targetpath /apparctestregfiles +targetpath /resource/apps end LIBRARY cone.lib ws32.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataPrioritySystem2/T_DataPrioritySystem2.MMP --- a/appfw/apparchitecture/tef/T_DataPrioritySystem2/T_DataPrioritySystem2.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataPrioritySystem2/T_DataPrioritySystem2.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -42,11 +42,11 @@ userinclude ../../../uiftestfw/inc start resource T_DataPrioritySystem2_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps end start resource T_DataPrioritySystem2_loc.rss -targetpath /apparctestregfiles +targetpath /resource/apps end LIBRARY cone.lib ws32.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataPrioritySystem3.mmp --- a/appfw/apparchitecture/tef/T_DataPrioritySystem3.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET T_DataPrioritySystem3.exe -TARGETTYPE exe -UID 0x100039CE 0x10207f7f -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application exe registration resource file -resource T_DataPrioritySystem3_reg.rss -start resource T_DataPrioritySystem3_reg.rss -targetpath /apparctestregfiles -lang sc -end - -SOURCEPATH ../tef -//SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.cpp --- a/appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -28,14 +28,6 @@ #include "tstapp.h" #include "testableapalssession.h" #include "appfwk_test.h" -#include "T_SisFileInstaller.h" - -_LIT(KTestTrustedPriorityApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\TestTrustedPriorityApp2.sis"); -_LIT(KTestTrustedPriorityApp2Component, "TestTrustedPriorityApp2"); - -_LIT(KTestUntrustedPriorityApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\TestUnTrustedPriorityApp2.sis"); -_LIT(KTestUntrustedPriorityApp2Component, "TestUnTrustedPriorityApp2"); - /** @SYMTestCaseID APPFWK-APPARC-0036 @@ -123,24 +115,6 @@ { } -TVerdict CT_DataTypeMappingWithSid1::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestUntrustedPriorityApp2SisFile); - sisFileInstaller.InstallSisL(KTestUntrustedPriorityApp2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestTrustedPriorityApp2SisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTestTrustedPriorityApp2SisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_DataTypeMappingWithSid1::doTestStepPostambleL() - { - return TestStepResult(); - } - - TVerdict CT_DataTypeMappingWithSid1::doTestStepL() { INFO_PRINTF1(_L("APPFWK-APPARC-0036: DataTypeMappingWithSid1 - Started")); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.h --- a/appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_DataTypeMappingWithSid1.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -39,8 +39,6 @@ { public: CT_DataTypeMappingWithSid1(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void ExecuteL(RApaLsSession& aLs); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_EndTaskStep.cpp --- a/appfw/apparchitecture/tef/T_EndTaskStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_EndTaskStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -27,10 +27,6 @@ #include "appfwk_test.h" #include "T_EndTaskStep.h" #include "TEndTaskTestApp/EndTaskTestAppExternalInterface.h" -#include "T_SisFileInstaller.h" - -_LIT(KEndTaskAppSisFile, "z:\\apparctest\\apparctestsisfiles\\EndTaskTestApp.sis"); -_LIT(KEndTaskAppComponent, "EndTaskTestApp"); CTEndTaskStep::CTEndTaskStep() { @@ -275,32 +271,6 @@ return result; } -/** - * @return - TVerdict code - * Override of base class virtual - */ -TVerdict CTEndTaskStep::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KEndTaskAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KEndTaskAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -/** - * @return - TVerdict code - * Override of base class virtual - */ -TVerdict CTEndTaskStep::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KEndTaskAppComponent); - - return TestStepResult(); - } - TVerdict CTEndTaskStep::doTestStepL() { INFO_PRINTF1(_L("TEndTaskStep test started....")); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_EndTaskStep.h --- a/appfw/apparchitecture/tef/T_EndTaskStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_EndTaskStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -30,8 +30,6 @@ { public: CTEndTaskStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void ExecuteL(); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.H --- a/appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.H Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.H Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -44,7 +44,7 @@ _LIT(KTLogFileAccess,"TestLogFile"); _LIT(KFilePath,"c:\\logs\\TestExecute\\EnvSlots.txt"); -_LIT(KTAppName,"C:\\sys\\bin\\T_EnvSlots.exe"); +_LIT(KTAppName,"Z:\\sys\\bin\\T_EnvSlots.exe"); _LIT(KTDocName,"C:\\System\\data\\temp.test"); _LIT(KTEnvSlots,"T_EnvSlots"); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.MMP --- a/appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_EnvSlots/T_EnvSlots.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -40,11 +40,11 @@ userinclude ../../../uiftestfw/inc start resource T_EnvSlots_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps end start resource T_EnvSlots_loc.rss -targetpath /apparctestregfiles +targetpath /resource/apps end LIBRARY cone.lib ws32.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_Foreground.cpp --- a/appfw/apparchitecture/tef/T_Foreground.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_Foreground.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -54,15 +54,10 @@ #include #include "t_foreground.h" -#include "T_SisFileInstaller.h" _LIT(KAppName, "SimpleApparcTestApp"); -_LIT(KAppFileName, "c:\\sys\\bin\\SimpleApparcTestApp.exe"); +_LIT(KAppFileName, "z:\\sys\\bin\\SimpleApparcTestApp.exe"); _LIT(KAppFile, "c:\\logs\\testApp.txt"); - -_LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis"); -_LIT(KSimpleAppComponent, "SimpleApparcTestApp"); - const TInt KNonExistantWgId = KErrNotFound; // @@ -309,25 +304,6 @@ } -TVerdict CTestForegroundStep::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile); - sisFileInstaller.InstallSisL(KSimpleAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CTestForegroundStep::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KSimpleAppComponent); - - return TestStepResult(); - } - - TVerdict CTestForegroundStep::doTestStepL() // main function called by E32 { INFO_PRINTF1(_L("Test Started")); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_Foreground.h --- a/appfw/apparchitecture/tef/T_Foreground.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_Foreground.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -61,8 +61,6 @@ public: CTestForegroundStep(); ~CTestForegroundStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void ConstructAppL(CCoeEnv* aCoe); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_LocaleStep.cpp --- a/appfw/apparchitecture/tef/T_LocaleStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_LocaleStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -35,19 +35,13 @@ #include #include #include "T_LocaleStep.h" -#include "T_SisFileInstaller.h" const TUid KUidTestApp = { 10 }; //uid of tstapp. const TUid KUidCustomiseDefaultIconApp = {0x10208181}; // uid of CustomiseDefaultIconApp. -const TInt KDelayForOnDemand = 4000000; //a small delay +const TInt KDelayForOnDemand = 20000; //a small delay const TInt KDelay = 4000000; // Most apparc tests have 2.5 secs wait time to let apparc update the app-list, but on safer side let us give 4 secs. const TInt KViewCount = 3; // Total no of views in tstapp -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - -_LIT(KTstCustomiseDefaultIconAppSisFile, "z:\\apparctest\\apparctestsisfiles\\CustomiseDefaultIconApp.sis"); -_LIT(KTstCustomiseDefaultIconAppComponent, "CustomiseDefaultIconApp"); /** Auxiliary Fn for Test Case ID T-LocaleStep-TestAllLanguages @@ -57,7 +51,7 @@ */ void CT_LocaleStep::ChangeLocaleL(TLanguage aLanguage) - {/* + { #ifdef SYMBIAN_DISTINCT_LOCALE_MODEL _LIT(KLitLocaleDllNameBase, "elocl_lan"); _LIT(KLitLocaleDllNameExtension, ".loc"); @@ -93,64 +87,7 @@ #else User::LeaveIfError(UserSvr::ChangeLocale(localeDllName)); #endif - CleanupStack::PopAndDestroy(); // localeDll */ - -#ifdef SYMBIAN_DISTINCT_LOCALE_MODEL - _LIT(KLitLanguageLocaleDllNameBase, "elocl_lan"); - //Region and collation code values are hard coded, as the check, after changing the locale is made for the language only. - _LIT(KLitRegionLocaleDllNameBase, "elocl_reg.826"); - _LIT(KLitCollationLocaleDllNameBase, "elocl_col.001"); - _LIT(ThreeDigExt,".%03d"); - TExtendedLocale localeDll; - const TUidType uidType(TUid::Uid(0x10000079),TUid::Uid(0x100039e6)); - TBuf<16> languageLocaleDllName(KLitLanguageLocaleDllNameBase); - languageLocaleDllName.AppendFormat(ThreeDigExt, aLanguage); - TBuf<16> regionLocaleDllName(KLitRegionLocaleDllNameBase); - TBuf<16> collationLocaleDllName(KLitCollationLocaleDllNameBase); - // Try to load the locale dll - TInt error=localeDll.LoadLocale(languageLocaleDllName, regionLocaleDllName, collationLocaleDllName); - - if (error==KErrNotFound) - { - // Locale dll is not found for the asked language. - ERR_PRINTF2(_L("Failed to find the locale dll for %d"), aLanguage); - } - - User::LeaveIfError(error); - localeDll.SaveSystemSettings(); -#else - _LIT(KLitLocaleDllNameBase, "ELOCL"); - _LIT(TwoDigExt,".%02d"); - - RLibrary localeDll; - CleanupClosePushL(localeDll); - - const TUidType uidType(TUid::Uid(0x10000079),TUid::Uid(0x100039e6)); - TBuf<16> localeDllName(KLitLocaleDllNameBase); - localeDllName.AppendFormat(TwoDigExt, language); - - // Try to load the locale dll - TInt error=localeDll.Load(localeDllName, uidType); - if (error==KErrNotFound) - { - // Locale dll is not found for the asked language. - ERR_PRINTF2(_L("Failed to find the locale dll for %d"), language); - } - - User::LeaveIfError(error); - User::LeaveIfError(UserSvr::ChangeLocale(localeDllName)); - CleanupStack::PopAndDestroy(); // localeDll -#endif - - // Check if the device locale has changed - if (aLanguage == User::Language()) - { - SetTestStepResult(EPass); - } - else - { - ERR_PRINTF3(_L("Failed to change the locale to %d whereas the current locale is"), aLanguage, User::Language()); - } + CleanupStack::PopAndDestroy(); // localeDll } // CheckIcons is a function used in testcase TestLocaleDefaultIconL to check the size of the default icons @@ -821,11 +758,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstCustomiseDefaultIconAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstCustomiseDefaultIconAppSisFile); SetTestStepResult(EPass); return TestStepResult(); } @@ -836,9 +768,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KTstAppStandAloneComponent); - sisFileInstaller.UninstallSisL(KTstCustomiseDefaultIconAppComponent); return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_NotifStep.cpp --- a/appfw/apparchitecture/tef/T_NotifStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_NotifStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -42,11 +42,6 @@ #include "appfwk_test_utils.h" #include "T_NotifStep.h" -#include "T_SisFileInstaller.h" - -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); - _LIT(KImportAppsDir,"c:\\private\\10003a3f\\import\\apps\\"); _LIT(KResourceAppsDir,"c:\\resource\\apps\\"); @@ -145,10 +140,9 @@ { // Force the applist to be updated //To ensure that server has time to count all applications in the system - TRequestStatus status; - iSession.SetNotify(ETrue, status); - User::WaitForRequest(status); - + RPointerArray dummy; + User::LeaveIfError(iSession.ForceRegistration(dummy)); + TInt theAppCount = 0; TInt theErr1 = iSession.AppCount(theAppCount); TEST(theErr1==KErrNone); @@ -161,12 +155,10 @@ CleanupStack::PushL(notif); obs->iNotifier=notif; INFO_PRINTF1(_L("Creating and deleting apps for notification")); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); + CreateAppL(_L("AAA")); CActiveScheduler::Start(); - + TInt theAppCount1 = 0; theErr1 = iSession.AppCount(theAppCount1); TEST((theAppCount1 - 1) == theAppCount); @@ -177,12 +169,13 @@ CleanupStack::PushL(notif); obs->iNotifier = notif; INFO_PRINTF1(_L("Deleting the application")); - sisFileInstaller.UninstallSisL(KApparcTestAppComponent); + DeleteAppL(_L("AAA")); + CActiveScheduler::Start(); CleanupStack::PopAndDestroy(notif); + User::LeaveIfError(iSession.ForceRegistration(dummy)); theErr1 = iSession.AppCount(theAppCount1); - TEST(theErr1==KErrNone); TEST(theAppCount1 == theAppCount); @@ -483,33 +476,24 @@ TEST(KErrNone == iSession.Connect()); TEST(KErrNone == iUtils.Connect()); - TApaAppInfo info; - TUid uid = {0x100048F3}; - TInt err = iSession.GetAppInfo(info, uid); - if(err == KErrNone) - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KApparcTestAppComponent); - } - // run the testcode (inside an alloc heaven harness) __UHEAP_MARK; iUtils.Connect(); -//#if defined (__WINSCW__) -// INFO_PRINTF1(_L("T-NotifStep-TTestIconFileNotificationL Test Started...")); -// TRAP(ret,TestIconFileNotificationL()); -// TEST(ret==KErrNone); -// INFO_PRINTF2(_L("TestIconFileNotificationL() finished with return code '%d'\n"), ret); -//#endif +#if defined (__WINSCW__) + INFO_PRINTF1(_L("T-NotifStep-TTestIconFileNotificationL Test Started...")); + TRAP(ret,TestIconFileNotificationL()); + TEST(ret==KErrNone); + INFO_PRINTF2(_L("TestIconFileNotificationL() finished with return code '%d'\n"), ret); +#endif INFO_PRINTF1(_L("T-NotifStep-TestAppNotificationL Test Started...")); TRAP(ret,TestAppNotificationL()); TEST(ret==KErrNone); INFO_PRINTF2(_L("TestAppNotificationL() finished with return code '%d'\n"), ret); -// INFO_PRINTF1(_L("TestForceRegistrationNotificationL Test Started...")); -// TRAP(ret, TestForceRegistrationNotificationL()); -// TEST(ret==KErrNone); -// INFO_PRINTF2(_L("TestForceRegistrationNotificationL() finished with return code '%d'\n"), ret); + INFO_PRINTF1(_L("TestForceRegistrationNotificationL Test Started...")); + TRAP(ret, TestForceRegistrationNotificationL()); + TEST(ret==KErrNone); + INFO_PRINTF2(_L("TestForceRegistrationNotificationL() finished with return code '%d'\n"), ret); iUtils.Close(); __UHEAP_MARKEND; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ProStep.cpp --- a/appfw/apparchitecture/tef/T_ProStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ProStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -50,14 +50,6 @@ #if !defined(__E32TEST_H__) #include #endif -#include "T_SisFileInstaller.h" - -_LIT(KMCtrlAppV2SisFile, "z:\\apparctest\\apparctestsisfiles\\m_ctrl_v2.sis"); -_LIT(KMCtrlAppV2Component, "m_ctrl_v2"); - -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - TInt PanicTestThread(TAny* aOption); @@ -69,9 +61,16 @@ ELast }; + +_LIT(KCTLDIR,"C:\\private\\10003a3f\\import\\apps\\"); +_LIT(KSOURCEPATH,"z:\\private\\10003a3f\\import\\apps\\m_ctrl_reg.rsc"); +_LIT(KNEWCTLPATH,"C:\\private\\10003a3f\\import\\apps\\m_ctrl_reg.rsc"); _LIT(KNEWPATH,"C:\\cm.txt"); _LIT(KEMPTYFILEPATH,"z:\\system\\data\\Testpath\\FilterTests\\testfile1.txt"); +_LIT(KRSCDIR,"C:\\Resource\\apps\\"); +_LIT(KLOCPATH,"z:\\Resource\\apps\\M_ctrl_loc.rsc"); +_LIT(KNEWLOCPATH,"C:\\Resource\\apps\\M_ctrl_loc.rsc"); _LIT(KCTRLNAME,"C:\\sys\\bin\\m_ctrl.exe"); TFileName ctlPath=_L("z:\\sys\\bin\\m_ctrl.exe"); @@ -1016,10 +1015,14 @@ RSmlTestUtils testSession; User::LeaveIfError(testSession.Connect()); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KMCtrlAppV2SisFile); - sisFileInstaller.InstallSisL(KMCtrlAppV2SisFile); - TInt ret; + testSession.CreateDirectoryL(KCTLDIR); + testSession.CreateDirectoryL(KRSCDIR); + + TInt ret=testSession.CopyFileL(KSOURCEPATH,KNEWCTLPATH); + TEST(ret==KErrNone); + ret=testSession.CopyFileL(KLOCPATH,KNEWLOCPATH); + TEST(ret==KErrNone); + TInt controlCount=iControlList->UpdateCount(); while(iControlList->UpdateCount()<=controlCount) { @@ -1045,8 +1048,11 @@ } // hide the control and do an update - there should be changes - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KMCtrlAppV2Component); - + testSession.SetReadOnly(KNEWCTLPATH,0); // remove the read only attribute + ret=testSession.DeleteFileL(KNEWCTLPATH); + TEST(ret==KErrNone); + testSession.SetReadOnly(KNEWLOCPATH,0); // remove the read only attribute + ret=testSession.DeleteFileL(KNEWLOCPATH); TEST(ret==KErrNone); controlCount=iControlList->UpdateCount(); while(iControlList->UpdateCount()<=controlCount) @@ -1139,13 +1145,6 @@ { INFO_PRINTF1(_L("Testing CApaSystemControlList")); - RApaLsSession ls; - User::LeaveIfError(ls.Connect()); - - TRequestStatus status; - ls.SetNotify(ETrue, status); - User::WaitForRequest(status); - //Create a session with F & B server TInt ret = RFbsSession::Connect(); TEST(ret == KErrNone); @@ -1301,29 +1300,38 @@ */ void CT_ProStep::DoAppListInvalidTestL(RApaLsSession& aLs) { - + _LIT(KTempAppDir, "C:\\private\\10003a3f\\import\\apps\\"); + _LIT(KTempRegPath, "C:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc"); TFullName regPath=_L("z:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc"); CFileMan* fileMan = CFileMan::NewL (iFs); CleanupStack::PushL(fileMan); INFO_PRINTF1(_L("Copy tstapp files to C: drive.......")); + TInt ret = iFs.MkDirAll(KTempAppDir); + TEST(ret==KErrNone || ret==KErrAlreadyExists); + TEST(fileMan->Copy(regPath, KTempRegPath)==KErrNone); //Just to start the idle update. - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); + User::After(8000000); INFO_PRINTF1(_L("Get app list.......")); - TInt ret; ret = aLs.GetAllApps(); TEST(ret==KErrNone); INFO_PRINTF1(_L("Remove temp files from C: drive.......")); + TRequestStatus status; + TTime tempTime(0); // added tempTime to avoid asynch CFileMan::Attribs request completing with KErrArgument + TInt err=fileMan->Attribs(KTempAppDir,0,KEntryAttReadOnly, tempTime, CFileMan::ERecurse, status); + TEST(err==KErrNone); + User::WaitForRequest(status); + TEST(status.Int() == KErrNone); + TEST(fileMan->Delete(KTempRegPath)==KErrNone); //Just to start the idle update. + TEST(fileMan->RmDir(KTempAppDir)==KErrNone); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KTstAppStandAloneComponent); + User::After(8000000); + INFO_PRINTF1(_L("Testing GetNextApp() never returns RApaLsSession::EAppListInvalid.")); TApaAppInfo info; - while(ret==KErrNone) { ret=aLs.GetNextApp(info); @@ -1527,7 +1535,7 @@ iFs.Connect(); setup(); - + TRAPD(ret,DoStepTestsInCallbackL()) TEST(ret==KErrNone); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ProcStep.cpp --- a/appfw/apparchitecture/tef/T_ProcStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ProcStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -22,9 +22,6 @@ */ #include "T_ProcStep.h" -#include "T_SisFileInstaller.h" - - const TInt KTProcTerminatingChildI = 1246; const TInt KTProcTerminatingChildII = 1247; const TInt KTProcTerminatingChildIII = 1248; @@ -1379,18 +1376,6 @@ INFO_PRINTF1(_L("End - testIdNotAvailableToChildL ----------- \n")); } - -TVerdict CT_ProcStep::doTestStepPreambleL() - { - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_ProcStep::doTestStepPostambleL() - { - return TestStepResult(); - } - TVerdict CT_ProcStep::doTestStepL() /** @return - TVerdict code diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ProcStep.h --- a/appfw/apparchitecture/tef/T_ProcStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ProcStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -37,7 +37,6 @@ _LIT8(KTResultFail, "FAIL"); - //! A CT_ProcStep test class. /** Checks for child process existence when its parent terminates. */ @@ -47,8 +46,6 @@ public: CT_ProcStep(); ~CT_ProcStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); private: void testChildExistsL(void); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_RApaLsSessionStep.cpp --- a/appfw/apparchitecture/tef/T_RApaLsSessionStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_RApaLsSessionStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -61,60 +61,8 @@ #if !defined(__E32TEST_H__) #include #endif -#include "T_SisFileInstaller.h" -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - -_LIT(KZeroSizeIconAppSisFile, "z:\\apparctest\\apparctestsisfiles\\zerosizedicontestapp.sis"); -_LIT(KZeroSizeIconAppComponent, "zerosizedicontestapp"); - -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); - -_LIT(KGroupNameTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_groupname.sis"); -_LIT(KGroupNameTestAppComponent, "T_groupname"); - -_LIT(KAppNotEmbeddableSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppNotEmbeddable_v2.sis"); -_LIT(KAppNotEmbeddableComponent, "TAppNotEmbeddable_v2"); - -_LIT(KAppEmbeddableOnlySisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableOnly_v2.sis"); -_LIT(KAppEmbeddableOnlyComponent, "TAppEmbeddableOnly_v2"); - -_LIT(KAppEmbeddableStandaloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddable_standalone.sis"); -_LIT(KAppEmbeddableStandaloneComponent, "TAppEmbeddable_standalone"); - -_LIT(KAppEmbeddableEmbeddedSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddable_embedded.sis"); -_LIT(KAppEmbeddableEmbeddedComponent, "TAppEmbeddable_embedded"); - -_LIT(KAppEmbeddableUiNotStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiNotStandAlone_v2.sis"); -_LIT(KAppEmbeddableUiNotStandAloneComponent, "TAppEmbeddableUiNotStandAlone_v2"); - -_LIT(KAppEmbeddableUiOrStandAloneEmbeddedSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiOrStandAlone_embedded.sis"); -_LIT(KAppEmbeddableUiOrStandAloneEmbeddedComponent, "TAppEmbeddableUiOrStandAlone_embedded"); - -_LIT(KAppEmbeddableUiOrStandAloneStandaloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiOrStandalone_standalone.sis"); -_LIT(KAppEmbeddableUiOrStandAloneStandaloneComponent, "TAppEmbeddableUiOrStandalone_standalone"); - -_LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis"); -_LIT(KSimpleAppComponent, "SimpleApparcTestApp"); - -_LIT(KWinChainAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_winchainLaunch.sis"); -_LIT(KWinChainAppComponent, "t_winchainLaunch"); - -_LIT(KServerApp7SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp7.sis"); -_LIT(KServerApp7Component, "serverapp7"); - -_LIT(KTestTrustedPriorityApp1SisFile, "z:\\apparctest\\apparctestsisfiles\\TestTrustedPriorityApp1.sis"); -_LIT(KTestTrustedPriorityApp1Component, "TestTrustedPriorityApp1"); - -_LIT(KTestUnTrustedPriorityApp1SisFile, "z:\\apparctest\\apparctestsisfiles\\TestUnTrustedPriorityApp1.sis"); -_LIT(KTestUnTrustedPriorityApp1Component, "TestUnTrustedPriorityApp1"); - -_LIT(KTestTrustedPriorityApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\TestTrustedPriorityApp2.sis"); -_LIT(KTestTrustedPriorityApp2Component, "TestTrustedPriorityApp2"); - -// Literals & Constants +// Literals & Constants _LIT(KCompleted, "Completed."); const TUint KBytesToRead=100; @@ -548,19 +496,35 @@ { INFO_PRINTF1(_L("Setting up Applist invalid test.")); - TRequestStatus status; - iLs.SetNotify(EFalse,status); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFileInstaller.InstallSisL(KTstAppStandAloneSisFile); + _LIT(KTempAppDir, "C:\\private\\10003a3f\\import\\apps\\"); + _LIT(KTempRegPath, "C:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc"); + TFullName regPath=_L("z:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc"); + + CFileMan* iAppListInvalidTestFileMan = CFileMan::NewL (iFs); + CleanupStack::PushL(iAppListInvalidTestFileMan); + + INFO_PRINTF1(_L("Copy tstapp files to C: drive.......")); + TInt rtn=iFs.MkDirAll(KTempAppDir); + TEST(rtn==KErrNone||rtn==KErrAlreadyExists); + TEST(iAppListInvalidTestFileMan->Copy(regPath, KTempRegPath)==KErrNone); //Just to start the idle update. INFO_PRINTF1(_L("Get app list.......")); TInt ret = iLs.GetAllApps(); TEST(ret==KErrNone); + + INFO_PRINTF1(_L("Remove temp files from C: drive.......")); + TRequestStatus status; + TTime tempTime(0); // added tempTime to avoid asynch CFileMan::Attribs request completing with KErrArgument + TEST(iAppListInvalidTestFileMan->Attribs(KTempAppDir,0,KEntryAttReadOnly, tempTime, CFileMan::ERecurse, status)==KErrNone); User::WaitForRequest(status); + TEST(status.Int() == KErrNone); + INFO_PRINTF1(_L("Deleting Reg file.......")); + TEST(iAppListInvalidTestFileMan->Delete(KTempRegPath)==KErrNone); //Just to start the idle update. + INFO_PRINTF1(_L("Removing App dir.......")); + TEST(iAppListInvalidTestFileMan->RmDir(KTempAppDir)==KErrNone); + CleanupStack::PopAndDestroy(iAppListInvalidTestFileMan); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KTstAppStandAloneComponent); INFO_PRINTF1(KCompleted); } @@ -1782,13 +1746,12 @@ HBufC* fullIconFileName = NULL; ret = iLs.GetAppViewIcon(TUid::Uid(KGroupNameApp), viewInfo.iUid, fullIconFileName); - - TEST(ret == KErrNone); - TEST(fullIconFileName != NULL); - INFO_PRINTF2(_L("The View icon's UID is - %X"), viewInfo.iUid); - TEST(!fullIconFileName->Compare(_L("file://c/resource/apps/tcheckiconapp.xyz"))); - INFO_PRINTF2(_L("View's icon file name is - %S"), fullIconFileName); - + TEST(ret == KErrNone); + TEST(fullIconFileName != NULL); + INFO_PRINTF2(_L("The View icon's UID is - %X"), viewInfo.iUid); + TEST(!fullIconFileName->Compare(_L("file://c/resource/apps/tcheckiconapp.xyz"))); + INFO_PRINTF2(_L("View's icon file name is - %S"), fullIconFileName); + delete fullIconFileName; CleanupStack::PopAndDestroy(appViews); @@ -1864,7 +1827,7 @@ TInt err = iLs.GetAppIcon(TUid::Uid(KApparcTestApp), svgIconFile); TEST(err == KErrNone); - _LIT(KSVGIconFileName, "c:\\resource\\apps\\svg_icon.svg"); + _LIT(KSVGIconFileName, "z:\\resource\\apps\\svg_icon.svg"); //Get the name of the icon file TBuf svgIconFileName; svgIconFile.FullName(svgIconFileName); @@ -1932,15 +1895,27 @@ */ void CT_RApaLsSessionTestStep::TestAppListInstallationL() { + _LIT(KTestAppDestDir, "C:\\private\\10003a3f\\import\\apps\\" ); + _LIT(KTestAppSource, "Z:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc" ); + _LIT(KTestAppDest, "C:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc" ); + + _LIT(KTestWaitingForApplistUpdate,"Waiting %d microseconds for applist to be updated"); + const TInt KApplistUpdateTime = 10000000; // Copy App files around and delete them to check whether // the app list updates and stores the cache correctly. + RFs theFS; + theFS.Connect(); + + // Remove Test app from the file system + CFileMan* fileManager = CFileMan::NewL (theFS); + + INFO_PRINTF1(_L("Copying the app to C")); + TEST(KErrNone == fileManager->Copy (KTestAppSource, KTestAppDest, CFileMan::ERecurse)); - INFO_PRINTF1(_L("Installing the app from C")); - CSisFileInstaller sisInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); - + INFO_PRINTF2(KTestWaitingForApplistUpdate, KApplistUpdateTime); + User::After(KApplistUpdateTime); + TApaAppInfo aInfo; TEST(KErrNone == iLs.GetAppInfo (aInfo, KUidTestApp)); @@ -1950,8 +1925,18 @@ TEST(parse.Drive ().CompareF (KCdrive) == 0); INFO_PRINTF1(_L("Removing the app from C")); - sisInstaller.UninstallSisAndWaitForAppListUpdateL(KTstAppStandAloneComponent); - + TRequestStatus status; + TTime tempTime(0); // added tempTime to avoid asynch CFileMan::Attribs request completing with KErrArgument + TEST(fileManager->Attribs(KTestAppDest,0,KEntryAttReadOnly, tempTime, CFileMan::ERecurse, status)==KErrNone); + User::WaitForRequest(status); + TEST(status.Int() == KErrNone); + TEST(KErrNone == fileManager->Delete (KTestAppDest, CFileMan::ERecurse)); + INFO_PRINTF1(_L("Removing the app dir from C")); + TEST(fileManager->RmDir(KTestAppDestDir)==KErrNone); + + INFO_PRINTF2(KTestWaitingForApplistUpdate, KApplistUpdateTime); + User::After(KApplistUpdateTime); + // That should put the file in the right place TEST(KErrNone == iLs.GetAppInfo( aInfo, KUidTestApp)); @@ -1960,10 +1945,12 @@ INFO_PRINTF1(_L("Comparing App drive location is Z:... ")); TEST((parse1.Drive().CompareF(KZdrive)) == 0); + delete fileManager; + theFS.Close(); + INFO_PRINTF1(_L("Test TestAppListInstallationL completed")); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK /** @SYMTestCaseID T-RApaLsSessionTestStep-TestAppListInstallation1L @@ -2052,7 +2039,6 @@ INFO_PRINTF1(_L("Test TestAppListInstallation1L completed")); } -#endif /** @SYMTestCaseID APPFWK-APPARC-0107 @@ -2077,6 +2063,18 @@ INFO_PRINTF1(_L("Test TestZeroSizedIconFileL Started..........")); + _LIT(KTestAppDestDir, "C:\\private\\10003a3f\\import\\apps\\" ); + _LIT(KTestAppResourceDir, "C:\\resource\\apps\\" ); + + _LIT(KTestAppSource, "Z:\\apparctest\\zerosizedicon_reg.rsc" ); + _LIT(KTestAppDest, "C:\\private\\10003a3f\\import\\apps\\zerosizedicon_reg.rsc" ); + + _LIT(KTestMbmSource, "Z:\\resource\\apps\\zerosizedicon.mbm"); + _LIT(KTestMbmDest, "C:\\resource\\apps\\zerosizedicon.mbm"); + + _LIT(KTestLocSource, "Z:\\apparctest\\zerosizedicon_loc.rsc"); + _LIT(KTestLocDest, "C:\\resource\\apps\\zerosizedicon_loc.rsc"); + TRequestStatus appScanCompleted=KRequestPending; iLs.SetNotify(EFalse,appScanCompleted); @@ -2084,17 +2082,33 @@ CleanupClosePushL(utils); TEST(KErrNone == utils.Connect()); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KZeroSizeIconAppSisFile); - sisFileInstaller.InstallSisL(KZeroSizeIconAppSisFile); - + INFO_PRINTF1(_L("Creating directory C:\\private\\10003a3f\\import\\apps\\ folder")); + TInt err=utils.CreateDirectoryL(KTestAppDestDir); + TESTEL((err==KErrNone) || (err==KErrAlreadyExists),err); + + INFO_PRINTF1(_L("Creating directory C:\\resource\\apps\\ folder")); + err=utils.CreateDirectoryL(KTestAppResourceDir); + TESTEL((err==KErrNone) || (err==KErrAlreadyExists),err); + + INFO_PRINTF1(_L("Copying _reg.rsc to C:\\private\\10003a3f\\import\\apps\\ folder")); + User::LeaveIfError(utils.CopyFileL(KTestAppSource,KTestAppDest)); + INFO_PRINTF1(_L("Copying the mbm and _loc.rsc to C:\\resource\\apps\\ folder")); + User::LeaveIfError(utils.CopyFileL(KTestMbmSource,KTestMbmDest)); + User::LeaveIfError(utils.CopyFileL(KTestLocSource,KTestLocDest)); + User::WaitForRequest(appScanCompleted); TEST(appScanCompleted.Int()==MApaAppListServObserver::EAppListChanged); appScanCompleted=KRequestPending; iLs.SetNotify(EFalse,appScanCompleted); - - sisFileInstaller.UninstallSisL(KZeroSizeIconAppComponent); + INFO_PRINTF1(_L("Removing _reg.rsc from C:\\private\\10003a3f\\import\\apps\\ folder")); + TEST(KErrNone == DeleteFileL(utils, KTestAppDest)); + INFO_PRINTF1(_L("Removing the mbm and _loc.rsc from C:\\resource\\apps\\ folder")); + TEST(KErrNone == DeleteFileL(utils, KTestMbmDest)); + TEST(KErrNone == DeleteFileL(utils, KTestLocDest)); + INFO_PRINTF1(_L("Removing the C:\\private\\10003a3f\\import\\apps\\ dir ")); + TEST(KErrNone == utils.DeleteDirectoryL(KTestAppDestDir)); + User::WaitForRequest(appScanCompleted); CleanupStack::PopAndDestroy(&utils);//utils INFO_PRINTF1(_L("Test TestZeroSizedIconFileL completed")); @@ -2123,8 +2137,7 @@ return(err); } - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK + /** @SYMTestCaseID T-RApaLsSessionTestStep-TestAppFolderNonRomDrivesL @@ -2200,8 +2213,7 @@ INFO_PRINTF1(_L("Test scanning of app folder for non-ROM drives completed")); } -#endif - + /** @SYMTestCaseID T-RApaLsSessionTestStep-DoNumDefIconsTestL @@ -2433,7 +2445,7 @@ void CT_RApaLsSessionTestStep::TestDataPriorityForUnTrustedApps() { INFO_PRINTF1(_L("TestDataPriorityForUnTrustedApps about to start...")); - const TUid KUidUnTrustedApp = {0x80207f8C}; + const TUid KUidUnTrustedApp = {0x10207f8C}; const TUid KUidTrustedApp = {0x10207f8D}; TInt ret; TBool insertVal = EFalse; @@ -2515,29 +2527,24 @@ bufferAllocator->Create(TSize(200,1), EColor16M); CleanupStack::PopAndDestroy(bufferAllocator); - TRequestStatus status; - iLs.SetNotify(ETrue, status); - User::WaitForRequest(status); - - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppListInvalidL(), iLs.ClearAppInfoArray() ); + + HEAP_TEST_LS_SESSION(iLs, 0, 0, TestAppListInvalidL(), iLs.ClearAppInfoArray() ); //DONT_CHECK due to file system changes HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppListInstallationL(), NO_CLEANUP); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppListInstallation1L(), NO_CLEANUP); + HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppListInstallation1L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppFolderNonRomDrivesL(), NO_CLEANUP); -#endif HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestZeroSizedIconFileL(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iLs, 0, 0, IconLoadingTestCasesL(), NO_CLEANUP); - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, AppInfoTestCasesL(), iLs.ClearAppInfoArray(); NO_CLEANUP); - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, EmbeddedAppsTestCases(), iLs.ClearAppInfoArray() ); + HEAP_TEST_LS_SESSION(iLs, 0, 0, AppInfoTestCasesL(), iLs.ClearAppInfoArray(); NO_CLEANUP); + HEAP_TEST_LS_SESSION(iLs, 0, 0, EmbeddedAppsTestCases(), iLs.ClearAppInfoArray() ); HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, DoNumDefIconsTestL(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iLs, 0, 0, TestMatchesSecurityPolicy(), NO_CLEANUP); //DONT_CHECK since there's a new typestore HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestNotifyOnDataMappingChangeL(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iLs, 0, 0, TestAppListRecognizeDataBufferOnlyL(), iLs.FlushRecognitionCache() ); HEAP_TEST_LS_SESSION(iLs, 0, 0, TestAppListRecognizeDataPassedByBufferL(), iLs.FlushRecognitionCache() ); - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestAppListRecognizeDataL(), iLs.FlushRecognitionCache() ); - HEAP_TEST_LS_SESSION(iLs, 0, DONT_CHECK, TestDataPriorityForUnTrustedApps(), NO_CLEANUP); + HEAP_TEST_LS_SESSION(iLs, 0, 0, TestAppListRecognizeDataL(), iLs.FlushRecognitionCache() ); + HEAP_TEST_LS_SESSION(iLs, 0, 0, TestDataPriorityForUnTrustedApps(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iLs, 0, 0, TestDataPriorityForUnTrustedAppsRegFile(), NO_CLEANUP); TestIconLoaderAndIconArrayMemoryLeaksL(); } @@ -2579,65 +2586,16 @@ */ TVerdict CT_RApaLsSessionTestStep::doTestStepPreambleL() { - CSisFileInstaller sisFIleInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFIleInstaller.InstallSisL(KApparcTestAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameTestAppSisFile); - sisFIleInstaller.InstallSisL(KGroupNameTestAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppNotEmbeddableSisFile); - sisFIleInstaller.InstallSisL(KAppNotEmbeddableSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableOnlySisFile); - sisFIleInstaller.InstallSisL(KAppEmbeddableOnlySisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableStandaloneSisFile); - sisFIleInstaller.InstallSisL(KAppEmbeddableStandaloneSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableEmbeddedSisFile); - sisFIleInstaller.InstallSisL(KAppEmbeddableEmbeddedSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiNotStandAloneSisFile); - sisFIleInstaller.InstallSisL(KAppEmbeddableUiNotStandAloneSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiOrStandAloneEmbeddedSisFile); - sisFIleInstaller.InstallSisL(KAppEmbeddableUiOrStandAloneEmbeddedSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile); - sisFIleInstaller.InstallSisL(KSimpleAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KWinChainAppSisFile); - sisFIleInstaller.InstallSisL(KWinChainAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp7SisFile); - sisFIleInstaller.InstallSisL(KServerApp7SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestTrustedPriorityApp1SisFile); - sisFIleInstaller.InstallSisL(KTestTrustedPriorityApp1SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestUnTrustedPriorityApp1SisFile); - sisFIleInstaller.InstallSisL(KTestUnTrustedPriorityApp1SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestTrustedPriorityApp2SisFile); - sisFIleInstaller.InstallSisL(KTestTrustedPriorityApp2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiOrStandAloneStandaloneSisFile); - sisFIleInstaller.InstallSisAndWaitForAppListUpdateL(KAppEmbeddableUiOrStandAloneStandaloneSisFile); - SetTestStepResult(EPass); return TestStepResult(); } - /** @return - TVerdict code Override of base class virtual */ TVerdict CT_RApaLsSessionTestStep::doTestStepPostambleL() { - CSisFileInstaller sisFIleInstaller; - sisFIleInstaller.UninstallSisL(KApparcTestAppComponent); - sisFIleInstaller.UninstallSisL(KGroupNameTestAppComponent); - sisFIleInstaller.UninstallSisL(KAppNotEmbeddableComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableOnlyComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableStandaloneComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableEmbeddedComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableUiNotStandAloneComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableUiOrStandAloneEmbeddedComponent); - sisFIleInstaller.UninstallSisL(KAppEmbeddableUiOrStandAloneStandaloneComponent); - sisFIleInstaller.UninstallSisL(KSimpleAppComponent); - sisFIleInstaller.UninstallSisL(KWinChainAppComponent); - sisFIleInstaller.UninstallSisL(KServerApp7Component); - sisFIleInstaller.UninstallSisL(KTestTrustedPriorityApp1Component); - sisFIleInstaller.UninstallSisL(KTestUnTrustedPriorityApp1Component); - sisFIleInstaller.UninstallSisL(KTestTrustedPriorityApp2Component); return TestStepResult(); } @@ -2645,15 +2603,7 @@ TVerdict CT_RApaLsSessionTestStep::doTestStepL() { INFO_PRINTF1(_L("Testing Apparc...T_RApaLsSession Test Cases Running...")); - - TApaAppInfo info; - TUid uid = {0xABCD0000}; - TInt err = iLs.GetAppInfo(info, uid); - if(err == KErrNone) - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KZeroSizeIconAppComponent); - } + TRAPD(ret,RunTestCasesL()) TEST(ret==KErrNone); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_RApaLsSessionStep.h --- a/appfw/apparchitecture/tef/T_RApaLsSessionStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_RApaLsSessionStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -112,9 +112,7 @@ void TestAppListRecognizeDataPassedByBufferL(); void TestAppListInstallationL(); void TestAppListInstallation1L(); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK void TestAppFolderNonRomDrivesL(); -#endif void TestZeroSizedIconFileL(); void EmbeddedAppsTestCases(); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.cpp --- a/appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -29,20 +29,6 @@ #endif //SYMBIAN_ENABLE_SPLIT_HEADERS #include "testableapalssession.h" -#include "T_SisFileInstaller.h" - -_LIT(KRuleBasedApp1SisFile, "z:\\apparctest\\apparctestsisfiles\\tRuleBasedApp1.sis"); -_LIT(KRuleBasedApp1Component, "tRuleBasedApp1"); - -_LIT(KRuleBasedApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\tRuleBasedApp2.sis"); -_LIT(KRuleBasedApp2Component, "tRuleBasedApp2"); - -_LIT(KRuleBasedApp3SisFile, "z:\\apparctest\\apparctestsisfiles\\tRuleBasedApp3.sis"); -_LIT(KRuleBasedApp3Component, "tRuleBasedApp3"); - -_LIT(KRuleBasedApp4SisFile, "z:\\apparctest\\apparctestsisfiles\\tRuleBasedApp4.sis"); -_LIT(KRuleBasedApp4Component, "tRuleBasedApp4"); - const TUint KNonNativeApplicationType = 0x10207f90; const TUint KNonNativeApplication = 0xA0000B6E; @@ -69,9 +55,7 @@ CleanupClosePushL(theLs); //DONT_CHECK since app list is updated -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK HEAP_TEST_LS_SESSION(theLs, 0, DONT_CHECK, TestLaunchNonNativeApplicationForRuleBasedL(theLs), NO_CLEANUP); -#endif //DONT_CHECK since result is unstable HEAP_TEST_LS_SESSION(theLs, 0, DONT_CHECK, LaunchAppTests1L(theLs), theLs.FlushRecognitionCache() ); HEAP_TEST_LS_SESSION(theLs, 0, 0, LaunchAppTests2L(theLs), theLs.FlushRecognitionCache() ); @@ -461,38 +445,6 @@ AppClosed(KUidApp4); } -TVerdict CTRuleBasedLaunchingStep::doTestStepPreambleL() - { - CSisFileInstaller sisFIleInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRuleBasedApp1SisFile); - sisFIleInstaller.InstallSisL(KRuleBasedApp1SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRuleBasedApp2SisFile); - sisFIleInstaller.InstallSisL(KRuleBasedApp2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRuleBasedApp3SisFile); - sisFIleInstaller.InstallSisL(KRuleBasedApp3SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRuleBasedApp4SisFile); - sisFIleInstaller.InstallSisAndWaitForAppListUpdateL(KRuleBasedApp4SisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - - -/** - @return - TVerdict code - Override of base class virtual - */ -TVerdict CTRuleBasedLaunchingStep::doTestStepPostambleL() - { - CSisFileInstaller sisFIleInstaller; - sisFIleInstaller.UninstallSisL(KRuleBasedApp1Component); - sisFIleInstaller.UninstallSisL(KRuleBasedApp2Component); - sisFIleInstaller.UninstallSisL(KRuleBasedApp3Component); - sisFIleInstaller.UninstallSisL(KRuleBasedApp4Component); - return TestStepResult(); - } - - TVerdict CTRuleBasedLaunchingStep::doTestStepL() { INFO_PRINTF1(_L("TRuleBasedLaunchingStep test started....")); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.h --- a/appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_RuleBasedLaunchingStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -31,8 +31,6 @@ { public: CTRuleBasedLaunchingStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void ExecuteL(); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_Serv2Step.CPP --- a/appfw/apparchitecture/tef/T_Serv2Step.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_Serv2Step.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -48,36 +48,6 @@ #include #include "TAppEmbedUids.h" #include "appfwk_test_utils.h" -#include "T_SisFileInstaller.h" - -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - -_LIT(KAppEmbeddableEmbeddedSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddable_embedded.sis"); -_LIT(KAppEmbeddableEmbeddedComponent, "TAppEmbeddable_embedded"); - -_LIT(KAppNotEmbeddableV2SisFile, "z:\\apparctest\\apparctestsisfiles\\TAppNotEmbeddable_v2.sis"); -_LIT(KAppNotEmbeddableV2Component, "TAppNotEmbeddable_v2"); - -_LIT(KAppEmbeddableOnlyV2SisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableOnly_v2.sis"); -_LIT(KAppEmbeddableOnlyV2Component, "TAppEmbeddableOnly_v2"); - -_LIT(KAppEmbeddableStandaloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddable_standalone.sis"); -_LIT(KAppEmbeddableStandaloneComponent, "TAppEmbeddable_standalone"); - -_LIT(KAppEmbeddableUiNotStandAloneV2SisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiNotStandAlone_v2.sis"); -_LIT(KAppEmbeddableUiNotStandAloneV2Component, "TAppEmbeddableUiNotStandAlone_v2"); - -_LIT(KAppEmbeddableUiOrStandAloneEmbeddedSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiOrStandAlone_embedded.sis"); -_LIT(KAppEmbeddableUiOrStandAloneEmbeddedComponent, "TAppEmbeddableUiOrStandAlone_embedded"); - - -_LIT(KAppEmbeddableUiOrStandAloneStandaloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TAppEmbeddableUiOrStandAlone_standalone.sis"); -_LIT(KAppEmbeddableUiOrStandAloneStandaloneComponent, "TAppEmbeddableUiOrStandalone_standalone"); - -_LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis"); -_LIT(KSimpleAppComponent, "SimpleApparcTestApp"); - // Constants const TInt KOneSecondDelay = 1000000; @@ -135,11 +105,8 @@ { _LIT(KLitAppPath,"z:\\sys\\bin\\tstapp.exe"); TFullName appPath(KLitAppPath); - - //Search for TestApp TApaAppInfo info; - TInt ret = aLs.GetAllApps(); TEST(ret==KErrNone); @@ -1420,12 +1387,27 @@ */ void CT_Serv2Step::DoInstallationTestL (RApaLsSession ls) { + _LIT(KTestAppDestDir, "C:\\private\\10003a3f\\import\\apps\\" ); + _LIT(KTestAppSource, "Z:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc" ); + _LIT(KTestAppDest, "C:\\private\\10003a3f\\import\\apps\\tstapp_reg.rsc" ); + _LIT(KTestWaitingForApplistUpdate,"\nWaiting %d microseconds for applist to be updated"); + const TInt KApplistUpdateTime = 8000000; + + // Copy App files around and delete them to check whether + // the app list updates and stores the cache correctly. + RFs theFs; + theFs.Connect(); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); - + // Remove Test app from the file system + CFileMan* fileManager = CFileMan::NewL (theFs); + + INFO_PRINTF1(_L("Copying the app to C")); + TEST(KErrNone == fileManager->Copy (KTestAppSource, KTestAppDest, CFileMan::ERecurse)); + + INFO_PRINTF2(KTestWaitingForApplistUpdate, KApplistUpdateTime); + User::After(KApplistUpdateTime); + TApaAppInfo aInfo; TEST(KErrNone == ls.GetAppInfo (aInfo, KUidTestApp)); @@ -1435,10 +1417,15 @@ TEST(parse.Drive ().CompareF (KCdrive) == 0); INFO_PRINTF1(_L("Removing the app from C")); - + TTime tempTime(0); + fileManager->Attribs(KTestAppDest,0,KEntryAttReadOnly, tempTime, CFileMan::ERecurse); + TEST(KErrNone == fileManager->Delete (KTestAppDest, CFileMan::ERecurse)); + INFO_PRINTF1(_L("Removing the app dir from C")); + TEST(fileManager->RmDir(KTestAppDestDir)==KErrNone); + + INFO_PRINTF2(KTestWaitingForApplistUpdate, KApplistUpdateTime); + User::After(KApplistUpdateTime); - - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KTstAppStandAloneComponent); // That should put the file in the right place TEST(KErrNone == ls.GetAppInfo( aInfo, KUidTestApp)); @@ -1446,7 +1433,9 @@ _LIT (KZdrive, "Z:"); INFO_PRINTF1(_L("Comparing App drive location is Z:... ")); TEST((parse1.Drive().CompareF(KZdrive)) == 0); - + + delete fileManager; + theFs.Close(); } // @@ -1768,24 +1757,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableEmbeddedSisFile); - sisFileInstaller.InstallSisL(KAppEmbeddableEmbeddedSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppNotEmbeddableV2SisFile); - sisFileInstaller.InstallSisL(KAppNotEmbeddableV2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableOnlyV2SisFile); - sisFileInstaller.InstallSisL(KAppEmbeddableOnlyV2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableStandaloneSisFile); - sisFileInstaller.InstallSisL(KAppEmbeddableStandaloneSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiNotStandAloneV2SisFile); - sisFileInstaller.InstallSisL(KAppEmbeddableUiNotStandAloneV2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiOrStandAloneEmbeddedSisFile); - sisFileInstaller.InstallSisL(KAppEmbeddableUiOrStandAloneEmbeddedSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile); - sisFileInstaller.InstallSisL(KSimpleAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KAppEmbeddableUiOrStandAloneStandaloneSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KAppEmbeddableUiOrStandAloneStandaloneSisFile); - SetTestStepResult(EPass); return TestStepResult(); } @@ -1796,16 +1767,6 @@ Override of base class virtual */ { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KAppEmbeddableEmbeddedComponent); - sisFileInstaller.UninstallSisL(KAppNotEmbeddableV2Component); - sisFileInstaller.UninstallSisL(KAppEmbeddableOnlyV2Component); - sisFileInstaller.UninstallSisL(KAppEmbeddableStandaloneComponent); - sisFileInstaller.UninstallSisL(KAppEmbeddableUiNotStandAloneV2Component); - sisFileInstaller.UninstallSisL(KAppEmbeddableUiOrStandAloneEmbeddedComponent); - sisFileInstaller.UninstallSisL(KAppEmbeddableUiOrStandAloneStandaloneComponent); - sisFileInstaller.UninstallSisL(KSimpleAppComponent); - return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ServiceRegistryStep.cpp --- a/appfw/apparchitecture/tef/T_ServiceRegistryStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ServiceRegistryStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -25,18 +25,16 @@ #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS #include #endif -#include "T_SisFileInstaller.h" - -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); + + -_LIT(KServerApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp2.sis"); -_LIT(KServerApp2Component, "serverapp2"); - -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); +_LIT(KImportAppsDir,"c:\\private\\10003a3f\\import\\apps\\"); +_LIT(KAppRscSourcePath,"z:\\system\\data\\TestUpdRegAppUninstallation_reg.rsc"); +_LIT(KUpgradeAppRscSourcePath,"z:\\system\\data\\TestUpgradeUpdRegAppUninstallation_reg.rsc"); +_LIT(KAppRscTargetPath,"c:\\private\\10003a3f\\import\\apps\\TestUpdRegAppUninstallation_reg.rsc"); _LIT8(KLitMimeType,"mime/updregappuninstall"); +_LIT8(KLitUpgradeAppMimeType,"mime/upgradeupdregappuninstall"); /** * Constructor @@ -60,10 +58,6 @@ */ TVerdict CT_ServiceRegistryTestStep::doTestStepPreambleL() { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp2SisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KServerApp2SisFile); - SetTestStepResult(EPass); return TestStepResult(); } @@ -74,9 +68,6 @@ */ TVerdict CT_ServiceRegistryTestStep::doTestStepPostambleL() { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KServerApp2Component); - return TestStepResult(); } @@ -104,15 +95,6 @@ RTestableApaLsSession ls; TEST(KErrNone == ls.Connect()); CleanupClosePushL(ls); - - TApaAppInfo info; - TUid uid = {0x100048F3}; - TInt err = ls.GetAppInfo(info, uid); - if(err == KErrNone) - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KApparcTestAppComponent); - } // Use DONT_CHECK because it complaints of heap unbalance (a CTypeStoreManager object, althought it is not actually leaked, // but reallocated in CApaAppListServer::DoUpdateTypeStoreL(void)). @@ -120,9 +102,7 @@ // a CApaFsMonitor object, which introduces an extra 0.25 second delay before invoking the callback. // *** See DEF101056 **** HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestAssociation1L(), NO_CLEANUP); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestAppForDataTypeAndServiceL(ls), NO_CLEANUP); -#endif HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestUpdateOfServiceRegistryOnAppUninstallationL(ls), NO_CLEANUP); HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestServiceRegistryOnAppUpgradeL(ls), NO_CLEANUP); @@ -299,27 +279,42 @@ CleanupClosePushL(fs); User::LeaveIfError(fs.Connect()); - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile); - + TInt err = fs.CreateDirectoryL(KImportAppsDir); + TESTEL((err == KErrNone || err == KErrAlreadyExists), err); + INFO_PRINTF1(_L("c:\\private\\10003a3f\\import\\apps is created successfully or already exists")); + + //Make sure that the target file does not exist. + DeleteFileL(fs, KAppRscTargetPath); + + // Copy TestUpdRegAppUninstallation_reg.rsc from z:\ to c:\private\10003a3f\import\apps\. + err = fs.CopyFileL(KAppRscSourcePath, KAppRscTargetPath); + TEST(err == KErrNone); + INFO_PRINTF1(_L("Successfully copied TestUpdRegAppUninstallation_reg.rsc from Z:\\system\\data to c:\\private\\10003a3f\\import\\apps")); + + //Wait till the applist is updated. + WaitForAppListUpdateL(); + CServiceRegistry* registry = CServiceRegistry::NewL(); CleanupStack::PushL(registry); - TUid appUid = {0x100048f3}; + TUid appUid = {0x10207f80}; TUid resultUid={KNullUidValue}; TDataType dataType (KLitMimeType); - //Test whether 0x100048f3 application is in application list. + //Test whether 0x10207f80 application is in application list. TApaAppInfo appInfo; TEST(aLs.GetAppInfo(appInfo,appUid)==KErrNone); - //Set 0x100048f3 as default application for "mime/updregappuninstall" MIME type. + //Set 0x10207f80 as default application for "mime/updregappuninstall" MIME type. registry->SetDefault(KOpenServiceUid,dataType, appUid); registry->GetDefault(KOpenServiceUid,dataType, resultUid); TEST(appUid==resultUid); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KApparcTestAppComponent); + //Delete file c:\\private\\10003a3f\\import\\apps\\TestUpdRegAppUninstallation_reg.rsc + DeleteFileL(fs, KAppRscTargetPath); + + //Wait till the application list is updated. + WaitForAppListUpdateL(); //Check the application is removed from the application list TEST(aLs.GetAppInfo(appInfo,appUid)==KErrNotFound); @@ -358,26 +353,62 @@ { INFO_PRINTF1(_L("TestServiceRegistryOnAppUpgrade")); + RSmlTestUtils fs; + CleanupClosePushL(fs); + User::LeaveIfError(fs.Connect()); + + TInt err = fs.CreateDirectoryL(KImportAppsDir); + TESTEL((err == KErrNone || err == KErrAlreadyExists), err); + INFO_PRINTF1(_L("c:\\private\\10003a3f\\import\\apps is created successfully or already exists")); + + //Make sure that the target file does not exist. + DeleteFileL(fs, KAppRscTargetPath); + + // Copy TestUpdRegAppUninstallation_reg.rsc from z:\ to c:\private\10003a3f\import\apps\. + err = fs.CopyFileL(KAppRscSourcePath, KAppRscTargetPath); + TEST(err == KErrNone); + INFO_PRINTF1(_L("Successfully copied TestUpdRegAppUninstallation_reg.rsc from Z:\\system\\data to c:\\private\\10003a3f\\import\\apps")); + + //Wait till the applist is updated. + WaitForAppListUpdateL(); + CServiceRegistry* registry = CServiceRegistry::NewL(); CleanupStack::PushL(registry); - TUid appUid = {0xA}; + TUid appUid = {0x10207f80}; TUid resultUid={KNullUidValue}; TDataType dataType (KLitMimeType); - //Test whether 0xA application is in application list. + //Test whether 0x10207f80 application is in application list. TApaAppInfo appInfo; TEST(aLs.GetAppInfo(appInfo,appUid)==KErrNone); - //Set 0xA as default application for "mime/updregappuninstall" MIME type. + //Set 0x10207f80 as default application for "mime/updregappuninstall" MIME type. registry->SetDefault(KOpenServiceUid,dataType, appUid); registry->GetDefault(KOpenServiceUid,dataType, resultUid); TEST(appUid==resultUid); - CSisFileInstaller sisFIleInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisFIleInstaller.InstallSisAndWaitForAppListUpdateL(KTstAppStandAloneSisFile); + TDataType upgDataType(KLitUpgradeAppMimeType); + err=aLs.AppForDataType(upgDataType,resultUid); + TEST(resultUid.iUid==KNullUidValue); + + DeleteFileL(fs, KAppRscTargetPath); + err = fs.CopyFileL(KUpgradeAppRscSourcePath, KAppRscTargetPath); + TEST(err == KErrNone); + INFO_PRINTF1(_L("Successfully copied TestUpgradeUpdRegAppUninstallation_reg.rsc from Z:\\system\\data to c:\\private\\10003a3f\\import\\apps")); + + //Change the modified time of the file to current time + RFs aFs; + TEST(aFs.Connect()==KErrNone); + TTime modifiedTime(0); + modifiedTime.HomeTime(); + TEST(aFs.SetModified(KAppRscTargetPath, modifiedTime)==KErrNone); + aFs.Close(); + + //Wait till the applist is updated. + WaitForAppListUpdateL(); + //Check the application is not removed from the application list TEST(aLs.GetAppInfo(appInfo,appUid)==KErrNone); @@ -385,9 +416,13 @@ TEST(registry->GetDefault(KOpenServiceUid,dataType, resultUid)==KErrNone); TEST(resultUid==appUid); - sisFIleInstaller.UninstallSisL(KTstAppStandAloneComponent); + err=aLs.AppForDataType(upgDataType,resultUid); + TEST((err==KErrNone) && (resultUid==appUid)); + + DeleteFileL(fs,KAppRscTargetPath); CleanupStack::PopAndDestroy(registry); + CleanupStack::PopAndDestroy(&fs); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_ServicesStep.cpp --- a/appfw/apparchitecture/tef/T_ServicesStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_ServicesStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -21,8 +21,6 @@ #include #include "T_ServicesStep.h" -#include "T_SisFileInstaller.h" - #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS #include #endif //SYMBIAN_ENABLE_SPLIT_HEADERS @@ -32,37 +30,6 @@ _LIT8(KLitPriorityText,"text/priority"); _LIT8(KLitCustom1Text, "text/custom1"); - -_LIT(KServerApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp2.sis"); -_LIT(KServerApp2Component, "serverapp2"); - -_LIT(KServerApp4SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp4.sis"); -_LIT(KServerApp4Component, "serverapp4"); - -_LIT(KServerApp6SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp6.sis"); -_LIT(KServerApp6Component, "serverapp6"); - -_LIT(KServerApp7SisFile, "z:\\apparctest\\apparctestsisfiles\\serverapp7.sis"); -_LIT(KServerApp7Component, "serverapp7"); - -_LIT(KOpenServiceApp1SisFile, "z:\\apparctest\\apparctestsisfiles\\openservice1app.sis"); -_LIT(KOpenServiceApp1Component, "openservice1app"); - -_LIT(KOpenServiceApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\openservice2app.sis"); -_LIT(KOpenServiceApp2Component, "openservice2app"); - -_LIT(KCtrlPanelAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TCtrlPnlApp.sis"); -_LIT(KCtrlPanelAppComponent, "TCtrlPnlApp"); - -_LIT(KDataPrioritySystem1SisFile, "z:\\apparctest\\apparctestsisfiles\\T_DataPrioritySystem1.sis"); -_LIT(KDataPrioritySystem1Component, "T_DataPrioritySystem1"); - -_LIT(KDataPrioritySystem2SisFile, "z:\\apparctest\\apparctestsisfiles\\T_DataPrioritySystem2.sis"); -_LIT(KDataPrioritySystem2Component, "T_DataPrioritySystem2"); - -_LIT(KDataPrioritySystem3SisFile, "z:\\apparctest\\apparctestsisfiles\\T_DataPrioritySystem3.sis"); -_LIT(KDataPrioritySystem3Component, "T_DataPrioritySystem3"); - /** Constructor */ @@ -86,28 +53,6 @@ */ TVerdict CT_ServicesTestStep::doTestStepPreambleL() { - CSisFileInstaller sisInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp2SisFile); - sisInstaller.InstallSisL(KServerApp2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp4SisFile); - sisInstaller.InstallSisL(KServerApp4SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp6SisFile); - sisInstaller.InstallSisL(KServerApp6SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KOpenServiceApp1SisFile); - sisInstaller.InstallSisL(KOpenServiceApp1SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KOpenServiceApp2SisFile); - sisInstaller.InstallSisL(KOpenServiceApp2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KCtrlPanelAppSisFile); - sisInstaller.InstallSisL(KCtrlPanelAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KDataPrioritySystem1SisFile); - sisInstaller.InstallSisL(KDataPrioritySystem1SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KDataPrioritySystem2SisFile); - sisInstaller.InstallSisL(KDataPrioritySystem2SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KDataPrioritySystem3SisFile); - sisInstaller.InstallSisL(KDataPrioritySystem3SisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KServerApp7SisFile); - sisInstaller.InstallSisAndWaitForAppListUpdateL(KServerApp7SisFile); - SetTestStepResult(EPass); TInt error = iApaLsSession.Connect(); TEST(error==KErrNone); @@ -120,17 +65,6 @@ */ TVerdict CT_ServicesTestStep::doTestStepPostambleL() { - CSisFileInstaller sisInstaller; - sisInstaller.UninstallSisL(KServerApp2Component); - sisInstaller.UninstallSisL(KServerApp4Component); - sisInstaller.UninstallSisL(KServerApp6Component); - sisInstaller.UninstallSisL(KServerApp7Component); - sisInstaller.UninstallSisL(KOpenServiceApp1Component); - sisInstaller.UninstallSisL(KOpenServiceApp2Component); - sisInstaller.UninstallSisL(KCtrlPanelAppComponent); - sisInstaller.UninstallSisL(KDataPrioritySystem1Component); - sisInstaller.UninstallSisL(KDataPrioritySystem2Component); - sisInstaller.UninstallSisL(KDataPrioritySystem3Component); return TestStepResult(); } @@ -151,7 +85,6 @@ TInt CT_ServicesTestStep::RunTestCasesL() { HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery1L(), iApaLsSession.ClearAppInfoArray() ); -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery2L(), iApaLsSession.ClearAppInfoArray() ); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery3L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery4L(), NO_CLEANUP); @@ -159,13 +92,10 @@ HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery6(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery7L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery8L(), NO_CLEANUP); -#endif // The following two APIs InsertDataMappingL() & DeleteDataMappingL(), update the type store on the server side. // This update takes place on the server side while the test case is still running, which causes the heap check to fail. // To avoid the heap check on the server side, DONT_CHECK macro is used. -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestServiceDiscovery9(), NO_CLEANUP ); -#endif HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery10L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery11L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery12L(), NO_CLEANUP); @@ -205,7 +135,7 @@ HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery24(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery25(), iApaLsSession.FlushRecognitionCache() ); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery27(), iApaLsSession.FlushRecognitionCache() ); - //HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery28L(), NO_CLEANUP); + HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestServiceDiscovery28L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestOpenService1L(), NO_CLEANUP); HEAP_TEST_LS_SESSION(iApaLsSession, 0, 0, TestCtrlPnlAppL(), NO_CLEANUP); // The following two APIs InsertDataMappingL() & DeleteDataMappingL(), update the type store on the server side. diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_StartAppStep.cpp --- a/appfw/apparchitecture/tef/T_StartAppStep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_StartAppStep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -24,18 +24,10 @@ #include "tstapp.h" #include "TRApaLsSessionStartAppTest.h" #include -#include "T_SisFileInstaller.h" _LIT(KCompleted, "Completed."); _LIT8(KLitPlainText,"text/plain"); -_LIT(KUnprotectedAppSisFile, "z:\\apparctest\\apparctestsisfiles\\UnProctectedUidApp.sis"); -_LIT(KUnprotectedAppComponent, "UnProctectedUidApp"); - -_LIT(KRApaLsSessionStartAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TRApaLsSessionStartAppTestApp_v2.sis"); -_LIT(KRApaLsSessionStartAppComponent, "TRApaLsSessionStartAppTestApp_v2"); - - const TInt KTUnProtectedAppTestPassed = 1234; class RIpcApparcFuzzTest : public RSessionBase @@ -116,13 +108,6 @@ */ TVerdict CT_StartAppTestStep::doTestStepPreambleL() { - CSisFileInstaller sisFileInstaller; - - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KUnprotectedAppSisFile); - sisFileInstaller.InstallSisL(KUnprotectedAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KRApaLsSessionStartAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KRApaLsSessionStartAppSisFile); - SetTestStepResult(EPass); TInt error = iApaLsSession.Connect(); TEST(error==KErrNone); @@ -135,11 +120,6 @@ */ TVerdict CT_StartAppTestStep::doTestStepPostambleL() { - CSisFileInstaller sisFileInstaller; - - sisFileInstaller.UninstallSisL(KUnprotectedAppComponent); - sisFileInstaller.UninstallSisL(KRApaLsSessionStartAppComponent); - return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_StartDocStep.CPP --- a/appfw/apparchitecture/tef/T_StartDocStep.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_StartDocStep.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -22,12 +22,6 @@ #include "testableapalssession.h" #include "T_StartDocStep.h" #include "TStartDoc.h" -#include "T_SisFileInstaller.h" - -_LIT(KStartDocAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TStartDocApp_v2.sis"); -_LIT(KStartDocAppComponent, "TStartDocApp_v2"); - - /** @SYMTestCaseID T-StartDocStep-TestStartDocL @@ -125,23 +119,6 @@ User::After(1500000); } -TVerdict CT_StartDocStep::doTestStepPreambleL() - { - CSisFileInstaller sisInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KStartDocAppSisFile); - sisInstaller.InstallSisAndWaitForAppListUpdateL(KStartDocAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_StartDocStep::doTestStepPostambleL() - { - CSisFileInstaller sisInstaller; - sisInstaller.UninstallSisL(KStartDocAppComponent); - return TestStepResult(); - } - TVerdict CT_StartDocStep::doTestStepL() { INFO_PRINTF1(_L("Test Started")); @@ -154,7 +131,7 @@ User::After(1500000); // run the test - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestStartDocL(ls), NO_CLEANUP); + HEAP_TEST_LS_SESSION(ls, 0, 0, TestStartDocL(ls), NO_CLEANUP); CleanupStack::PopAndDestroy(&ls); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_StartDocStep.h --- a/appfw/apparchitecture/tef/T_StartDocStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_StartDocStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -27,8 +27,6 @@ class CT_StartDocStep : public CTestStep { public: - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); private: void TestStartDocL(RApaLsSession& aLs); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_WindowChainingStep.CPP --- a/appfw/apparchitecture/tef/T_WindowChainingStep.CPP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_WindowChainingStep.CPP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -23,15 +23,6 @@ #include "T_WindowChainingStep.h" #include "TWindowChaining.h" #include -#include "T_SisFileInstaller.h" - -_LIT(KWinChainAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_winchainLaunch.sis"); -_LIT(KWinChainAppComponent, "t_winchainLaunch"); - -_LIT(KWinChainChildAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_winchainChild.sis"); -_LIT(KWinChainChildAppComponent, "t_winchainChild"); - - /** @SYMTestCaseID TODO @@ -121,30 +112,6 @@ SetTestStepResult(EFail); } - -TVerdict CT_WindowChainingStep::doTestStepPreambleL() - { - CSisFileInstaller sisInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KWinChainChildAppSisFile); - sisInstaller.InstallSisL(KWinChainChildAppSisFile); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KWinChainAppSisFile); - sisInstaller.InstallSisAndWaitForAppListUpdateL(KWinChainAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - - -TVerdict CT_WindowChainingStep::doTestStepPostambleL() - { - CSisFileInstaller sisInstaller; - sisInstaller.UninstallSisL(KWinChainChildAppComponent); - sisInstaller.UninstallSisL(KWinChainAppComponent); - - return TestStepResult(); - } - - TVerdict CT_WindowChainingStep::doTestStepL() { __UHEAP_MARK; diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_WindowChainingStep.h --- a/appfw/apparchitecture/tef/T_WindowChainingStep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_WindowChainingStep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -27,8 +27,6 @@ class CT_WindowChainingStep : public CTestStep { public: - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); private: void TestWindowChainingL(); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest.cpp --- a/appfw/apparchitecture/tef/T_groupNametest.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -30,11 +30,6 @@ #include "T_groupNametest.h" #include "apparctestserver.h" #include -#include "T_SisFileInstaller.h" - -_LIT(KGroupNameTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\t_groupname.sis"); -_LIT(KGroupNameTestAppComponent, "T_groupname"); - // CT_GroupNameStep @@ -104,23 +99,6 @@ } -TVerdict CT_GroupNameStep::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameTestAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameTestAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } -TVerdict CT_GroupNameStep::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KGroupNameTestAppComponent); - - return TestStepResult(); - } - /** @return - TVerdict code Override of base class virtual diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest.h --- a/appfw/apparchitecture/tef/T_groupNametest.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -32,8 +32,6 @@ CT_GroupNameStep(); ~CT_GroupNameStep(); virtual TVerdict doTestStepL(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); void DoTestGroupNameL(RApaLsSession& aLs); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest_ver1.cpp --- a/appfw/apparchitecture/tef/T_groupNametest_ver1.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest_ver1.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -30,10 +30,6 @@ #include "T_groupNametest_ver1.h" #include "apparctestserver.h" #include -#include "T_SisFileInstaller.h" - -_LIT(KGroupNameVer1AppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_groupname_ver1.sis"); -_LIT(KGroupNameVer1AppComponent, "T_groupname_ver1"); // CT_GroupNameStep_ver1 @@ -94,24 +90,6 @@ TEST(capability.iGroupName == KGroupname); } -TVerdict CT_GroupNameStep_ver1::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameVer1AppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameVer1AppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_GroupNameStep_ver1::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KGroupNameVer1AppComponent); - - return TestStepResult(); - } - /** @return - TVerdict code Override of base class virtual diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest_ver1.h --- a/appfw/apparchitecture/tef/T_groupNametest_ver1.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest_ver1.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -31,8 +31,6 @@ public: CT_GroupNameStep_ver1(); ~CT_GroupNameStep_ver1(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void DoTestGroupNameL(RApaLsSession& aLs); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest_ver2.cpp --- a/appfw/apparchitecture/tef/T_groupNametest_ver2.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest_ver2.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -30,10 +30,6 @@ #include "T_groupNametest_ver2.h" #include "apparctestserver.h" #include -#include "T_SisFileInstaller.h" - -_LIT(KGroupNameVer2AppSisFile, "z:\\apparctest\\apparctestsisfiles\\T_groupname_ver2.sis"); -_LIT(KGroupNameVer2AppComponent, "T_groupname_ver2"); // CT_GroupNameStep_ver2 @@ -91,25 +87,6 @@ TEST(info.iShortCaption == KShortCaption); } -TVerdict CT_GroupNameStep_ver2::doTestStepPreambleL() - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KGroupNameVer2AppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KGroupNameVer2AppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_GroupNameStep_ver2::doTestStepPostambleL() - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KGroupNameVer2AppComponent); - - return TestStepResult(); - } - - /** @return - TVerdict code Override of base class virtual diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupNametest_ver2.h --- a/appfw/apparchitecture/tef/T_groupNametest_ver2.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/T_groupNametest_ver2.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -30,8 +30,6 @@ public: CT_GroupNameStep_ver2(); ~CT_GroupNameStep_ver2(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); virtual TVerdict doTestStepL(); void DoTestCaptionNameL(RApaLsSession& aLs); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupname.mmp --- a/appfw/apparchitecture/tef/T_groupname.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET T_groupname.exe -TARGETTYPE exe -UID 0x100039CE 0x10208185 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application localisable resource file -resource T_groupname_loc.RSS -start resource T_groupname_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - - -START RESOURCE T_groupname_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupname_ver1.mmp --- a/appfw/apparchitecture/tef/T_groupname_ver1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET T_groupname_ver1.exe -TARGETTYPE exe -UID 0x100039CE 0x10208183 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application localisable resource file -resource T_groupnamever1_loc.RSS -start resource T_groupnamever1_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - - -START RESOURCE T_groupnamever1_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/T_groupname_ver2.mmp --- a/appfw/apparchitecture/tef/T_groupname_ver2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET T_groupname_ver2.exe -TARGETTYPE exe -UID 0x100039CE 0x10208184 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application localisable resource file -resource T_groupnamever2_loc.RSS -start resource T_groupnamever2_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - - -START RESOURCE T_groupnamever2_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TestTrustedPriorityApp1.mmp --- a/appfw/apparchitecture/tef/TestTrustedPriorityApp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET TestTrustedPriorityApp1.exe -TARGETTYPE exe -UID 0x100039CE 0x10207f8D -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application exe registration resource file -resource TestTrustedPriorityApp1_reg.rss -start resource TestTrustedPriorityApp1_reg.rss -targetpath /apparctestregfiles -lang sc -end - -SOURCEPATH ../tef -// SOURCE T_RApaLsSessionStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TestTrustedPriorityApp2.mmp --- a/appfw/apparchitecture/tef/TestTrustedPriorityApp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET TestTrustedPriorityApp2.exe -TARGETTYPE exe -UID 0x100039CE 0x10207f8F -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application exe registration resource file -resource TestTrustedPriorityApp2_reg.rss -start resource TestTrustedPriorityApp2_reg.rss -targetpath /apparctestregfiles -lang sc -end - -SOURCEPATH ../tef -// SOURCE T_RApaLsSessionStep.cpp T_DataTypeMappingWithSid1.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TestUnTrustedPriorityApp1.mmp --- a/appfw/apparchitecture/tef/TestUnTrustedPriorityApp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET TestUnTrustedPriorityApp1.exe -TARGETTYPE exe -UID 0x100039CE 0x10207f8C -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application exe registration resource file -resource TestUnTrustedPriorityApp1_reg.rss -start resource TestUnTrustedPriorityApp1_reg.rss -targetpath /apparctestregfiles -lang sc -end - -SOURCEPATH ../tef -// SOURCE T_RApaLsSessionStep.cpp T_DataTypeMappingWithSid1.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/TestUnTrustedPriorityApp2.mmp --- a/appfw/apparchitecture/tef/TestUnTrustedPriorityApp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET TestUnTrustedPriorityApp2.exe -TARGETTYPE exe -UID 0x100039CE 0xA3010010 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application exe registration resource file -resource TestUnTrustedPriorityApp2_reg.rss -start resource TestUnTrustedPriorityApp2_reg.rss -targetpath /apparctestregfiles -lang sc -end - -SOURCEPATH ../tef -// SOURCE T_RApaLsSessionStep.cpp T_DataTypeMappingWithSid1.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/UnProctectedUidApp.mmp --- a/appfw/apparchitecture/tef/UnProctectedUidApp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/UnProctectedUidApp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -36,13 +36,13 @@ start resource UnProctectedUidApp.rss HEADER -targetpath /apparctestregfiles +targetpath /resource/apps end // Application exe registration resource file resource UnProctectedUidApp_reg.rss start resource UnProctectedUidApp_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/app_CTRL.MMP --- a/appfw/apparchitecture/tef/app_CTRL.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/app_CTRL.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -38,21 +38,21 @@ // Application exe specific resource which is localised to the application resource App_CTRL.rss start resource App_CTRL.rss -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end // Application exe registration resource file resource App_CTRL_reg.rss start resource App_CTRL_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/apps lang sc end // Application localisable resource file resource App_ctrl_loc.RSS start resource App_ctrl_loc.RSS -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/app_CTRL2.MMP --- a/appfw/apparchitecture/tef/app_CTRL2.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/app_CTRL2.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -41,14 +41,14 @@ // Application exe specific resource which is localised to the application resource App_CTRL2.rss start resource App_CTRL2.rss -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end // Application exe registration resource file resource App_CTRL2_reg.rss start resource App_CTRL2_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/import/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/app_CTRL2_stub.MMP --- a/appfw/apparchitecture/tef/app_CTRL2_stub.MMP Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2010 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: -* -*/ -// -// App_CTRL2.MMP for test component App_CTRL2 (released in APPARC) -// - -target app_ctrl2.exe -TARGETTYPE exe - -CAPABILITY All -Tcb -VENDORID 0x70000001 - -UID 0x100039CE 0x13008ADE -targetpath /sys/bin -SOURCEPATH . - -// your public include directory should be here -userinclude ../inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//systeminclude /epoc32/include/techview -//systeminclude /epoc32/include/kernel - -source app_CTRL2.CPP - -// Application exe specific resource which is localised to the application -resource App_CTRL2.rss -start resource App_CTRL2.rss -targetpath /resource/apps -lang sc -end - -// Application exe registration resource file -resource App_CTRL2_reg.rss -start resource App_CTRL2_reg.rss -targetpath /private/10003a3f/import/apps -lang sc -end - - -LIBRARY apparc.lib -LIBRARY cone.lib -LIBRARY eikcore.lib -LIBRARY euser.lib -LIBRARY gdi.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/apparctestserver.MMP --- a/appfw/apparchitecture/tef/apparctestserver.MMP Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/apparctestserver.MMP Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -16,7 +16,7 @@ target apparctestserver.exe targettype exe UID 0x1000007A 0x101F289C -CAPABILITY AllFiles WriteDeviceData PowerMgmt Protserv SwEvent ReadUserData +CAPABILITY AllFiles WriteDeviceData PowerMgmt Protserv SwEvent MW_LAYER_SYSTEMINCLUDE_SYMBIAN @@ -32,12 +32,7 @@ //-------START SOURCE T_Foreground.cpp -SOURCE T_ProStep.cpp T_OOMStep.cpp - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -SOURCE T_File2Step.cpp T_File3Step.cpp -#endif - +SOURCE T_ProStep.cpp T_OOMStep.cpp T_File2Step.cpp T_File3Step.cpp SOURCE T_BackupStep.cpp T_MdrStep.cpp SOURCE T_Serv2Step.CPP T_Serv3Step.cpp SOURCE T_MRUStep.CPP T_WgnamStep.CPP @@ -80,15 +75,6 @@ SOURCE t_servicebasestep.cpp SOURCE T_RecUpgrade.cpp -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -SOURCE t_updateapplist.cpp -SOURCE t_forceregstep.cpp -SOURCE t_clientnotifstep.cpp -SOURCE t_nonnativetest.cpp -#endif - -source t_sisfileinstaller.cpp - resource t_rapalssessionstep.rss start resource t_rapalssessionstep.rss @@ -96,9 +82,7 @@ lang SC end -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK // START resource files for service registration and discovery tests - start resource serverapp_loc.RSS HEADER targetpath /resource/apps @@ -170,7 +154,6 @@ targetpath /private/10003a3f/import/apps lang SC end -#endif start bitmap default_app_icon.m02 targetpath /resource/apps @@ -180,7 +163,6 @@ //END resource files for customising the default icon wrt locale -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK start resource TestUnTrustedPriorityApp1_reg.rss targetpath /private/10003a3f/import/apps lang sc @@ -233,7 +215,6 @@ start resource T_groupnamever2_reg.rss targetpath /private/10003a3f/apps end -#endif //-------END @@ -246,13 +227,7 @@ LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -LIBRARY sif.lib -LIBRARY siftransport.lib -LIBRARY scsclient.lib -LIBRARY scrclient.lib sisregistryclient.lib scrdatabase.lib sishelper.lib - +LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0xf000 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/apparctestserver.cpp --- a/appfw/apparchitecture/tef/apparctestserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/apparctestserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -38,6 +38,8 @@ #include "t_foreground.h" #include "T_ProStep.h" #include "T_OOMStep.h" +#include "T_File2Step.h" +#include "T_File3Step.h" #include "T_BackupStep.h" #include "T_MdrStep.h" #include "T_Serv2Step.h" @@ -70,29 +72,19 @@ #include "T_DataMappingPersistenceA.h" #include "T_DataMappingPersistenceB.h" #include "T_DataMappingPersistenceC.h" +#include "T_NonNativeAppsStep.h" +#include "T_IntegritySupportStep.h" +#include "T_IntegritySupportRebootStep.h" #include "T_ApsScan.h" #include "T_EndTaskStep.h" #include "T_RecUpgrade.h" #include "T_AppListFileBootStep.h" #include "T_AppListFileUpdateStep.h" #include "t_largestackstep.h" +#include "t_drivenotification.h" #include "t_mimecontentpolicystep.h" #include "t_servicebasestep.h" -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include "t_updateapplist.h" -#include "t_forceregstep.h" -#include "t_clientnotifstep.h" -#include "t_nonnativetest.h" -#else -#include "T_File2Step.h" -#include "T_File3Step.h" -#include "T_NonNativeAppsStep.h" -#include "T_IntegritySupportStep.h" -#include "T_IntegritySupportRebootStep.h" -#include "t_drivenotification.h" -#endif - CApparctestServer* CApparctestServer::NewL() /** @return - Instance of the test server @@ -139,7 +131,6 @@ { testStep = new CT_OOMStep(); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK else if(aStepName == KT_File2Step) { testStep = new CT_File2Step(); @@ -148,7 +139,6 @@ { testStep = new CT_File3Step(); } -#endif else if(aStepName == KT_BackupStep) { testStep = new CT_BackupStep(); @@ -288,7 +278,6 @@ { testStep = new CT_DataMappingPersistenceCTestStep(); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK else if (aStepName == _L("T_NonNativeApps")) { testStep = new CT_NonNativeAppsStep(); @@ -305,7 +294,6 @@ { testStep = new CT_IntegritySupportReboot2TestStep(); } -#endif else if (aStepName == KT_ApsScanStep) { testStep = new CT_ApsScanStep(); @@ -334,12 +322,10 @@ { testStep = new CT_LargeStackStep(); } -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK else if (aStepName == KT_DriveNotificationStep) { testStep = new CT_DriveNotificationStep(); } -#endif else if (aStepName == KT_MimeContentPolicyStep) { testStep = new CT_MimeContentPolicyStep(); @@ -352,24 +338,6 @@ { testStep = new CT_RecUpgradeStep(); } -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - else if (aStepName == KT_TestUpdateAppListStep) - { - testStep = new CT_TestUpdateAppListStep(); - } - else if (aStepName == KT_ForceRegStep) - { - testStep = new CT_ForceRegStep(); - } - else if (aStepName == KT_ClientNotifStep) - { - testStep = new CT_ClientNotifStep(); - } - else if (aStepName == KT_NonNativeTestStep) - { - testStep = new CT_NonNativeTestStep(); - } -#endif return testStep; } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/A0001010.rss --- a/appfw/apparchitecture/tef/forceregapps/A0001010.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - - -// INCLUDES -#include - - -// RESOURCE DEFINITIONS -// ----------------------------------------------------------------------------- -// -// ----------------------------------------------------------------------------- -// -RESOURCE REGISTRY_INFO r_registry - { - dll_uid = 0xA0001010; - interfaces = - { - INTERFACE_INFO - { - interface_uid = 0x101F7D87; // Const for all Data Recognizers - implementations = - { - IMPLEMENTATION_INFO - { - implementation_uid = 0xA0001010; - version_no = 1; - display_name = "TForceRegAppRec"; - default_data = ""; - opaque_data = ""; - } - }; - } - }; - } - -// End of File diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/TForceRegAppRec.cpp --- a/appfw/apparchitecture/tef/forceregapps/TForceRegAppRec.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,157 +0,0 @@ -// Copyright (c) 2010 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: -// This recognizer is part of the supporting test code for T_ForceRegStep.CPP -// -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include -#include -#include -#include - -#include -#include - -_LIT8(KLit8_DataType_ForceRegApp1, "x-epoc/forcregapp1"); -_LIT8(KLit8_DataType_ForceRegApp2, "x-epoc/forcregapp2"); -_LIT8(KLit8_DataType_ForceRegApp3, "x-epoc/forcregapp3"); -_LIT8(KLit8_DataType_ForceRegApp4, "x-epoc/forcregapp4"); - -const TUid KUidForceRegAppRecognizer={0xA0001010}; -const TUint KImplForceRegAppRecognizer=0xA0001010; - -enum TMimeTypes - { - EMimeType1 = 0, - EMimeType2, - EMimeType3, - EMimeType4, - EMimeLast - }; - -_LIT(KLitMimeExtension1, ".FRG1"); -_LIT(KLitMimeExtension2, ".FRG2"); -_LIT(KLitMimeExtension3, ".FRG3"); -_LIT(KLitMimeExtension4, ".FRG4"); - - -// CTForceRegAppRec definition - -class CTForceRegAppRec : public CApaDataRecognizerType - { -public: - CTForceRegAppRec(); - static CApaDataRecognizerType* CreateRecognizerL(); -private: - // from CApaDataRecognizerType - virtual TUint PreferredBufSize(); - virtual TDataType SupportedDataTypeL(TInt aIndex) const; - virtual void DoRecognizeL(const TDesC& aName, const TDesC8& aBuffer); - }; - - -// CTForceRegAppRec implementation - -CTForceRegAppRec::CTForceRegAppRec() - :CApaDataRecognizerType(KUidForceRegAppRecognizer, EHigh) - { - iCountDataTypes = EMimeLast; - } - -TUint CTForceRegAppRec::PreferredBufSize() - { - return 0; - } - -TDataType CTForceRegAppRec::SupportedDataTypeL(TInt aIndex) const - { - if (aIndex == EMimeType1) - return TDataType(KLit8_DataType_ForceRegApp1); - - else if (aIndex == EMimeType2) - return TDataType(KLit8_DataType_ForceRegApp2); - - else if (aIndex == EMimeType3) - return TDataType(KLit8_DataType_ForceRegApp3); - - else if (aIndex == EMimeType4) - return TDataType(KLit8_DataType_ForceRegApp4); - - else - return TDataType(KNullDesC8); - } - - -void CTForceRegAppRec::DoRecognizeL(const TDesC& aName, const TDesC8&) - { - - // Compare if the file extension is known - if (aName.Length() < 5) - { - iDataType = TDataType(KNullDesC8); - iConfidence = ENotRecognized; - return; - } - - if (aName.Right(5).CompareF(KLitMimeExtension1) == 0) - { - iDataType = TDataType(KLit8_DataType_ForceRegApp1); - iConfidence = ECertain; - } - else if (aName.Right(5).CompareF(KLitMimeExtension2) == 0) - { - iDataType = TDataType(KLit8_DataType_ForceRegApp2); - iConfidence = ECertain; - } - else if (aName.Right(5).CompareF(KLitMimeExtension3) == 0) - { - iDataType = TDataType(KLit8_DataType_ForceRegApp3); - iConfidence = ECertain; - } - else if (aName.Right(5).CompareF(KLitMimeExtension4) == 0) - { - iDataType = TDataType(KLit8_DataType_ForceRegApp4); - iConfidence = ECertain; - } - else - { - iDataType = TDataType(KNullDesC8); - iConfidence = ENotRecognized; - } - } - -// stand-alone functions - -CApaDataRecognizerType* CTForceRegAppRec::CreateRecognizerL() - { - return new (ELeave) CTForceRegAppRec(); - } - -const TImplementationProxy ImplementationTable[] = - { - IMPLEMENTATION_PROXY_ENTRY(KImplForceRegAppRecognizer, CTForceRegAppRec::CreateRecognizerL) - }; - -EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) - { - aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); - return ImplementationTable; - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/TForceRegAppRec.mmp --- a/appfw/apparchitecture/tef/forceregapps/TForceRegAppRec.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - - -TARGET tforceregapprec.dll -CAPABILITY All -Tcb -TARGETTYPE PLUGIN -UID 0x10009d8d 0xA0001010 -VENDORID 0x70000001 - -SOURCEPATH . -SOURCE TForceRegAppRec.cpp - -userinclude ../../inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib apmime.lib apparc.lib efsrv.lib - -start resource A0001010.rss -target tforceregapprec.rsc -end - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp1.cpp --- a/appfw/apparchitecture/tef/forceregapps/forceregapp1.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include "../t_forceregstep.h" -#include - - -TInt E32Main() - { - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - - TInt status; - forceRegStatus.Get(status); - status |= KForceRegApp1Executed; - forceRegStatus.Set(status); - forceRegStatus.Close(); - - return(KErrNone); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp1.mmp --- a/appfw/apparchitecture/tef/forceregapps/forceregapp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -// Copyright (c) 2010 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: -// using relative paths for sourcepath and user includes -// -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -TARGET forceregapp1.exe -TARGETTYPE exe -UID 0x100039CE 0xA0001000 -VENDORID 0x70000001 - -SOURCEPATH . -SOURCE forceregapp1.cpp - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN - - -START RESOURCE forceregapp1_reg.rss -TARGETPATH /apparctestregfiles -END - -LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp1_reg.rss --- a/appfw/apparchitecture/tef/forceregapps/forceregapp1_reg.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -#include - -UID2 KUidAppRegistrationResourceFile -UID3 0xA0001000 // application UID - -RESOURCE APP_REGISTRATION_INFO - { - app_file = "forceregapp1"; - datatype_list = - { - DATATYPE { priority=EDataTypePriorityNormal; type="x-epoc/forcregapp1"; } - }; - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp2.cpp --- a/appfw/apparchitecture/tef/forceregapps/forceregapp2.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include "../t_forceregstep.h" -#include - - -TInt E32Main() - { - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - - TInt status; - forceRegStatus.Get(status); - status |= KForceRegApp2Executed; - forceRegStatus.Set(status); - - TRequestStatus propertyChanged; - - while(!(status & KStopForceRegApp2)) - { - propertyChanged=KRequestPending; - forceRegStatus.Subscribe(propertyChanged); - User::WaitForRequest(propertyChanged); - forceRegStatus.Get(status); - } - - forceRegStatus.Close(); - - return(KErrNone); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp2.mmp --- a/appfw/apparchitecture/tef/forceregapps/forceregapp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -// Copyright (c) 2010 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: -// using relative paths for sourcepath and user includes -// -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -TARGET forceregapp2.exe -TARGETTYPE exe -UID 0x100039CE 0xA0001001 -VENDORID 0x70000001 - -SOURCEPATH . -SOURCE forceregapp2.cpp - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN - - -START RESOURCE forceregapp2_reg.rss -TARGETPATH /apparctestregfiles -END - -LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/forceregapps/forceregapp2_reg.rss --- a/appfw/apparchitecture/tef/forceregapps/forceregapp2_reg.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -#include - -UID2 KUidAppRegistrationResourceFile -UID3 0xA0001001 // application UID - -RESOURCE APP_REGISTRATION_INFO - { - app_file = "forceregapp2"; - datatype_list = - { - DATATYPE { priority=EDataTypePriorityNormal; type="x-epoc/forcregapp2"; } - }; - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/m_ctrl_v2.mmp --- a/appfw/apparchitecture/tef/m_ctrl_v2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/m_ctrl_v2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -43,19 +43,19 @@ // Application exe specific resource which is localised to the application resource M_CTRL.rss start resource M_CTRL.rss -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end // Application exe registration resource file start resource M_CTRL_reg.rss -targetpath /apparctestregfiles +targetpath /private/10003a3f/import/apps lang sc end // Application localisable resource file start resource M_CTRL_loc.RSS -targetpath /apparctestregfiles +targetpath /resource/apps lang sc end diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/m_ctrl_v2_Stub.mmp --- a/appfw/apparchitecture/tef/m_ctrl_v2_Stub.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -/* -* Copyright (c) 2010 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: -* -*/ -// -// M_CTRL.MMP for test component M_CTRL (released in APPARC) -// New style APP/EXE built for a secure environment -// - -target m_ctrl.exe -TARGETTYPE exe - -targetpath /sys/bin -UID 0x100039CE 0x13008AEE -CAPABILITY All -Tcb -VENDORID 0x70000001 - -epocstacksize 0x5000 - -SOURCEPATH . - - -userinclude ../inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//systeminclude /epoc32/include/techview - -userinclude . - -// Application exe specific resource which is localised to the application -resource M_CTRL.rss -start resource M_CTRL.rss -targetpath /resource/apps -lang sc -end - -// Application exe registration resource file -start resource M_CTRL_reg.rss -targetpath /private/10003a3f/import/apps -lang sc -end - -// Application localisable resource file -start resource M_CTRL_loc.RSS -targetpath /resource/apps -lang sc -end - -SOURCE M_CTRL_V2.CPP - -LIBRARY apparc.lib -LIBRARY cone.lib -LIBRARY efsrv.lib -LIBRARY eikcore.lib -LIBRARY euser.lib -LIBRARY gdi.lib -LIBRARY appfwk_test_appui.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/openservice1app.mmp --- a/appfw/apparchitecture/tef/openservice1app.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET openservice1app.exe -TARGETTYPE exe -UID 0x100039CE 0x10208200 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE openservice1a.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/openservice2app.mmp --- a/appfw/apparchitecture/tef/openservice2app.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET openservice2app.exe -TARGETTYPE exe -UID 0x100039CE 0x10208201 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE openservice1b.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/10285BC3.rss --- a/appfw/apparchitecture/tef/refnativeplugin/10285BC3.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: -* ECOM DLL UID: 0x10285BC3 -* ECOM interface UID: 0x10285BC2 (KUidSifPlugin) -* ECOM Implementation: 0x10285BC4 -* -*/ - - -#include - -RESOURCE REGISTRY_INFO so_registry - { - dll_uid = 0x10285BC3; - interfaces = - { - INTERFACE_INFO - { - interface_uid = 0x10285BC2; - - implementations = - { - IMPLEMENTATION_INFO - { - implementation_uid = 0x10285BC4; - version_no = 1; - default_data = ""; - opaque_data = ""; - } - }; - } - }; - } \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.cpp --- a/appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,619 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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 "refnativeplugin.h" -#include "usiflog.h" -#include "sisregistrywritablesession.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using namespace Usif; - -static const TInt KRefNativePluginImpId = 0x10285BC4; - -static const TImplementationProxy ImplementationTable[] = - { - IMPLEMENTATION_PROXY_ENTRY(KRefNativePluginImpId, CRefNativePlugin::NewL) - }; - -EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) - { - aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); - return ImplementationTable; - } - -CRefNativePlugin* CRefNativePlugin::NewL() - { - DEBUG_PRINTF(_L8("Constructing CRefNativePlugin")); - CRefNativePlugin *self = new (ELeave) CRefNativePlugin(); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -void CRefNativePlugin::ConstructL() - { - iImpl = CRefNativePluginActiveImpl::NewL(); - } - -CRefNativePlugin::~CRefNativePlugin() - { - delete iImpl; - } - -void CRefNativePlugin::CancelOperation() - { - DEBUG_PRINTF(_L8("Reference native plugin - Cancel")); - iImpl->Cancel(); - } - -void CRefNativePlugin::GetComponentInfo(const TDesC& aFileName, const TSecurityContext& /*aSecurityContext*/, - CComponentInfo& aComponentInfo, TRequestStatus& aStatus) - { - iImpl->GetComponentInfo(aFileName, aComponentInfo, aStatus); - } - -void CRefNativePlugin::GetComponentInfo(RFile& aFileHandle, const TSecurityContext& /*aSecurityContext*/, - CComponentInfo& aComponentInfo, TRequestStatus& aStatus) - { - iImpl->GetComponentInfo(aFileHandle, aComponentInfo, aStatus); - } - -void CRefNativePlugin::Install(const TDesC& aFileName, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus) - { - iImpl->Install(aFileName, aSecurityContext, aInputParams, aOutputParams, aStatus); - } - -void CRefNativePlugin::Install(RFile& aFileHandle, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus) - { - iImpl->Install(aFileHandle, aSecurityContext, aInputParams, aOutputParams, aStatus); - } - -void CRefNativePlugin::Uninstall(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, TRequestStatus& aStatus) - { - iImpl->Uninstall(aComponentId, aSecurityContext, aInputParams, aOutputParams, aStatus); - } - -void CRefNativePlugin::Activate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, TRequestStatus& aStatus) - - { - DEBUG_PRINTF(_L8("Reference native plugin - Activate")); - iImpl->Activate(aComponentId, aSecurityContext, aStatus); - } - -void CRefNativePlugin::Deactivate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - Deactivate")); - iImpl->Deactivate(aComponentId, aSecurityContext, aStatus); - } - -//------------------CRefNativePluginActiveImpl--------------------- - -CRefNativePluginActiveImpl* CRefNativePluginActiveImpl::NewL() - { - DEBUG_PRINTF(_L8("Reference native plugin - Constructing CRefNativePluginActiveImpl")); - CRefNativePluginActiveImpl *self = new (ELeave) CRefNativePluginActiveImpl(); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(1, self); - return self; - } - -void CRefNativePluginActiveImpl::ConstructL() - { - iInstallPrefs = Swi::CInstallPrefs::NewL(); - iAsyncLauncher = Swi::CAsyncLauncher::NewL(); - iComponentInfo = CComponentInfo::NewL(); - CActiveScheduler::Add(this); - } - -CRefNativePluginActiveImpl::~CRefNativePluginActiveImpl() - { - delete iAsyncLauncher; - delete iInstallPrefs; - delete iComponentInfo; - } - -TBool CRefNativePluginActiveImpl::NeedUserCapabilityL() - { - // Silent install is not allowed when the package requires additional capabilities - // than what it is signed for (Pakage may request for some capability that is not - // granted by the certificate used to sign it). - for(TInt cap=0; capRootNodeL().UserGrantableCaps().HasCapability(TCapability(cap))) - { - DEBUG_PRINTF2(_L("Package requires additional capability - %d"), cap); - return ETrue; - } - } - - return EFalse; - } - -void CRefNativePluginActiveImpl::RunL() - { - if (iSilentInstall) - { - DEBUG_PRINTF(_L("Silent install - CRefNativePluginActiveImpl::RunL")); - ProcessSilentInstallL(); - } - else - { - TInt res = iStatus.Int(); - DEBUG_PRINTF2(_L8("Reference native plugin - Operation finished with result %d"), res); - - // Output options - if (iOutputParams != NULL) - { - iOutputParams->AddIntL(KSifOutParam_ExtendedErrCode, res); - - if (iInstallRequest && res == KErrNone) - { - TComponentId resultComponentId = 0; - TRAPD(getLastIdErr, resultComponentId = GetLastInstalledComponentIdL()); - if (getLastIdErr == KErrNone) - iOutputParams->AddIntL(KSifOutParam_ComponentId, resultComponentId); - } - } - - User::RequestComplete(iClientStatus, res); - iClientStatus = NULL; - } - } - -void CRefNativePluginActiveImpl::ProcessSilentInstallL() - { - // We need to do this only once per installation request - iSilentInstall = EFalse; - iInstallRequest = ETrue; - - TBool isNotAuthenticated = (ENotAuthenticated == iComponentInfo->RootNodeL().Authenticity()); - TBool reqUserCap = NeedUserCapabilityL(); - if (isNotAuthenticated || reqUserCap) - { - if (isNotAuthenticated) - { - DEBUG_PRINTF(_L("Silent Install is not allowed on unsigned or self-signed packages")); - } - - if (reqUserCap) - { - DEBUG_PRINTF(_L("Silent Install is not allowed when user capabilities are required")); - } - - User::RequestComplete(iClientStatus, KErrNotSupported); - iClientStatus = NULL; - } - else - { - TInt err; - if (iFileHandle) - { - TRAP(err, iAsyncLauncher->InstallL(*this, *iFileHandle, *iInstallPrefs, iStatus)); - } - else - { - //DEBUG_PRINTF2(_L("!!!Silent install for %S"), iFileName); - TRAP(err, iAsyncLauncher->InstallL(*this, iFileName, *iInstallPrefs, iStatus)); - } - - if (err != KErrNone) - { - User::RequestComplete(iClientStatus, err); - iClientStatus = NULL; - } - - SetActive(); - } - } - -void CRefNativePluginActiveImpl::DoCancel() - { - if (iClientStatus) - { - iAsyncLauncher->CancelOperation(); - delete iAsyncLauncher; - iAsyncLauncher = NULL; - - User::RequestComplete(iClientStatus, KErrCancel); - iClientStatus = NULL; - } - } - -void CRefNativePluginActiveImpl::CommonRequestPreamble(const TSecurityContext& aSecurityContext, const COpaqueNamedParams& aInputParams, - COpaqueNamedParams& aOutputParams, TRequestStatus& aStatus) - { - aStatus = KRequestPending; - iClientStatus = &aStatus; - - iInputParams = &aInputParams; - iOutputParams = &aOutputParams; - - TInt declineOperation = 0; - TRAPD(err, aInputParams.GetIntByNameL(KDeclineOperationOptionName, declineOperation)); - if(err == KErrNone && declineOperation) - { - iDeclineOperation = ETrue; - } - - // Check to see if we have the opaque input argument - InstallSilently - TInt silentInstall = 0; - TRAP_IGNORE(aInputParams.GetIntByNameL(KSifInParam_InstallSilently, silentInstall)); - if (silentInstall) - { - iSilentInstall = ETrue; - if (!aSecurityContext.HasCapability(ECapabilityTrustedUI)) - { - User::RequestComplete(iClientStatus, KErrPermissionDenied); - iClientStatus = NULL; - } - } - } - -TComponentId CRefNativePluginActiveImpl::GetLastInstalledComponentIdL() - { - ASSERT(iInstallRequest); - - // Find the id of the last installed component and return it - TInt uid; - User::LeaveIfError(RProperty::Get(KUidSystemCategory, KUidSwiLatestInstallation, uid)); - - Swi::RSisRegistrySession sisRegistrySession; - User::LeaveIfError(sisRegistrySession.Connect()); - CleanupClosePushL(sisRegistrySession); - - TUid tuid(TUid::Uid(uid)); - TComponentId componentId = sisRegistrySession.GetComponentIdForUidL(tuid); - CleanupStack::PopAndDestroy(&sisRegistrySession); - - return componentId; - } - -void CRefNativePluginActiveImpl::GetComponentInfo(const TDesC& aFileName, CComponentInfo& aComponentInfo, TRequestStatus& aStatus) - { - DEBUG_PRINTF2(_L("Reference native plugin - retrieving component info for %S"), &aFileName); - - aStatus = KRequestPending; - iClientStatus = &aStatus; - - TRAPD(err, iAsyncLauncher->GetComponentInfoL(*this, aFileName, *iInstallPrefs, aComponentInfo, iStatus)); - if (err != KErrNone) - { - TRequestStatus *statusPtr(&aStatus); - User::RequestComplete(statusPtr, err); - return; - } - - SetActive(); - } - -void CRefNativePluginActiveImpl::GetComponentInfo(RFile& aFileHandle, CComponentInfo& aComponentInfo, TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - getting component info by file handle")); - - aStatus = KRequestPending; - iClientStatus = &aStatus; - - TRAPD(err, iAsyncLauncher->GetComponentInfoL(*this, aFileHandle, *iInstallPrefs, aComponentInfo, iStatus)); - if (err != KErrNone) - { - TRequestStatus *statusPtr(&aStatus); - User::RequestComplete(statusPtr, err); - return; - } - - SetActive(); - } - -void CRefNativePluginActiveImpl::Install(const TDesC& aFileName, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus) - { - DEBUG_PRINTF2(_L("Reference native plugin - install for %S"), &aFileName); - - CommonRequestPreamble(aSecurityContext, aInputParams, aOutputParams, aStatus); - - TInt err; - if (iSilentInstall) - { - // Silent install does a few addtional checks on the package to see if is - // signed and had the required capabilities. So we need to the get the - // package component information with out installing it. - DEBUG_PRINTF2(_L("Silent install - Get the ComponentInfo for %S"), &aFileName); - iFileName = aFileName; - TRAP(err, iAsyncLauncher->GetComponentInfoL(*this, aFileName, *iInstallPrefs, *iComponentInfo, iStatus)); - } - else - { - // Proceed with the normal installation. - RArray tmp; - tmp.Append(01); - tmp.Append(02); - tmp.Append(03); - tmp.Append(04); - tmp.Append(05); - TRAP(err, iAsyncLauncher->InstallL(*this, aFileName, *iInstallPrefs, tmp, iStatus)); - tmp.Close(); - iInstallRequest = ETrue; - } - - if (err != KErrNone) - { - TRequestStatus *statusPtr(&aStatus); - User::RequestComplete(statusPtr, err); - return; - } - - SetActive(); - } - -void CRefNativePluginActiveImpl::Install(RFile& aFileHandle, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - install by file handle")); - - CommonRequestPreamble(aSecurityContext, aInputParams, aOutputParams, aStatus); - - TInt err; - if (iSilentInstall) - { - // Silent install does a few addtional checks on the package to see if is - // signed and had the required capabilities. So we need to the get the - // package component information with out installing it. - iFileHandle = &aFileHandle; - TRAP(err, iAsyncLauncher->GetComponentInfoL(*this, aFileHandle, *iInstallPrefs, *iComponentInfo, iStatus)); - } - else - { - // Proceed with the normal installation. - TRAP(err, iAsyncLauncher->InstallL(*this, aFileHandle, *iInstallPrefs, iStatus)); - iInstallRequest = ETrue; - } - - if (err != KErrNone) - { - TRequestStatus *statusPtr(&aStatus); - User::RequestComplete(statusPtr, err); - return; - } - - SetActive(); - } - -void CRefNativePluginActiveImpl::Uninstall(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, TRequestStatus& aStatus) - { - TRAPD(err, UninstallL(aComponentId, aSecurityContext, aInputParams, aOutputParams, aStatus)); - if (err != KErrNone) - { - TRequestStatus *statusPtr(&aStatus); - User::RequestComplete(statusPtr, err); - return; - } - SetActive(); - } - -void CRefNativePluginActiveImpl::UninstallL(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - uninstall")); - CommonRequestPreamble(aSecurityContext, aInputParams, aOutputParams, aStatus); - // Get UID for given component id - RSoftwareComponentRegistry scrSession; - User::LeaveIfError(scrSession.Connect()); - CleanupClosePushL(scrSession); - - CPropertyEntry* propertyEntry = scrSession.GetComponentPropertyL(aComponentId, _L("CompUid")); - CleanupStack::PushL(propertyEntry); - - CIntPropertyEntry* intPropertyEntry = dynamic_cast(propertyEntry); - - TRequestStatus *statusPtr(&aStatus); - if (intPropertyEntry == NULL) - { - DEBUG_PRINTF2(_L8("UID property for component %d was not found"), aComponentId); - User::RequestComplete(statusPtr, KErrNotFound); - return; - } - - TUid objectId = TUid::Uid(intPropertyEntry->IntValue()); - CleanupStack::PopAndDestroy(2, &scrSession); - - iAsyncLauncher->UninstallL(*this, objectId, iStatus); - } - -void CRefNativePluginActiveImpl::Activate(TComponentId aComponentId, const TSecurityContext& /*aSecurityContext*/, TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - activate")); - iStatus = KRequestPending; - aStatus = KRequestPending; - iClientStatus = &aStatus; - - TRequestStatus* rs(&iStatus); - - Swi::RSisRegistryWritableSession sisRegSession; - TRAPD(err, - User::LeaveIfError(sisRegSession.Connect()); - sisRegSession.ActivateComponentL(aComponentId); - ) - sisRegSession.Close(); - - User::RequestComplete(rs, err); - SetActive(); - } - -void CRefNativePluginActiveImpl::Deactivate(TComponentId aComponentId, const TSecurityContext& /*aSecurityContext*/, TRequestStatus& aStatus) - { - DEBUG_PRINTF(_L8("Reference native plugin - deactivate")); - iStatus = KRequestPending; - aStatus = KRequestPending; - iClientStatus = &aStatus; - - TRequestStatus* rs(&iStatus); - - Swi::RSisRegistryWritableSession sisRegSession; - TRAPD(err, - User::LeaveIfError(sisRegSession.Connect()); - sisRegSession.DeactivateComponentL(aComponentId); - ) - sisRegSession.Close(); - - User::RequestComplete(rs, err); - SetActive(); - } - -// SWI::MUiHandler implementation -TInt CRefNativePluginActiveImpl::DisplayLanguageL(const Swi::CAppInfo& /*aAppInfo*/,const RArray& /*aLanguages*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayLanguageL")); - return 0; - } - -TInt CRefNativePluginActiveImpl::DisplayDriveL(const Swi::CAppInfo& /*aAppInfo*/,TInt64 /*aSize*/, const RArray& /*aDriveLetters*/, const RArray& /*aDriveSpaces*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayDriveL")); - return 0; - } - -TBool CRefNativePluginActiveImpl::DisplayUninstallL(const Swi::CAppInfo& /*aAppInfo*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayUninstallL")); - if (iDeclineOperation) - { - DEBUG_PRINTF(_L8("Reference native plugin - Received an option to decline operation - stopping uninstall")); - return EFalse; - } - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayTextL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TFileTextOption /*aOption*/, const TDesC& /*aText*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayTextL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayDependencyBreakL(const Swi::CAppInfo& /*aAppInfo*/, const RPointerArray& /*aComponents*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayDependencyBreakL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayApplicationsInUseL(const Swi::CAppInfo& /*aAppInfo*/, const RPointerArray& /*aAppNames*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayApplicationsInUseL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayQuestionL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TQuestionDialog /*aQuestion*/, const TDesC& /*aDes*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayQuestionL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayInstallL(const Swi::CAppInfo& /*aAppInfo*/, const CApaMaskedBitmap* /*aLogo*/, const RPointerArray& /*aCertificates*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayInstallL")); - - if (iDeclineOperation) - { - DEBUG_PRINTF(_L8("Reference native plugin - Received an option to decline operation - stopping install")); - return EFalse; - } - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayGrantCapabilitiesL(const Swi::CAppInfo& /*aAppInfo*/, const TCapabilitySet& /*aCapabilitySet*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayGrantCapabilitiesL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayUpgradeL(const Swi::CAppInfo& /*aAppInfo*/, const Swi::CAppInfo& /*aExistingAppInfo*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayUpgradeL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayOptionsL(const Swi::CAppInfo& /*aAppInfo*/, const RPointerArray& /*aOptions*/, RArray& /*aSelections*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayOptionsL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplaySecurityWarningL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TSignatureValidationResult /*aSigValidationResult*/, - RPointerArray& /*aPkixResults*/, RPointerArray& /*aCertificates*/, TBool /*aInstallAnyway*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplaySecurityWarningL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayOcspResultL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TRevocationDialogMessage /*aMessage*/, RPointerArray& /*aOutcomes*/, - RPointerArray& /*aCertificates*/,TBool /*aWarningOnly*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayOcspResultL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::DisplayMissingDependencyL(const Swi::CAppInfo& /*aAppInfo*/, const TDesC& /*aDependencyName*/, TVersion /*aWantedVersionFrom*/, - TVersion /*aWantedVersionTo*/, TVersion /*aInstalledVersion*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayMissingDependencyL")); - return ETrue; - } - -TBool CRefNativePluginActiveImpl::HandleInstallEventL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TInstallEvent /*aEvent*/, TInt /*aValue*/, const TDesC& /*aDes*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - HandleInstallEventL")); - return ETrue; - } - -void CRefNativePluginActiveImpl::HandleCancellableInstallEventL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TInstallCancellableEvent /*aEvent*/, Swi::MCancelHandler& /*aCancelHandler*/, - TInt /*aValue*/,const TDesC& /*aDes*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - HandleCancellableInstallEventL")); - } - -void CRefNativePluginActiveImpl::DisplayCannotOverwriteFileL(const Swi::CAppInfo& /*aAppInfo*/, const Swi::CAppInfo& /*aInstalledAppInfo*/,const TDesC& /*aFileName*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayCannotOverwriteFileL")); - } - -void CRefNativePluginActiveImpl::DisplayErrorL(const Swi::CAppInfo& /*aAppInfo*/, Swi::TErrorDialog /*aType*/, const TDesC& /*aParam*/) - { - DEBUG_PRINTF(_L8("Reference native plugin - DisplayErrorL")); - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.h --- a/appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,173 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: -* This class implements a test SIF plugin for native software -* -*/ - - -/** - @file - @internalComponent -*/ - -#ifndef REFNATIVEPLUGIN_H -#define REFNATIVEPLUGIN_H - -#include -#include -#include -#include -#include - -namespace Swi -{ - class CAsyncLauncher; - class CInstallPrefs; -} - -namespace Usif - { - - _LIT(KDeclineOperationOptionName, "SwiDeclineOperation"); - // ECOM objects and CActive do not interact well - especially since SIFPlugin inherits from CBase - // and double C-inheritance is impossible. So, a separate class is used to drive the asynchronous interaction - // to the CAsyncLauncher - NONSHARABLE_CLASS(CRefNativePluginActiveImpl) : public CActive, public Swi::MUiHandler - { - public: - static CRefNativePluginActiveImpl* NewL(); - ~CRefNativePluginActiveImpl(); - - // CActive interface - void RunL(); - void DoCancel(); - - void Install(const TDesC& aFileName, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - void Install(RFile& aFileHandle, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - void GetComponentInfo(const TDesC& aFileName, CComponentInfo& aComponentInfo, TRequestStatus& aStatus); - - void GetComponentInfo(RFile& aFileHandle, CComponentInfo& aComponentInfo, TRequestStatus& aStatus); - - void Uninstall(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - void Activate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - TRequestStatus& aStatus); - - void Deactivate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - TRequestStatus& aStatus); - - // Swi::MUiHandler interface - TInt DisplayLanguageL(const Swi::CAppInfo& aAppInfo,const RArray& aLanguages); - TInt DisplayDriveL(const Swi::CAppInfo& aAppInfo,TInt64 aSize, const RArray& aDriveLetters,const RArray& aDriveSpaces); - TBool DisplayUninstallL(const Swi::CAppInfo& aAppInfo); - TBool DisplayTextL(const Swi::CAppInfo& aAppInfo,Swi::TFileTextOption aOption,const TDesC& aText); - TBool DisplayDependencyBreakL(const Swi::CAppInfo& aAppInfo, const RPointerArray& aComponents); - TBool DisplayApplicationsInUseL(const Swi::CAppInfo& aAppInfo, const RPointerArray& aAppNames); - TBool DisplayQuestionL(const Swi::CAppInfo& aAppInfo, Swi::TQuestionDialog aQuestion, const TDesC& aDes); - TBool DisplayInstallL(const Swi::CAppInfo& aAppInfo,const CApaMaskedBitmap* aLogo, const RPointerArray& aCertificates); - TBool DisplayGrantCapabilitiesL(const Swi::CAppInfo& aAppInfo, const TCapabilitySet& aCapabilitySet); - TBool DisplayUpgradeL(const Swi::CAppInfo& aAppInfo, const Swi::CAppInfo& aExistingAppInfo); - TBool DisplayOptionsL(const Swi::CAppInfo& aAppInfo, const RPointerArray& aOptions,RArray& aSelections); - TBool DisplaySecurityWarningL(const Swi::CAppInfo& aAppInfo, Swi::TSignatureValidationResult aSigValidationResult, - RPointerArray& aPkixResults, RPointerArray& aCertificates,TBool aInstallAnyway); - TBool DisplayOcspResultL(const Swi::CAppInfo& aAppInfo, Swi::TRevocationDialogMessage aMessage,RPointerArray& aOutcomes, - RPointerArray& aCertificates,TBool aWarningOnly); - TBool DisplayMissingDependencyL(const Swi::CAppInfo& aAppInfo, const TDesC& aDependencyName,TVersion aWantedVersionFrom, - TVersion aWantedVersionTo,TVersion aInstalledVersion); - TBool HandleInstallEventL(const Swi::CAppInfo& aAppInfo, Swi::TInstallEvent aEvent,TInt aValue = 0,const TDesC& aDes = KNullDesC); - void HandleCancellableInstallEventL(const Swi::CAppInfo& aAppInfo, Swi::TInstallCancellableEvent aEvent,Swi::MCancelHandler& aCancelHandler, - TInt aValue = 0,const TDesC& aDes=KNullDesC); - void DisplayCannotOverwriteFileL(const Swi::CAppInfo& aAppInfo, const Swi::CAppInfo& aInstalledAppInfo,const TDesC& aFileName); - void DisplayErrorL(const Swi::CAppInfo& aAppInfo,Swi::TErrorDialog aType,const TDesC& aParam); - private: - CRefNativePluginActiveImpl() : CActive(EPriorityStandard) {} - CRefNativePluginActiveImpl(const CRefNativePluginActiveImpl &); - CRefNativePluginActiveImpl & operator =(const CRefNativePluginActiveImpl &); - void ConstructL(); - void CommonRequestPreamble(const TSecurityContext& aSecurityContext, const COpaqueNamedParams& aInputParams, - COpaqueNamedParams& aOutputParams, TRequestStatus& aStatus); - void UninstallL(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - TComponentId GetLastInstalledComponentIdL(); - TBool NeedUserCapabilityL(); - void ProcessSilentInstallL(); - private: - Swi::CAsyncLauncher* iAsyncLauncher; - Swi::CInstallPrefs* iInstallPrefs; - TRequestStatus* iClientStatus; - const COpaqueNamedParams* iInputParams; - COpaqueNamedParams* iOutputParams; - CComponentInfo* iComponentInfo; - TFileName iFileName; - RFile* iFileHandle; // FileHandle is not owned by the plug-in - TBool iDeclineOperation; // Used for plugin options - optionally specifies that the operation will not be confirmed at the first callback - TBool iInstallRequest; // Used to identify the type of the current requst in RunL() so we know if the id of an installed component should be sent - TBool iSilentInstall; // Used to identify a silent install - }; - - - NONSHARABLE_CLASS(CRefNativePlugin) : public CSifPlugin - { - public: - static CRefNativePlugin* NewL(); - ~CRefNativePlugin(); - - // MSIFPlugin interface - void GetComponentInfo(const TDesC& aFileName, const TSecurityContext& aSecurityContext, - CComponentInfo& aComponentInfo, TRequestStatus& aStatus); - - void GetComponentInfo(RFile& aFileHandle, const TSecurityContext& aSecurityContext, - CComponentInfo& aComponentInfo, TRequestStatus& aStatus); - - void Install(const TDesC& aFileName, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - void Install(RFile& aFileHandle, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - virtual void Uninstall(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, - TRequestStatus& aStatus); - - virtual void Activate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - TRequestStatus& aStatus); - - virtual void Deactivate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, - TRequestStatus& aStatus); - - void CancelOperation(); - private: - CRefNativePlugin() {} - void ConstructL(); - CRefNativePlugin(const CRefNativePlugin &); - CRefNativePlugin & operator =(const CRefNativePlugin &); - private: - CRefNativePluginActiveImpl *iImpl; - }; - } // end namespace Usif - -#endif // REFNATIVEPLUGIN_H diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.mmp --- a/appfw/apparchitecture/tef/refnativeplugin/refnativeplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -/* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: -* Project specification file for SIF plugin for native software -* -*/ - - -/** - @file - @test -*/ - -TARGET refnativeplugin.dll -TARGETTYPE PLUGIN - -UID 0x10009D8D 0x10285BC3 - -CAPABILITY ProtServ TrustedUI ReadUserData WriteDeviceData - -SOURCEPATH . -SOURCE refnativeplugin.cpp - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN - -START RESOURCE 10285BC3.rss - TARGET refnativeplugin.rsc -END -LIBRARY euser.lib sishelper.lib sif.lib scrclient.lib -LIBRARY sisregistryclient.lib -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/sisregistrywritablesession.h --- a/appfw/apparchitecture/tef/refnativeplugin/sisregistrywritablesession.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,214 +0,0 @@ -/* -* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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: -* RSisRegistryWritableSession - restricted client registry session interface -* -*/ - - -/** - @file - @internalTechnology - @released -*/ - -#ifndef __SISREGISTRYWRITABLESESSION_H__ -#define __SISREGISTRYWRITABLESESSION_H__ - -#include -#include -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#endif -namespace Swi -{ -class CApplication; -class CSisRegistryPackage; - -namespace Sis - { - class CController; - } - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -using Usif::TComponentId; -using Usif::TScomoState; - -class CSoftwareTypeRegInfo; -#endif - -class RSisRegistryWritableSession : public RSisRegistrySession - { -public: - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - /** - * Starts a transaction with SCR for the mutable operations of this session. - * The APIs that this transaction covers are AddEntryL, UpdateEntryL and DeleteEntryL. - * Note that this transaction has no relation with the transaction ID (aTransactionID) - * parameter being supplied to the mutable APIs. - */ - IMPORT_C void CreateTransactionL(); - - /** - * Commits the changes performed in the SCR after the call to BeginTransactionL. - */ - IMPORT_C void CommitTransactionL(); - - /** - * Discards the changes performed in the SCR after the call to BeginTransactionL. - */ - IMPORT_C void RollbackTransactionL(); -#endif - - /** - * Adds a registry entry representing this package - * - * @param aApplication The application description provided by Swi - * @param aController The controller in a buffer - * @param aTransactionID The TransactionID for IntegrityServices provided - * by Swis of TInt64 type - * - */ - IMPORT_C void AddEntryL(const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID); - - /** - * Updates the registry entry representing this package - * - * @param aApplication The application description provided by Swi - * @param aController The controller in a buffer - * @param aTransactionID The TransactionID for IntegrityServices provided - * by Swis of TInt64 type - * - */ - IMPORT_C void UpdateEntryL(const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID); - - /** - * Deletes the entry from the registry represented by the given package - * - * @param aPackage The package to search for - * @param aTransactionID The TransactionID for IntegrityServices provided - * by Swis of TInt64 type - * - */ - IMPORT_C void DeleteEntryL(const CSisRegistryPackage& aPackage, TInt64 aTransactionID); - - /** - * Notification to registry that a drive has been mounted - * - * @param aDrive Drive number; - * - * @note valid value are between 0 and KMaxDrives - 1 inclusive - * 0 stands for A drive and KMaxDrives - 1 for Z - * - */ - IMPORT_C void AddDriveL(const TInt aDrive); - -#ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - /** - * Notification to registry that a drive has been dismounted - * - * @param aDrive Drive as a number; - * - * @note valid value are between 0 and KMaxDrives - 1 inclusive - * 0 stands for A drive and KMaxDrives - 1 for Z - * - */ - IMPORT_C void RemoveDriveL(const TInt aDrive); - - /** - * Notification to the registry that Software Installation has been rolled - * back and the cache needs to be regenerated from the contents on disk. - */ - IMPORT_C void RegenerateCacheL(); -#endif - - /** - * Returns ETrue if any ROM stub in the filesystem has the package uid specified - * in aPackageId - * With the addition of SA upgrades to ROM, a package may be both in ROM, upgraded - * on another drive and this method can be used to check for the presence - * of an upgraded ROM package. - * - * - * @param aPackageId Package Id to be searched in the ROM stub files. - * - * @return ETrue if it can find the aPackageId in any of the ROM stub SIS. - * EFalse otherwise - */ - IMPORT_C TBool PackageExistsInRomL(const TUid& aPackageId); - - - - /** - * Gets all the eclipsable file's entries from the ROM stub file of a ROM based package. - * - * @param aUid Package UId to identify the right stub file. - * - * @param aFiles A pointer array of file names to be populated. - * - */ - IMPORT_C void GetFilesForRomApplicationL(const TUid& aPackageId, RPointerArray& aFiles); - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK - /** - * Activates the component identified by the supplied parameter. - * - * @param aComponentId Identifies the installed component, which is to be activated. - * - */ - IMPORT_C void ActivateComponentL(TComponentId aComponentId); - - /** - * Deactivates the component identified by the supplied parameter. - * - * @param aComponentId Identifies the installed component, which is to be deactivated. - * - */ - IMPORT_C void DeactivateComponentL(TComponentId aComponentId); - - /** - * Adds a registry entry representing a package containing a Layered Execution Environment - * - * @param aApplication The application description provided by Swi - * @param aController The controller in a buffer - * @param aSwTypeRegInfoArray The array of the software types to be registered - * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type - * - */ - IMPORT_C void AddEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray& aSwTypeRegInfoArray, TInt64 aTransactionID); - - /** - * Updates the registry entry representing a package containing a Layered Execution Environment. - * The SISRegistryServer checks if the registration info passed in aSwTypeRegInfoArray matches - * the data passed during the installation of the base package. If they differ the installation terinates. - * Hence, this upgrade package may upgarde the LEE but cannot change its registration data. - * - * @param aApplication The application description provided by Swi - * @param aController The controller in a buffer - * @param aSwTypeRegInfoArray The array of the software types to be verified against the already registered base package - * @param aTransactionID The TransactionID for IntegrityServices provided by Swis of TInt64 type - * - */ - IMPORT_C void UpdateEntryL(const CApplication& aApplication, const TDesC8& aController, const RPointerArray& aSwTypeRegInfoArray, TInt64 aTransactionID); - -private: - void SetComponentStateL(TComponentId aComponentId, TScomoState aState); -#endif - void AddEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs); - void UpdateEntryImplL(TInt aMessage, const CApplication& aApplication, const TDesC8& aController, TInt64 aTransactionID, TIpcArgs& aIpcArgs); - }; - -} // namespace -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/refnativeplugin/usiflog.h --- a/appfw/apparchitecture/tef/refnativeplugin/usiflog.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -/* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "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 print functions for the Universal Software Install Framework components. -* -*/ - - -/** - @file - @internalComponent - @released -*/ - -#ifndef USIFLOG_H -#define USIFLOG_H - -#include - -namespace Usif - { - _LIT8(KComponentName, "[USIF]"); - - #define DEBUG_PRINTF(a) {SEC_DEBUG_PRINTF(KComponentName, a);} - #define DEBUG_PRINTF2(a, b) {SEC_DEBUG_PRINTF2(KComponentName, a, b);} - #define DEBUG_PRINTF3(a, b, c) {SEC_DEBUG_PRINTF3(KComponentName, a, b, c);} - #define DEBUG_PRINTF4(a, b, c, d) {SEC_DEBUG_PRINTF4(KComponentName, a, b, c, d);} - #define DEBUG_PRINTF5(a, b, c, d, e) {SEC_DEBUG_PRINTF5(KComponentName, a, b, c, d, e);} - - #define DEBUG_CODE_SECTION(a) {SEC_DEBUG_CODE_SECTION(a);} - - } // End of namespace StreamAccess - -#endif // USIFLOG_H diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_T_AppListFileUpdate.script --- a/appfw/apparchitecture/tef/scripts/apparctest_T_AppListFileUpdate.script Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/apparctest_T_AppListFileUpdate.script Wed Sep 01 12:24:48 2010 +0100 @@ -37,6 +37,6 @@ PRINT Run T_AppListFileUpdate Apparc test // LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 800 ApparcTestServer T_AppListFileUpdate +RUN_TEST_STEP 500 ApparcTestServer T_AppListFileUpdate END_TESTCASE API-APPFWK-APPARC-0032 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_T_RApaLsSession.script --- a/appfw/apparchitecture/tef/scripts/apparctest_T_RApaLsSession.script Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/apparctest_T_RApaLsSession.script Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ // -// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// 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" @@ -35,6 +35,6 @@ DELAY 5000 // LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 500 ApparcTestServer T_RApaLsSession +RUN_TEST_STEP 100 ApparcTestServer T_RApaLsSession END_TESTCASE API-APPFWK-T-RApaLsSessionTestStep-TestAppInfo1-0001 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_T_RuleBasedLaunching.script --- a/appfw/apparchitecture/tef/scripts/apparctest_T_RuleBasedLaunching.script Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/apparctest_T_RuleBasedLaunching.script Wed Sep 01 12:24:48 2010 +0100 @@ -27,6 +27,6 @@ PRINT Run T_RuleBasedLaunching Apparc test // LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 200 ApparcTestServer T_RuleBasedLaunching +RUN_TEST_STEP 100 ApparcTestServer T_RuleBasedLaunching END_TESTCASE API-APPFWK-APPARC-0023 diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_T_Serv2.script --- a/appfw/apparchitecture/tef/scripts/apparctest_T_Serv2.script Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/apparctest_T_Serv2.script Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ // -// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// 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" @@ -31,6 +31,6 @@ PRINT Run T_Serv2 Apparc test // LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 400 ApparcTestServer T_Serv2 +RUN_TEST_STEP 100 ApparcTestServer T_Serv2 END_TESTCASE API-APPFWK-T-Serv2Step-AppInfoTest1-0001 \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_T_Services.script --- a/appfw/apparchitecture/tef/scripts/apparctest_T_Services.script Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/apparctest_T_Services.script Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ // -// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// 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" @@ -33,6 +33,6 @@ DELAY 5000 // LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 300 ApparcTestServer T_Services +RUN_TEST_STEP 100 ApparcTestServer T_Services END_TESTCASE API-APPFWK-T-RApaLsSessionTestStep-TestServiceDiscovery1L-0001 \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_t_UpdateAppList.script --- a/appfw/apparchitecture/tef/scripts/apparctest_t_UpdateAppList.script Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// -// Copyright (c) 2010 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: -// -// -PRINT Run T_UpdateAppList Apparc test -// -LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 100 ApparcTestServer T_UpdateAppList \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_t_clientnotif.script --- a/appfw/apparchitecture/tef/scripts/apparctest_t_clientnotif.script Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// -// Copyright (c) 2010 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: -// -// -PRINT Run T_ClientNotif Apparc test -// -LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 400 ApparcTestServer T_ClientNotif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_t_forcereg.script --- a/appfw/apparchitecture/tef/scripts/apparctest_t_forcereg.script Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// -// Copyright (c) 2010 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: -// -// -PRINT Run T_ForceReg Apparc test -// -LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 100 ApparcTestServer T_ForceReg \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/apparctest_t_nonnativetest.script --- a/appfw/apparchitecture/tef/scripts/apparctest_t_nonnativetest.script Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// -// Copyright (c) 2010 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: -// -// -PRINT Run T_NonNativeTest Apparc test -// -LOAD_SUITE ApparcTestServer -RUN_TEST_STEP 100 ApparcTestServer T_NonNativeTest \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/emulator/apparctest_CACHE_OFF_run.bat --- a/appfw/apparchitecture/tef/scripts/emulator/apparctest_CACHE_OFF_run.bat Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/emulator/apparctest_CACHE_OFF_run.bat Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of "Eclipse Public License v1.0" @@ -75,11 +75,6 @@ call :test T_Wgnam call :test T_WindowChaining ::call :test T_RecUpgrade This test can not run on emulator as it requires loading, unloading and deletion of a plug-in and Windows OS don’t allow deletion of loaded binaries -call :test T_UpdateAppList -call :test T_ForceReg -call :test T_ClientNotif -call :test T_NonNativeTest - call sysstart_apparc_run.bat type \epoc32\winscw\c\logs\testexecute\sysstart_apparctest_summary.txt >> %APPARCTEST_SUMMARY% diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/emulator/apparctest_run.bat --- a/appfw/apparchitecture/tef/scripts/emulator/apparctest_run.bat Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/emulator/apparctest_run.bat Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of "Eclipse Public License v1.0" @@ -78,10 +78,6 @@ call :test T_Wgnam call :test T_WindowChaining ::call :test T_RecUpgrade This test can not run on emulator as it requires loading, unloading and deletion of a plug-in and Windows OS don’t allow deletion of loaded binaries -call :test T_UpdateAppList -call :test T_ForceReg -call :test T_ClientNotif -call :test T_NonNativeTest call sysstart_apparc_run.bat type \epoc32\winscw\c\logs\testexecute\sysstart_apparctest_summary.txt >> %APPARCTEST_SUMMARY% diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/scripts/hardware/apparctest_run.bat --- a/appfw/apparchitecture/tef/scripts/hardware/apparctest_run.bat Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/scripts/hardware/apparctest_run.bat Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of "Eclipse Public License v1.0" @@ -62,11 +62,6 @@ testexecute.exe z:\apparctest\apparctest_t_Wgnam.script testexecute.exe z:\apparctest\apparctest_t_WindowChaining.script testexecute.exe z:\apparctest\apparctest_t_RecUpgrade.script -testexecute.exe z:\apparctest\apparctest_t_UpdateAppList.script -testexecute.exe z:\apparctest\apparctest_t_forcereg.script -testexecute.exe z:\apparctest\apparctest_t_clientnotif.script -testexecute.exe z:\apparctest\apparctest_t_nonnativetest.script - :: ******************************************************************* :: This batch file is used to run tests on 9.3 and higher versions. diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp.mmp --- a/appfw/apparchitecture/tef/serverapp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c56 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE serverapp_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -// SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp2.mmp --- a/appfw/apparchitecture/tef/serverapp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp2.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c58 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE serverapp2_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -//SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp3.mmp --- a/appfw/apparchitecture/tef/serverapp3.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp3.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c57 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE serverapp3_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -//SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp4.mmp --- a/appfw/apparchitecture/tef/serverapp4.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp4.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c76 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -START RESOURCE serverapp4_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -//SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp6.mmp --- a/appfw/apparchitecture/tef/serverapp6.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp6.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c55 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application localisable resource file -resource serverapp_loc.RSS -start resource serverapp_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - - -START RESOURCE serverapp6_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -//SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/serverapp7.mmp --- a/appfw/apparchitecture/tef/serverapp7.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -TARGET serverapp7.exe -TARGETTYPE exe -UID 0x100039CE 0x10004c54 -VENDORID 0x70000001 - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -//SYSTEMINCLUDE /epoc32/include/techview - -// Application localisable resource file -resource serverapp_loc.RSS -start resource serverapp_loc.RSS -HEADER -targetpath /apparctestregfiles -lang sc -end - -START RESOURCE serverapp7_reg.rss -TARGETPATH /apparctestregfiles -lang sc -END - -SOURCEPATH ../tef -// SOURCE T_ServicesStep.cpp -SOURCE app_CTRL.CPP - -LIBRARY cone.lib ws32.lib appfwk_test_appui.lib euser.lib ecom.lib -LIBRARY testexecuteutils.lib testexecutelogclient.lib -LIBRARY apparc.lib efsrv.lib estor.lib gdi.lib fbscli.lib -LIBRARY apfile.lib apgrfx.lib bafl.lib apmime.lib apserv.lib -LIBRARY eikcore.lib appfwk_test_utils.lib serviceregistry.lib -LIBRARY aplist.lib -LIBRARY ticonloaderandiconarrayforleaks.lib centralrepository.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp1.mmp --- a/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp1.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -46,11 +46,11 @@ START RESOURCE tRuleBasedApp1.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tRuleBasedApp1_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp2.mmp --- a/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp2.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp2.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -46,11 +46,11 @@ START RESOURCE tRuleBasedApp2.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tRuleBasedApp2_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp3.mmp --- a/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp3.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp3.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -46,11 +46,11 @@ START RESOURCE tRuleBasedApp3.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tRuleBasedApp3_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp4.mmp --- a/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp4.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tRuleBasedApps/tRuleBasedApp4.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -45,11 +45,11 @@ START RESOURCE tRuleBasedApp4.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE tRuleBasedApp4_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_clientnotifstep.cpp --- a/appfw/apparchitecture/tef/t_clientnotifstep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,851 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include "t_clientnotifstep.h" -#include -#include -#include "T_SisFileInstaller.h" -#include -#include - -_LIT(KSimpleAppSisFile, "z:\\apparctest\\apparctestsisfiles\\SimpleApparcTestApp.sis"); -_LIT(KSimpleAppComponent, "SimpleApparcTestApp"); - -_LIT(KTestMultipleAppsSisFile, "z:\\apparctest\\apparctestsisfiles\\TestMultipleApps.sis"); -_LIT(KTestMultipleAppsComponent, "TestMultipleApps"); - -_LIT(KTestMultipleAppsDowngradeSisFile, "z:\\apparctest\\apparctestsisfiles\\TestMultipleAppsDowngrade.sis"); -_LIT(KTestMultipleAppsDowngradeComponent, "TestMultipleApps"); - -_LIT(KTstAppStandAloneSisFile, "z:\\apparctest\\apparctestsisfiles\\TSTAPP_standalone.sis"); -_LIT(KTstAppStandAloneComponent, "TSTAPP_standalone"); - -const TUid KUidSimpleApp={0x12008ACE}; -const TUid KUidMultipleApp1={0x102032AB}; -const TUid KUidMultipleApp2={0x10208183}; -const TUid KUidMultipleApp3={0x10208184}; -const TUid KUidTstAppStandalone={10}; - -CT_ClientNotifStep::~CT_ClientNotifStep() -/** - Destructor - */ - { - } - -CT_ClientNotifStep::CT_ClientNotifStep() -/** - Constructor - */ - { - // Call base class method to set up the human readable name for logging - SetTestStepName(KT_ClientNotifStep); - } - -TVerdict CT_ClientNotifStep::doTestStepPreambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_ClientNotifStep::doTestStepPostambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - return TestStepResult(); - } - - -TVerdict CT_ClientNotifStep::doTestStepL() -{ - RunTestCases(); - return TestStepResult(); -} - - -void CT_ClientNotifStep::RunTestCases() - { - RTestableApaLsSession ls; - User::LeaveIfError(ls.Connect()); - - TApaAppInfo info; - TUid uid = {0x12008ACE}; - TInt err = ls.GetAppInfo(info, uid); - if(err == KErrNone) - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KSimpleAppComponent); - } - - //DONT_CHECK is used because when an application is installed the updated application - //information is added in the session objects. This causes increase of memory at server side. - //As there can be multiple applications registered with apparc for applist change notifications, - //its not possible to clear the information in all the session objects. - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifInitialApplistCreation(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifLanguageChange(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifSingleAppInstallation(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifMultipleAppInstallation(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifUpgradeApp(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifMultipleInstallations(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifWithoutSetNotify(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifOnPackageUpgrade(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestClientNotifOnPackageDowngrade(ls), NO_CLEANUP); - ls.Close(); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests apparc will not provide updated application information when the application list - created first time after device bootup. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Wait till the applist got created after phone boot. - 2. Retrieve the updated application information and check it is empty. - - - @SYMTestExpectedResults Apparc will not provide updated application information. - */ -void CT_ClientNotifStep::TestClientNotifInitialApplistCreation(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestClientNotifInitialApplistCreation started............")); - - TRequestStatus applistChangeStatus; - TRequestStatus applistCreationStatus; - //Register with apparc for applist change notification - aLs.SetNotify(ETrue, applistChangeStatus); - aLs.RegisterListPopulationCompleteObserver(applistCreationStatus); - User::WaitForRequest(applistCreationStatus); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d expected: 0"), updatedAppsInfo.Count()); - TEST(updatedAppsInfo.Count() == 0); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifInitialApplistCreation ended............")); - } - - -void CT_ClientNotifStep::ChangeLocaleL(TLanguage aLanguage) - { - _LIT(KLitLanguageLocaleDllNameBase, "elocl_lan"); - //Region and collation code values are hard coded, as the check, after changing the locale is made for the language only. - _LIT(KLitRegionLocaleDllNameBase, "elocl_reg.826"); - _LIT(KLitCollationLocaleDllNameBase, "elocl_col.001"); - _LIT(ThreeDigExt,".%03d"); - TExtendedLocale localeDll; - const TUidType uidType(TUid::Uid(0x10000079),TUid::Uid(0x100039e6)); - TBuf<16> languageLocaleDllName(KLitLanguageLocaleDllNameBase); - languageLocaleDllName.AppendFormat(ThreeDigExt, aLanguage); - TBuf<16> regionLocaleDllName(KLitRegionLocaleDllNameBase); - TBuf<16> collationLocaleDllName(KLitCollationLocaleDllNameBase); - // Try to load the locale dll - TInt error=localeDll.LoadLocale(languageLocaleDllName, regionLocaleDllName, collationLocaleDllName); - - if (error==KErrNotFound) - { - // Locale dll is not found for the asked language. - ERR_PRINTF2(_L("Failed to find the locale dll for %d"), aLanguage); - } - - User::LeaveIfError(error); - localeDll.SaveSystemSettings(); - } - - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests apparc will not provide updated application information when the application list - updated due phone language change. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Wait till the applist got updated after phone language change. - 2. Retrieve the updated application information and check it is empty. - - - @SYMTestExpectedResults Apparc will not provide updated application information. - */ -void CT_ClientNotifStep::TestClientNotifLanguageChange(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestClientNotifLanguageChange started............")); - - TRequestStatus applistChangeStatus; - aLs.SetNotify(EFalse, applistChangeStatus); - //Change language - ChangeLocaleL(ELangGerman); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - TEST(updatedAppsInfo.Count() == 0); - - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - ChangeLocaleL(ELangEnglish); - User::WaitForRequest(applistChangeStatus); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifInitialApplistCreation ended............")); - } - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information when single application is installed - and uninstalled. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file which has single application and waits till applist is changed. - 2. Checks the updated information provided by apparc is as expected. - 3. Uninstalls the component installed in Step 1 - 4. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information., - */ -void CT_ClientNotifStep::TestClientNotifSingleAppInstallation(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestSingleAppInstallation started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing single application")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile); - sisInstaller.InstallSisL(KSimpleAppSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 1); - TEST(updatedAppsInfo[0].iAppUid == KUidSimpleApp); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidSimpleApp) == KErrNone); - - INFO_PRINTF1(_L("Unnstalling single application")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KSimpleAppComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 1); - TEST(updatedAppsInfo[0].iAppUid == KUidSimpleApp); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - - //Check the application is not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidSimpleApp) == KErrNotFound); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestSingleAppInstallation ended............")); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information when multiple applications are installed - and uninstalled. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file which has multiple applications and waits till applist is changed. - 2. Checks the updated information provided by apparc is as expected. - 3. Uninstalls the component installed in Step 1 - 4. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ - -void CT_ClientNotifStep::TestClientNotifMultipleAppInstallation(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestMultipleAppInstallation started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing multiple applications")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 3); - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - INFO_PRINTF1(_L("Uninstalling multiple applications")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KTestMultipleAppsComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - TEST(updatedAppsInfo.Count()== 3); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppNotPresent); - - //Check the application is not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNotFound); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestMultipleAppInstallation ended............")); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information when an applications is - upgraded. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Checks whether upgrading application exists in applist. - 2. Installs a sis file which upgrades existing applications and waits till applist is changed. - 2. Checks the updated information provided by apparc is as expected. - 3. Uninstalls the component installed in Step 2 - 4. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ -void CT_ClientNotifStep::TestClientNotifUpgradeApp(RTestableApaLsSession &aLs) -{ - INFO_PRINTF1(_L("TestClientNotifUpgradeApp started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Check the application is present before upgrade")); - //Check the application is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidTstAppStandalone) == KErrNone); - - INFO_PRINTF1(_L("Installing upgrade application")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTstAppStandAloneSisFile); - sisInstaller.InstallSisL(KTstAppStandAloneSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 1); - TEST(updatedAppsInfo[0].iAppUid == KUidTstAppStandalone); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidTstAppStandalone) == KErrNone); - - INFO_PRINTF1(_L("Unnstalling upgrade application")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KTstAppStandAloneComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 1); - TEST(updatedAppsInfo[0].iAppUid == KUidTstAppStandalone); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is still available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidTstAppStandalone) == KErrNone); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifUpgradeApp ended............")); -} - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information when there are multiple installations - happened before the clients requests for updated application information. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file and waits till applist is changed. - 2. Installs another sis file and waits till applist is changed. - 3. Checks the updated information provided by apparc is as expected. - 4. Uninstalls the component installed in Step 1 and waits till applist is changed. - 5. Uninstalls the component installed in Step 2 and waits till applist is changed. - 6. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ -void CT_ClientNotifStep::TestClientNotifMultipleInstallations(RTestableApaLsSession &aLs) -{ - INFO_PRINTF1(_L("TestClientNotifMultipleInstallations started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing first sis file")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KSimpleAppSisFile); - sisInstaller.InstallSisL(KSimpleAppSisFile); - User::WaitForRequest(applistChangeStatus); - - INFO_PRINTF1(_L("Installing second sis file")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installations")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 4); - TEST(updatedAppsInfo[0].iAppUid == KUidSimpleApp); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[3].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the applications is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidSimpleApp) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - INFO_PRINTF1(_L("Unnstalling first component")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KSimpleAppComponent); - User::WaitForRequest(applistChangeStatus); - - INFO_PRINTF1(_L("Unnstalling second component")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KTestMultipleAppsComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 4); - TEST(updatedAppsInfo[0].iAppUid == KUidSimpleApp); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[3].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[3].iAction == TApaAppUpdateInfo::EAppNotPresent); - - //Check the applications are not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidSimpleApp) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNotFound); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifMultipleInstallations ended............")); -} - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests apparc will not provide updated application information if SetNotify is not called - on an apparc session. Apparc only maintains updated application information with the sessions - which actually requested SetNotify and not yet called UpdatedAppsInfoL API. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file which has single application and waits till applist is changed. - 2. Retrieves the updated applist from different apparc session and checks the list is empty. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ -void CT_ClientNotifStep::TestClientNotifWithoutSetNotify(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestClientNotifWithoutSetNotify started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing application")); - sisInstaller.InstallSisAndWaitForAppListUpdateL(KSimpleAppSisFile); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 0); - - INFO_PRINTF1(_L("Unnstalling application")); - sisInstaller.UninstallSisAndWaitForAppListUpdateL(KSimpleAppComponent); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 0); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifWithoutSetNotify ended............")); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information a component is upgraded. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file which has 2 applications and waits till applist is changed. - 2. Checks the updated information provided by apparc is as expected. - 3. Upgrades the component which is installed in Step 1 which has one more application. - 4. Checks the updated information provided by apparc is as expected. - 3. Uninstalls the component installed in Step 3 - 4. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ - -void CT_ClientNotifStep::TestClientNotifOnPackageUpgrade(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestClientNotifOnPackageUpgrade started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing sis file which has 2 applications")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsDowngradeSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsDowngradeSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 2); - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - - INFO_PRINTF1(_L("Installing upgrade sis file which has 3 applications")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 3); - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - INFO_PRINTF1(_L("Uninstalling applications ............")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KTestMultipleAppsComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - TEST(updatedAppsInfo.Count()== 3); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppNotPresent); - - //Check the application is not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNotFound); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestMultipleAppInstallation ended............")); - } - - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc provides updated application information a component is upgraded. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Installs a sis file which has 3 applications and waits till applist is changed. - 2. Checks the updated information provided by apparc is as expected. - 3. Degrades the component which is installed in Step 1 which has only 2 applications. - 4. Checks the updated information provided by apparc is as expected. - 3. Uninstalls the component installed in Step 3 - 4. Checks the updated information provided by apparc is as expected. - - - @SYMTestExpectedResults Apparc provides updated application information. - */ - -void CT_ClientNotifStep::TestClientNotifOnPackageDowngrade(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestClientNotifOnPackageDowngrade started............")); - CSisFileInstaller sisInstaller; - TRequestStatus applistChangeStatus; - - INFO_PRINTF1(_L("Installing sis file which has 3 applications")); - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - RArray updatedAppsInfo; - CleanupClosePushL(updatedAppsInfo); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 3); - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - - - //Check the application is available in the applist. - TApaAppInfo appInfo; - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - - INFO_PRINTF1(_L("Installing sis file which has only 2 applications")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsDowngradeSisFile); - sisInstaller.InstallSisL(KTestMultipleAppsDowngradeSisFile); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after installation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo.Count()== 3); - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp1); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppPresent); - TEST(updatedAppsInfo[2].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[2].iAction == TApaAppUpdateInfo::EAppPresent); - - //Check the application is not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp1) == KErrNotFound); - - //Check the application is available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNone); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNone); - - - INFO_PRINTF1(_L("Uninstalling applications")); - applistChangeStatus=KRequestPending; - aLs.SetNotify(EFalse, applistChangeStatus); - sisInstaller.UninstallSisL(KTestMultipleAppsDowngradeComponent); - User::WaitForRequest(applistChangeStatus); - - //Get the updated application information from apparc. - updatedAppsInfo.Reset(); - INFO_PRINTF1(_L("Retrieving updated application information after uninstallation")); - aLs.UpdatedAppsInfoL(updatedAppsInfo); - INFO_PRINTF2(_L("Updated application count: %d"), updatedAppsInfo.Count()); - TEST(updatedAppsInfo.Count()== 2); - - //Check the information provided by apparc is what is expected. - TEST(updatedAppsInfo[0].iAppUid == KUidMultipleApp2); - TEST(updatedAppsInfo[0].iAction == TApaAppUpdateInfo::EAppNotPresent); - TEST(updatedAppsInfo[1].iAppUid == KUidMultipleApp3); - TEST(updatedAppsInfo[1].iAction == TApaAppUpdateInfo::EAppNotPresent); - - //Check the application is not available in the applist. - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp2) == KErrNotFound); - TEST(aLs.GetAppInfo(appInfo, KUidMultipleApp3) == KErrNotFound); - - CleanupStack::PopAndDestroy(); //updatedAppsInfo - INFO_PRINTF1(_L("TestClientNotifOnPackageDowngrade ended............")); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_clientnotifstep.h --- a/appfw/apparchitecture/tef/t_clientnotifstep.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#if (!defined __T_CLIENTNOTIF_H__) -#define __T_CLIENTNOTIF_H__ - - -#include - -class RTestableApaLsSession; - - -/*Tests force registration functionality */ - -class CT_ClientNotifStep : public CTestStep - { -public: - CT_ClientNotifStep(); - ~CT_ClientNotifStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); - virtual TVerdict doTestStepL(); - -private: - void RunTestCases(); - void TestClientNotifInitialApplistCreation(RTestableApaLsSession &aLs); - void ChangeLocaleL(TLanguage aLanguage); - void TestClientNotifLanguageChange(RTestableApaLsSession &aLs); - - void TestClientNotifSingleAppInstallation(RTestableApaLsSession &aLs); - void TestClientNotifMultipleAppInstallation(RTestableApaLsSession &aLs); - void TestClientNotifUpgradeApp(RTestableApaLsSession &aLs); - void TestClientNotifMultipleInstallations(RTestableApaLsSession &aLs); - void TestClientNotifWithoutSetNotify(RTestableApaLsSession &aLs); - void TestClientNotifOnPackageUpgrade(RTestableApaLsSession &aLs); - void TestClientNotifOnPackageDowngrade(RTestableApaLsSession &aLs); - - }; - - -_LIT(KT_ClientNotifStep,"T_ClientNotif"); - -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_drivenotification.cpp --- a/appfw/apparchitecture/tef/t_drivenotification.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_drivenotification.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -29,11 +29,8 @@ #include #include "appfwk_test_utils.h" #include "t_drivenotification.h" -#include "T_SisFileInstaller.h" -_LIT(KNotifyDriveAppSisFile, "z:\\apparctest\\apparctestsisfiles\\tnotifydrivesapp.sis"); -_LIT(KNotifyDriveAppComponent, "tnotifydrivesapp"); - +_LIT(KResourceFileSourceZ, "z:\\system\\data\\tnotifydrivesapp_reg.rsc"); void CDriveTestObserver::HandleAppListEvent(TInt /*aEvent*/) { @@ -85,16 +82,16 @@ CleanupClosePushL(theLs); // Wait for applist to be updated.... - TRequestStatus status; - theLs.SetNotify(ETrue, status); - User::WaitForRequest(status); + RPointerArray dummy; + User::LeaveIfError(theLs.ForceRegistration(dummy)); //Check whether app is not present in the applist TInt ret = theLs.GetAppInfo(appInfo,appUid); INFO_PRINTF3(_L(" Expected value is %d, Call to GetAppInfo returned : %d "), KErrNotFound, ret); TEST(ret==KErrNotFound); - //Install the application. + //Copy the registration file to C: drive. + CopyRegFileL(EDriveC); CDriveTestObserver* obs = new(ELeave) CDriveTestObserver(); CleanupStack::PushL(obs); @@ -102,10 +99,7 @@ CleanupStack::PushL(notif); obs->iNotifier = notif; - - CSisFileInstaller sisFileInstaller; - sisFileInstaller.InstallSisL(KNotifyDriveAppSisFile); - + CActiveScheduler::Start(); //Since c:\\private\\10003a3f\\Import\\apps\\ path is Monitored, a notification is issued and applist is updated. TEST(obs->iNotified > 0); @@ -116,8 +110,11 @@ INFO_PRINTF3(_L(" Expected value is %d, Call to GetAppInfo returned : %d "), KErrNone, ret); TEST(ret==KErrNone); - //Uninstall the application - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KNotifyDriveAppComponent); + //Deleting the rsc file that is present in c:\\private\\10003a3f\\Import\\apps\\ path. + DeleteRegFileL(EDriveC); + + // Wait for applist to be updated.... + User::LeaveIfError(theLs.ForceRegistration(dummy)); //Check whether applist is updated and app is absent in the applist. ret = theLs.GetAppInfo(appInfo,appUid); @@ -131,8 +128,8 @@ //Copy the registration file to drive specified. CopyRegFileL(drive); -// // Wait for applist to be updated.... -// User::LeaveIfError(theLs.ForceRegistration(dummy)); + // Wait for applist to be updated.... + User::LeaveIfError(theLs.ForceRegistration(dummy)); //Check whether applist is updated and app is present in the applist. #ifdef __EABI__ @@ -146,7 +143,7 @@ TEST(ret==KErrNone); INFO_PRINTF3(_L(" Expected value is %d, Call to GetAppInfo returned : %d "),KErrNone, ret); //Deleting the rsc file. -// DeleteRegFileL(drive); + DeleteRegFileL(drive); #endif CleanupStack::PopAndDestroy(3, &theLs); @@ -187,7 +184,7 @@ { User::LeaveIfError(ret); } -// ret = smlServer.CopyFileL(KResourceFileSourceZ, tempPathToBeCopied); + ret = smlServer.CopyFileL(KResourceFileSourceZ, tempPathToBeCopied); TEST(ret == KErrNone); INFO_PRINTF2(_L("Copied Registration file. Finished with the value : %d "), ret); CleanupStack::PopAndDestroy(4, &fs); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_forceregstep.cpp --- a/appfw/apparchitecture/tef/t_forceregstep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,471 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include "t_forceregstep.h" -#include -#include -#include "T_SisFileInstaller.h" -#include -#include -#include -#include -#include "testableapalssession.h" - -_LIT(KForceRegApp1SisFile, "z:\\apparctest\\apparctestsisfiles\\ForceRegApp1.sis"); -_LIT(KForceRegApp1Component, "ForceRegApp1"); - -_LIT(KForceRegMultipleAppsSisFile, "z:\\apparctest\\apparctestsisfiles\\ForceRegMultipleApps.sis"); -_LIT(KForceRegMultipleAppsComponent, "ForceRegMultipleApps"); - -_LIT(KForceRegApp2SisFile, "z:\\apparctest\\apparctestsisfiles\\ForceRegApp2.sis"); -_LIT(KForceRegApp2Component, "ForceRegApp2"); - -const TUint KForceRegistratioWaitTime=5000000; //5s -const TUid KUidForceRegApp2={0xA0001001}; -_LIT(KTestClientNotificationThreadName, "TestClientNotificationThreadName"); - - -CT_ForceRegStep::~CT_ForceRegStep() -/** - Destructor - */ - { - } - -CT_ForceRegStep::CT_ForceRegStep() -/** - Constructor - */ - { - // Call base class method to set up the human readable name for logging - SetTestStepName(KT_ForceRegStep); - } - -TVerdict CT_ForceRegStep::doTestStepPreambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - - //Create property which is used for communication between test and force registered applications. - TInt error; - error=RProperty::Define(KPropertyCategory, KForceRegTestPropertyKey, RProperty::EInt); - if((error != KErrNone) && (error != KErrAlreadyExists)) - User::Leave(error); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_ForceRegStep::doTestStepPostambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - RProperty::Delete(KPropertyCategory, KForceRegTestPropertyKey); - - return TestStepResult(); - } - - -TVerdict CT_ForceRegStep::doTestStepL() -{ - RunTestCases(); - return TestStepResult(); -} - - -void CT_ForceRegStep::RunTestCases() - { - RTestableApaLsSession ls; - User::LeaveIfError(ls.Connect()); - RPointerArray regFiles; - //Check the earlier force registration API is not supported - TEST(ls.ForceRegistration(regFiles) == KErrNotSupported); - - CSisFileInstaller sisFileInstaller; - TApaAppInfo info; - TUid uid1 = {0xA0001000}; - TInt err = ls.GetAppInfo(info, uid1); - if(err == KErrNone) - { - sisFileInstaller.UninstallSisL(KForceRegApp1Component); - } - - TUid uid2 = {0xA0001001}; - err = ls.GetAppInfo(info, uid2); - if(err == KErrNone) - { - sisFileInstaller.UninstallSisL(KForceRegApp2Component); - } - - //Wait if apparc updating the applist - TRequestStatus applistChangeStatus; - ls.SetNotify(ETrue, applistChangeStatus); - User::WaitForRequest(applistChangeStatus); - - //DONT_CHECK is used because when an application is installed the updated application - //information is added in the session objects. This causes increase of memory at server side. - //As there can be multiple applications registered with apparc for applist change notifications, - //its not possible to clear the information in all the session objects. - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestSingleForceRegistration(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestMultipleForceRegistration(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, 0, TestForceRegistrationSecurity(ls), NO_CLEANUP); - //HEAP_TEST_LS_SESSION(ls, 0, 0, TestForceRegistrationWhenInstallationFailed(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestForceRegistrationAndNoClientNotification(ls), NO_CLEANUP); - ls.Close(); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether force registration works with a sis file which has single run on install - application. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Attaches to a property which will be set by force registered (or run on install) - application when it got executed. - 2. Installs sis file which has run on install application. - 3. Waits till the run on install application changes the propery or a timer expires. - 4. Checks the property is changed by run on install application. - - @SYMTestExpectedResults The property is changed by run on install application. - */ -void CT_ForceRegStep::TestSingleForceRegistration(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestSingleForceRegistration test started...........")); - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - CleanupClosePushL(forceRegStatus); - - TRequestStatus forceRegStatusChange; - TRequestStatus forceRegWait; //Timer expiration status - - //Timer to wait for definite time. - RTimer timerToWait; - User::LeaveIfError(timerToWait.CreateLocal()); - CleanupClosePushL(timerToWait); - timerToWait.After(forceRegWait, KForceRegistratioWaitTime); - - //The property value will be changed by forceregistered application when its executed. - forceRegStatus.Subscribe(forceRegStatusChange); - - INFO_PRINTF1(_L("Install forceregapp1 application")); - //Install the forceregapp1 - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KForceRegApp1SisFile); - sisFileInstaller.InstallSisL(KForceRegApp1SisFile); - - INFO_PRINTF1(_L("Wait till the timer expires or force registered application changes the property")); - //Wait till the property is changed by forceregapp1 or till timer expires - User::WaitForRequest(forceRegWait, forceRegStatusChange); - - TInt value; - forceRegStatus.Get(value); - INFO_PRINTF2(_L("Property value: %d"), value); - //Check the property value is changed by forceregapp1 - TEST(value == KForceRegApp1Executed); - - INFO_PRINTF1(_L("Uninstall forceregapp1 application")); - //Uninstall the forceregapp1 - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KForceRegApp1Component); - CleanupStack::PopAndDestroy(2); //forceRegStatus, timerToWait - INFO_PRINTF1(_L("TestSingleForceRegistration test ended...........")); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether force registration works with a sis file which has multiple run on install - applications. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Attaches to a property which will be set by force registered (or run on install) - application when it got executed. - 2. Installs sis file which has multiple run on install applications. - 3. Waits till the run on install applications changes the propery or a timer expires. - 4. Checks the property is changed by run on install applications. - - @SYMTestExpectedResults The property is changed by run on install applications. - */ - -void CT_ForceRegStep::TestMultipleForceRegistration(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestMultipleForceRegistration test started...........")); - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - //Set the property to a KStopForceRegApp2 to make the forceregapp2 to exit. - forceRegStatus.Set(KStopForceRegApp2); - - TRequestStatus forceRegApp1Executed, forceRegApp2Executed; - TRequestStatus forceRegWait; - - //Timer to wait for definite time. - RTimer timeToWait; - User::LeaveIfError(timeToWait.CreateLocal()); - timeToWait.After(forceRegWait, KForceRegistratioWaitTime); - //The property value will be changed by forceregistered application. Subscribe to property change. - forceRegStatus.Subscribe(forceRegApp1Executed); - - INFO_PRINTF1(_L("Install forceregapp1 and forceregapp2 application")); - //Install the forceregapp1 - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KForceRegMultipleAppsSisFile); - sisFileInstaller.InstallSisL(KForceRegMultipleAppsSisFile); - - INFO_PRINTF1(_L("Wait till the timer expires or force registered applications changes the property")); - User::WaitForRequest(forceRegWait, forceRegApp1Executed); - - TInt value; - forceRegStatus.Get(value); - - //If the property value is not as expected, wait till the forceregapp2 is executed. - if(value != (KForceRegApp1Executed|KForceRegApp2Executed|KStopForceRegApp2)) - { - forceRegStatus.Subscribe(forceRegApp2Executed); - forceRegWait=KRequestPending; - timeToWait.After(forceRegWait, KForceRegistratioWaitTime); - User::WaitForRequest(forceRegWait, forceRegApp2Executed); - } - - forceRegStatus.Get(value); - INFO_PRINTF2(_L("Property value: %d"), value); - //Check whether both force registered applications executed. - TEST(value == (KForceRegApp1Executed|KForceRegApp2Executed|KStopForceRegApp2)); - - INFO_PRINTF1(_L("Uninstall forceregapp1 and forceregapp2 application")); - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KForceRegMultipleAppsComponent); - forceRegStatus.Close(); - //Wait for time so that appac completes applist cache creation. - User::After(2000000); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests force registration security. Force registration can only be used by SWI. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Creates dummy application information. - 2. Call the force registration with this application info. - 3. Check return value is KErrNotSupported. - - @SYMTestExpectedResults ForceRegistration should return KErrNotSupported if other Software Installer - trying to use it. - */ - -void CT_ForceRegStep::TestForceRegistrationSecurity(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestForceRegistrationSecurity test started...........")); - Usif::CApplicationRegistrationData *appData=Usif::CApplicationRegistrationData::NewL(); - CleanupStack::PushL(appData); - RPointerArray appArray; - - INFO_PRINTF1(_L("Call ForceRegistration with empty TApaAppUpdate info array..........")); - TEST(aLs.ForceRegistration(appArray)==KErrNone); - appArray.AppendL(appData); - INFO_PRINTF1(_L("Call ForceRegistration with TApaAppUpdate info array..........")); - TEST(aLs.ForceRegistration(appArray)==KErrNotSupported); - - CleanupStack::PopAndDestroy(appData); - appArray.Close(); - INFO_PRINTF1(_L("TestForceRegistrationSecurity test ended...........")); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - @SYMTestCaseDesc Tests force registered applications information removed from the applist if - installation fails. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Install sis file which has force registered application. - 2. Cancel the installation. - 2. Check the force registered application is not available in the applist. - - @SYMTestExpectedResults Force registered application information is removed from the applist - */ - -void CT_ForceRegStep::TestForceRegistrationWhenInstallationFailed(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestForceRegistrationWhenInstallationFailed test started...........")); - TApaAppInfo appInfo; - TInt err; - - //Check whether the application is already in the applist. - err=aLs.GetAppInfo(appInfo, KUidForceRegApp2); - INFO_PRINTF2(_L("Error Code returned: %d"), err); - TEST(err==KErrNotFound); - - CSisFileInstaller sisFileInstaller; - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - TRequestStatus propertyStatus; - forceRegStatus.Subscribe(propertyStatus); - - //Install ForceRegApp2 asynchronously - TRequestStatus installStatus; - INFO_PRINTF1(_L("Install the sis file which eventually cancelled by test")); - err=KErrNone; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KForceRegApp2SisFile); - TRAP(err, sisFileInstaller.InstallSisAsynchronouslyL(KForceRegApp2SisFile, installStatus)); - TEST(err == KErrNone); - - //ForceRegApp2 is run on install application. The property is changed when the application executed. - User::WaitForRequest(propertyStatus); - - //Make ForceRegApp2 to exit by adding KStopForceRegApp2 to property. - TInt value; - forceRegStatus.Get(value); - value |= KStopForceRegApp2; - forceRegStatus.Set(value); - forceRegStatus.Close(); - - //Cancel the installation. - sisFileInstaller.CancelInstallation(); - User::WaitForRequest(installStatus); - sisFileInstaller.Close(); - - User::After(2000000); - INFO_PRINTF2(_L("Installation ended with error code: %d"), installStatus.Int()); - TEST(installStatus.Int() != KErrNone); - - //Check the force registered application is no longer exists in the applist. - err=aLs.GetAppInfo(appInfo, KUidForceRegApp2); - INFO_PRINTF2(_L("Error Code returned: %d"), err); - TEST(err==KErrNotFound); - INFO_PRINTF1(_L("TestForceRegistrationWhenInstallationFailed test ended...........")); - } - -TInt TestClientNotificationThread(TAny* aPtr); - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests if applist is changed due to force registration, apparc will not notify the - clients. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - @SYMTestActions 1. Start TestClientNotificationThread which registers with apparc for applist change - notification and waits till applist change notification occurs or a timer expires. - Once any of the event occurs, then changes the property to make the forceregapp2 to - exit and makes the status of applist change reflects in property. - 2. Installs a sis file which has run on install forcereg1 and forcereg2 applications - 3. Waits till the TestClientNotificationThread exits. - 4. Checks whether applist change notification recieved or not. - - @SYMTestExpectedResults Apparc does not notify clients about applist change which occur due to force registration. - */ - -void CT_ForceRegStep::TestForceRegistrationAndNoClientNotification(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestForceRegistrationAndNoClientNotification test started...........")); - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - forceRegStatus.Set(0); - - TBuf<0x100> threadName(KTestClientNotificationThreadName); - RThread thread; - - INFO_PRINTF1(_L("Start TestClientNotificationThread thread")); - User::LeaveIfError(thread.Create(threadName, TestClientNotificationThread, 0x1000, NULL, (TAny*) this)); - CleanupClosePushL(thread); - TRequestStatus status; - thread.Logon(status); - thread.Resume(); - - INFO_PRINTF1(_L("Install sis file")); - //Install the forceregapp1 - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KForceRegMultipleAppsSisFile); - sisFileInstaller.InstallSisL(KForceRegMultipleAppsSisFile); - - INFO_PRINTF1(_L("Waiting till TestClientNotificationThread thread exits")); - User::WaitForRequest(status); - - TInt value; - forceRegStatus.Get(value); - INFO_PRINTF2(_L("Property value: %d"), value); - TEST(!(value & KApplistChanged)); - INFO_PRINTF1(_L("Uninstall sis file")); - sisFileInstaller.UninstallSisL(KForceRegMultipleAppsComponent); - CleanupStack::PopAndDestroy(); - forceRegStatus.Close(); - INFO_PRINTF1(_L("TestForceRegistrationAndNoClientNotification test ended...........")); - } - -/* - * TestClientNotificationThread registers with apparc for applist change notification and waits till applist - * change notification occurs or a timer expires. Once any of the event occurs, then changes the property to - * make the forceregapp2 to exit and makes the status of applist change reflects in property. - */ - -TInt TestClientNotificationThread(TAny* aPtr) - { - RApaLsSession ls; - User::LeaveIfError(ls.Connect()); - TRequestStatus applistChangeStatus, timeOutStatus; - ls.SetNotify(EFalse, applistChangeStatus); - - //Timer to wait for definite time. - RTimer timeToWait; - User::LeaveIfError(timeToWait.CreateLocal()); - timeToWait.After(timeOutStatus, KForceRegistratioWaitTime); - User::WaitForRequest(applistChangeStatus, timeOutStatus); - - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); - TInt status; - forceRegStatus.Get(status); - - if(applistChangeStatus.Int() == MApaAppListServObserver::EAppListChanged) - status |= KApplistChanged; - - status |= KStopForceRegApp2; - forceRegStatus.Set(status); - forceRegStatus.Close(); - - return(KErrNone); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_forceregstep.h --- a/appfw/apparchitecture/tef/t_forceregstep.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#if (!defined __T_FORCEREG_H__) -#define __T_FORCEREG_H__ - - -#include - -class RTestableApaLsSession; - -const TUid KPropertyCategory = {0x101F289C}; -const TUint KForceRegTestPropertyKey = 1; - -const TUint KForceRegApp1Executed = 0x1; -const TUint KForceRegApp2Executed = 0x2; -const TUint KStopForceRegApp2 = 0x10; -const TUint KApplistChanged = 0x0100; - - -/*Tests force registration functionality */ - -class CT_ForceRegStep : public CTestStep - { -public: - CT_ForceRegStep(); - ~CT_ForceRegStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); - virtual TVerdict doTestStepL(); - -private: - void RunTestCases(); - void TestSingleForceRegistration(RTestableApaLsSession &aLs); - void TestMultipleForceRegistration(RTestableApaLsSession &aLs); - void TestForceRegistrationSecurity(RTestableApaLsSession &aLs); - void TestForceRegistrationWhenInstallationFailed(RTestableApaLsSession &aLs); - void TestForceRegistrationAndNoClientNotification(RTestableApaLsSession &aLs); - }; - -_LIT(KT_ForceRegStep,"T_ForceReg"); - -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_largestackstep.cpp --- a/appfw/apparchitecture/tef/t_largestackstep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_largestackstep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -29,10 +29,6 @@ #endif //SYMBIAN_ENABLE_SPLIT_HEADERS #include "../apserv/apsclsv.h" #include "t_largestackstep.h" -#include "T_SisFileInstaller.h" - -_LIT(KLargeStackAppSisFile, "z:\\apparctest\\apparctestsisfiles\\tlargestackapp.sis"); -_LIT(KLargeStackAppComponent, "tlargestackapp"); const TUid KLargeStackAppUid = {0x10282B27}; @@ -98,33 +94,6 @@ CleanupStack::PopAndDestroy(commandline); } -TVerdict CT_LargeStackStep::doTestStepPreambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KLargeStackAppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KLargeStackAppSisFile); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_LargeStackStep::doTestStepPostambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KLargeStackAppComponent); - - return TestStepResult(); - } - - TVerdict CT_LargeStackStep::doTestStepL() { INFO_PRINTF1(_L("Test T_LargeStack Started")); diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_largestackstep.h --- a/appfw/apparchitecture/tef/t_largestackstep.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_largestackstep.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -39,8 +39,6 @@ ~CT_LargeStackStep(); //from CTestStep - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); TVerdict doTestStepL(); private: diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_nonnativetest.cpp --- a/appfw/apparchitecture/tef/t_nonnativetest.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,307 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include "t_nonnativetest.h" -#include -#include -#include "T_SisFileInstaller.h" -#include -#include -#include -#include -#include "testableapalssession.h" -#include "appfwk_test_utils.h" -#include "apacmdln.h" -#include "apgicnflpartner.h" - -_LIT(KTNonNativeRuntimeSisFile, "z:\\apparctest\\apparctestsisfiles\\tnonnativeruntime.sis"); -_LIT(KTNonNativeRuntimeComponent, "TNonNativeRunTime"); - -_LIT(KTestScrDBSource, "z:\\apparctest\\scr_test.db"); -_LIT(KScrDBSource, "z:\\apparctest\\scr.db"); -_LIT(KScrDBTarget, "c:\\sys\\install\\scr\\scr.db"); -_LIT(KScrDBTempTarget, "c:\\sys\\install\\scr\\scr_temp.db"); - - -_LIT(KNonNotiveAppName, "\\268454131.fakeapp"); - -const TUid KMidletUid={0x10210E26}; -const TUid KWidgetUid={0x10282821}; -const TUid KTestNonNativeUid={0xFF51233}; - -const TUid KUidNonNativeRuntime={0xA0001002}; - -const TUid KPropertyCategory = {0x101F289C}; -const TUint KNonNativeTestPropertyKey = 2; - -CT_NonNativeTestStep::~CT_NonNativeTestStep() -/** - Destructor - */ - { - } - -CT_NonNativeTestStep::CT_NonNativeTestStep() -/** - Constructor - */ - { - // Call base class method to set up the human readable name for logging - SetTestStepName(KT_NonNativeTestStep); - } - -TVerdict CT_NonNativeTestStep::doTestStepPreambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - - //Create property which is used for communication between test and non-native runtime. - TInt error; - error=RProperty::Define(KPropertyCategory, KNonNativeTestPropertyKey, RProperty::EInt); - if((error != KErrNone) && (error != KErrAlreadyExists)) - User::Leave(error); - - SetTestStepResult(EPass); - return TestStepResult(); - } - -TVerdict CT_NonNativeTestStep::doTestStepPostambleL() -/** - @return - TVerdict code - Override of base class virtual - */ - { - RProperty::Delete(KPropertyCategory, KNonNativeTestPropertyKey); - - return TestStepResult(); - } - - -TVerdict CT_NonNativeTestStep::doTestStepL() -{ - RunTestCases(); - return TestStepResult(); -} - - -void CT_NonNativeTestStep::RunTestCases() - { - RTestableApaLsSession ls; - User::LeaveIfError(ls.Connect()); - - //Wait if apparc updating the applist - TRequestStatus applistChangeStatus; - ls.SetNotify(ETrue, applistChangeStatus); - User::WaitForRequest(applistChangeStatus); - - //DONT_CHECK is used because when an application is installed the updated application - //information is added in the session objects. This causes increase of memory at server side. - //As there can be multiple applications registered with apparc for applist change notifications, - //its not possible to clear the information in all the session objects. - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestNonNativeAppLaunchWithUnavailableMappingL(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, 0, TestNonNativeUnsupportedAPIs(ls), NO_CLEANUP); - HEAP_TEST_LS_SESSION(ls, 0, DONT_CHECK, TestGetAppTypeL(ls), NO_CLEANUP); - ls.Close(); - } - - -/** - @SYMTestCaseID APPFWK-APPARC-0106 - - - @SYMTestCaseDesc Tests whether apparc able to launch a non-native application for which the mapping is - not avaialable in apparc mapping table but its available in SCR. - - @SYMTestPriority High - - @SYMTestStatus Implemented - - - @SYMTestExpectedResults Apparc will launch the non-native applciation. - */ - -void CT_NonNativeTestStep::TestNonNativeAppLaunchWithUnavailableMappingL(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestNonNativeAppLaunchWithUnavailableMapping test started...........")); - - RProperty property; - User::LeaveIfError(property.Attach(KPropertyCategory, KNonNativeTestPropertyKey, EOwnerThread)); - CleanupClosePushL(property); - User::After(2000000); //Wait for 2 secconds till SCR server closed. - - RSmlTestUtils fs; - User::LeaveIfError(fs.Connect()); - CleanupClosePushL(fs); - - INFO_PRINTF1(_L("Delete existing scr.db")); - //Copy the existing SCR db to temp file and delete it - fs.CopyFileL(KScrDBTarget, KScrDBTempTarget); - fs.DeleteFileL(KScrDBTarget); - - INFO_PRINTF1(_L("Copying scr_test.db")); - //Copy the scr_test.db which has non-native application information and - //non-native type to its runtime. - fs.CopyFileL(KTestScrDBSource, KScrDBTarget); - fs.ChangeFilePermissionL(KScrDBTarget); - - INFO_PRINTF1(_L("Updating applist with a non-native application exists in scr_test.db")); - TApaAppUpdateInfo appUpdateInfo; - RArray updateAppArray; - CleanupClosePushL(updateAppArray); - - appUpdateInfo.iAppUid=TUid::Uid(0x100048F3); //Test non-native app - appUpdateInfo.iAction= TApaAppUpdateInfo::EAppPresent; - updateAppArray.AppendL(appUpdateInfo); - - TRequestStatus status; - aLs.SetNotify(EFalse, status); - aLs.UpdateAppListL(updateAppArray); - CleanupStack::PopAndDestroy(&updateAppArray); - User::WaitForRequest(status); - - INFO_PRINTF1(_L("Starting non-native application")); - CApaCommandLine* cmd=CApaCommandLine::NewLC(); - cmd->SetExecutableNameL(KNonNotiveAppName); - aLs.StartApp(*cmd); - CleanupStack::PopAndDestroy(cmd); - User::After(2000000); - - //Once the non-native runtime executes, the property value is set to 1. - TInt value; - property.Get(value); - INFO_PRINTF2(_L("Property value: %d"), value); - TEST(value == 1); - - INFO_PRINTF1(_L("Restoring the scr.db")); - User::After(2000000); - fs.DeleteFileL(KScrDBTarget); - fs.CopyFileL(KScrDBTempTarget, KScrDBTarget); - fs.DeleteFileL(KScrDBTempTarget); - - CleanupStack::PopAndDestroy(2, &property); - INFO_PRINTF1(_L("TestNonNativeAppLaunchWithUnavailableMapping test ended...........")); - } - - - -void CT_NonNativeTestStep::TestNonNativeUnsupportedAPIs(RTestableApaLsSession &aLs) -{ - INFO_PRINTF1(_L("TestNonNativeUnsupportedAPIs test started...........")); - TUid uid=KNullUid; - TDriveUnit drive; - CApaRegistrationResourceFileWriter* regFileWriter=NULL; - CApaLocalisableResourceFileWriter* locFileWriter=NULL; - RFile *file=NULL; - TPtrC fileName; - - TRAPD(err, aLs.RegisterNonNativeApplicationTypeL(uid, fileName)); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.DeregisterNonNativeApplicationTypeL(uid)); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.PrepareNonNativeApplicationsUpdatesL()); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.RegisterNonNativeApplicationL(uid, drive, *regFileWriter, locFileWriter, file)); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.DeregisterNonNativeApplicationL(uid)); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.CommitNonNativeApplicationsUpdatesL()); - TEST(err == KErrNotSupported); - - TRAP(err, aLs.ForceCommitNonNativeApplicationsUpdatesL()); - TEST(err == KErrNotSupported); - - TEST(aLs.RollbackNonNativeApplicationsUpdates() == KErrNotSupported); - - INFO_PRINTF1(_L("TestNonNativeUnsupportedAPIs test ended...........")); -} - - -void CT_NonNativeTestStep::TestGetAppTypeL(RTestableApaLsSession &aLs) - { - INFO_PRINTF1(_L("TestGetAppTypeL test started...........")); - - RSmlTestUtils fs; - User::LeaveIfError(fs.Connect()); - CleanupClosePushL(fs); - User::After(2000000); //Wait for 2 secconds till SCR server closed. - - INFO_PRINTF1(_L("Delete existing scr.db")); - //Copy the existing SCR db to temp file and delete it - fs.CopyFileL(KScrDBTarget, KScrDBTempTarget); - fs.DeleteFileL(KScrDBTarget); - - INFO_PRINTF1(_L("Copying scr_test.db")); - //Copy the scr_test.db which has non-native application information and - //non-native type to its runtime. - fs.CopyFileL(KTestScrDBSource, KScrDBTarget); - fs.ChangeFilePermissionL(KScrDBTarget); - - INFO_PRINTF1(_L("Updating applist with a non-native application exists in scr_test.db")); - TApaAppUpdateInfo appUpdateInfo; - RArray updateAppArray; - CleanupClosePushL(updateAppArray); - - appUpdateInfo.iAppUid=TUid::Uid(0x100048F3); //Test non-native app - appUpdateInfo.iAction= TApaAppUpdateInfo::EAppPresent; - updateAppArray.AppendL(appUpdateInfo); - - appUpdateInfo.iAppUid=TUid::Uid(0x10201D0E); //Test java app - appUpdateInfo.iAction= TApaAppUpdateInfo::EAppPresent; - updateAppArray.AppendL(appUpdateInfo); - - appUpdateInfo.iAppUid=TUid::Uid(0x10286B0D); //Test widget app - appUpdateInfo.iAction= TApaAppUpdateInfo::EAppPresent; - updateAppArray.AppendL(appUpdateInfo); - - TRequestStatus status; - aLs.SetNotify(EFalse, status); - aLs.UpdateAppListL(updateAppArray); - CleanupStack::PopAndDestroy(&updateAppArray); - User::WaitForRequest(status); - - INFO_PRINTF1(_L("Test GetAppType returns valid uids")); - TUid appTypeID; - User::LeaveIfError(aLs.GetAppType(appTypeID, TUid::Uid(0x10201D0E))); //Java app - TEST(appTypeID == KMidletUid); - - User::LeaveIfError(aLs.GetAppType(appTypeID, TUid::Uid(0x100048F3))); //Test non-native app - TEST(appTypeID == KTestNonNativeUid); - - User::LeaveIfError(aLs.GetAppType(appTypeID, TUid::Uid(0x10286B0D))); //widget app - TEST(appTypeID == KWidgetUid); - - - INFO_PRINTF1(_L("Restoring the scr.db")); - User::After(2000000); - fs.DeleteFileL(KScrDBTarget); - fs.CopyFileL(KScrDBTempTarget, KScrDBTarget); - fs.DeleteFileL(KScrDBTempTarget); - - CleanupStack::PopAndDestroy(&fs); - INFO_PRINTF1(_L("TestGetAppTypeL test ended...........")); - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_nonnativetest.h --- a/appfw/apparchitecture/tef/t_nonnativetest.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#if (!defined __T_NONNATIVETEST_H__) -#define __T_NONNATIVETEST_H__ - - -#include - -class RTestableApaLsSession; - - -/*Tests non-native application launching functionality */ - -class CT_NonNativeTestStep : public CTestStep - { -public: - CT_NonNativeTestStep(); - ~CT_NonNativeTestStep(); - virtual TVerdict doTestStepPreambleL(); - virtual TVerdict doTestStepPostambleL(); - virtual TVerdict doTestStepL(); - -private: - void RunTestCases(); - void TestNonNativeAppLaunchWithUnavailableMappingL(RTestableApaLsSession &aLs); - void TestNonNativeUnsupportedAPIs(RTestableApaLsSession &aLs); - void TestGetAppTypeL(RTestableApaLsSession &aLs); - }; - -_LIT(KT_NonNativeTestStep,"T_NonNativeTest"); - -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_servicebasestep.cpp --- a/appfw/apparchitecture/tef/t_servicebasestep.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_servicebasestep.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -25,10 +25,6 @@ #include "appfwk_test.h" #include "testableapalssession.h" #include "../tef/TNonNative/TNNApp1.h" -#include "T_SisFileInstaller.h" - -_LIT(KTNNA1AppSisFile, "z:\\apparctest\\apparctestsisfiles\\TNNApp1.sis"); -_LIT(KTNNA1AppComponent, "TNNApp1"); TInt PanicTest(TAny* aOption); @@ -467,19 +463,12 @@ TVerdict CT_ServiceBaseStep::doTestStepPreambleL() { - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTNNA1AppSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTNNA1AppSisFile); - SetTestStepResult(EPass); return TestStepResult(); } TVerdict CT_ServiceBaseStep::doTestStepPostambleL() { - CSisFileInstaller sisFileInstaller; - sisFileInstaller.UninstallSisL(KTNNA1AppComponent); - return TestStepResult(); } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_sisfileinstaller.cpp --- a/appfw/apparchitecture/tef/t_sisfileinstaller.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,199 +0,0 @@ -// Copyright (c) 2010 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: -// The following test case is used to test if apparctestserver -// can return app data for a specific app by caching that data when requested. -// -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include "T_SisFileInstaller.h" -#include -#include - -using namespace Usif; - -CSisFileInstaller::CSisFileInstaller() - { - } - -CSisFileInstaller::~CSisFileInstaller() - { - iSif.Close(); - } - -TInt CSisFileInstaller::InstallSisAndWaitForAppListUpdateL(const TDesC& aFileName) -{ - RApaLsSession ls; - User::LeaveIfError(ls.Connect()); - CleanupClosePushL(ls); - TRequestStatus status; - ls.SetNotify(EFalse, status); - InstallSisL(aFileName); - User::WaitForRequest(status); - CleanupStack::PopAndDestroy(); - return KErrNone; -} - -TInt CSisFileInstaller::UninstallSisAndWaitForAppListUpdateL(const TDesC& aComponentName) -{ - RApaLsSession ls; - User::LeaveIfError(ls.Connect()); - CleanupClosePushL(ls); - TRequestStatus status; - ls.SetNotify(EFalse, status); - UninstallSisL(aComponentName); - User::WaitForRequest(status); - CleanupStack::PopAndDestroy(); - return KErrNone; -} - -TInt CSisFileInstaller::InstallSisL(const TDesC& aFileName) - { - TBuf<256> buf; - buf.Copy(aFileName); - HBufC* as = buf.AllocL(); - TPtr16 sisFileName = as->Des(); - CleanupStack::PushL(as); - - RFs fs; - RFile file; - User::LeaveIfError(fs.Connect()); - fs.ShareProtected(); - CleanupClosePushL(fs); - User::LeaveIfError(file.Open(fs, sisFileName, EFileRead | EFileShareReadersOnly)); - CleanupClosePushL(file); - User::LeaveIfError(iSif.Connect()); - CleanupClosePushL(iSif); - TInt err=KErrNone; - do - { - iSif.Install(aFileName, iStatus, ETrue); - User::WaitForRequest(iStatus); - err=iStatus.Int(); - } - while( err == KErrScrReadOperationInProgress); - - User::LeaveIfError(err); - - CleanupStack::PopAndDestroy(4, as); - return KErrNone; - } - - -TInt CSisFileInstaller::UninstallSisL(const TDesC& aComponentName) - { - _LIT(KSisComponentVendor, "Nokia India Pvt Ltd"); - - RFs fs; - RFile file; - User::LeaveIfError(fs.Connect()); - fs.ShareProtected(); - CleanupClosePushL(fs); - - User::LeaveIfError(iSif.Connect()); - CleanupClosePushL(iSif); - - TBuf<256> buf; - buf.Copy(aComponentName); - HBufC* as1 = buf.AllocL(); - TPtr16 componentName = as1->Des(); - HBufC* as2 = KSisComponentVendor().AllocL(); - TPtr16 componentVendor = as2->Des(); - iComponentId = FindComponentInScrL(componentName, componentVendor); - - TInt err=KErrNone; - do - { - iSif.Uninstall(iComponentId, iStatus, ETrue); - User::WaitForRequest(iStatus); - err=iStatus.Int(); - } - while( err == KErrScrReadOperationInProgress); - - //Leave if sis file uninstllation failed. - User::LeaveIfError(err); - - delete as1; - delete as2; - as1 = NULL; - as2 = NULL; - CleanupStack::PopAndDestroy(2, &fs); - return KErrNone; - } - - -void CSisFileInstaller::CancelInstallation() - { - iSif.CancelOperation(); - } - -void CSisFileInstaller::Close() - { - iSif.Close(); - } - -TInt CSisFileInstaller::InstallSisAsynchronouslyL(const TDesC& aFileName, TRequestStatus& status) -{ - TBuf<256> buf; - buf.Copy(aFileName); - HBufC* as = buf.AllocL(); - TPtr16 sisFileName = as->Des(); - CleanupStack::PushL(as); - - RFs fs; - RFile file; - User::LeaveIfError(fs.Connect()); - fs.ShareProtected(); - CleanupClosePushL(fs); - User::LeaveIfError(file.Open(fs, sisFileName, EFileRead | EFileShareReadersOnly)); - CleanupClosePushL(file); - CleanupStack::PopAndDestroy(3, as); - - User::LeaveIfError(iSif.Connect()); - - iSif.Install(aFileName, status, ETrue); - return KErrNone; -} - -TInt CSisFileInstaller::FindComponentInScrL(const TDesC& aComponentName, const TDesC& aVendor) - { - RSoftwareComponentRegistry scr; - User::LeaveIfError(scr.Connect()); - CleanupClosePushL(scr); - - RSoftwareComponentRegistryView scrView; - CComponentFilter* filter = CComponentFilter::NewLC(); - filter->SetNameL(aComponentName); - filter->SetVendorL(aVendor); - - scrView.OpenViewL(scr, filter); - CleanupClosePushL(scrView); - - CComponentEntry* component = scrView.NextComponentL(); - TInt componentId = 0; - if (component != NULL) - { - componentId = component->ComponentId(); - delete component; - } - - CleanupStack::PopAndDestroy(3, &scr); - return componentId; - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_sisfileinstaller.h --- a/appfw/apparchitecture/tef/t_sisfileinstaller.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#ifndef __T_SISFILEINSTALLER_H -#define __T_SISFILEINSTALLER_H - -#include "appfwk_test_appui.h" -#include "apparctestserver.h" -#include "testableapalssession.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -//! CTestAppSisFile -/*! - This class is used for install and uninstall of sis files -*/ -class CSisFileInstaller: public CBase - { -public: - CSisFileInstaller(); - ~CSisFileInstaller(); - - TInt InstallSisL(const TDesC& aFileName); - TInt InstallSisAndWaitForAppListUpdateL(const TDesC& aFileName); - TInt UninstallSisL(const TDesC& aComponentName); - TInt UninstallSisAndWaitForAppListUpdateL(const TDesC& aComponentName); - TInt FindComponentInScrL(const TDesC& aComponentName, const TDesC& aVendor); - void CancelInstallation(); - TInt InstallSisAsynchronouslyL(const TDesC& aFileName, TRequestStatus& status); - void Close(); -private: - friend class CSifOperationStep; - Usif::RSoftwareInstall iSif; - Usif::TComponentId iComponentId; - TRequestStatus iStatus; - }; - -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_updateapplist.cpp --- a/appfw/apparchitecture/tef/t_updateapplist.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,159 +0,0 @@ -// Copyright (c) 2005-2010 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 UpdateAppList API of RApaLsSession class. -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include "T_UpdateAppList.h" -#include "T_SisFileInstaller.h" - -_LIT(KApparcTestAppSisFile, "z:\\apparctest\\apparctestsisfiles\\TApparcTestApp.sis"); -_LIT(KApparcTestAppComponent, "TApparcTestApp"); - -_LIT(KTestMultipleAppsSisFile, "z:\\apparctest\\apparctestsisfiles\\TestMultipleApps.sis"); -_LIT(KTestMultipleAppsComponent, "TestMultipleApps"); - - -CT_TestUpdateAppListStep::CT_TestUpdateAppListStep() - { - } - -CT_TestUpdateAppListStep::~CT_TestUpdateAppListStep() - { - iApaLsSession.Close(); - delete iScheduler; - } - - -void CT_TestUpdateAppListStep::TestUpdateAppListWithInvalidArgumentsL() - { - TApaAppInfo appInfo; - TUid uid = {0x10003A3F}; - TInt ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - - RArray updateAppInfo; - CleanupClosePushL(updateAppInfo); - updateAppInfo.AppendL(TApaAppUpdateInfo(uid, TApaAppUpdateInfo::EAppPresent)); - iApaLsSession.UpdateAppListL(updateAppInfo); - User::After(1000000); - ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - - updateAppInfo.Reset(); - updateAppInfo.AppendL(TApaAppUpdateInfo(uid, TApaAppUpdateInfo::EAppNotPresent)); - iApaLsSession.UpdateAppListL(updateAppInfo); - User::After(1000000); - ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - - updateAppInfo.Reset(); - updateAppInfo.AppendL(TApaAppUpdateInfo(uid, TApaAppUpdateInfo::EAppInfoChanged)); - iApaLsSession.UpdateAppListL(updateAppInfo); - User::After(3000000); - ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - CleanupStack::PopAndDestroy(&updateAppInfo); - } - - -void CT_TestUpdateAppListStep::TestAppInstallAndUninstallationL() - { - TApaAppInfo appInfo; - TUid uid = {0x100048F3}; - TInt ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - - //Install app - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KApparcTestAppSisFile); - TRAPD(err, sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KApparcTestAppSisFile)); - - ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNone); - - //Uninstall app - TRAP(err, sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KApparcTestAppComponent)); - - ret = iApaLsSession.GetAppInfo(appInfo,uid); - TEST(ret==KErrNotFound); - - } - - -void CT_TestUpdateAppListStep::TestMultipleAppInstallAndUninstallationL() - { - TApaAppInfo appInfo; - TUid uid1 = {0x102032AB}; - TUid uid2 = {0x10208183}; - TUid uid3 = {0x10208184}; - - TInt ret = iApaLsSession.GetAppInfo(appInfo,uid1); - TEST(ret==KErrNotFound); - - ret = iApaLsSession.GetAppInfo(appInfo,uid2); - TEST(ret==KErrNotFound); - - ret = iApaLsSession.GetAppInfo(appInfo,uid3); - TEST(ret==KErrNotFound); - - //Install applications - CSisFileInstaller sisFileInstaller; - INFO_PRINTF2(_L("Installing sis file from -> %S"), &KTestMultipleAppsSisFile); - sisFileInstaller.InstallSisAndWaitForAppListUpdateL(KTestMultipleAppsSisFile); - - ret = iApaLsSession.GetAppInfo(appInfo,uid1); - TEST(ret==KErrNone); - - ret = iApaLsSession.GetAppInfo(appInfo,uid2); - TEST(ret==KErrNone); - - //uninstall applications - sisFileInstaller.UninstallSisAndWaitForAppListUpdateL(KTestMultipleAppsComponent); - - - ret = iApaLsSession.GetAppInfo(appInfo,uid1); - TEST(ret==KErrNotFound); - - ret = iApaLsSession.GetAppInfo(appInfo,uid2); - TEST(ret==KErrNotFound); - - ret = iApaLsSession.GetAppInfo(appInfo,uid3); - TEST(ret==KErrNotFound); - } - - -TVerdict CT_TestUpdateAppListStep::doTestStepL() - { - INFO_PRINTF1(_L("Test T_UpdateAppList Started")); - - // start an active scheduler - iScheduler=new(ELeave) CActiveScheduler(); - CActiveScheduler::Install(iScheduler); - - // Connect to RApaLsSession - User::LeaveIfError(iApaLsSession.Connect()); - - HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestUpdateAppListWithInvalidArgumentsL(), NO_CLEANUP); - HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestAppInstallAndUninstallationL(), NO_CLEANUP); - HEAP_TEST_LS_SESSION(iApaLsSession, 0, DONT_CHECK, TestMultipleAppInstallAndUninstallationL(), NO_CLEANUP); - - INFO_PRINTF1(_L("Test Finished")); - return TestStepResult(); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_updateapplist.h --- a/appfw/apparchitecture/tef/t_updateapplist.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -// Copyright (c) 2005-2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#ifndef __T_UPDATEAPPLIST_H -#define __T_UPDATEAPPLIST_H - -#include "appfwk_test_appui.h" -#include "testableapalssession.h" -#include - -_LIT(KT_TestUpdateAppListStep, "T_UpdateAppList"); - -//! CTestUpdateAppListStep -/*! - This class is used to test UpdateAppList api in RApaLsSession -*/ -class CT_TestUpdateAppListStep : public CTestStep - { -public: - CT_TestUpdateAppListStep(); - ~CT_TestUpdateAppListStep(); - void TestUpdateAppListWithInvalidArgumentsL(); - void TestAppInstallAndUninstallationL(); - void TestAppUpgradeL(); - void TestMultipleAppInstallAndUninstallationL(); - void TestPackageUpgradeL(); - void TestInstallInvalidAppL(); - virtual TVerdict doTestStepL(); -private: - RTestableApaLsSession iApaLsSession; - CActiveScheduler* iScheduler; - }; - -#endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_winchainChild.mmp --- a/appfw/apparchitecture/tef/t_winchainChild.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_winchainChild.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -40,7 +40,7 @@ LIBRARY euser.lib apparc.lib cone.lib eikcore.lib ws32.lib appfwk_test_appui.lib START RESOURCE t_winchainChild_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/t_winchainLaunch.mmp --- a/appfw/apparchitecture/tef/t_winchainLaunch.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/t_winchainLaunch.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2004-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" @@ -40,7 +40,7 @@ LIBRARY euser.lib apparc.lib cone.lib eikcore.lib ws32.lib appfwk_test_appui.lib START RESOURCE t_winchainLaunch_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tapparctestapp_loc.rss --- a/appfw/apparchitecture/tef/tapparctestapp_loc.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tapparctestapp_loc.rss Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -30,7 +30,7 @@ { caption = "tapparctestapp"; number_of_icons = 1; - icon_file = "C:\\resource\\apps\\svg_icon.svg"; + icon_file = "z:\\resource\\apps\\svg_icon.svg"; } }; } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testapp/testforceregistrationapp1/testforceregistrationapp1.mmp --- a/appfw/apparchitecture/tef/testapp/testforceregistrationapp1/testforceregistrationapp1.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/testapp/testforceregistrationapp1/testforceregistrationapp1.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +// 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" @@ -14,24 +14,22 @@ // testforceregistrationapp1.mmp // -#include - target testforceregistrationapp1.exe targettype EXE UID 0x1000007a 0x102826E0 -MW_LAYER_SYSTEMINCLUDE +systeminclude /epoc32/include source ./testforceregistrationapp1.cpp START RESOURCE testforceregistrationapp1_reg.rss - TARGETPATH /apparctest + TARGETPATH \apparctest END START RESOURCE testforceregistrationapp1_loc.rss - TARGETPATH /apparctest + TARGETPATH \apparctest END library euser.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/Nokia_RnDCert_02.der Binary file appfw/apparchitecture/tef/testpkg/Nokia_RnDCert_02.der has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/Nokia_RnDCert_02.key --- a/appfw/apparchitecture/tef/testpkg/Nokia_RnDCert_02.key Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQC/TDP7KKIaf5+uW4OD2iVZuUMC2a+SeQTjf6srlKcOm+CpPNXn -uLNm/8fdEnyOIuRXPRKmqhs1n0JkxEGHynELWMTuKXbQx9SRAGUXzyneGn+IJNnO -vOKHWgKCouX2hfI8rtkdqJpqmO460gGsMgw+lsbeyWyW9lnfLxq+ZC7sqQIDAQAB -AoGBALmUWZE8GBaQ3P4u9WUCSd3DJkkrmXIFSULSZeH/chlwCwDjbbhArHothVzo -REE3hEFFlERvHbplZ+mNouzy7boduvgUzbksGrbGMLJ2qO1GzWWVwV+GzOWKd3ss -/98Gwoy5R8pjnkqUE2wP1iJFw0FjvUTKcYv/z6t3LLJ0CsoBAkEA+c7ixvsviQ3J -s0INytCKU2bf8fqFQJi1VI82ukxNsujGTQ9upVSjuvqPvWyDvvTdrUBHqO+3qPut -sEh01Q8aiQJBAMQKDJPVRu4ud3mwUfEavzL5EjqwG1k9VCNGYsT4FwtrHcxu1oP/ -pk6M3rIZukqomoEEnHWPMwhrK3fhBqi0OSECQQDr40VXege4FnH5OI2Hj4afHMyp -VdQQXGMWFyopnzXblFz0lXb43cTCIiorR9XcMqNFHybLypkWE5o+lRzlt55pAkBQ -P/zeF5Sts//cpL0mgdh7OVKpC6ZmZaCnwAx2rUhhuDu+kDDoYCLoTOps5fNI1LRK -1GRoC3LMo3Jr5IYhUYWBAkBpCpN6k4JU/mszq98EojHerQNxk8sPqvQKUzTutohT -1gLX9yepGayB/TtT2EEJDkWOlnTy/dvN6W3vzbJYz97x ------END RSA PRIVATE KEY----- diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/Corrupted.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/Corrupted.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"Corrupted"}, (0x10004c5f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\data\z\apparctest\Corrupted_reg.rsc"-"!:\private\10003a3f\import\apps\Corrupted_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/CustomiseDefaultIconApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/CustomiseDefaultIconApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"CustomiseDefaultIconApp"}, (0x10208181), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\CustomiseDefaultIconApp.exe"-"!:\sys\bin\CustomiseDefaultIconApp.exe" -"\epoc32\data\z\apparctestregfiles\CustomiseDefaultIconApp_reg.rsc"-"!:\private\10003a3f\import\apps\CustomiseDefaultIconApp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\CustomiseDefaultIconApp_loc.rsc"-"!:\resource\apps\CustomiseDefaultIconApp_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/EndTaskTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/EndTaskTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"EndTaskTestApp"}, (0x10282B33), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\endtasktestapp.exe"-"!:\sys\bin\endtasktestapp.exe" -"\epoc32\data\z\apparctestregfiles\EndTask_reg.rsc"-"!:\private\10003a3f\import\apps\EndTask_reg.rsc" -"\epoc32\data\z\apparctestregfiles\EndTaskTestApp.rsc"-"!:\resource\apps\EndTaskTestApp.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/ForceRegApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/ForceRegApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegApp1"}, (0xA0001000), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\forceregapp1.exe"-"!:\sys\bin\forceregapp1.exe" -"\epoc32\data\z\apparctestregfiles\forceregapp1_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp1_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp1.frg1"-"!:\apparctest\forcegtestapp1.frg1", RI - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/ForceRegApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/ForceRegApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegApp2"}, (0xA0001001), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\forceregapp2.exe"-"!:\sys\bin\forceregapp2.exe" -"\epoc32\data\z\apparctestregfiles\forceregapp2_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp2_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp2.frg2"-"!:\apparctest\forcegtestapp2.frg2", RI, RW diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/ForceRegMultipleApps.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/ForceRegMultipleApps.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegMultipleApps"}, (0xA0001001), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\forceregapp1.exe"-"!:\sys\bin\forceregapp1.exe" -"\epoc32\data\z\apparctestregfiles\forceregapp1_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp1_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp1.frg1"-"!:\apparctest\forcegtestapp1.frg1", RI - -"\epoc32\release\armv5\udeb\forceregapp2.exe"-"!:\sys\bin\forceregapp2.exe" -"\epoc32\data\z\apparctestregfiles\forceregapp2_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp2_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp2.frg2"-"!:\apparctest\forcegtestapp2.frg2", RI, RW diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/SimpleApparcTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/SimpleApparcTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"SimpleApparcTestApp"}, (0x12008ACE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\simpleapparctestapp.exe"-"!:\sys\bin\simpleapparctestapp.exe" -"\epoc32\data\z\apparctestregfiles\SimpleApparcTestApp_Reg.rsc"-"!:\private\10003a3f\import\apps\SimpleApparcTestApp_Reg.rsc" -"\epoc32\data\z\apparctestregfiles\SimpleApparcTestApp.rsc"-"!:\resource\apps\SimpleApparcTestApp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableOnly_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableOnly_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableOnly_v2"}, (0x10004c5C), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddableonly.dll"-"!:\sys\bin\tappembeddableonly.dll" -"\epoc32\data\z\apparctestregfiles\TAppEmbeddableOnly_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableOnly_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tappembeddableonly.rsc"-"!:\resource\plugins\tappembeddableonly.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiNotStandAlone_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiNotStandAlone_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiNotStandAlone_v2"}, (0x10004c5E), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddableuinotstandalone.dll"-"!:\sys\bin\tappembeddableuinotstandalone.dll" -"\epoc32\data\z\apparctestregfiles\TAppEmbeddableUiNotStandAlone_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableUiNotStandAlone_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tappembeddableuinotstandalone.rsc"-"!:\resource\plugins\tappembeddableuinotstandalone.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiOrStandAlone_embedded.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiOrStandAlone_embedded.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiOrStandAlone_embedded"}, (0x10004c5D), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddableuiorstandalone_embedded.dll"-"!:\sys\bin\tappembeddableuiorstandalone_embedded.dll" -"\epoc32\data\z\apparctestregfiles\tappembeddableuiorstandalone_embedded.rsc"-"!:\resource\plugins\tappembeddableuiorstandalone_embedded.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiOrStandalone_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddableUiOrStandalone_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiOrStandalone_standalone"}, (0x10004c4A), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddableuiorstandalone.exe"-"!:\sys\bin\tappembeddableuiorstandalone.exe" -"\epoc32\data\z\apparctestregfiles\TAppEmbeddableUiOrStandAlone_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableUiOrStandAlone_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddable_embedded.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddable_embedded.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddable_embedded"}, (0x10004c5B), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddable_embedded.dll"-"!:\sys\bin\tappembeddable_embedded.dll" -"\epoc32\data\z\apparctestregfiles\tappembeddable_embedded.rsc"-"!:\resource\plugins\tappembeddable_embedded.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddable_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppEmbeddable_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddable_standalone"}, (0x10004c48), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappembeddable.exe"-"!:\sys\bin\tappembeddable.exe" -"\epoc32\data\z\apparctestregfiles\TAppEmbeddable_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddable_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppInstall.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppInstall.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppInstall"}, (0x10207f7d), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\testappinstall.exe"-"!:\sys\bin\testappinstall.exe" -"\epoc32\data\z\apparctestregfiles\TestAppInstall_reg.rsc"-"!:\apparctest\TestAppInstall_reg.rsc" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TAppNotEmbeddable_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TAppNotEmbeddable_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppNotEmbeddable_v2"}, (0x10004c47), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tappnotembeddable.exe"-"!:\sys\bin\tappnotembeddable.exe" -"\epoc32\data\z\apparctestregfiles\TAppNotEmbeddable_reg.rsc"-"!:\private\10003a3f\import\apps\TAppNotEmbeddable_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TApparcTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TApparcTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TApparcTestApp"}, (0x100048F3), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tapparctestapp.exe"-"!:\sys\bin\tapparctestapp.exe" -"\epoc32\data\z\apparctestregfiles\tapparctestapp_reg.rsc"-"!:\private\10003a3f\import\apps\tapparctestapp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tapparctestapp.rsc"-"!:\resource\apps\tapparctestapp.rsc" -"\epoc32\data\z\apparctestregfiles\tapparctestapp_loc.rsc"-"!:\resource\apps\tapparctestapp_loc.rsc" -"\epoc32\data\z\apparctestregfiles\svg_icon.svg"-"!:\resource\apps\svg_icon.svg" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TCtrlPnlApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TCtrlPnlApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TCtrlPnlApp"}, (0x10207f79), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\TCtrlPnlApp.exe"-"!:\sys\bin\TCtrlPnlApp.exe" -"\epoc32\data\z\apparctestregfiles\TCtrlPnlApp_reg.rsc"-"!:\private\10003a3f\import\apps\TCtrlPnlApp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TNNApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TNNApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TNNApp1"}, (0x10207f92), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tnnapp1.exe"-"!:\sys\bin\tnnapp1.exe" -"\epoc32\data\z\apparctestregfiles\TNNApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TNNApp1_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TNNApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TNNApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TNNApp2"}, (0x10207f94), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tnnapp2.exe"-"!:\sys\bin\tnnapp2.exe" -"\epoc32\data\z\apparctestregfiles\TNNApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TNNApp2_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TRApaLsSessionStartAppTestApp_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TRApaLsSessionStartAppTestApp_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TRApaLsSessionStartAppTestApp_v2"}, (0x10004c4f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\trapalssessionstartapptestapp.exe"-"!:\sys\bin\trapalssessionstartapptestapp.exe" -"\epoc32\data\z\apparctestregfiles\TRApaLsSessionStartAppTestApp_reg.rsc"-"!:\private\10003a3f\import\apps\TRApaLsSessionStartAppTestApp_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TSTAPP_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TSTAPP_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TSTAPP_standalone"}, (10), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tstapp.exe"-"!:\sys\bin\tstapp.exe" -"\epoc32\data\z\apparctestregfiles\tstapp_reg.rsc"-"!:\private\10003a3f\import\apps\tstapp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.rsc"-"!:\resource\apps\tstapp_loc.rsc" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.r01"-"!:\resource\apps\tstapp_loc.r01" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.r02"-"!:\resource\apps\tstapp_loc.r02" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.r03"-"!:\resource\apps\tstapp_loc.r03" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.r04"-"!:\resource\apps\tstapp_loc.r04" -"\epoc32\data\z\apparctestregfiles\tstapp_loc.r05"-"!:\resource\apps\tstapp_loc.r05" -"\epoc32\data\z\apparctestregfiles\TSTAPP.rsc"-"!:\resource\apps\TSTAPP.rsc" -"\epoc32\data\z\apparctestregfiles\tstapp.mbm"-"!:\resource\apps\tstapp.mbm" -"\epoc32\data\z\apparctestregfiles\tstappview01.m01"-"!:\resource\apps\tstappview01.m01" -"\epoc32\data\z\apparctestregfiles\tstappview02.k"-"!:\resource\apps\tstappview02.k" -"\epoc32\data\z\apparctestregfiles\tstappviewneg.xyz"-"!:\resource\apps\tstappviewneg.xyz" -"\epoc32\data\z\apparctestregfiles\tstappviewneg.mbm"-"!:\resource\apps\tstappviewneg.mbm" -"\epoc32\data\z\apparctestregfiles\tstappview"-"!:\resource\apps\tstappview" -"\epoc32\data\z\apparctestregfiles\tstapp02.m02"-"!:\resource\apps\tstapp02.m02" -"\epoc32\data\z\apparctestregfiles\tstappview01.m02"-"!:\resource\apps\tstappview01.m02" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TStartDocApp_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TStartDocApp_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TStartDocApp_v2"}, (0x10004c4d), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tstartdocapp.exe"-"!:\sys\bin\tstartdocapp.exe" -"\epoc32\data\z\apparctestregfiles\TStartDocApp_reg.rsc"-"!:\private\10003a3f\import\apps\TStartDocApp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem1"}, (0x10207f7b), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_dataprioritysystem1.exe"-"!:\sys\bin\t_dataprioritysystem1.exe" -"\epoc32\data\z\apparctestregfiles\T_DataPrioritySystem1_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem1_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_DataPrioritySystem1_loc.rsc"-"!:\resource\apps\T_DataPrioritySystem1_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem2"}, (0x10207f7c), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_dataprioritysystem2.exe"-"!:\sys\bin\t_dataprioritysystem2.exe" -"\epoc32\data\z\apparctestregfiles\T_DataPrioritySystem2_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem2_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_DataPrioritySystem2_loc.rsc"-"!:\resource\apps\T_DataPrioritySystem2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem3.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_DataPrioritySystem3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem3"}, (0x10207f7f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\T_DataPrioritySystem3.exe"-"!:\sys\bin\T_DataPrioritySystem3.exe" -"\epoc32\data\z\apparctestregfiles\T_DataPrioritySystem3_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem3_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_EnvSlots.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_EnvSlots.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_EnvSlots"}, (0x102032AB), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_envslots.exe"-"!:\sys\bin\t_envslots.exe" -"\epoc32\data\z\apparctestregfiles\T_EnvSlots_reg.rsc"-"!:\private\10003a3f\import\apps\T_EnvSlots_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_EnvSlots_loc.rsc"-"!:\resource\apps\T_EnvSlots_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_groupname.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_groupname.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname"}, (0x10208185), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\T_groupname.exe"-"!:\sys\bin\T_groupname.exe" -"\epoc32\data\z\apparctestregfiles\T_groupname_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupname_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_groupname_loc.rsc"-"!:\resource\apps\T_groupname_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_groupname_ver1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_groupname_ver1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname_ver1"}, (0x10208183), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\T_groupname_ver1.exe"-"!:\sys\bin\T_groupname_ver1.exe" -"\epoc32\data\z\apparctestregfiles\T_groupnamever1_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever1_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_groupnamever1_loc.rsc"-"!:\resource\apps\T_groupnamever1_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/T_groupname_ver2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/T_groupname_ver2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname_ver2"}, (0x10208184), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\T_groupname_ver2.exe"-"!:\sys\bin\T_groupname_ver2.exe" -"\epoc32\data\z\apparctestregfiles\T_groupnamever2_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever2_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_groupnamever2_loc.rsc"-"!:\resource\apps\T_groupnamever2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TestTrustedPriorityApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TestTrustedPriorityApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestTrustedPriorityApp1"}, (0x10207f8D), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\TestTrustedPriorityApp1.exe"-"!:\sys\bin\TestTrustedPriorityApp1.exe" -"\epoc32\data\z\apparctestregfiles\TestTrustedPriorityApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TestTrustedPriorityApp1_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TestTrustedPriorityApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TestTrustedPriorityApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestTrustedPriorityApp2"}, (0x10207f8F), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\TestTrustedPriorityApp2.exe"-"!:\sys\bin\TestTrustedPriorityApp2.exe" -"\epoc32\data\z\apparctestregfiles\TestTrustedPriorityApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TestTrustedPriorityApp2_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TestUnTrustedPriorityApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TestUnTrustedPriorityApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestUnTrustedPriorityApp1"}, (0x10207f8C), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\TestUnTrustedPriorityApp1.exe"-"!:\sys\bin\TestUnTrustedPriorityApp1.exe" -"\epoc32\data\z\apparctestregfiles\TestUnTrustedPriorityApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TestUnTrustedPriorityApp1_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/TestUnTrustedPriorityApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/TestUnTrustedPriorityApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestUnTrustedPriorityApp2"}, (0xA3010010), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\TestUnTrustedPriorityApp2.exe"-"!:\sys\bin\TestUnTrustedPriorityApp2.exe" -"\epoc32\data\z\apparctestregfiles\TestUnTrustedPriorityApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TestUnTrustedPriorityApp2_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/UnProctectedUidApp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/UnProctectedUidApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"UnProctectedUidApp"}, (0xA0001C5E), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\unproctecteduidapp.exe"-"!:\sys\bin\unproctecteduidapp.exe" -"\epoc32\data\z\apparctestregfiles\UnProctectedUidApp_reg.rsc"-"!:\private\10003a3f\import\apps\UnProctectedUidApp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\UnProctectedUidApp.rsc"-"!:\resource\apps\UnProctectedUidApp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/app_CTRL.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/app_CTRL.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"app_CTRL"}, (0x13008ACE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\app_ctrl.exe"-"!:\sys\bin\app_ctrl.exe" -"\epoc32\data\z\apparctestregfiles\App_CTRL_reg.rsc"-"!:\private\10003a3f\import\apps\App_CTRL_reg.rsc" -"\epoc32\data\z\apparctestregfiles\App_CTRL.rsc"-"!:\resource\apps\App_CTRL.rsc" -"\epoc32\data\z\apparctestregfiles\App_ctrl_loc.rsc"-"!:\resource\apps\App_ctrl_loc.rsc" -"\epoc32\data\z\apparctestregfiles\APP_CTRL.MBM"-"!:\resource\apps\APP_CTRL.MBM" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/app_CTRL2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/app_CTRL2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"app_CTRL2"}, (0x13008ADE), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\app_ctrl2.exe"-"!:\sys\bin\app_ctrl2.exe" -"\epoc32\data\z\apparctestregfiles\App_CTRL2_reg.rsc"-"!:\private\10003a3f\import\apps\App_CTRL2_reg.rsc" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/m_ctrl_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/m_ctrl_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"m_ctrl_v2"}, (0x13008AEE), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\m_ctrl.exe"-"!:\sys\bin\m_ctrl.exe" -"\epoc32\data\z\apparctestregfiles\M_CTRL_reg.rsc"-"!:\private\10003a3f\import\apps\M_CTRL_reg.rsc" -"\epoc32\data\z\apparctestregfiles\M_CTRL.rsc"-"!:\resource\apps\M_CTRL.rsc" -"\epoc32\data\z\apparctestregfiles\M_CTRL_loc.rsc"-"!:\resource\apps\M_CTRL_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/openservice1app.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/openservice1app.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"openservice1app"}, (0x10208200), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\openservice1app.exe"-"!:\sys\bin\openservice1app.exe" -"\epoc32\data\z\apparctestregfiles\openservice1a.rsc"-"!:\private\10003a3f\import\apps\openservice1a.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/openservice2app.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/openservice2app.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"openservice2app"}, (0x10208201), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\openservice2app.exe"-"!:\sys\bin\openservice2app.exe" -"\epoc32\data\z\apparctestregfiles\openservice1b.rsc"-"!:\private\10003a3f\import\apps\openservice1b.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp"}, (0x10004c56), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp.exe"-"!:\sys\bin\serverapp.exe" -"\epoc32\data\z\apparctestregfiles\serverapp_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp2"}, (0x10004c58), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp2.exe"-"!:\sys\bin\serverapp2.exe" -"\epoc32\data\z\apparctestregfiles\serverapp2_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp2_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp3.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp3"}, (0x10004c57), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp3.exe"-"!:\sys\bin\serverapp3.exe" -"\epoc32\data\z\apparctestregfiles\serverapp3_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp3_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp4.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp4.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp4"}, (0x10004c76), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp4.exe"-"!:\sys\bin\serverapp4.exe" -"\epoc32\data\z\apparctestregfiles\serverapp4_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp4_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp6.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp6.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp6"}, (0x10004c55), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp6.exe"-"!:\sys\bin\serverapp6.exe" -"\epoc32\data\z\apparctestregfiles\serverapp6_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp6_reg.rsc" -"\epoc32\data\z\apparctestregfiles\serverapp_loc.rsc"-"!:\resource\apps\serverapp_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/serverapp7.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/serverapp7.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp7"}, (0x10004c54), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\serverapp7.exe"-"!:\sys\bin\serverapp7.exe" -"\epoc32\data\z\apparctestregfiles\serverapp7_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp7_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp1"}, (0X1020D6FC), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\trulebasedapp1.exe"-"!:\sys\bin\trulebasedapp1.exe" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp1_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp1_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp1.rsc"-"!:\resource\apps\tRuleBasedApp1.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp2"}, (0X1020D6FD), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\trulebasedapp2.exe"-"!:\sys\bin\trulebasedapp2.exe" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp2_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp2_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp2.rsc"-"!:\resource\apps\tRuleBasedApp2.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp3.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp3"}, (0X1020D6FE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\trulebasedapp3.exe"-"!:\sys\bin\trulebasedapp3.exe" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp3_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp3_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp3.rsc"-"!:\resource\apps\tRuleBasedApp3.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp4.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tRuleBasedApp4.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp4"}, (0x10210F77), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\trulebasedapp4.exe"-"!:\sys\bin\trulebasedapp4.exe" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp4_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp4_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tRuleBasedApp4.rsc"-"!:\resource\apps\tRuleBasedApp4.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/t_winchainChild.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/t_winchainChild.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"t_winchainChild"}, (0X10009e9f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_winchainchild.exe"-"!:\sys\bin\t_winchainchild.exe" -"\epoc32\data\z\apparctestregfiles\t_winchainChild_reg.rsc"-"!:\private\10003a3f\import\apps\t_winchainChild_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/t_winchainLaunch.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/t_winchainLaunch.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"t_winchainLaunch"}, (0X10009f9a), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_winchainlaunch.exe"-"!:\sys\bin\t_winchainlaunch.exe" -"\epoc32\data\z\apparctestregfiles\t_winchainLaunch_reg.rsc"-"!:\private\10003a3f\import\apps\t_winchainLaunch_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/testmultipleapps.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/testmultipleapps.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestMultipleApps"}, (0x102032ab), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\t_envslots.exe"-"!:\sys\bin\t_envslots.exe" -"\epoc32\data\z\apparctestregfiles\T_EnvSlots_reg.rsc"-"!:\private\10003a3f\import\apps\T_EnvSlots_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_EnvSlots_loc.rsc"-"!:\resource\apps\T_EnvSlots_loc.rsc" - -"\epoc32\release\armv5\udeb\T_groupname_ver1.exe"-"!:\sys\bin\T_groupname_ver1.exe" -"\epoc32\data\z\apparctestregfiles\T_groupnamever1_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever1_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_groupnamever1_loc.rsc"-"!:\resource\apps\T_groupnamever1_loc.rsc" - -"\epoc32\release\armv5\udeb\T_groupname_ver2.exe"-"!:\sys\bin\T_groupname_ver2.exe" -"\epoc32\data\z\apparctestregfiles\T_groupnamever2_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever2_reg.rsc" -"\epoc32\data\z\apparctestregfiles\T_groupnamever2_loc.rsc"-"!:\resource\apps\T_groupnamever2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/testmultipleappsdowngrade.pkg Binary file appfw/apparchitecture/tef/testpkg/armv5/testmultipleappsdowngrade.pkg has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/ticoncaptionoverride.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/ticoncaptionoverride.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ticoncaptionoverride"}, (0x2001B674), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\ticoncaptionoverride.exe"-"!:\sys\bin\ticoncaptionoverride.exe" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride_reg.rsc"-"!:\private\10003a3f\import\apps\ticoncaptionoverride_reg.rsc" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride.rsc"-"!:\resource\apps\ticoncaptionoverride.rsc" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride_loc.rsc"-"!:\resource\apps\ticoncaptionoverride_loc.rsc" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride_loc.r01"-"!:\resource\apps\ticoncaptionoverride_loc.r01" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride_loc.r02"-"!:\resource\apps\ticoncaptionoverride_loc.r02" -"\epoc32\data\z\apparctestregfiles\ticoncaptionoverride_loc.r03"-"!:\resource\apps\ticoncaptionoverride_loc.r03" -"\epoc32\data\z\apparctestregfiles\ticoncapoverride.mbm"-"!:\resource\apps\ticoncapoverride.mbm" -"\epoc32\data\z\apparctestregfiles\ticoncapoverride02.m02"-"!:\resource\apps\ticoncapoverride02.m02" -"\epoc32\data\z\apparctestregfiles\svg_icon.svg"-"!:\resource\apps\svg_icon.svg" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tlargestackapp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tlargestackapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tlargestackapp"}, (0x10282B28), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tlargestackapp.exe"-"!:\sys\bin\tlargestackapp.exe" -"\epoc32\data\z\apparctestregfiles\tlargestackapp_reg.rsc"-"!:\private\10003a3f\import\apps\tlargestackapp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tlargestackapp.rsc"-"!:\resource\apps\tlargestackapp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tnotifydrivesapp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tnotifydrivesapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tnotifydrivesapp"}, (0xA0003376), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tnotifydrivesapp.exe"-"!:\sys\bin\tnotifydrivesapp.exe" -"\epoc32\data\z\apparctestregfiles\tnotifydrivesapp_reg.rsc"-"!:\system\data\tnotifydrivesapp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tnotifydrivesapp.rsc"-"!:\system\data\tnotifydrivesapp.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/tupgradeiconapp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/tupgradeiconapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tupgradeiconapp"}, (0xA0003195), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\tupgradeiconapp.exe"-"!:\sys\bin\tupgradeiconapp.exe" -"\epoc32\data\z\apparctestregfiles\tupgradeiconapp_reg.rsc"-"!:\private\10003a3f\import\apps\tupgradeiconapp_reg.rsc" -"\epoc32\data\z\apparctestregfiles\tupgradeiconapp.rsc"-"!:\resource\apps\tupgradeiconapp.rsc" -"\epoc32\data\z\apparctestregfiles\tupgradeiconapp.mbm"-"!:\resource\apps\tupgradeiconapp.mbm" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/armv5/zerosizedicontestapp.pkg --- a/appfw/apparchitecture/tef/testpkg/armv5/zerosizedicontestapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"zerosizedicontestapp"}, (0xABCD0000), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\armv5\udeb\zerosizedicontestapp.exe"-"!:\sys\bin\zerosizedicontestapp.exe" -"\epoc32\data\z\apparctest\zerosizedicon_reg.rsc"-"!:\private\10003a3f\import\apps\zerosizedicon_reg.rsc" -"\epoc32\data\z\apparctest\zerosizedicon_loc.rsc"-"!:\resource\apps\zerosizedicon_loc.rsc" -"\epoc32\data\z\apparctestregfiles\zerosizedicon.mbm"-"!:\resource\apps\zerosizedicon.mbm" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/preparesis.fil --- a/appfw/apparchitecture/tef/testpkg/preparesis.fil Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -# Build WLDCOMP, a strange WINC/Win32 hybrid -# - -!IF "$(PLATFORM)" == "WINSCW" -TOOLNAME=genbackupmeta -SRCDIR=..\genbackupmeta - -!if "$(CFG)" == "REL" -VC_CFG="$(TOOLNAME) - Win32 Release" -CFG=UREL -!else -VC_CFG="$(TOOLNAME) - Win32 Debug" -CFG=UDEB -!endif - -!ENDIF - -FINAL : -!IF "$(PLATFORM)" == "GCCXML" || "$(PLATFORM)" == "TOOLS" - cd - echo ---------------- - echo Do nothing ... - echo ---------------- -!ELSE - cd - echo --------------------------- - echo Building test exes sis files... - echo --------------------------- - - perl preparesis.pl $(PLATFORM) $(CFG) -!ENDIF - -DO_NOTHING: - rem do nothing - -# -# The targets invoked by abld... -# - -MAKMAKE : DO_NOTHING -FREEZE : DO_NOTHING -LIB : DO_NOTHING -RESOURCE : DO_NOTHING -CLEANLIB : DO_NOTHING -MAKEDATA : DO_NOTHING - -RELEASABLES : - echo $(TOOL) - -SAVESPACE : BLD - -BLD : MAKEDATA - -CLEAN : diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/preparesis.pl --- a/appfw/apparchitecture/tef/testpkg/preparesis.pl Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +0,0 @@ -# -# Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of the License "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: -# -# ----------------------------------------------------------------------- - -# sis files for -my $platform = lc($ARGV[0]); - -die "EPOCROOT not defined" if !defined ($ENV{EPOCROOT}); -my $makesis = "$ENV{EPOCROOT}epoc32\\tools\\makesis.exe"; -my $signsis = "$ENV{EPOCROOT}epoc32\\tools\\signsis.exe"; -if ( ! -x $makesis || ! -x $signsis ) { - die "$makesis and $signsis are not executable"; -} - -my $sign_cert = "$ENV{EPOCROOT}epoc32\\tools\\Nokia_RnDCert_02.der"; -my $sign_key = "$ENV{EPOCROOT}epoc32\\tools\\Nokia_RnDCert_02.key"; - -if ($platform =~/winscw/i) -{ - my $winscwpkgdir = "winscw"; - my $winscwdir = "winscwsis"; - - # export path for winscw sis files - system("mkdir $winscwdir\\"); - my $target_dir = "$ENV{EPOCROOT}epoc32\\release\\winscw\\udeb\\z\\apparctest\\apparctestsisfiles\\"; - system("mkdir $target_dir\\"); - - # get list of package files for winscw - opendir DIR, $winscwpkgdir; - my @pkgfiles = grep (/\.pkg/, readdir(DIR)); - closedir DIR; - - # create and sign each sis file for winscw - my $target; # needs to be seen by continue - foreach my $entry (@pkgfiles) - { - print "\n"; - $entry =~ s/\.pkg//; # remove .pkg suffix - my $pkg_file = "$winscwpkgdir\\$entry.pkg"; - - $target = "$target_dir\\$entry.sis"; - - my $make_cmd = "$makesis $pkg_file $winscwdir\\$entry-tmp.sis"; - print "$make_cmd\n"; - system($make_cmd); - - my $sign_cmd = "$signsis $winscwdir\\$entry-tmp.sis $winscwdir\\$entry.sis $sign_cert $sign_key"; - print "\n$sign_cmd\n"; - system($sign_cmd); - - my $copy_cmd = "copy /y $winscwdir\\$entry.sis $target"; - print "\n$copy_cmd\n"; - system($copy_cmd); - } -} - -if ($platform =~ /armv5/i) -{ - my $armv5pkgdir = "armv5"; - my $armv5dir = "armv5sis"; - - # export path for armv5 sis files - system("mkdir $armv5dir\\"); - my $target_dir_armv5 = "$ENV{EPOCROOT}epoc32\\data\\Z\\System\\apparctestsisfiles\\"; - system("mkdir $target_dir_armv5\\"); - - # get list of package files for armv5 - opendir DIR, $armv5pkgdir; - my @armv5pkgfiles = grep (/\.pkg/, readdir(DIR)); - closedir DIR; - - # create and sign each sis file for armv5 - my $targetarmv5; # needs to be seen by continue - foreach my $entry1 (@armv5pkgfiles) - { - $entry1 =~ s/\.pkg//; # remove .pkg suffix - my $pkg_file = "$armv5pkgdir\\$entry1.pkg"; - - $targetarmv5 = "$target_dir_armv5\\$entry1.sis"; - - my $make_cmd = "$makesis $pkg_file $armv5dir\\$entry1-tmp.sis"; - print "$make_cmd\n"; - system($make_cmd); - - my $sign_cmd = "$signsis $armv5dir\\$entry1-tmp.sis $armv5dir\\$entry1.sis $sign_cert $sign_key"; - print "\n$sign_cmd\n"; - system($sign_cmd); - - my $copy_cmd = "copy /y $armv5dir\\$entry1.sis $targetarmv5"; - print "\n$copy_cmd\n"; - system($copy_cmd); - } -} - -# ----------------------------------------------------------------------- - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/preparesis_stub.fil --- a/appfw/apparchitecture/tef/testpkg/preparesis_stub.fil Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -# Build WLDCOMP, a strange WINC/Win32 hybrid -# - -FINAL : -!IF "$(PLATFORM)" == "GCCXML" || "$(PLATFORM)" == "TOOLS" - cd - echo ---------------- - echo Do nothing ... - echo ---------------- -!ELSE - cd - echo --------------------------- - echo Building test exes sis files... - echo --------------------------- - - perl preparesis_stub.pl -!ENDIF - -DO_NOTHING: - rem do nothing - -# -# The targets invoked by abld... -# - -MAKMAKE : DO_NOTHING -FREEZE : DO_NOTHING -LIB : DO_NOTHING -RESOURCE : DO_NOTHING -CLEANLIB : DO_NOTHING -MAKEDATA : DO_NOTHING - -RELEASABLES : - echo $(TOOL) - -SAVESPACE : BLD - -BLD : MAKEDATA - -CLEAN : diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/preparesis_stub.pl --- a/appfw/apparchitecture/tef/testpkg/preparesis_stub.pl Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -# -# Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of the License "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: -# -# ----------------------------------------------------------------------- - -# sis files for -my $stubpkgdir = "stub_sis"; - -my $stubdir = "stubsis"; - -die "EPOCROOT not defined" if !defined ($ENV{EPOCROOT}); -my $makesis = "$ENV{EPOCROOT}epoc32\\tools\\makesis.exe"; -my $option = "-s"; -my $signsis = "$ENV{EPOCROOT}epoc32\\tools\\signsis.exe"; -if ( ! -x $makesis || ! -x $signsis ) { - die "$makesis and $signsis are not executable"; -} - -my $sign_cert = "$ENV{EPOCROOT}epoc32\\tools\\Nokia_RnDCert_02.der"; -my $sign_key = "$ENV{EPOCROOT}epoc32\\tools\\Nokia_RnDCert_02.key"; - -# export path for stub sis files -system("mkdir $stubdir\\"); -my $target_winscw = "$ENV{EPOCROOT}epoc32\\release\\winscw\\udeb\\z\\system\\install\\"; -my $target_armv5 = "$ENV{EPOCROOT}epoc32\\data\\z\\system\\install\\"; -system("mkdir $target_winscw\\"); -system("mkdir $target_armv5\\"); - -# get list of package files for stub -opendir DIR, $stubpkgdir; -my @pkgfiles = grep (/\.pkg/, readdir(DIR)); -closedir DIR; - -# create each stub sis file -my $target; # needs to be seen by continue -my $target2; -foreach my $entry (@pkgfiles) - { - print "\n"; - $entry =~ s/\.pkg//; # remove .pkg suffix - my $pkg_file = "$stubpkgdir\\$entry.pkg"; - - $target = "$target_winscw\\$entry.sis"; - $target2 = "$target_armv5\\$entry.sis"; - - my $make_cmd = "$makesis $option $pkg_file $stubdir\\$entry.sis"; - print "$make_cmd\n"; - system($make_cmd); - - my $copy_cmd = "copy /y $stubdir\\$entry.sis $target"; - print "\n$copy_cmd\n"; - system($copy_cmd); - - my $copy_cmd = "copy /y $stubdir\\$entry.sis $target2"; - print "\n$copy_cmd\n"; - system($copy_cmd); - } - - - -# ----------------------------------------------------------------------- - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/scr.db Binary file appfw/apparchitecture/tef/testpkg/scr.db has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/stub_sis/TSTAPP_standalone_Stub.pkg --- a/appfw/apparchitecture/tef/testpkg/stub_sis/TSTAPP_standalone_Stub.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +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 the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TSTAPP_standalone"}, (10), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -""-"!:\sys\bin\tstapp.exe" -""-"!:\private\10003a3f\import\apps\tstapp_reg.rsc" -""-"!:\resource\apps\tstapp_loc.rsc" -""-"!:\resource\apps\tstapp_loc.r01" -""-"!:\resource\apps\tstapp_loc.r02" -""-"!:\resource\apps\tstapp_loc.r03" -""-"!:\resource\apps\tstapp_loc.r04" -""-"!:\resource\apps\tstapp_loc.r05" -""-"!:\resource\apps\TSTAPP.rsc" -""-"!:\resource\apps\tstapp.mbm" -""-"!:\resource\apps\tstappview01.m01" -""-"!:\resource\apps\tstappview02.k" -""-"!:\resource\apps\tstappviewneg.xyz" -""-"!:\resource\apps\tstappviewneg.mbm" -""-"!:\resource\apps\tstappview" -""-"!:\resource\apps\tstapp02.m02" -""-"!:\resource\apps\tstappview01.m02" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/stub_sis/app_CTRL2_stub.pkg --- a/appfw/apparchitecture/tef/testpkg/stub_sis/app_CTRL2_stub.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +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 the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"app_CTRL2"}, (0x13008ADE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -""-"!:\sys\bin\app_ctrl2.exe" -""-"!:\private\10003a3f\import\apps\App_CTRL2_reg.rsc" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/stub_sis/m_ctrl_v2_Stub.pkg --- a/appfw/apparchitecture/tef/testpkg/stub_sis/m_ctrl_v2_Stub.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +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 the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"m_ctrl_v2"}, (0x13008AEE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -""-"!:\sys\bin\m_ctrl.exe" -""-"!:\private\10003a3f\import\apps\M_CTRL_reg.rsc" -""-"!:\resource\apps\M_CTRL.rsc" -""-"!:\resource\apps\M_CTRL_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/swicertstore.dat Binary file appfw/apparchitecture/tef/testpkg/swicertstore.dat has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/Corrupted.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/Corrupted.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"Corrupted"}, (0x10004c5f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\z\apparctest\Corrupted_reg.rsc"-"!:\private\10003a3f\import\apps\Corrupted_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/CustomiseDefaultIconApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/CustomiseDefaultIconApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"CustomiseDefaultIconApp"}, (0x10208181), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\CustomiseDefaultIconApp.exe"-"!:\sys\bin\CustomiseDefaultIconApp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\CustomiseDefaultIconApp_reg.rsc"-"!:\private\10003a3f\import\apps\CustomiseDefaultIconApp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\CustomiseDefaultIconApp_loc.rsc"-"!:\resource\apps\CustomiseDefaultIconApp_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/EndTaskTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/EndTaskTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"EndTaskTestApp"}, (0x10282B33), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\endtasktestapp.exe"-"!:\sys\bin\endtasktestapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\EndTask_reg.rsc"-"!:\private\10003a3f\import\apps\EndTask_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\EndTaskTestApp.rsc"-"!:\resource\apps\EndTaskTestApp.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/ForceRegApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/ForceRegApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegApp1"}, (0xA0001000), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\forceregapp1.exe"-"!:\sys\bin\forceregapp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\forceregapp1_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp1_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp1.frg1"-"!:\apparctest\forcegtestapp1.frg1", RI - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/ForceRegApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/ForceRegApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegApp2"}, (0xA0001001), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\forceregapp2.exe"-"!:\sys\bin\forceregapp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\forceregapp2_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp2_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp2.frg2"-"!:\apparctest\forcegtestapp2.frg2", RI, RW diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/ForceRegMultipleApps.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/ForceRegMultipleApps.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ForceRegMultipleApps"}, (0xA0001001), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\forceregapp1.exe"-"!:\sys\bin\forceregapp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\forceregapp1_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp1_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp1.frg1"-"!:\apparctest\forcegtestapp1.frg1", RI - -"\epoc32\release\winscw\udeb\forceregapp2.exe"-"!:\sys\bin\forceregapp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\forceregapp2_reg.rsc"-"!:\private\10003a3f\import\apps\forceregapp2_reg.rsc" -"\epoc32\data\z\apparctest\forcegtestapp2.frg2"-"!:\apparctest\forcegtestapp2.frg2", RI, RW diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/ParentProcess.sis Binary file appfw/apparchitecture/tef/testpkg/winscw/ParentProcess.sis has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/SimpleApparcTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/SimpleApparcTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"SimpleApparcTestApp"}, (0x12008ACE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\simpleapparctestapp.exe"-"!:\sys\bin\simpleapparctestapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\SimpleApparcTestApp_Reg.rsc"-"!:\private\10003a3f\import\apps\SimpleApparcTestApp_Reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\SimpleApparcTestApp.rsc"-"!:\resource\apps\SimpleApparcTestApp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableOnly_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableOnly_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableOnly_v2"}, (0x10004c5C), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddableonly.dll"-"!:\sys\bin\tappembeddableonly.dll" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TAppEmbeddableOnly_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableOnly_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tappembeddableonly.rsc"-"!:\resource\plugins\tappembeddableonly.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiNotStandAlone_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiNotStandAlone_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiNotStandAlone_v2"}, (0x10004c5E), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddableuinotstandalone.dll"-"!:\sys\bin\tappembeddableuinotstandalone.dll" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TAppEmbeddableUiNotStandAlone_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableUiNotStandAlone_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tappembeddableuinotstandalone.rsc"-"!:\resource\plugins\tappembeddableuinotstandalone.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiOrStandAlone_embedded.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiOrStandAlone_embedded.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiOrStandAlone_embedded"}, (0x10004c5D), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddableuiorstandalone_embedded.dll"-"!:\sys\bin\tappembeddableuiorstandalone_embedded.dll" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tappembeddableuiorstandalone_embedded.rsc"-"!:\resource\plugins\tappembeddableuiorstandalone_embedded.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiOrStandalone_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddableUiOrStandalone_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddableUiOrStandalone_standalone"}, (0x10004c4A), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddableuiorstandalone.exe"-"!:\sys\bin\tappembeddableuiorstandalone.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TAppEmbeddableUiOrStandAlone_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddableUiOrStandAlone_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddable_embedded.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddable_embedded.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddable_embedded"}, (0x10004c5B), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddable_embedded.dll"-"!:\sys\bin\tappembeddable_embedded.dll" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tappembeddable_embedded.rsc"-"!:\resource\plugins\tappembeddable_embedded.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddable_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppEmbeddable_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppEmbeddable_standalone"}, (0x10004c48), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappembeddable.exe"-"!:\sys\bin\tappembeddable.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TAppEmbeddable_reg.rsc"-"!:\private\10003a3f\import\apps\TAppEmbeddable_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppInstall.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppInstall.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppInstall"}, (0x10207f7d), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\testappinstall.exe"-"!:\sys\bin\testappinstall.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TestAppInstall_reg.rsc"-"!:\apparctest\TestAppInstall_reg.rsc" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TAppNotEmbeddable_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TAppNotEmbeddable_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TAppNotEmbeddable_v2"}, (0x10004c47), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tappnotembeddable.exe"-"!:\sys\bin\tappnotembeddable.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TAppNotEmbeddable_reg.rsc"-"!:\private\10003a3f\import\apps\TAppNotEmbeddable_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TApparcTestApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TApparcTestApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TApparcTestApp"}, (0x100048F3), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tapparctestapp.exe"-"!:\sys\bin\tapparctestapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tapparctestapp_reg.rsc"-"!:\private\10003a3f\import\apps\tapparctestapp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tapparctestapp.rsc"-"!:\resource\apps\tapparctestapp.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tapparctestapp_loc.rsc"-"!:\resource\apps\tapparctestapp_loc.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\svg_icon.svg"-"!:\resource\apps\svg_icon.svg" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TCtrlPnlApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TCtrlPnlApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TCtrlPnlApp"}, (0x10207f79), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\TCtrlPnlApp.exe"-"!:\sys\bin\TCtrlPnlApp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TCtrlPnlApp_reg.rsc"-"!:\private\10003a3f\import\apps\TCtrlPnlApp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TNNApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TNNApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TNNApp1"}, (0x10207f92), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tnnapp1.exe"-"!:\sys\bin\tnnapp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TNNApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TNNApp1_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TNNApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TNNApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TNNApp2"}, (0x10207f94), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tnnapp2.exe"-"!:\sys\bin\tnnapp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TNNApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TNNApp2_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TRApaLsSessionStartAppTestApp_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TRApaLsSessionStartAppTestApp_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TRApaLsSessionStartAppTestApp_v2"}, (0x10004c4f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\trapalssessionstartapptestapp.exe"-"!:\sys\bin\trapalssessionstartapptestapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TRApaLsSessionStartAppTestApp_reg.rsc"-"!:\private\10003a3f\import\apps\TRApaLsSessionStartAppTestApp_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TSTAPP_standalone.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TSTAPP_standalone.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TSTAPP_standalone"}, (10), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tstapp.exe"-"!:\sys\bin\tstapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_reg.rsc"-"!:\private\10003a3f\import\apps\tstapp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.rsc"-"!:\resource\apps\tstapp_loc.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.r01"-"!:\resource\apps\tstapp_loc.r01" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.r02"-"!:\resource\apps\tstapp_loc.r02" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.r03"-"!:\resource\apps\tstapp_loc.r03" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.r04"-"!:\resource\apps\tstapp_loc.r04" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp_loc.r05"-"!:\resource\apps\tstapp_loc.r05" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TSTAPP.rsc"-"!:\resource\apps\TSTAPP.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp.mbm"-"!:\resource\apps\tstapp.mbm" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappview01.m01"-"!:\resource\apps\tstappview01.m01" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappview02.k"-"!:\resource\apps\tstappview02.k" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappviewneg.xyz"-"!:\resource\apps\tstappviewneg.xyz" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappviewneg.mbm"-"!:\resource\apps\tstappviewneg.mbm" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappview"-"!:\resource\apps\tstappview" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstapp02.m02"-"!:\resource\apps\tstapp02.m02" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tstappview01.m02"-"!:\resource\apps\tstappview01.m02" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TStartDocApp_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TStartDocApp_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TStartDocApp_v2"}, (0x10004c4d), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tstartdocapp.exe"-"!:\sys\bin\tstartdocapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TStartDocApp_reg.rsc"-"!:\private\10003a3f\import\apps\TStartDocApp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem1"}, (0x10207f7b), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_dataprioritysystem1.exe"-"!:\sys\bin\t_dataprioritysystem1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_DataPrioritySystem1_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem1_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_DataPrioritySystem1_loc.rsc"-"!:\resource\apps\T_DataPrioritySystem1_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem2"}, (0x10207f7c), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_dataprioritysystem2.exe"-"!:\sys\bin\t_dataprioritysystem2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_DataPrioritySystem2_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem2_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_DataPrioritySystem2_loc.rsc"-"!:\resource\apps\T_DataPrioritySystem2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem3.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_DataPrioritySystem3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_DataPrioritySystem3"}, (0x10207f7f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\T_DataPrioritySystem3.exe"-"!:\sys\bin\T_DataPrioritySystem3.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_DataPrioritySystem3_reg.rsc"-"!:\private\10003a3f\import\apps\T_DataPrioritySystem3_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_EnvSlots.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_EnvSlots.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_EnvSlots"}, (0x102032AB), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_envslots.exe"-"!:\sys\bin\t_envslots.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_EnvSlots_reg.rsc"-"!:\private\10003a3f\import\apps\T_EnvSlots_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_EnvSlots_loc.rsc"-"!:\resource\apps\T_EnvSlots_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_groupname.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_groupname.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname"}, (0x10208185), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\T_groupname.exe"-"!:\sys\bin\T_groupname.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupname_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupname_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupname_loc.rsc"-"!:\resource\apps\T_groupname_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_groupname_ver1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_groupname_ver1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname_ver1"}, (0x10208183), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\T_groupname_ver1.exe"-"!:\sys\bin\T_groupname_ver1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever1_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever1_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever1_loc.rsc"-"!:\resource\apps\T_groupnamever1_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/T_groupname_ver2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/T_groupname_ver2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"T_groupname_ver2"}, (0x10208184), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\T_groupname_ver2.exe"-"!:\sys\bin\T_groupname_ver2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever2_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever2_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever2_loc.rsc"-"!:\resource\apps\T_groupnamever2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TestTrustedPriorityApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TestTrustedPriorityApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestTrustedPriorityApp1"}, (0x10207f8D), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\TestTrustedPriorityApp1.exe"-"!:\sys\bin\TestTrustedPriorityApp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TestTrustedPriorityApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TestTrustedPriorityApp1_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TestTrustedPriorityApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TestTrustedPriorityApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestTrustedPriorityApp2"}, (0x10207f8F), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\TestTrustedPriorityApp2.exe"-"!:\sys\bin\TestTrustedPriorityApp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TestTrustedPriorityApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TestTrustedPriorityApp2_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TestUnTrustedPriorityApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TestUnTrustedPriorityApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestUnTrustedPriorityApp1"}, (0x10207f8C), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\TestUnTrustedPriorityApp1.exe"-"!:\sys\bin\TestUnTrustedPriorityApp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TestUnTrustedPriorityApp1_reg.rsc"-"!:\private\10003a3f\import\apps\TestUnTrustedPriorityApp1_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/TestUnTrustedPriorityApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/TestUnTrustedPriorityApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestUnTrustedPriorityApp2"}, (0xA3010010), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\TestUnTrustedPriorityApp2.exe"-"!:\sys\bin\TestUnTrustedPriorityApp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\TestUnTrustedPriorityApp2_reg.rsc"-"!:\private\10003a3f\import\apps\TestUnTrustedPriorityApp2_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/UnProctectedUidApp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/UnProctectedUidApp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"UnProctectedUidApp"}, (0xA0001C5E), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\unproctecteduidapp.exe"-"!:\sys\bin\unproctecteduidapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\UnProctectedUidApp_reg.rsc"-"!:\private\10003a3f\import\apps\UnProctectedUidApp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\UnProctectedUidApp.rsc"-"!:\resource\apps\UnProctectedUidApp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/app_CTRL.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/app_CTRL.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"app_CTRL"}, (0x13008ACE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\app_ctrl.exe"-"!:\sys\bin\app_ctrl.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\App_CTRL_reg.rsc"-"!:\private\10003a3f\import\apps\App_CTRL_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\App_CTRL.rsc"-"!:\resource\apps\App_CTRL.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\App_ctrl_loc.rsc"-"!:\resource\apps\App_ctrl_loc.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\APP_CTRL.MBM"-"!:\resource\apps\APP_CTRL.MBM" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/app_CTRL2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/app_CTRL2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"app_CTRL2"}, (0x13008ADE), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\app_ctrl2.exe"-"!:\sys\bin\app_ctrl2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\App_CTRL2_reg.rsc"-"!:\private\10003a3f\import\apps\App_CTRL2_reg.rsc" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/m_ctrl_v2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/m_ctrl_v2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"m_ctrl_v2"}, (0x13008AEE), 1, 0, 0, TYPE=SA, RU - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\m_ctrl.exe"-"!:\sys\bin\m_ctrl.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\M_CTRL_reg.rsc"-"!:\private\10003a3f\import\apps\M_CTRL_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\M_CTRL.rsc"-"!:\resource\apps\M_CTRL.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\M_CTRL_loc.rsc"-"!:\resource\apps\M_CTRL_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/openservice1app.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/openservice1app.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"openservice1app"}, (0x10208200), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\openservice1app.exe"-"!:\sys\bin\openservice1app.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\openservice1a.rsc"-"!:\private\10003a3f\import\apps\openservice1a.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/openservice2app.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/openservice2app.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"openservice2app"}, (0x10208201), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\openservice2app.exe"-"!:\sys\bin\openservice2app.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\openservice1b.rsc"-"!:\private\10003a3f\import\apps\openservice1b.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp"}, (0x10004c56), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp.exe"-"!:\sys\bin\serverapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp2"}, (0x10004c58), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp2.exe"-"!:\sys\bin\serverapp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp2_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp2_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp3.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp3"}, (0x10004c57), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp3.exe"-"!:\sys\bin\serverapp3.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp3_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp3_reg.rsc" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp4.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp4.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp4"}, (0x10004c76), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp4.exe"-"!:\sys\bin\serverapp4.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp4_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp4_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp6.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp6.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp6"}, (0x10004c55), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp6.exe"-"!:\sys\bin\serverapp6.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp6_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp6_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp_loc.rsc"-"!:\resource\apps\serverapp_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/serverapp7.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/serverapp7.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"serverapp7"}, (0x10004c54), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\serverapp7.exe"-"!:\sys\bin\serverapp7.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\serverapp7_reg.rsc"-"!:\private\10003a3f\import\apps\serverapp7_reg.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp1.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp1.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp1"}, (0X1020D6FC), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\trulebasedapp1.exe"-"!:\sys\bin\trulebasedapp1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp1_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp1_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp1.rsc"-"!:\resource\apps\tRuleBasedApp1.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp2.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp2.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp2"}, (0X1020D6FD), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\trulebasedapp2.exe"-"!:\sys\bin\trulebasedapp2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp2_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp2_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp2.rsc"-"!:\resource\apps\tRuleBasedApp2.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp3.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp3.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp3"}, (0X1020D6FE), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\trulebasedapp3.exe"-"!:\sys\bin\trulebasedapp3.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp3_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp3_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp3.rsc"-"!:\resource\apps\tRuleBasedApp3.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp4.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tRuleBasedApp4.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tRuleBasedApp4"}, (0x10210F77), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\trulebasedapp4.exe"-"!:\sys\bin\trulebasedapp4.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp4_reg.rsc"-"!:\private\10003a3f\import\apps\tRuleBasedApp4_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tRuleBasedApp4.rsc"-"!:\resource\apps\tRuleBasedApp4.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/t_winchainChild.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/t_winchainChild.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"t_winchainChild"}, (0X10009e9f), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_winchainchild.exe"-"!:\sys\bin\t_winchainchild.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\t_winchainChild_reg.rsc"-"!:\private\10003a3f\import\apps\t_winchainChild_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/t_winchainLaunch.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/t_winchainLaunch.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"t_winchainLaunch"}, (0X10009f9a), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_winchainlaunch.exe"-"!:\sys\bin\t_winchainlaunch.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\t_winchainLaunch_reg.rsc"-"!:\private\10003a3f\import\apps\t_winchainLaunch_reg.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/testmultipleapps.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/testmultipleapps.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"TestMultipleApps"}, (0x102032ab), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\t_envslots.exe"-"!:\sys\bin\t_envslots.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_EnvSlots_reg.rsc"-"!:\private\10003a3f\import\apps\T_EnvSlots_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_EnvSlots_loc.rsc"-"!:\resource\apps\T_EnvSlots_loc.rsc" - -"\epoc32\release\winscw\udeb\T_groupname_ver1.exe"-"!:\sys\bin\T_groupname_ver1.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever1_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever1_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever1_loc.rsc"-"!:\resource\apps\T_groupnamever1_loc.rsc" - -"\epoc32\release\winscw\udeb\T_groupname_ver2.exe"-"!:\sys\bin\T_groupname_ver2.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever2_reg.rsc"-"!:\private\10003a3f\import\apps\T_groupnamever2_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\T_groupnamever2_loc.rsc"-"!:\resource\apps\T_groupnamever2_loc.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/testmultipleappsdowngrade.pkg Binary file appfw/apparchitecture/tef/testpkg/winscw/testmultipleappsdowngrade.pkg has changed diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/ticoncaptionoverride.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/ticoncaptionoverride.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"ticoncaptionoverride"}, (0x2001B674), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\ticoncaptionoverride.exe"-"!:\sys\bin\ticoncaptionoverride.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride_reg.rsc"-"!:\private\10003a3f\import\apps\ticoncaptionoverride_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride.rsc"-"!:\resource\apps\ticoncaptionoverride.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride_loc.rsc"-"!:\resource\apps\ticoncaptionoverride_loc.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride_loc.r01"-"!:\resource\apps\ticoncaptionoverride_loc.r01" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride_loc.r02"-"!:\resource\apps\ticoncaptionoverride_loc.r02" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncaptionoverride_loc.r03"-"!:\resource\apps\ticoncaptionoverride_loc.r03" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncapoverride.mbm"-"!:\resource\apps\ticoncapoverride.mbm" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\ticoncapoverride02.m02"-"!:\resource\apps\ticoncapoverride02.m02" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\svg_icon.svg"-"!:\resource\apps\svg_icon.svg" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tlargestackapp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tlargestackapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tlargestackapp"}, (0x10282B28), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tlargestackapp.exe"-"!:\sys\bin\tlargestackapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tlargestackapp_reg.rsc"-"!:\private\10003a3f\import\apps\tlargestackapp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tlargestackapp.rsc"-"!:\resource\apps\tlargestackapp.rsc" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tnotifydrivesapp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tnotifydrivesapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tnotifydrivesapp"}, (0xA0003376), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tnotifydrivesapp.exe"-"!:\sys\bin\tnotifydrivesapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tnotifydrivesapp_reg.rsc"-"!:\system\data\tnotifydrivesapp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tnotifydrivesapp.rsc"-"!:\system\data\tnotifydrivesapp.rsc" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/tupgradeiconapp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/tupgradeiconapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"tupgradeiconapp"}, (0xA0003195), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\tupgradeiconapp.exe"-"!:\sys\bin\tupgradeiconapp.exe" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tupgradeiconapp_reg.rsc"-"!:\private\10003a3f\import\apps\tupgradeiconapp_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tupgradeiconapp.rsc"-"!:\resource\apps\tupgradeiconapp.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\tupgradeiconapp.mbm"-"!:\resource\apps\tupgradeiconapp.mbm" - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/testpkg/winscw/zerosizedicontestapp.pkg --- a/appfw/apparchitecture/tef/testpkg/winscw/zerosizedicontestapp.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -; -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of the License "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: -; - - -;Languages -&EN - -;Header -; SA = Symbian Application -; RU = Rom Upgrade -#{"zerosizedicontestapp"}, (0xABCD0000), 1, 0, 0, TYPE=SA - -%{"Nokia India Pvt Ltd"} -:"Nokia India Pvt Ltd" - -"\epoc32\release\winscw\udeb\zerosizedicontestapp.exe"-"!:\sys\bin\zerosizedicontestapp.exe" -"\epoc32\release\winscw\udeb\z\apparctest\zerosizedicon_reg.rsc"-"!:\private\10003a3f\import\apps\zerosizedicon_reg.rsc" -"\epoc32\release\winscw\udeb\z\apparctest\zerosizedicon_loc.rsc"-"!:\resource\apps\zerosizedicon_loc.rsc" -"\epoc32\release\winscw\udeb\z\apparctestregfiles\zerosizedicon.mbm"-"!:\resource\apps\zerosizedicon.mbm" - - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/ticoncaptionoverride.mmp --- a/appfw/apparchitecture/tef/ticoncaptionoverride.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/ticoncaptionoverride.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -38,27 +38,27 @@ //reg added for Datacaging START RESOURCE ticoncaptionoverride_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/import/apps END START RESOURCE ticoncaptionoverride.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps END START RESOURCE ticoncaptionoverride_loc.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps LANG SC 01 02 03 END START BITMAP ticoncapoverride.mbm -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 tstappicon24x20.bmp tstappicon24x20m.bmp SOURCE c8,1 tstappicon40x55.bmp tstappicon40x55m.bmp END START BITMAP ticoncapoverride02.m02 -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps SOURCEPATH ../tdatasrc SOURCE c8,1 def25.bmp def25m.bmp def25.bmp def25m.bmp def50.bmp def50m.bmp END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/ticoncaptionoverride01.rls --- a/appfw/apparchitecture/tef/ticoncaptionoverride01.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/ticoncaptionoverride01.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -22,4 +22,4 @@ rls_string STRING_r_ticoncapoverride_caption_string "TstCap UK" rls_string STRING_r_ticoncapoverride_short_caption_string "TC UK" -rls_string STRING_r_ticoncapoverride_icon_file "\\resource\\apps\\ticoncapoverride.mbm" +rls_string STRING_r_ticoncapoverride_icon_file "z:\\resource\\apps\\ticoncapoverride.mbm" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/ticoncaptionoverride02.rls --- a/appfw/apparchitecture/tef/ticoncaptionoverride02.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/ticoncaptionoverride02.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -22,4 +22,4 @@ rls_string STRING_r_ticoncapoverride_caption_string "TstCap FR" rls_string STRING_r_ticoncapoverride_short_caption_string "TC FR" -rls_string STRING_r_ticoncapoverride_icon_file "\\resource\\apps\\ticoncapoverride02.m02" +rls_string STRING_r_ticoncapoverride_icon_file "z:\\resource\\apps\\ticoncapoverride02.m02" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/ticoncaptionoverride03.rls --- a/appfw/apparchitecture/tef/ticoncaptionoverride03.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/ticoncaptionoverride03.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -22,4 +22,4 @@ rls_string STRING_r_ticoncapoverride_caption_string "TstCap GE" rls_string STRING_r_ticoncapoverride_short_caption_string "TC GE" -rls_string STRING_r_ticoncapoverride_icon_file "\\resource\\apps\\ticoncapoverride.mbm" +rls_string STRING_r_ticoncapoverride_icon_file "z:\\resource\\apps\\ticoncapoverride.mbm" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/ticoncaptionoverridesc.rls --- a/appfw/apparchitecture/tef/ticoncaptionoverridesc.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/ticoncaptionoverridesc.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-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" @@ -23,4 +23,4 @@ rls_string STRING_r_ticoncapoverride_caption_string "TstCap UK" rls_string STRING_r_ticoncapoverride_short_caption_string "TC UK" -rls_string STRING_r_ticoncapoverride_icon_file "\\resource\\apps\\ticoncapoverride.mbm" +rls_string STRING_r_ticoncapoverride_icon_file "z:\\resource\\apps\\ticoncapoverride.mbm" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tlargestack/tlargestackapp.mmp --- a/appfw/apparchitecture/tef/tlargestack/tlargestackapp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tlargestack/tlargestackapp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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" @@ -37,11 +37,11 @@ START RESOURCE tlargestackapp.rss HEADER -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps end START RESOURCE tlargestackapp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime.cpp --- a/appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @internalComponent - Internal Symbian test code -*/ - -#include -#include "../t_nonnativetest.h" -#include -#include - -const TUid KPropertyCategory = {0x101F289C}; -const TUint KNonNativeTestPropertyKey = 2; - -TInt E32Main() - { - RProperty forceRegStatus; - User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KNonNativeTestPropertyKey, EOwnerThread)); - - forceRegStatus.Set(1); - forceRegStatus.Close(); - return(KErrNone); - } diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime.mmp --- a/appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -// Copyright (c) 2010 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: -// using relative paths for sourcepath and user includes -// -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -TARGET tnonnativeruntime.exe -TARGETTYPE exe -UID 0x100039CE 0xA0001002 -VENDORID 0x70000001 - -SOURCEPATH . -SOURCE tnonnativeruntime.cpp - -USERINCLUDE . - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN - - -START RESOURCE tnonnativeruntime_reg.rss -TARGETPATH /private/10003a3f/import/apps -END - -LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime_reg.rss --- a/appfw/apparchitecture/tef/tnonnativeruntime/tnonnativeruntime_reg.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -// Copyright (c) 2010 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: -// - -/** - @file - @test - @internalComponent - Internal Symbian test code -*/ - -#include - -UID2 KUidAppRegistrationResourceFile -UID3 0xA0001002 // application UID - -RESOURCE APP_REGISTRATION_INFO - { - app_file = "tnonnativeruntime"; - } - diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tnotifydrivesapp/tnotifydrivesapp.mmp --- a/appfw/apparchitecture/tef/tnotifydrivesapp/tnotifydrivesapp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tnotifydrivesapp/tnotifydrivesapp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -38,13 +38,13 @@ SOURCEPATH . RESOURCE tnotifydrivesapp.rss START RESOURCE tnotifydrivesapp.rss -TARGETPATH /apparctestregfiles +TARGETPATH /system/data LANG SC END SOURCEPATH . START RESOURCE tnotifydrivesapp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /system/data END LIBRARY euser.lib apparc.lib cone.lib eikcore.lib gdi.lib diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tssaac/tssaac.mmp --- a/appfw/apparchitecture/tef/tssaac/tssaac.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tssaac/tssaac.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -41,7 +41,7 @@ #else // startup with tssaac application for hardware START RESOURCE tssaac_hardware.rss -TARGETPATH /private/10205C44 +TARGETPATH \private\10205C44 END #endif diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstapp01.rls --- a/appfw/apparchitecture/tef/tstapp01.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstapp01.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,9 +26,9 @@ rls_string STRING_r_tstapp_view1_caption "V1 UK" rls_string STRING_r_tstapp_view2_caption "V2 UK" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view1_icon_file "\\resource\\apps\\tstappview01.m01" -rls_string STRING_r_tstapp_view2_icon_file "\\resource\\apps\\tstappview02.k" -rls_string STRING_r_tstapp_view3_icon_file "\\resource\\apps\\tstappviewneg.xyz" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view1_icon_file "z:\\resource\\apps\\tstappview01.m01" +rls_string STRING_r_tstapp_view2_icon_file "z:\\resource\\apps\\tstappview02.k" +rls_string STRING_r_tstapp_view3_icon_file "z:\\resource\\apps\\tstappviewneg.xyz" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstapp02.rls --- a/appfw/apparchitecture/tef/tstapp02.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstapp02.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,9 +26,9 @@ rls_string STRING_r_tstapp_view1_caption "V1 FR" rls_string STRING_r_tstapp_view2_caption "V2 FR" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp02.m02" -rls_string STRING_r_tstapp_view1_icon_file "\\resource\\apps\\tstappview01.m02" -rls_string STRING_r_tstapp_view2_icon_file "\\resource\\apps\\tstappview" -rls_string STRING_r_tstapp_view3_icon_file "\\resource\\apps\\tstappviewneg.mbm" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp02.m02" +rls_string STRING_r_tstapp_view1_icon_file "z:\\resource\\apps\\tstappview01.m02" +rls_string STRING_r_tstapp_view2_icon_file "z:\\resource\\apps\\tstappview" +rls_string STRING_r_tstapp_view3_icon_file "z:\\resource\\apps\\tstappviewneg.mbm" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstapp03.rls --- a/appfw/apparchitecture/tef/tstapp03.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstapp03.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,9 +26,9 @@ rls_string STRING_r_tstapp_view1_caption "V1 GE" rls_string STRING_r_tstapp_view2_caption "V2 GE" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view1_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view2_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view3_icon_file "\\resource\\apps\\tstappviewneg.xyz" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view1_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view2_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view3_icon_file "z:\\resource\\apps\\tstappviewneg.xyz" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstapp04.rls --- a/appfw/apparchitecture/tef/tstapp04.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstapp04.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,9 +26,9 @@ rls_string STRING_r_tstapp_view1_caption "V1 SP" rls_string STRING_r_tstapp_view2_caption "V2 SP" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view1_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view2_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view3_icon_file "\\resource\\apps\\tstappviewneg.xyz" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view1_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view2_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view3_icon_file "z:\\resource\\apps\\tstappviewneg.xyz" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstapp05.rls --- a/appfw/apparchitecture/tef/tstapp05.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstapp05.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,9 +26,9 @@ rls_string STRING_r_tstapp_view1_caption "V1 IT" rls_string STRING_r_tstapp_view2_caption "V2 IT" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view1_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view2_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view3_icon_file "\\resource\\apps\\tstappviewneg.xyz" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view1_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view2_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view3_icon_file "z:\\resource\\apps\\tstappviewneg.xyz" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tstappsc.rls --- a/appfw/apparchitecture/tef/tstappsc.rls Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tstappsc.rls Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -26,6 +26,6 @@ rls_string STRING_r_tstapp_view1_caption "V1 SC" rls_string STRING_r_tstapp_view2_caption "V2 SC" -rls_string STRING_r_tstapp_icon_file "\\resource\\apps\\tstapp.mbm" -rls_string STRING_r_tstapp_view_icon_file "\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_icon_file "z:\\resource\\apps\\tstapp.mbm" +rls_string STRING_r_tstapp_view_icon_file "z:\\resource\\apps\\tstapp.mbm" diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/tupgradeiconapp/tupgradeiconapp.mmp --- a/appfw/apparchitecture/tef/tupgradeiconapp/tupgradeiconapp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/tupgradeiconapp/tupgradeiconapp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-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" @@ -39,13 +39,13 @@ SOURCEPATH . RESOURCE tupgradeiconapp.rss START RESOURCE tupgradeiconapp.rss -TARGETPATH /apparctestregfiles +TARGETPATH /resource/apps LANG SC END SOURCEPATH . START RESOURCE tupgradeiconapp_reg.rss -TARGETPATH /apparctestregfiles +TARGETPATH /private/10003a3f/apps END diff -r 924385140d98 -r c2c61fdca848 appfw/apparchitecture/tef/zerosizedicontestapp.mmp --- a/appfw/apparchitecture/tef/zerosizedicontestapp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/appfw/apparchitecture/tef/zerosizedicontestapp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1999-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" @@ -14,8 +14,6 @@ // zerosizedicontestapp.mmp // -#include - target zerosizedicontestapp.exe TARGETTYPE exe @@ -26,11 +24,8 @@ SOURCEPATH . SOURCE zerosizedicontestapp.cpp +USERINCLUDE . MW_LAYER_SYSTEMINCLUDE_SYMBIAN -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -USERINCLUDE . -MW_LAYER_SYSTEMINCLUDE -SYSTEMINCLUDE /epoc32/include/techview // Application exe specific resource which is localised to the application RESOURCE zerosizedicon_loc.rss diff -r 924385140d98 -r c2c61fdca848 applaunchservices/applaunchplugins/test/tapstart/group/apstarttest_apstart.iby --- a/applaunchservices/applaunchplugins/test/tapstart/group/apstarttest_apstart.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/applaunchservices/applaunchplugins/test/tapstart/group/apstarttest_apstart.iby Wed Sep 01 12:24:48 2010 +0100 @@ -21,9 +21,9 @@ data=ABI_DIR\BUILD_DIR\tapstart_server.exe sys\bin\tapstart_server.exe -//data=DATAZ_\apstarttest\apstarttest_apstart_run.bat \apstarttest_apstart_run.bat +data=DATAZ_\apstarttest\apstarttest_apstart_run.bat \apstarttest_apstart_run.bat -//data=DATAZ_\apstarttest\apstarttest_apstart.script \apstarttest\apstarttest_apstart.script +data=DATAZ_\apstarttest\apstarttest_apstart.script \apstarttest\apstarttest_apstart.script #endif diff -r 924385140d98 -r c2c61fdca848 applaunchservices/applaunchplugins/test/tapstart/group/apstarttest_apstart.pkg --- a/applaunchservices/applaunchplugins/test/tapstart/group/apstarttest_apstart.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +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: -; - -;Languages -&EN - - -;Localised Vendor name -%{"apstarttest_apstart.pkg EN"} - -; Vendor name -: "apstarttest_apstart" - - -"\epoc32\data\z\apstarttest\apstarttest_apstart_run.bat"-"c:\apstarttest_apstart_run.bat" -"\epoc32\data\z\apstarttest\apstarttest_apstart.script"-"c:\apstarttest\apstarttest_apstart.script" diff -r 924385140d98 -r c2c61fdca848 appsupport.pro --- a/appsupport.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -# -# Copyright (c) 2010 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: Project file for building phonesrv components -# -# - -TEMPLATE = subdirs -CONFIG += ordered - -symbian: { -:BLD_INF_RULES.prj_mmpfiles += $$LITERAL_HASH"include \"group/bld.inf\"" -SUBDIRS += coreapplicationuis\devicepowermenuplugin -SUBDIRS += systemsettings\accindicatorplugin -SUBDIRS += systemsettings\accindicatorplugin\accindicatorsettings -SUBDIRS += coreapplicationuis\powersaveutilities -SUBDIRS += coreapplicationuis\Rfs\Plugins\cprfsplugin -SUBDIRS += coreapplicationuis\hbdeviceinputdialogplugin -} diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/action_plugin_api/inc/CFActionPlugin.h --- a/appsupport_plat/action_plugin_api/inc/CFActionPlugin.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/action_plugin_api/inc/CFActionPlugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -23,7 +23,7 @@ #include #include -#include +#include class CCFActionPlugInImpl; class CCFActionIndication; diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/context_framework_services_api/inc/CFActionIndication.h --- a/appsupport_plat/context_framework_services_api/inc/CFActionIndication.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/context_framework_services_api/inc/CFActionIndication.h Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #define C_CFACTIONINDICATION_H #include -#include +#include /** * Encapsulates inside an action indication. Action indication consists of diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/context_source_plugin_api/inc/CFContextSourcePlugIn.h --- a/appsupport_plat/context_source_plugin_api/inc/CFContextSourcePlugIn.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/context_source_plugin_api/inc/CFContextSourcePlugIn.h Wed Sep 01 12:24:48 2010 +0100 @@ -22,7 +22,7 @@ #include -#include +#include class MCFContextInterface; class MCFContextSourceSetting; diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/oom_monitor_api/inc/oommonitor.h --- a/appsupport_plat/oom_monitor_api/inc/oommonitor.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/oom_monitor_api/inc/oommonitor.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -27,4 +27,4 @@ */ IMPORT_C void CreateOOMWatcherThreadL(); -#endif // OOMMONITOR_H +#endif // OOMMONITOR_H \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/oom_monitor_api/inc/oommonitorsession.h --- a/appsupport_plat/oom_monitor_api/inc/oommonitorsession.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/oom_monitor_api/inc/oommonitorsession.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -68,7 +68,7 @@ IMPORT_C TInt Connect(); /** - * Request that the OOM monitor attempts to free some paged memory. + * Request that the OOM monitor attempts to free some memory. * This function may take several seconds to execute, depending on * the memory state. It will not return until the attempt to recover * memory has completed. @@ -80,8 +80,8 @@ IMPORT_C TInt RequestFreeMemory(TInt aBytesRequested); /** - * Request that the OOM monitor attempts to free some paged memory. - * This is an asynchronous version of the request for free paged memory. + * Request that the OOM monitor attempts to free some memory. + * This is an asynchronous version of the request for free memory. * @param aBytesRequested The number of bytes of free memory that the client requests. * @param aStatus will be completed when the attempt to recover memory * has finished. This may take several seconds, depending on diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.h --- a/appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -78,6 +78,16 @@ * between low and good memory states. */ virtual void MemoryGood() = 0; + + /** + * Function: AppId + * The function return the UID3 of the process which implements the plugin + * By default, the Null UID [KNullUid] is returned. + * The plugin can override this API with their own implementation. + * COomMonitorPlugin monitor plugins + * @return the UID3 the application which implements the plugin + */ + virtual const TUid AppId() const; public: /** @@ -174,6 +184,16 @@ public: IMPORT_C static CAppOomMonitorPlugin* NewL(TUid aAppUid); + /** + * Function: AppId + * The function return the UID3 of the process which implements the plugin + * By default, the Null UID [KNullUid] is returned. + * The plugin can override this API with their own implementation. + * COomMonitorPlugin monitor plugins + * @return the UID3 the application which implements the plugin + */ + const TUid AppId() const; + private: CAppOomMonitorPlugin(TUid aAppUid); diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.hrh --- a/appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.hrh Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/oom_monitor_plugin_api/inc/oommonitorplugin.hrh Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/restore_factory_settings_api/inc/rfsHandler.h --- a/appsupport_plat/restore_factory_settings_api/inc/rfsHandler.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/restore_factory_settings_api/inc/rfsHandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -41,11 +41,12 @@ // FORWARD DECLARATIONS +class CAknQueryDialog; +class CAknInformationNote; class CEikonEnv; class CSecurityHandler; class CRfsSecurityHandler; class CRfsPdpObserver; -class CHbDeviceMessageBoxSymbian; // CLASS DECLARATION @@ -163,7 +164,7 @@ TInt iFlags; // confirmation query - CHbDeviceMessageBoxSymbian* iQuery; + CAknQueryDialog* iQuery; // for security code query when using SecUI CSecurityHandler* iSecurityHandler; diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/secondary_display_accfw_api/group/bld.inf --- a/appsupport_plat/secondary_display_accfw_api/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/secondary_display_accfw_api/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -24,4 +24,4 @@ PRJ_EXPORTS -../inc/secondarydisplay/SecondaryDisplayAccFwAPI.h MW_LAYER_PLATFORM_EXPORT_PATH(SecondaryDisplay/SecondaryDisplayAccFwAPI.h) +../inc/secondarydisplay/SecondaryDisplayAccFwAPI.h MW_LAYER_PLATFORM_EXPORT_PATH(secondarydisplay/SecondaryDisplayAccFwAPI.h) diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/secondary_display_sysap_api/group/bld.inf --- a/appsupport_plat/secondary_display_sysap_api/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/secondary_display_sysap_api/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -24,4 +24,4 @@ PRJ_EXPORTS -../inc/secondarydisplay/SecondaryDisplaySysApAPI.h MW_LAYER_PLATFORM_EXPORT_PATH(SecondaryDisplay/SecondaryDisplaySysApAPI.h) +../inc/secondarydisplay/SecondaryDisplaySysApAPI.h MW_LAYER_PLATFORM_EXPORT_PATH(secondarydisplay/SecondaryDisplaySysApAPI.h) diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/startup_configuration_api/inc/startupdomaincrkeys.h --- a/appsupport_plat/startup_configuration_api/inc/startupdomaincrkeys.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/startup_configuration_api/inc/startupdomaincrkeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -263,13 +263,6 @@ */ const TUint32 KStartupDefaultTime = 0x00000016; -/** - * Enables or disables the FTU StartupSequence. This key is modified by ftu when user accepts the eterms - * Possible values true or false - */ -const TUint32 KFtuStartupEnabled = 0x0000001A; - - #endif // STARTUPDOMAINCRKEYS_H // End of File diff -r 924385140d98 -r c2c61fdca848 appsupport_plat/system_application_notification_api/inc/coreapplicationuisdomainpskeys.h --- a/appsupport_plat/system_application_notification_api/inc/coreapplicationuisdomainpskeys.h Tue Aug 31 15:24:25 2010 +0300 +++ b/appsupport_plat/system_application_notification_api/inc/coreapplicationuisdomainpskeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 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" @@ -215,19 +215,6 @@ ECoreAppUIsVideoSharingIndicatorOff, ECoreAppUIsVideoSharingIndicatorOn }; - -/** -* Used for notifying SysAp for releasing memory of power menu custom dialog -*/ -const TUint32 KCoreAppUIsPowerMenuCustomDialogStatus= 0x00000207; -enum TCoreAppUIsPowerMenuCustomDialog - { - ECoreAppUIsPowerMenuCustomDialogUninitialized = 0, - ECoreAppUIsPowerMenuCustomDialogOff, - ECoreAppUIsPowerMenuCustomDialogOn, - ECoreAppUIsMemoryCardCustomDialogOk, - ECoreAppUIsMemoryCardCustomDialogCancel - }; // ============================================================================= // Contacts Database Recovery Status API @@ -345,4 +332,31 @@ ECoreAppUIsProfileActivatedNoteShown = 1 }; + + +// ============================================================================= +// GAN Mode API +// ============================================================================= + +// Use TUid KPSUidCoreApplicationUIs = { 0x101F8767 } + +const TUint32 KCoreAppUIsGanPropertyGanMode = 0x00000601; + +/** GANmode (actual network mode) */ +enum TCoreAppUIsGanMode + { + EGanModeUnspecified = 0, // We are not aware of MS GAN/GERAN state + EGanModeGAN = 1, // MS is in GAN + EGanModeGeran = 2 // MS is in GERAN + }; + + +// ============================================================================= +// GAN Signal strength +// ============================================================================= + +// Use TUid KPSUidCoreApplicationUIs = { 0x101F8767 } + +const TUint32 KCoreAppUIsGanPropertySignalLevel = 0x00000602; + #endif // COREAPPLICATIONUISDOMAINPSKEYS_H diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Client/Source/ASCliSession.cpp --- a/commonappservices/alarmserver/Client/Source/ASCliSession.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/commonappservices/alarmserver/Client/Source/ASCliSession.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -65,7 +65,7 @@ TInt startupAttempts = KNumberOfServerStartupAttempts; for(;;) { - TInt ret = CreateSession(ASCliDefinitions::ServerAndThreadName(), ASCliDefinitions::Version(), KAlarmServerAsynchronousSlotCount); + TInt ret = CreateSession(ASCliDefinitions::ServerAndThreadName(), ASCliDefinitions::Version()); if (ret != KErrNotFound && ret != KErrServerTerminated) { diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Group/TEF_AlarmServerCIT.pkg --- a/commonappservices/alarmserver/Group/TEF_AlarmServerCIT.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +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: -; - -;Languages -&EN - - -;Localised Vendor name -%{"TEF_AlarmServerCIT.pkg EN"} - -; Vendor name -: "TEF_AlarmServerCIT" - - -"\epoc32\data\C\CITAlarmServer\scripts\TestCITAlarmServer.script"-"c:\CITAlarmServer\scripts\TestCITAlarmServer.script" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Group/alarmserverunittestserver.pkg --- a/commonappservices/alarmserver/Group/alarmserverunittestserver.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +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: -; - -;Languages -&EN - - -;Localised Vendor name -%{"alarmserverunittestserver.pkg EN"} - -; Vendor name -: "alarmserverunittestserver" - -"\epoc32\data\z\testdata\scripts\TEAlarmServer.script"-"c:\testdata\scripts\TEAlarmServer.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_loop.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_man.script"-"c:\testdata\scripts\TEAlarmServer_man.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_man_TC3.script"-"c:\testdata\scripts\TEAlarmServer_man_TC3.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_man_exceptTC3.script"-"c:\testdata\scripts\TEAlarmServer_man_exceptTC3.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_repeat.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_stop.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_disabled.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_disordered.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_ini.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_invalid.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_apc_norsc.script"-"c:\testdata\scripts\TEAlarmServer_apc.script" -"\epoc32\data\z\testdata\scripts\TEAlarmServer_man_exceptTC3.script"-"c:\testdata\scripts\TEAlarmServer_man.script" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp --- a/commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/commonappservices/alarmserver/Server/Source/ASSrvAlarmQueue.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -96,7 +96,7 @@ iASSrvDSTChange = CASSrvDSTChange::NewL(*this); #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT - User::LeaveIfError(iSsmRtcAdaptation.Connect()); + iSsmRtcAdaptation.Connect(); // Notify the listeners of 'KWakeupAlarmPubSubKey' key that the alarm queue is yet to be internalized // by Alarm Server on its start-up at the device boot time. RProperty::Define(KAlarmServerPubSubCategory, KWakeupAlarmPubSubKey, RProperty::EInt, KReadPolicy, KWritePolicy); diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Server/Source/assrvsystemstate.cpp --- a/commonappservices/alarmserver/Server/Source/assrvsystemstate.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/commonappservices/alarmserver/Server/Source/assrvsystemstate.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 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" @@ -142,7 +142,7 @@ aState = MASSrvSystemStateObserver::EShutdown; interestedInChange = ETrue; } - else if (ssmState.MainState() == ESsmNormal && ssmState.SubState() == ESsmNormalSubState) + else if (ssmState.MainState() == ESsmNormal) { aState = MASSrvSystemStateObserver::ENormal; interestedInChange = ETrue; diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Test/Integration/AlarmTestServer/doc_pub/SGL.GT0257.603_AlarmServer updatesTest Specification.doc Binary file commonappservices/alarmserver/Test/Integration/AlarmTestServer/doc_pub/SGL.GT0257.603_AlarmServer updatesTest Specification.doc has changed diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Test/Integration/TestCITAlarmServer/doc_pub/SGL.GT0257.612.Bravo_SystemSupportForUTC_Test_Case_PREQ234 Rev1.0.doc Binary file commonappservices/alarmserver/Test/Integration/TestCITAlarmServer/doc_pub/SGL.GT0257.612.Bravo_SystemSupportForUTC_Test_Case_PREQ234 Rev1.0.doc has changed diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/Test/Integration/TestCITAlarmServer/group/TEF_AlarmServerCIT.pkg --- a/commonappservices/alarmserver/Test/Integration/TestCITAlarmServer/group/TEF_AlarmServerCIT.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +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: -; - -;Languages -&EN - - -;Localised Vendor name -%{"TEF_AlarmServerCIT.pkg EN"} - -; Vendor name -: "TEF_AlarmServerCIT" - - -"\epoc32\data\C\CITAlarmServer\scripts\TestCITAlarmServer.script"-"c:\CITAlarmServer\scripts\TestCITAlarmServer.script" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 commonappservices/alarmserver/doc_pub/alarm server test code.doc Binary file commonappservices/alarmserver/doc_pub/alarm server test code.doc has changed diff -r 924385140d98 -r c2c61fdca848 commonappservices/coreappstest/Group/BLD.INF --- a/commonappservices/coreappstest/Group/BLD.INF Tue Aug 31 15:24:25 2010 +0300 +++ b/commonappservices/coreappstest/Group/BLD.INF Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-2010 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" @@ -25,11 +25,7 @@ PRJ_TESTEXPORTS CoreAppsTestTest.iby /epoc32/rom/include/coreappstesttest.iby -#ifdef SYMBIAN_OLD_EXPORT_LOCATION -../Inc/TestServer.h /epoc32/include/coreappstest/testserver.h -#endif -#ifdef SYMBIAN_OLD_EXPORT_LOCATION -../Inc/utilities.h /epoc32/include/coreappstest/utilities.h -#endif +../Inc/testserver.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(coreappstest/testserver.h) +../Inc/utilities.h SYMBIAN_MW_LAYER_PLATFORM_EXPORT_PATH(coreappstest/utilities.h) CoreAppsTest.iby /epoc32/rom/include/coreappstest.iby runeshell.iby /epoc32/rom/include/runeshell.iby diff -r 924385140d98 -r c2c61fdca848 commonappservices/doc_pub/SGL.GT228.017_Migration Guide for v9.1 Time Handling APIs.doc Binary file commonappservices/doc_pub/SGL.GT228.017_Migration Guide for v9.1 Time Handling APIs.doc has changed diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/Test/Group/t_ebookmark.mmp --- a/contenthandling/webrecognisers/Test/Group/t_ebookmark.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contenthandling/webrecognisers/Test/Group/t_ebookmark.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -13,8 +13,6 @@ // Description: // -#include - TARGET t_ebookmark.dll TARGETTYPE plugin CAPABILITY protserv @@ -29,13 +27,14 @@ USERINCLUDE . ../t_recogtest #ifdef SYMBIAN_OLD_EXPORT_LOCATION -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/ecom #else OS_LAYER_SYSTEMINCLUDE_SYMBIAN SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/platform/ecom -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform/mw #endif diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/Test/Group/t_recogtest.mmp --- a/contenthandling/webrecognisers/Test/Group/t_recogtest.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contenthandling/webrecognisers/Test/Group/t_recogtest.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -13,8 +13,6 @@ // Description: // -#include - TARGET t_recogtest.exe TARGETTYPE exe CAPABILITY ProtServ @@ -25,13 +23,14 @@ USERINCLUDE . #ifdef SYMBIAN_OLD_EXPORT_LOCATION -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/ecom #else OS_LAYER_SYSTEMINCLUDE_SYMBIAN SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/platform/ecom -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform/mw #endif LIBRARY euser.lib ecom.lib diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/Test/Group/t_recwap.mmp --- a/contenthandling/webrecognisers/Test/Group/t_recwap.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contenthandling/webrecognisers/Test/Group/t_recwap.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-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" @@ -13,8 +13,6 @@ // Description: // -#include - TARGET t_recwap.dll TARGETTYPE plugin CAPABILITY protserv @@ -29,13 +27,14 @@ USERINCLUDE . ../t_recogtest #ifdef SYMBIAN_OLD_EXPORT_LOCATION -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/ecom #else OS_LAYER_SYSTEMINCLUDE_SYMBIAN SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/platform/ecom -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform/mw #endif diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/Test/Group/t_recweb.mmp --- a/contenthandling/webrecognisers/Test/Group/t_recweb.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contenthandling/webrecognisers/Test/Group/t_recweb.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -13,8 +13,6 @@ // Description: // -#include - TARGET t_recweb.dll TARGETTYPE plugin CAPABILITY protserv @@ -29,13 +27,14 @@ USERINCLUDE . ../t_recogtest #ifdef SYMBIAN_OLD_EXPORT_LOCATION -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/ecom #else OS_LAYER_SYSTEMINCLUDE_SYMBIAN SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/platform/ecom -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform/mw #endif diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/Test/Group/t_weburlrec.mmp --- a/contenthandling/webrecognisers/Test/Group/t_weburlrec.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contenthandling/webrecognisers/Test/Group/t_weburlrec.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2003-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" @@ -13,8 +13,6 @@ // Description: // -#include - TARGET t_weburlrec.dll TARGETTYPE plugin CAPABILITY protserv @@ -29,13 +27,14 @@ USERINCLUDE . ../t_recogtest #ifdef SYMBIAN_OLD_EXPORT_LOCATION -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include SYSTEMINCLUDE /epoc32/include/ecom #else OS_LAYER_SYSTEMINCLUDE_SYMBIAN SYSTEMINCLUDE /epoc32/include/ecom SYSTEMINCLUDE /epoc32/include/platform/ecom -MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/mw +SYSTEMINCLUDE /epoc32/include/platform/mw #endif diff -r 924385140d98 -r c2c61fdca848 contenthandling/webrecognisers/doc_pub/Recogniser Test Specifications.doc Binary file contenthandling/webrecognisers/doc_pub/Recogniser Test Specifications.doc has changed diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/bld.inf --- a/contextframework/cfw/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -32,9 +32,9 @@ ../conf/contextframework_10282BCE.crml MW_LAYER_CRML(contextframework_10282BCE.crml) ../conf/contextframework_200159ED.crml MW_LAYER_CRML(contextframework_200159ED.crml) -../data/backup_registration.xml /epoc32/data/z/private/10282bc4/backup_registration.xml -../data/backup_registration.xml /epoc32/release/winscw/udeb/z/private/10282bc4/backup_registration.xml -../data/backup_registration.xml /epoc32/release/winscw/urel/z/private/10282bc4/backup_registration.xml +../data/backup_registration.xml /epoc32/data/Z/private/10282BC4/backup_registration.xml +../data/backup_registration.xml /epoc32/release/winscw/UDEB/Z/private/10282BC4/backup_registration.xml +../data/backup_registration.xml /epoc32/release/winscw/UREL/Z/private/10282BC4/backup_registration.xml #ifdef RD_CONTEXT_FRAMEWORK ../rom/ContextFramework.iby CORE_MW_LAYER_IBY_EXPORT_PATH(ContextFramework.iby) diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfactivatorengine.mmp --- a/contextframework/cfw/group/cfactivatorengine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfactivatorengine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfactivatorengine.dll +TARGET CFActivatorEngine.dll TARGETTYPE dll UID 0x1000008d 0x10282BC6 diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfclient.mmp --- a/contextframework/cfw/group/cfclient.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfclient.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfclient.dll +TARGET CFClient.dll TARGETTYPE dll UID 0x1000008d 0x10282BC3 diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfcontextsourcemanager.mmp --- a/contextframework/cfw/group/cfcontextsourcemanager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfcontextsourcemanager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfcontextsourcemanager.dll +TARGET CFContextSourceManager.dll TARGETTYPE dll UID 0x1000008d 0x10282BCB diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfcontextsourcesettingsmanager.mmp --- a/contextframework/cfw/group/cfcontextsourcesettingsmanager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfcontextsourcesettingsmanager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfcontextsourcesettingsmanager.dll +TARGET CFContextSourceSettingsManager.dll TARGETTYPE dll UID 0x1000008d 0x10282ED9 diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfscriptengine.mmp --- a/contextframework/cfw/group/cfscriptengine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfscriptengine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfscriptengine.dll +TARGET CFScriptEngine.dll TARGETTYPE dll UID 0x1000008d 0x10282BC7 EPOCSTACKSIZE 20480 @@ -54,7 +54,7 @@ LIBRARY cfservices.lib LIBRARY cfoperationpluginservices.lib LIBRARY ecom.lib -LIBRARY platformenv.lib +LIBRARY PlatformEnv.lib #ifdef TRACE_INTO_FILE LIBRARY flogger.lib #endif diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfserver.mmp --- a/contextframework/cfw/group/cfserver.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfserver.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfserver.exe +TARGET CFServer.exe TARGETTYPE exe UID 0 0x10282BC4 diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/group/cfservices.mmp --- a/contextframework/cfw/group/cfservices.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/group/cfservices.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/common/cftraceconfiguration.hrh" -TARGET cfservices.dll +TARGET CFServices.dll TARGETTYPE dll UID 0x1000008d 0x10282BC5 diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/src/cfclient/cfcontextservice.cpp --- a/contextframework/cfw/src/cfclient/cfcontextservice.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/src/cfclient/cfcontextservice.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008-2010 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" @@ -291,7 +291,7 @@ TInt err = KErrNone; // Stream context query set into buffer - HBufC8* buffer = buffer = WriteStreamContextQueryLC( aContextQuery ); + HBufC8* buffer = WriteStreamContextQueryLC( aContextQuery ); HBufC8* resultBuffer = HBufC8::NewLC( iRequestBufferSize ); TPtr8 resultBufferPtr = resultBuffer->Des(); TPckg bufferSizePtr( iRequestBufferSize ); diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/src/cfscriptengine/cfpersistentdata.cpp --- a/contextframework/cfw/src/cfscriptengine/cfpersistentdata.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/src/cfscriptengine/cfpersistentdata.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -183,7 +183,7 @@ { FUNC_LOG; - for (TInt i = iPendingTasks.Count(); i > 0; i--) + for (TInt i = iPendingTasks.Count()-1; i >= 0; i--) { CCFPendingPersistencyTask* iTask = iPendingTasks[i]; if ( iTask->Mode() == CCFPendingPersistencyTask::EStore ) diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/src/cfserver/cfphasebase.cpp --- a/contextframework/cfw/src/cfserver/cfphasebase.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/src/cfserver/cfphasebase.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -95,8 +95,10 @@ FUNC_LOG; __ASSERT_DEBUG( iStarterRequest, Panic( ENoRequestToComplete ) ); - - User::RequestComplete( iStarterRequest, KErrCancel ); + if ( iStarterRequest ) + { + User::RequestComplete( iStarterRequest, KErrCancel ); + } } //----------------------------------------------------------------------------- diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_BasicOperationsPlugIn/mt_basicoperationsplugin.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_BasicOperationsPlugIn/mt_basicoperationsplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_BasicOperationsPlugIn/mt_basicoperationsplugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -35,6 +35,7 @@ #include "CFTestDelay.h" #include "cffakeenv.h" #include "ScriptEventNotifierSession.h" +#include "cfenvutils.h" // CONSTANTS @@ -65,6 +66,8 @@ // Destructor (virtual by CBase) mt_basicoperationsplugin::~mt_basicoperationsplugin() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -78,6 +81,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_CFClient/MT_CFClient.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_CFClient/MT_CFClient.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_CFClient/MT_CFClient.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -37,6 +37,7 @@ #include "testcontextsourceplugin.h" #include "testcontextsourcepluginconst.hrh" #include "CFTestDelay.h" +#include "cfenvutils.h" // CONSTANTS @@ -305,6 +306,9 @@ MT_CFClient::~MT_CFClient( ) { Teardown(); + + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -318,6 +322,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL ( ); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_CFContextSourceManager/MT_CFContextSourceManager.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_CFContextSourceManager/MT_CFContextSourceManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_CFContextSourceManager/MT_CFContextSourceManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -30,6 +30,7 @@ #include "cfcontextsourcesettingarray.h" #include "testcontextsourceplugin.h" +#include "cfenvutils.h" // CONSTANTS @@ -102,6 +103,9 @@ MT_CFContextSourceManager::~MT_CFContextSourceManager() { Teardown(); + + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -115,6 +119,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_CFContextSourceSettingsManager/MT_CFContextSourceSettingsManager.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_CFContextSourceSettingsManager/MT_CFContextSourceSettingsManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_CFContextSourceSettingsManager/MT_CFContextSourceSettingsManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -27,6 +27,7 @@ #include #include +#include "cfenvutils.h" // INTERNAL INCLUDES @@ -66,6 +67,9 @@ MT_CFContextSourceSettingsManager::~MT_CFContextSourceSettingsManager() { Teardown(); + + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -79,6 +83,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_CFOperationPluginManager/MT_CFOperationPluginManager.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_CFOperationPluginManager/MT_CFOperationPluginManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_CFOperationPluginManager/MT_CFOperationPluginManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -27,6 +27,7 @@ // INTERNAL INCLUDES #include "cfscripthandler.h" +#include "cfenvutils.h" // CONSTRUCTION MT_CFOperationPluginManager* MT_CFOperationPluginManager::NewL() @@ -50,6 +51,8 @@ // Destructor (virtual by CBase) MT_CFOperationPluginManager::~MT_CFOperationPluginManager() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -63,6 +66,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/MT_CFScriptEngine/MT_CFScriptEngine.cpp --- a/contextframework/cfw/tsrc/public/basic/MT_CFScriptEngine/MT_CFScriptEngine.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/MT_CFScriptEngine/MT_CFScriptEngine.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -36,6 +36,7 @@ #include "ScriptEventNotifierSession.h" #include "basicoperationspluginconst.hrh" #include "cfcommon.h" +#include "cfenvutils.h" // CONSTANTS @@ -67,6 +68,8 @@ // Destructor (virtual by CBase) MT_CFScriptEngine::~MT_CFScriptEngine() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -80,6 +83,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CCFContextManager/UT_CCFContextManager.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CCFContextManager/UT_CCFContextManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CCFContextManager/UT_CCFContextManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -28,6 +28,7 @@ #include "CFContextIndication.h" #include "CFContextSubscription.h" #include "cfcontextobjectimpl.h" +#include "cfenvutils.h" // CONSTRUCTION @@ -52,6 +53,8 @@ // Destructor (virtual by CBase) UT_CCFContextManager::~UT_CCFContextManager() { + // ETrue screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -65,6 +68,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CCFEngine/UT_CCFEngine.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CCFEngine/UT_CCFEngine.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CCFEngine/UT_CCFEngine.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -30,6 +30,7 @@ #include "CFContextInterface.h" #include "CFContextSubscription.h" #include "CFContextIndication.h" +#include "cfenvutils.h" // CONSTANTS const TInt KSecond = 1000000; @@ -56,6 +57,8 @@ // Destructor (virtual by CBase) UT_CCFEngine::~UT_CCFEngine() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -69,6 +72,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CFActivatorEngine/UT_CFActivatorEngine.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -35,6 +35,7 @@ #include "cfactionindicationimpl.h" #include "cfactionsubscriptionimpl.h" #include "cfscriptevent.h" +#include "cfenvutils.h" #include "TestActionPluginConst.hrh" #include "cfactionpluginthread.h" @@ -96,6 +97,9 @@ UT_CFActivatorEngine::~UT_CFActivatorEngine() { Teardown(); + + // Enable screen saver again + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -108,7 +112,10 @@ { // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. - CEUnitTestSuiteClass::ConstructL(); + CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver since it is causing false memory leaks + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CFContextSourceManager/UT_CFContextSourceManager.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CFContextSourceManager/UT_CFContextSourceManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CFContextSourceManager/UT_CFContextSourceManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -28,6 +28,7 @@ // INTERNAL INCLUDES #include "CFContextSourcePlugIn.h" #include "CFContextSourceManager.h" +#include "cfenvutils.h" _LIT_SECURITY_POLICY_PASS( KPassSec ); @@ -53,6 +54,8 @@ // Destructor (virtual by CBase) UT_CFContextSourceManager::~UT_CFContextSourceManager() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -66,6 +69,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CFContextSourceSettingsManager/UT_CFContextSourceSettingsManager.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CFContextSourceSettingsManager/UT_CFContextSourceSettingsManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CFContextSourceSettingsManager/UT_CFContextSourceSettingsManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -29,6 +29,7 @@ #include "cfcontextsourcesettingparameterimpl.h" #include "cfcontextsourcesettingsmanagerimpl.h" #include "cfcontextsourcesettingarrayimpl.h" +#include "cfenvutils.h" // Cleans up RKeyValueArray instance LOCAL_C void CleanupKeyValueArray( TAny* aArray ) @@ -66,6 +67,9 @@ UT_CFContextSourceSettingsManager::~UT_CFContextSourceSettingsManager() { Teardown(); + + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -79,6 +83,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/UT_CFOperationPluginManager/UT_CFOperationPluginManager.cpp --- a/contextframework/cfw/tsrc/public/basic/UT_CFOperationPluginManager/UT_CFOperationPluginManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/UT_CFOperationPluginManager/UT_CFOperationPluginManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -26,6 +26,7 @@ // INTERNAL INCLUDES #include "cfoperationpluginmanager.h" +#include "cfenvutils.h" // CONSTRUCTION UT_CFOperationPluginManager* UT_CFOperationPluginManager::NewL() @@ -49,6 +50,8 @@ // Destructor (virtual by CBase) UT_CFOperationPluginManager::~UT_CFOperationPluginManager() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -62,6 +65,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/common/cfenvutils.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contextframework/cfw/tsrc/public/basic/common/cfenvutils.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2008-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". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CFEnvUtils class implamentation. +* +*/ + + +// SYSTEM INCLUDES +#include +#include +#include + +// USER INCLUDES +#include "cfenvutils.h" + +const TInt KScreenSaverNotAllowed = 666; +const TInt KScreenSaverAllowed = 0; + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor. +// --------------------------------------------------------------------------- +// +CFEnvUtils::CFEnvUtils ( ) + { + + } + +//------------------------------------------------------------------------------ +// CFEnvUtils::EnableScreenSaver +//------------------------------------------------------------------------------ +// +TInt CFEnvUtils::EnableScreenSaver( TBool& aWasEnabled, const TBool aEnable ) + { + TInt err( KErrNone ); + TInt val( KScreenSaverNotAllowed ); + + err = RProperty::Get( KPSUidScreenSaver, KScreenSaverAllowScreenSaver, val ); + EUNIT_PRINT( _L("Get screen saver mode: %d"), err ); + if( err == KErrNone ) + { + aWasEnabled = ( val != KScreenSaverAllowed ); + err = EnableScreenSaver( aEnable ); + } + + return err; + } + +//------------------------------------------------------------------------------ +// CFEnvUtils::EnableScreenSaver +//------------------------------------------------------------------------------ +// +TInt CFEnvUtils::EnableScreenSaver( const TBool aEnable ) + { + TInt err( KErrNone ); + + TInt val = 0; + if( aEnable ) + { + val = KScreenSaverAllowed; + } + else + { + val = KScreenSaverNotAllowed; + } + err = RProperty::Set( KPSUidScreenSaver, KScreenSaverAllowScreenSaver, val ); + EUNIT_PRINT( _L("Set screen saver mode: %d"), err ); + + User::ResetInactivityTime(); + + return err; + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/common/cfenvutils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contextframework/cfw/tsrc/public/basic/common/cfenvutils.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2008-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". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Environment utils. +* +*/ + + +#ifndef CFENVUTILS_H +#define CFENVUTILS_H + +// SYSTEM INCLUDE FILES +#include + +// USER INCLUDE FILES + +// FORWARD DECLARATIONS + +// DATA TYPES + +// CLASS DECLARATION + +/** + * Context FW environment utils. + * + * @lib None. + * @since S60 5.1 + */ +class CFEnvUtils + { +public: + + /** + * Enables / disbales screen saver. + * @param aWasEnabled Returns the current value of screen saver. + * @param aEnable Enable screen saver. + * @return TInt KErrNone if no errors. + */ + static TInt EnableScreenSaver( TBool& aWasEnabled, const TBool aEnable ); + + /** + * Enables / disbales screen saver. + * @param aEnable Enable screen saver. + * @return TInt KErrNone if no errors. + */ + static TInt EnableScreenSaver( const TBool aEnable ); + +private: + + /** + * C++ constructor. + */ + CFEnvUtils(); + +private: + // data + }; + +#endif // CFENVUTILS_H diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/MT_CFClient.mmp --- a/contextframework/cfw/tsrc/public/basic/group/MT_CFClient.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/MT_CFClient.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -33,6 +33,7 @@ SOURCEPATH ../common SOURCE cftestdelay.cpp +SOURCE cfenvutils.cpp USERINCLUDE ../MT_CFClient USERINCLUDE ../common diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -30,6 +30,8 @@ SOURCE MT_CFContextSourceManagerDllMain.cpp SOURCE MT_CFContextSourceManager.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp USERINCLUDE ../common USERINCLUDE ../MT_CFContextSourceManager diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceSettingsManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceSettingsManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/MT_CFContextSourceSettingsManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -30,6 +30,9 @@ SOURCE MT_CFContextSourceSettingsManagerDllMain.cpp SOURCE MT_CFContextSourceSettingsManager.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + USERINCLUDE ../common USERINCLUDE ../MT_CFContextSourceSettingsManager USERINCLUDE ../../../../inc/CFContextSourceSettingsManager diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/MT_CFOperationPluginManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/MT_CFOperationPluginManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/MT_CFOperationPluginManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -29,6 +29,9 @@ SOURCE MT_CFOperationPluginManager.cpp SOURCE MT_CFOperationPluginManager_DllMain.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + USERINCLUDE ../MT_CFOperationPluginManager USERINCLUDE ../common USERINCLUDE ../../../../inc/common diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/MT_CFScriptEngine.mmp --- a/contextframework/cfw/tsrc/public/basic/group/MT_CFScriptEngine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/MT_CFScriptEngine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -34,6 +34,7 @@ SOURCE cffakeenv.cpp SOURCE CFTestDelay.cpp SOURCE ScriptEventNotifierSession.cpp +SOURCE cfenvutils.cpp // Sources needed by the test SOURCEPATH ../../../../src/cfserver diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CCFContextManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CCFContextManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CCFContextManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -36,6 +36,9 @@ SOURCE CFUtils.cpp SOURCE CFCacheElement.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + USERINCLUDE ../../../../inc/cfserver USERINCLUDE ../../../../inc/cfservices USERINCLUDE ../../../../inc/common diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CCFEngine.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CCFEngine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CCFEngine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -31,6 +31,7 @@ SOURCE cftestcontextlistener.cpp SOURCEPATH ../common +SOURCE cfenvutils.cpp SOURCE cftestdelay.cpp // Sources needed by the test diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CFActivatorEngine.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CFActivatorEngine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CFActivatorEngine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -30,6 +30,9 @@ SOURCE UT_CFActivatorEngineDllMain.cpp SOURCE UT_CFActivatorEngine.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + // Sources needed by the test SOURCEPATH ../../../../src/cfactivatorengine SOURCE CFActivatorEngineActionPluginManager.cpp diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -30,6 +30,9 @@ SOURCE UT_CFContextSourceManagerDllMain.cpp SOURCE UT_CFContextSourceManager.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + // Sources needed by the test SOURCEPATH ../../../../src/cfcontextsourcemanager SOURCE CFContextSourceManager.cpp diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceSettingsManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceSettingsManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CFContextSourceSettingsManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -29,6 +29,9 @@ SOURCEPATH ../UT_CFContextSourceSettingsManager SOURCE UT_CFContextSourceSettingsManagerDllMain.cpp SOURCE UT_CFContextSourceSettingsManager.cpp + +SOURCEPATH ../common +SOURCE cfenvutils.cpp // Sources needed by the test SOURCEPATH ../../../../src/CFContextSourceSettingsManager diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/UT_CFOperationPluginManager.mmp --- a/contextframework/cfw/tsrc/public/basic/group/UT_CFOperationPluginManager.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/UT_CFOperationPluginManager.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -29,6 +29,9 @@ SOURCE UT_CFOperationPluginManager.cpp SOURCE UT_CFOperationPluginManager_DllMain.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + // Sources required by the test suite SOURCEPATH ../../../../src/cfoperationpluginservices SOURCE cfoperationpluginmanager.cpp diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/mt_basicoperationsplugin.mmp --- a/contextframework/cfw/tsrc/public/basic/group/mt_basicoperationsplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/mt_basicoperationsplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -33,6 +33,7 @@ SOURCE cffakeenv.cpp SOURCE CFTestDelay.cpp SOURCE ScriptEventNotifierSession.cpp +SOURCE cfenvutils.cpp // Sources needed by the test SOURCEPATH ../../../../../cfw/src/cfserver diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/mt_cfactionplugin.mmp --- a/contextframework/cfw/tsrc/public/basic/group/mt_cfactionplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/mt_cfactionplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -29,6 +29,9 @@ SOURCE MT_CFActionPlugIn.cpp SOURCE MT_CFActionPlugIn_DllMain.cpp +SOURCEPATH ../common +SOURCE cfenvutils.cpp + USERINCLUDE ../mt_cfactionplugin USERINCLUDE ../common diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/mt_cfservices.mmp --- a/contextframework/cfw/tsrc/public/basic/group/mt_cfservices.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/mt_cfservices.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -29,6 +29,9 @@ SOURCEPATH ../mt_cfservices SOURCE mt_cfservicesdllmain.cpp SOURCE mt_cfservices.cpp + +SOURCEPATH ../common +SOURCE cfenvutils.cpp USERINCLUDE ../../../../inc/cfservices USERINCLUDE ../../../../inc/cfserver diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/group/mt_cfsisupgrade.mmp --- a/contextframework/cfw/tsrc/public/basic/group/mt_cfsisupgrade.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/group/mt_cfsisupgrade.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -30,6 +30,7 @@ SOURCEPATH ../common SOURCE cftestdelay.cpp +SOURCE cfenvutils.cpp // Sources required by the test suite SOURCEPATH ../mt_cfsisupgrade diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/mt_cfactionplugin/MT_CFActionPlugIn.cpp --- a/contextframework/cfw/tsrc/public/basic/mt_cfactionplugin/MT_CFActionPlugIn.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/mt_cfactionplugin/MT_CFActionPlugIn.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -27,6 +27,7 @@ // INTERNAL INCLUDES #include #include +#include "cfenvutils.h" // CONSTANTS const TUid KTestActionPluginImplementationUid = {0x10002003}; @@ -120,6 +121,8 @@ // Destructor (virtual by CBase) MT_CCFActionPlugIn::~MT_CCFActionPlugIn() { + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -133,6 +136,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/mt_cfservices/mt_cfservices.cpp --- a/contextframework/cfw/tsrc/public/basic/mt_cfservices/mt_cfservices.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/mt_cfservices/mt_cfservices.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2004 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" @@ -33,6 +33,7 @@ #include "CFKeyValuePair.h" #include "cfserviceutils.h" #include "cfcontextdataproxy.h" +#include "cfenvutils.h" // CONSTANTS _LIT( KKey, "Key_%d" ); @@ -72,6 +73,9 @@ MT_CFServices::~MT_CFServices() { Teardown(); + + // Enable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -85,6 +89,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfw/tsrc/public/basic/mt_cfsisupgrade/MT_CFSisUpgrade.cpp --- a/contextframework/cfw/tsrc/public/basic/mt_cfsisupgrade/MT_CFSisUpgrade.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfw/tsrc/public/basic/mt_cfsisupgrade/MT_CFSisUpgrade.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -42,6 +42,7 @@ #include "actiondef_v1.h" #include "actiondef_v2.h" #include "operation_v1.hrh" +#include "cfenvutils.h" // CONSTANTS const TInt KSecond = 1000000; @@ -68,6 +69,8 @@ // Destructor (virtual by CBase) MT_CFSisUpgrade::~MT_CFSisUpgrade() { + // Disable screen saver + CFEnvUtils::EnableScreenSaver( ETrue ); } // Default constructor @@ -81,6 +84,9 @@ // The ConstructL from the base class CEUnitTestSuiteClass must be called. // It generates the test case table. CEUnitTestSuiteClass::ConstructL(); + + // Disable screen saver + CFEnvUtils::EnableScreenSaver( EFalse ); } // METHODS diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/ApplicationStateSourcePlugIn/group/ApplicationStateSourcePlugIn.mmp --- a/contextframework/cfwplugins/ApplicationStateSourcePlugIn/group/ApplicationStateSourcePlugIn.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/ApplicationStateSourcePlugIn/group/ApplicationStateSourcePlugIn.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/ApplicationStateSourcePluginConst.hrh" -TARGET applicationstatesourceplugin.dll +TARGET ApplicationStateSourcePlugIn.dll TARGETTYPE PLUGIN UID 0x10009D8D KApplicationStateSourcePluginDllUid CAPABILITY CAP_ECOM_PLUGIN @@ -39,7 +39,7 @@ SOURCEPATH ../data START RESOURCE ApplicationStateSourcePlugIn.rss -TARGET applicationstatesourceplugin.rsc +TARGET ApplicationStateSourcePlugIn.rsc TARGETPATH /resource/plugins END diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/ApplicationStateSourcePlugin.h --- a/contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/ApplicationStateSourcePlugin.h Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/ApplicationStateSourcePlugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -29,7 +29,7 @@ #include #include #include -#include + #include #include "cfapplicationstatesettings.h" #include "uidorientationpair.h" @@ -37,22 +37,7 @@ // FORWARD DECLARATIONS class CRepository; class CCenRepNotifyHandler; -// FORWARD DECLARATIONS -class CWsEventHandler; -NONSHARABLE_CLASS( MWsEventObserver ) - { -public: - - /** - * Handles window server event. - * - * @since S60 5.0 - * @param aEvent New window server event. - * @return None. - */ - virtual void HandleWsEventL( RWsSession& aWsSession ) = 0; - }; // CLASS DECLARATION /** @@ -66,7 +51,7 @@ */ NONSHARABLE_CLASS( CApplicationStateSourcePlugIn ): public CCFContextSourcePlugIn, - public MWsEventObserver, + public MVwsSessionWrapperObserver, public MCenRepNotifyHandlerCallback { public: // Constructors and destructor @@ -91,7 +76,10 @@ // @see CCFContextSourcePlugIn void InitializeL(); +public: // From MVwsSessionWrapperObserver + // @see MVwsSessionWrapperObserver + void HandleViewEventL( const TVwsViewEvent& aEvent ); public: // From MCenRepNotifyHandlerCallback @@ -123,7 +111,7 @@ // Initialize the fg application context void InitializeFgApplicationL(); - void HandleWsEventL( RWsSession& aWsSession ); + // Handles the view server event void DoHandleViewEventL( const TVwsViewEvent& aEvent ); @@ -161,7 +149,7 @@ // Foreground application setting list RApplicationStateSettingsPointerArray iApplicationSettings; - CWsEventHandler* iWsEventHandler; + // Previous foreground application orientation TPtrC iPreviousOrientation; @@ -178,67 +166,5 @@ // KCRUidDefaultAppOrientation listener CCenRepNotifyHandler* iCRAppOrientationListener; }; -/** - * Listens events from window server and forwards them to observer. - */ -NONSHARABLE_CLASS( CWsEventHandler ): public CActive - { -public: - /** - * Symbian two phased constructors. - * - * @since S60 5.0 - * @param None. - * @return CDisplayServiceUILayout - */ - static CWsEventHandler* NewL( MWsEventObserver& aObserver ); - static CWsEventHandler* NewLC( MWsEventObserver& aObserver ); - - /** - * C++ destructor. - */ - virtual ~CWsEventHandler(); - -public: - - /** - * Start event listening. - * - * @since S60 5.0 - * @param None. - * @return None. - */ - void IssueRequest(); - -protected: - - // @see CActive - virtual void RunL(); - - // @see CActive - virtual void DoCancel(); - - // @see CActive - virtual TInt RunError( TInt aError ); - -private: - - CWsEventHandler( MWsEventObserver& aObserver ); - void ConstructL(); - -private: // Data - - /** Observer */ - MWsEventObserver& iObserver; - - /** Window server session */ - RWsSession iWsSession; - - /** Window group for receiving window server events */ - RWindowGroup* iWindowGroup; - - /** Window group name to hide it from the task manager */ - CApaWindowGroupName* iWindowGroupName; - }; #endif // C_APPLICATIONSTATESOURCEPLUGIN_H diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/cfapplicationstatesettings.h --- a/contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/cfapplicationstatesettings.h Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/ApplicationStateSourcePlugIn/inc/cfapplicationstatesettings.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 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" @@ -95,7 +95,7 @@ * is found. * @return None */ - void GetViewName( const TUid& aUid, TPtrC& aName ) const; + TBool GetViewName( const TUid& aUid, TPtrC& aName ) const; private: diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/ApplicationStateSourcePlugin.cpp --- a/contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/ApplicationStateSourcePlugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/ApplicationStateSourcePlugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-2010 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" @@ -26,7 +26,6 @@ #include #include #include -#include #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS #include #endif @@ -82,8 +81,7 @@ iDefaultAppName = KApplicationStateDefaultValue().AllocL(); iDefaultViewName = KApplicationStateDefaultValue().AllocL(); iContext = CCFContextObject::NewL(); - iWsEventHandler = CWsEventHandler::NewL( *this ); - iWsEventHandler->IssueRequest(); + } // ----------------------------------------------------------------------------- @@ -133,7 +131,7 @@ delete iCRAppOrientation; iApplicationSettings.ResetAndDestroy(); delete iSettings; - + delete iVws; delete iDefaultViewName; delete iDefaultAppName; delete iApplDefaultState; @@ -225,7 +223,8 @@ iSettings = NULL; } - + iVws = CVwsSessionWrapper::NewL( *this ); + iVws->NotifyNextActivation(); } // ----------------------------------------------------------------------------- @@ -352,7 +351,33 @@ } } +// ----------------------------------------------------------------------------- +// CApplicationStateSourcePlugIn::HandleViewEventL +// Maps view activations to contexts. +// ----------------------------------------------------------------------------- +// +void CApplicationStateSourcePlugIn::HandleViewEventL( + const TVwsViewEvent& aEvent ) + { + FUNC_LOG; + // Renew listening + iVws->NotifyNextActivation(); + + // Handle the view server event + DoHandleViewEventL( aEvent ); + + // Log event members! + INFO_1( "HandleViewEventL: eventType: [%d]", aEvent.iEventType ); + + INFO_2( "HandleViewEventL: viewOne [appUid:%S] [viewUid%S]", + &(const TDesC&)aEvent.iViewOneId.iAppUid.Name(), + &(const TDesC&)aEvent.iViewOneId.iViewUid.Name() ); + + INFO_2( "HandleViewEventL: viewTwo [appUid:%S] [viewUid%S]", + &(const TDesC&)aEvent.iViewTwoId.iAppUid.Name(), + &(const TDesC&)aEvent.iViewTwoId.iViewUid.Name() ); + } //------------------------------------------------------------------------------ // CApplicationStateSourcePlugIn::HandleNotifyGeneric @@ -427,8 +452,8 @@ if ( !fgFound && aEvent.iViewOneId.iAppUid == appSettings->Uid() ) { fgApp.Set( appSettings->Name() ); - appSettings->GetViewName( aEvent.iViewOneId.iViewUid, fgView ); - fgFound = ETrue; + //Check for flag returned by GetViewName, don't directly set the Flag to ETrue + fgFound = appSettings->GetViewName( aEvent.iViewOneId.iViewUid, fgView ); } if ( !bgFound && aEvent.iViewTwoId.iAppUid == appSettings->Uid() ) { @@ -720,223 +745,6 @@ } return index; } -void CApplicationStateSourcePlugIn::HandleWsEventL( RWsSession& aWsSession ) - { - TUid appUid( TUid::Null() ); - TPtrC bgApp( *iDefaultAppName ); - TPtrC fgApp( *iDefaultAppName ); - TPtrC fgView( *iDefaultViewName ); - - TInt focWndGrp( aWsSession.GetFocusWindowGroup() ); - CApaWindowGroupName* wndGrpName = CApaWindowGroupName::NewL( aWsSession ); - CleanupStack::PushL( wndGrpName ); - wndGrpName->ConstructFromWgIdL( focWndGrp ); - appUid = wndGrpName->AppUid(); - - for ( TInt i = 0; i < iApplicationSettings.Count(); ++i ) - { - CCFApplicationStateSettings* appSettings = iApplicationSettings[ i ]; - if ( appUid == appSettings->Uid() ) - { - fgApp.Set( appSettings->Name() ); - appSettings->GetViewName( appUid, fgView ); - bgApp.Set( iPreviousForegroundApplication ); - break; - } - } - TBool publishFgApp( EFalse ); - TBool publishFgView( EFalse ); - TBool publishBgApp( EFalse ); - - if ( iPreviousForegroundApplication.Compare( fgApp ) != 0 ) - { - publishFgApp = ETrue; - } - else if ( iPreviousForegroundView.Compare( fgView ) != 0 ) - { - publishFgView = ETrue; - } - - if ( bgApp != fgApp ) - { - publishBgApp = ETrue; - } - - iPreviousForegroundApplication.Set( fgApp ); // Store for next round - iPreviousForegroundView.Set( fgView ); - - RThread thread; - - if ( publishFgApp ) - { - iContext->SetTypeL( KApplicationStateForegroundApplicationType ); - iContext->SetValueL( fgApp ); - iCF.PublishContext( *iContext, thread ); - } - - if ( publishFgApp || publishFgView ) - { - iContext->SetTypeL( KApplicationStateForegroundApplicationViewType ); - iContext->SetValueL( fgView ); - iCF.PublishContext( *iContext, thread ); - } - - if ( publishBgApp ) - { - iContext->SetTypeL( KApplicationStateBackgroundApplicationType ); - iContext->SetValueL( bgApp ); - iCF.PublishContext( *iContext, thread ); - } - - thread.Close(); - CleanupStack::PopAndDestroy( wndGrpName ); - - } - -// ======================== CWsEventHandler ======================== - -// --------------------------------------------------------------------------- -// C++ constructor. -// --------------------------------------------------------------------------- -// -CWsEventHandler::CWsEventHandler( MWsEventObserver& aObserver ): - CActive( CActive::EPriorityStandard ), - iObserver( aObserver ) - { - CActiveScheduler::Add( this ); - } - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor. -// --------------------------------------------------------------------------- -// -void CWsEventHandler::ConstructL() - { - // Connect to window server server - User::LeaveIfError( iWsSession.Connect() ); - - // Construct window group - iWindowGroup = new( ELeave ) RWindowGroup( iWsSession ); - User::LeaveIfError( iWindowGroup->Construct( (TUint32)this, EFalse ) ); - User::LeaveIfError( iWindowGroup->EnableGroupChangeEvents() ); - iWindowGroup->SetOrdinalPosition( 0, ECoeWinPriorityNeverAtFront ); - iWindowGroup->EnableReceiptOfFocus( EFalse ); - - // Hide the invisible window from the task manager - iWindowGroupName = CApaWindowGroupName::NewL( iWsSession ); - iWindowGroupName->SetHidden( ETrue ); - iWindowGroupName->SetWindowGroupName( *iWindowGroup ); - - } -// --------------------------------------------------------------------------- -// Symbian two phased constructor. -// --------------------------------------------------------------------------- -// -CWsEventHandler* CWsEventHandler::NewL( MWsEventObserver& aObserver ) - { - CWsEventHandler* self = CWsEventHandler::NewLC( aObserver ); - CleanupStack::Pop( self ); - - return self; - } - -// --------------------------------------------------------------------------- -// Symbian two phased constructor. -// Leaves pointer in the cleanup stack. -// --------------------------------------------------------------------------- -// -CWsEventHandler* CWsEventHandler::NewLC( MWsEventObserver& aObserver ) - { - CWsEventHandler* self = new ( ELeave ) CWsEventHandler( aObserver ); - CleanupStack::PushL( self ); - self->ConstructL(); - - return self; - } - -// --------------------------------------------------------------------------- -// C++ destructor. -// --------------------------------------------------------------------------- -// -CWsEventHandler::~CWsEventHandler() - { - Cancel(); - - // Cleanup window group name - delete iWindowGroupName; - - // Cleanup window group - if( iWindowGroup ) - { - iWindowGroup->DisableGroupChangeEvents(); - iWindowGroup->Close(); - delete iWindowGroup; - } - - // Cleanup window server session - iWsSession.Close(); - } - -//------------------------------------------------------------------------------ -// CWsEventHandler::IssueRequest -//------------------------------------------------------------------------------ -// -void CWsEventHandler::IssueRequest() - { - // Request events from window server - iWsSession.EventReady( &iStatus ); - SetActive(); - } -//------------------------------------------------------------------------------ -// CWsEventHandler::RunL -//------------------------------------------------------------------------------ -// -void CWsEventHandler::RunL() - { - TInt err = iStatus.Int(); - if( err == KErrNone ) - { - // No errors occured, fetch event - TWsEvent wsEvent; - iWsSession.GetEvent( wsEvent ); - - // Continue listening - IssueRequest(); - switch (wsEvent.Type()) - { - case EEventWindowGroupsChanged : - // Forward event to observer - iObserver.HandleWsEventL( iWsSession ); - break; - default: - break; - } - } - } - -//------------------------------------------------------------------------------ -// CWsEventHandler::DoCancel -//------------------------------------------------------------------------------ -// -void CWsEventHandler::DoCancel() - { - // Cancel event ready from window server - iWsSession.EventReadyCancel(); - } - -//------------------------------------------------------------------------------ -// CWsEventHandler::RunError -//------------------------------------------------------------------------------ -// -TInt CWsEventHandler::RunError( TInt /*aError*/ ) - { - // Issue a new request, other error handling is not performed since the - // problem has occured in the observer code - IssueRequest(); - - return KErrNone; - } - diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/cfapplicationstatesettings.cpp --- a/contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/cfapplicationstatesettings.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/ApplicationStateSourcePlugIn/src/cfapplicationstatesettings.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 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" @@ -99,15 +99,18 @@ // CCFApplicationStateSettings::AddViewSettingsL //----------------------------------------------------------------------------- // -void CCFApplicationStateSettings::GetViewName( const TUid& aUid, +TBool CCFApplicationStateSettings::GetViewName( const TUid& aUid, TPtrC& aName ) const { + TBool matchFound = EFalse; for ( TInt i = 0; i < iViewInfo.Count(); ++i ) { if ( aUid == iViewInfo[ i ]->Uid() ) { aName.Set( iViewInfo[ i ]->Name() ); + matchFound = ETrue; break; } } + return matchFound; } diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/CallStateSourcePlugIn/group/CallStateSourcePlugIn.mmp --- a/contextframework/cfwplugins/CallStateSourcePlugIn/group/CallStateSourcePlugIn.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/CallStateSourcePlugIn/group/CallStateSourcePlugIn.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/CallStateSourcePlugInConst.hrh" -TARGET callstatesourceplugin.dll +TARGET CallStateSourcePlugIn.dll TARGETTYPE PLUGIN UID 0x10009D8D KCallStateSourcePluginDllUid CAPABILITY ALL -TCB @@ -36,7 +36,7 @@ SOURCEPATH ../data START RESOURCE CallStateSourcePlugIn.rss -TARGET callstatesourceplugin.rsc +TARGET CallStateSourcePlugIn.rsc TARGETPATH /resource/plugins END diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/PSStateSourcePlugIn/group/psstatesourceplugin.mmp --- a/contextframework/cfwplugins/PSStateSourcePlugIn/group/psstatesourceplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/PSStateSourcePlugIn/group/psstatesourceplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include "../inc/psstatesourcepluginconst.hrh" -TARGET psstatesourceplugin.dll +TARGET PSStateSourcePlugIn.dll TARGETTYPE PLUGIN UID 0x10009D8D KPSStateSourcePluginDllUid CAPABILITY ALL -TCB diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/PSStateSourcePlugIn/src/psstatesourceplugin.cpp --- a/contextframework/cfwplugins/PSStateSourcePlugIn/src/psstatesourceplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/PSStateSourcePlugIn/src/psstatesourceplugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 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" @@ -247,7 +247,7 @@ TInt psValue; TLex lex( psValueDesc ); - lex.Val(psValue); + User::LeaveIfError( lex.Val(psValue) ); intmapper->AddMappingL(psValue, contextValue); } diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/group/bld.inf --- a/contextframework/cfwplugins/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-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" @@ -23,7 +23,7 @@ #include "../ApplicationStateSourcePlugIn/group/bld.inf" #include "../sensorsourceplugin/group/bld.inf" #include "../vibraactionplugin/group/bld.inf" -//#include "../orientationactionplugin/group/bld.inf" +#include "../orientationactionplugin/group/bld.inf" #include "../cenrepsourceplugin/group/bld.inf" // moved from pcfw #include "../PSStateSourcePlugIn/group/bld.inf" diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/orientationactionplugin/group/orientationactionplugin.mmp --- a/contextframework/cfwplugins/orientationactionplugin/group/orientationactionplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/orientationactionplugin/group/orientationactionplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #include "../inc/traceconfiguration.hrh" #include "../inc/orientationactionpluginconst.hrh" -TARGET orientationactionplugin.dll +TARGET OrientationActionPlugin.dll TARGETTYPE PLUGIN UID 0x10009D8D KOrientationActionPlugInDllUid CAPABILITY CAP_ECOM_PLUGIN @@ -50,7 +50,7 @@ LIBRARY cfactivatorengine.lib LIBRARY cfservices.lib LIBRARY centralrepository.lib -LIBRARY avkon.lib +LIBRARY Avkon.lib LIBRARY apgrfx.lib #ifdef TRACE_INTO_FILE LIBRARY flogger.lib diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/orientationactionplugin/src/orientationactionplugin.cpp --- a/contextframework/cfwplugins/orientationactionplugin/src/orientationactionplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/orientationactionplugin/src/orientationactionplugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 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" @@ -84,7 +84,6 @@ CCFActionPlugIn::TExecutionTime time = CCFActionPlugIn::ENone; - const RKeyValueArray& params = aActionIndication->Parameters(); // Check for action ID: Orientation if( aActionIndication->Identifier().CompareF( KOrientationAction ) == KErrNone ) diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp --- a/contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -13,6 +13,7 @@ * * Description: CSensorChannelBase class implementation. * +* */ @@ -235,9 +236,8 @@ TInt aDataLost ) { FUNC_LOG; - - TRAP_IGNORE( HandleDataReceivedL( aChannel, aCount, aDataLost ) ); - + + // If we are fetching initial value, make sure that the channel is closed // properly if there are no active connections if( !SensorActive() && iState == EChannelStateInitializing ) @@ -247,6 +247,7 @@ } else { + TRAP_IGNORE( HandleDataReceivedL( aChannel, aCount, aDataLost ) ); // Active connections received, change state ChangeState( EChannelStateActive ); } @@ -631,3 +632,4 @@ } // End of file + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/ATCmdPlugin/data/atcmdpluginresource.rss --- a/coreapplicationuis/ATCmdPlugin/data/atcmdpluginresource.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/ATCmdPlugin/data/atcmdpluginresource.rss Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ - // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). + // Copyright (c) 2008-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" @@ -15,6 +15,7 @@ #include #include +#include #include "atcmdplugin.rh" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/ATCmdPlugin/group/atcmdplugin.mmp --- a/coreapplicationuis/ATCmdPlugin/group/atcmdplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/ATCmdPlugin/group/atcmdplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -56,7 +56,7 @@ LIBRARY efsrv.lib LIBRARY ws32.lib LIBRARY hwrmlightclient.lib -LIBRARY hal.lib +LIBRARY HAL.lib DEBUGLIBRARY flogger.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/DbRecovery/Group/DbRecovery.mmp --- a/coreapplicationuis/DbRecovery/Group/DbRecovery.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/DbRecovery/Group/DbRecovery.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -21,7 +21,7 @@ #include -TARGET dbrecovery.exe +TARGET DbRecovery.exe TARGETTYPE exexp UID 0x100039CE 0x10005A17 @@ -42,8 +42,8 @@ LIBRARY euser.lib LIBRARY edbms.lib LIBRARY diskspacereserver.lib -LIBRARY efsrv.lib -LIBRARY charconv.lib -LIBRARY estor.lib +LIBRARY EFSRV.LIB +LIBRARY CHARCONV.LIB +LIBRARY ESTOR.LIB LIBRARY cntmodel.lib // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/GSServerEngine/group/GSServerEngine.mmp --- a/coreapplicationuis/GSServerEngine/group/GSServerEngine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/GSServerEngine/group/GSServerEngine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ // To get the MW_LAYER_SYSTEMINCLUDE-definition #include -TARGET gsserverengine.dll +TARGET GSServerEngine.dll TARGETTYPE dll UID 0x10281F16 diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/NspsWsPlugin/group/NspsWsPlugin.mmp --- a/coreapplicationuis/NspsWsPlugin/group/NspsWsPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/NspsWsPlugin/group/NspsWsPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -18,7 +18,7 @@ #include -TARGET nspswsplugin.dll +TARGET NspsWsPlugin.DLL TARGETTYPE ANI UID 0x10003B22 0x10005A15 VENDORID VID_DEFAULT @@ -34,7 +34,7 @@ SOURCE NspsWsPlugin.cpp SOURCE NspsWsPluginDll.cpp -LIBRARY euser.lib +LIBRARY EUSER.LIB EXPORTUNFROZEN diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/NspsWsPlugin/group/bld.inf --- a/coreapplicationuis/NspsWsPlugin/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/NspsWsPlugin/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ DEFAULT PRJ_EXPORTS -../inc/NspsWsPluginDllStd.h |../../inc/nspswsplugindllstd.h +../inc/NspsWsPluginDllStd.h |../../inc/NspsWsPluginDllStd.h PRJ_MMPFILES ../group/NspsWsPlugin.mmp diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/NspsWsPlugin/src/NspsWsPlugin.cpp --- a/coreapplicationuis/NspsWsPlugin/src/NspsWsPlugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/NspsWsPlugin/src/NspsWsPlugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -18,7 +18,7 @@ // INCLUDE FILES #include -#include "coreapplicationuisinternalpskeys.h" +#include "CoreApplicationUIsInternalPSKeys.h" #include "NspsWsPluginDllStd.h" #include "NspsWsPlugin.h" // this diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/data/10275117.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/data/10275117.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,43 @@ +/* +* 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: ECOM plugin resource file for GS RFS plugin. +* +*/ + + +#include + +RESOURCE REGISTRY_INFO theInfo + { + dll_uid = 0x10275117; // Plugin dll UID + interfaces = + { + INTERFACE_INFO + { + interface_uid = 0x10207236; // UID for CGSPluginInterface - do not change. + implementations = + { + IMPLEMENTATION_INFO + { + implementation_uid = 0x10275118; // Plugin UID + version_no = 1; + display_name = "GS RFS Plugin"; // Plugin debug name + default_data = "0x10283317"; // Parent UID + opaque_data = "40"; // Order number + } + }; + } + }; + } + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/data/GSRFSPluginRsc.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/data/GSRFSPluginRsc.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,154 @@ +/* +* Copyright (c) 2005-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: +* Resource file for GSRFSPlugin +* +*/ + + +// RESOURCE IDENTIFIER +NAME GRFS // 4 letter ID + +// INCLUDES + +#include +#include +#include +#include +#include +#include "gsrfsplugin.hrh" +#include "gsrfsplugin.loc" +#include + + +// CONSTANTS + +// RESOURCE DEFINITIONS + +//---------------------------------------------------- +// +// +// Needed or loading the resource fails! +// +//---------------------------------------------------- +// +RESOURCE RSS_SIGNATURE + { + } + +#include "gscommonresources.rss" +RESOURCE TBUF + { + buf="GRFS"; + } + +//---------------------------------------------------- +// +// EIK_APP_INFO +// It contains application information. +// +//---------------------------------------------------- +// +RESOURCE EIK_APP_INFO + { + } + +//---------------------------------------------------- +// r_rfs_factory_settings +// +// Orig. factory settings caption for plugin +//---------------------------------------------------- +// +RESOURCE TBUF r_rfs_factory_settings + { + buf = qtn_set_folder_original_settings; + } + +//---------------------------------------------------- +// r_rfs_factory_settings_title +// +// Factory settings view title. +//---------------------------------------------------- +// +RESOURCE TITLE_PANE r_rfs_factory_settings_title + { + txt = qtn_set_folder_original_settings; + } + + +//---------------------------------------------------- +// r_rfs_factory_settings_view +// +// Factory settings view. +//---------------------------------------------------- +// +RESOURCE MENU_BAR r_gs_menubar_exit_help + { + titles = + { + MENU_TITLE + { + menu_pane = r_gs_menu_item_exit; + }, + MENU_TITLE + { + menu_pane = r_gs_menu_item_help; + } + }; + } + + +RESOURCE CBA r_gs_rfs_softkeys_options_back__exit + { + buttons = + { + CBA_BUTTON {id=EAknSoftkeyOptions; txt = text_softkey_option;}, + CBA_BUTTON {id=EAknSoftkeyBack; txt = text_softkey_back; } + }; + } + +RESOURCE AVKON_VIEW r_rfs_factory_settings_view + { + menubar = r_gs_menubar_exit_help; + cba = r_gs_rfs_softkeys_options_back__exit; + } + + + +//---------------------------------------------------- +// r_rfs_factory_settings_lbx +// +// Factory settings view's listbox. +//---------------------------------------------------- + +// +RESOURCE GS_FEATURE_ARRAY r_rfs_factory_settings_lbx + { + items = + { + GS_FEATURE + { + txt = " \t"qtn_rfs_orig_settings"\t\t"; + item = EGSSettIdOptNormalRfs; + + }, + GS_FEATURE + { + txt = " \t"qtn_rfs_erase_all_data"\t\t"; + item = EGSSettIdOptDeepRfs; + } + }; + } + +//End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/GSRFSPlugin.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/GSRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2005-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: Project specification file. +* +*/ + + +#include // For RESOURCE_FILES_DIR +#include + +CAPABILITY CAP_ECOM_PLUGIN +TARGET GSRFSPlugin.dll +TARGETTYPE PLUGIN +UID 0x10009D8D 0x10275117 +VENDORID VID_DEFAULT + + +SOURCEPATH ../src +SOURCE GSRFSPluginImplementationTable.cpp +SOURCE GSRFSPlugin.cpp +SOURCE GSRFSPluginContainer.cpp + +//User include paths +USERINCLUDE ../inc +USERINCLUDE ../data // For *.rh +USERINCLUDE ../../../inc // for gsrfsplugin.loc + + +//System include paths +APP_LAYER_SYSTEMINCLUDE /epoc32/include/ecom +APP_LAYER_SYSTEMINCLUDE /epoc32/include/cshelp + +//System include paths +MW_LAYER_SYSTEMINCLUDE + +SOURCEPATH ../data + +START RESOURCE 10275117.rss +TARGET GSRFSPlugin.rsc +END + +START RESOURCE GSRFSPluginRsc.rss +TARGETPATH RESOURCE_FILES_DIR +HEADER +LANGUAGE_IDS +END + +LIBRARY euser.lib +LIBRARY ecom.lib +LIBRARY efsrv.lib +LIBRARY avkon.lib +LIBRARY bafl.lib +LIBRARY cone.lib +LIBRARY eikcoctl.lib +LIBRARY eikcore.lib +LIBRARY egul.lib +LIBRARY ws32.lib +LIBRARY rfs.lib +LIBRARY gsecomplugin.lib +LIBRARY CommonEngine.lib +LIBRARY fbscli.lib +LIBRARY AknIcon.lib +LIBRARY aknskins.lib + +LIBRARY hlplch.lib +LIBRARY GSFramework.lib +LIBRARY GSListBox.lib + + +DOCUMENT 10275117.rss + +// End of File \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/GSRFSPluginIcons.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/GSRFSPluginIcons.mk Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,71 @@ +# +# Copyright (c) 2007 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: +# + + +ifeq (WINS,$(findstring WINS, $(PLATFORM))) +ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z +else +ZDIR=\epoc32\data\z +endif + +# ---------------------------------------------------------------------------- +# Configure these +# ---------------------------------------------------------------------------- + +TARGETDIR=$(ZDIR)\resource\apps +HEADERDIR=\epoc32\include +ICONTARGETFILENAME=$(TARGETDIR)\GSRFSPlugin.mif +HEADERFILENAME=$(HEADERDIR)\GSRFSPlugin.mbg + +do_nothing : + @rem do_nothing + +MAKMAKE : do_nothing + +BLD : do_nothing + +CLEAN : do_nothing + +LIB : do_nothing + +CLEANLIB : do_nothing + +# ---------------------------------------------------------------------------- +# Configure these. +# +# NOTE 1: DO NOT DEFINE MASK FILE NAMES! They are included automatiNetworky by +# MifConv if the mask detph is defined. +# +# NOTE 2: Usually, source paths should not be included in the bitmap +# definitions. MifConv searches for the icons in all icon directories in a +# predefined order, which is currently \s60\icons, \s60\bitmaps2, \s60\bitmaps. +# The directory \s60\icons is included in the search only if the feature flag +# __SCALABLE_ICONS is defined. +# ---------------------------------------------------------------------------- + +RESOURCE : + mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \ + /c8,8 qgn_prop_set_gene_phone.bmp + +FREEZE : do_nothing + +SAVESPACE : do_nothing + +RELEASABLES : + @echo $(HEADERFILENAME)&& \ + @echo $(ICONTARGETFILENAME) + +FINAL : do_nothing diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2005 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: This file provides the information required for building +* GS RFS Plugin. +* +*/ + +#include + +PRJ_PLATFORMS +DEFAULT + +PRJ_EXPORTS +../loc/gsrfsplugin.loc MW_LAYER_LOC_EXPORT_PATH(gsrfsplugin.loc) + +PRJ_EXTENSIONS +START EXTENSION s60/mifconv + OPTION TARGETFILE GSRFSPlugin.mif + OPTION HEADERFILE GSRFSPlugin.mbg + OPTION SOURCES -c8,8 qgn_prop_set_gene_phone +END + + +PRJ_MMPFILES +//gnumakefile GSRFSPluginIcons.mk +GSRFSPlugin.mmp + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPlugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,133 @@ +/* +* Copyright (c) 2005-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: GS Restore Factory Settings plugin +* +*/ + + +#ifndef GSRFSPLUGIN_H +#define GSRFSPLUGIN_H + +// Includes +#include +#include +#include +#include + +// Classes referenced +class CRfsHandler; +class CGSRFSPluginContainer; +class CAknViewAppUi; + +// Constants +const TUid KGSRFSPluginUid = { 0x10275117 }; + + +// Class Declaration +/** + * + * @since Series60_3.1 + */ +class CGSRFSPlugin : public CGSBaseView + { +public: // Constructors and destructor + + /** + * Symbian OS two-phased constructor + * @return + */ + static CGSRFSPlugin* NewL( TAny* aInitParams ); + + /** + * Destructor. + */ + ~CGSRFSPlugin(); + +public: // From CAknView + + /** + * See base class. + * + * This function is used also for identifying the plugin so be sure to + * return correct UID. + */ + TUid Id() const; + + /** + * See base class. + */ + void HandleClientRectChange(); + + /** + * See base class. + */ + void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage ); + + /** + * See base class. + */ + void DoDeactivate(); + + /** + * See base class. + */ + void HandleCommandL( TInt aCommand ); + + +public: // From CGSPluginInterface + + /** + * See base class. + */ + void GetCaptionL( TDes& aCaption ) const; + + /** + * See base class. + */ + TInt PluginProviderCategory() const; + + /** + * See base class. + */ + CGulIcon* CreateIconL( const TUid aIconType ); + +protected: // New + + /** + * C++ default constructor. + */ + CGSRFSPlugin(); + + /** + * Symbian OS default constructor. + */ + void ConstructL(); + + void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); + +private: // from CGSBaseView + + void NewContainerL(); + + void HandleListBoxSelectionL(); + +private: // Data + + // Resource loader + RConeResourceLoader iResourceLoader; + }; + +#endif // GSRFSPLUGIN_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPluginContainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPluginContainer.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2007-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 GSRFSPLUGINCONTAINER_H +#define GSRFSPLUGINCONTAINER_H + +// INCLUDES +#include +#include "gssettingid.h" + +// CLASS DECLARATION +class CGSRFSPlugin; +class CGSListBoxItemTextArray; + + +class CGSRFSPluginContainer : public CGSBaseContainer + { +public: + + /** + * C++ default constructor. + */ + CGSRFSPluginContainer( CGSRFSPlugin* aGSRFSPlugin ); + + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(const TRect& aRect); + + /** + * Destructor. + */ + ~CGSRFSPluginContainer(); + +public: // new methods + + TInt CurrentFeatureId() const; + +protected: // from CGSBaseContainer + + void ConstructListBoxL( TInt aResLbxId ); + +private: // from CCoeControl + + void GetHelpContext( TCoeHelpContext& aContext ) const; + +private: // data + + CGSRFSPlugin* iGSRFSPlugin; // not own + CGSListBoxItemTextArray* iListboxItemArray; + }; + + +#endif // GSRFSPLUGINCONTAINER_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPluginTraces.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/GSRFSPluginTraces.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2002 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: Includes some common defines used in the startup application +* +*/ + + +#ifndef STARTUPDEFINES_H +#define STARTUPDEFINES_H + +//CONSTANTS +_LIT( KAppName, "GSRFSPlugin" ); // The application name + +// MACROS + +#define PANIC(aPanic) User::Panic( KAppName, aPanic ) + +#define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"GSRFSPlugin: \"" L##aText L"\"")) + +#ifdef _DEBUG +#define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) ) +#define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) ) +#define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) ) +#define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) ) +#else +#define TRACES(aMsg) +#define TRACES1(aFormat,aP1) +#define TRACES2(aFormat,aP1,aP2) +#define TRACES3(aFormat,aP1,aP2,aP3) +#endif +#endif // STARTUPDEFINES_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/gscommonresources.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/gscommonresources.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,187 @@ +/* +* Copyright (c) 2005-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: Common resources for internal GS plugins. This .rss is +* included by other .rss files. This should not be compiled + alone. +* +*/ + +// RESOURCE IDENTIFIER +//NAME GSCR // 4 letter ID + +// INCLUDES +#include // Common localized GS strings +#include // Common GS resource structures + +#include +#include +#include +#include +#include + +// CONSTANTS + +// ----------------------------------------------------------------------------- +// +// r_gs_menubar_change_exit +// GS menu with 'change' and 'exit' items. +// +// ----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_gs_menubar_change_exit + { + titles = + { + MENU_TITLE + { + menu_pane = r_gs_menu_item_exit; + }, + MENU_TITLE + { + menu_pane = r_gs_menu_item_help; + }, + MENU_TITLE + { + menu_pane = r_gs_menu_item_change; + } + }; + } + +// ----------------------------------------------------------------------------- +// +// r_gs_menubar_open_exit +// GS menu with 'Open' and 'Exit' items. +// +// ----------------------------------------------------------------------------- +// +RESOURCE MENU_BAR r_gs_menubar_open_exit + { + titles = + { + MENU_TITLE + { + menu_pane = r_gs_menu_item_exit; + }, + MENU_TITLE + { + menu_pane = r_gs_menu_item_help; + }, + MENU_TITLE + { + menu_pane = r_gs_menu_item_open; + } + }; + } + +//---------------------------------------------------- +// +// r_gs_menu_item_open +// Open item. +// +//---------------------------------------------------- + +RESOURCE MENU_PANE r_gs_menu_item_open + { + items = + { + MENU_ITEM + { + command = EAknSoftkeyOpen; + txt = qtn_set_options_open; + } + }; + } + + +// ----------------------------------------------------------------------------- +// +// r_gs_menu_item_exit +// +// ----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_gs_menu_item_exit + { + items = + { + MENU_ITEM + { + command = EAknCmdExit; + txt = qtn_options_exit; + } + }; + } + + +// ----------------------------------------------------------------------------- +// +// r_gs_menu_item_change +// Change item. +// +// ----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_gs_menu_item_change + { + items = + { + MENU_ITEM + { + command = EGSCmdAppChange; + txt = qtn_set_options_change; + } + }; + } + +// ----------------------------------------------------------------------------- +// +// r_gs_menu_item_help +// Change item. +// +// ----------------------------------------------------------------------------- +// +RESOURCE MENU_PANE r_gs_menu_item_help + { + items = + { + MENU_ITEM + { + command = EAknCmdHelp; + txt = qtn_options_help; + } + }; + } + + +// ----------------------------------------------------------------------------- +// +// r_setting_listbox +// Common listbox editor resource for setting pages. +// +// ----------------------------------------------------------------------------- +// +RESOURCE LISTBOX r_setting_listbox + { + flags = EEikListBoxMultipleSelection; + } + + +// ----------------------------------------------------------------------------- +// +// r_gs_cba_exit +// Exit text for RSK +// +// ----------------------------------------------------------------------------- +// +RESOURCE TBUF r_gs_cba_exit { buf = text_softkey_exit; } + +//End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/gsrfsplugin.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/inc/gsrfsplugin.hrh Wed Sep 01 12:24:48 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: GS Restore Factory Settings plugin +* +*/ + + +#ifndef GSRFSPLUGIN_HRH +#define GSRFSPLUGIN_HRH + +enum TSettingId + { + EGSSettIdOptNormalRfs, + EGSSettIdOptDeepRfs + }; + +#endif // GSRFSPLUGIN_HRH + +//End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/loc/gsrfsplugin.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/loc/gsrfsplugin.loc Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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: +* Localization strings for Plugin +* +*/ + + +// LOCALISATION STRINGS + + +//d:Text of a list item in general setting list view's list +//d:Item restores factory settings +//l:list_setting_pane_t1 +#define qtn_set_folder_original_settings "Factory settings" + + +//d:displays menu options for reset (full / partial) +//l:title_pane_t2/opt9 +#define qtn_rfs_title_factory_conf "Factory settings" + + +//d:restores factory settings (normal rfs) +//l:list_setting_pane_t1 +#define qtn_rfs_orig_settings "Restore" + + +//d:erases all data (deep rfs) +//l:list_setting_pane_t1 +#define qtn_rfs_erase_all_data "Delete data and restore" + + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPlugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPlugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,244 @@ +/* +* Copyright (c) 2005-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: +* GS RFS Plugin +* +*/ + + +// SYSTEM INCLUDES +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include "GSRFSPlugin.h" +#include "GSRFSPluginTraces.h" +#include "GSRFSPluginContainer.h" +#include "gsrfsplugin.hrh" + +// Constants +_LIT( KGSRFSPluginResourceFileName, "z:GSRFSPluginRsc.rsc" ); + + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::CGSRFSPlugin() +// Constructor +// --------------------------------------------------------------------------- +CGSRFSPlugin::CGSRFSPlugin() + :iResourceLoader( *iCoeEnv ) + { + TRACES("CGSRFSPlugin::CGSRFSPlugin()"); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::~CGSRFSPlugin() +// Destructor +// --------------------------------------------------------------------------- +CGSRFSPlugin::~CGSRFSPlugin() + { + TRACES("CGSRFSPlugin::~CGSRFSPlugin()"); + iResourceLoader.Close(); + TRACES("CGSRFSPlugin::~CGSRFSPlugin(): End"); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::ConstructL(const TRect& aRect) +// Symbian OS two-phased constructor +// --------------------------------------------------------------------------- +void CGSRFSPlugin::ConstructL() + { + TRACES("CGSRFSPlugin::ConstructL()"); + + // Find the resource file + TParse parse; + parse.Set( KGSRFSPluginResourceFileName, &KDC_RESOURCE_FILES_DIR, NULL ); + TFileName fileName( parse.FullName() ); + + // Get language of resource file + BaflUtils::NearestLanguageFile( iCoeEnv->FsSession(), fileName ); + + // Open resource file + iResourceLoader.OpenL( fileName ); + + BaseConstructL( R_RFS_FACTORY_SETTINGS_VIEW ); + + TRACES("CGSRFSPlugin::ConstructL(): End"); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::NewL() +// Static constructor +// --------------------------------------------------------------------------- +CGSRFSPlugin* CGSRFSPlugin::NewL( TAny* /*aInitParams*/ ) + { + TRACES("CGSRFSPlugin::NewL()"); + CGSRFSPlugin* self = new( ELeave ) CGSRFSPlugin(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + TRACES("CGSRFSPlugin::NewL(): End"); + return self; + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::Id() +// --------------------------------------------------------------------------- +TUid CGSRFSPlugin::Id() const + { + return KGSRFSPluginUid; + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::DoActivateL() +// --------------------------------------------------------------------------- +void CGSRFSPlugin::DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage ) + { + TRACES("CGSRFSPlugin::DoActivateL()"); + CGSBaseView::DoActivateL( aPrevViewId, aCustomMessageId, aCustomMessage ); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::DoDeactivate() +// --------------------------------------------------------------------------- +void CGSRFSPlugin::DoDeactivate() + { + TRACES("CGSRFSPlugin::DoDeactivate()"); + CGSBaseView::DoDeactivate(); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::HandleCommandL() +// --------------------------------------------------------------------------- +void CGSRFSPlugin::HandleCommandL( TInt aCommand ) + { + TRACES("CGSRFSPlugin::HandleCommandL()"); + switch ( aCommand ) + { + case EAknSoftkeyBack: + { + iAppUi->ActivateLocalViewL( KGSDeviceManagementPluginUid ); + break; + } + case EAknCmdHelp: + { + HlpLauncher::LaunchHelpApplicationL(iEikonEnv->WsSession(), iAppUi->AppHelpContextL() ); + break; + } + default: + { + iAppUi->HandleCommandL( aCommand ); + break; + } + } + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::GetCaptionL() +// --------------------------------------------------------------------------- +void CGSRFSPlugin::GetCaptionL( TDes& aCaption ) const + { + // the resource file is already opened + HBufC* result = StringLoader::LoadL( R_RFS_FACTORY_SETTINGS ); + aCaption.Copy( *result ); + delete result; + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::PluginProviderCategory() +// --------------------------------------------------------------------------- +TInt CGSRFSPlugin::PluginProviderCategory() const + { + return KGSPluginProviderInternal; + } + +// ----------------------------------------------------------------------------- +// CGSNetworkPlugin::CreateIconL() +// ----------------------------------------------------------------------------- +CGulIcon* CGSRFSPlugin::CreateIconL( const TUid aIconType ) + { + CGulIcon* icon; + TParse* fp = new( ELeave ) TParse(); + CleanupStack::PushL( fp ); + _LIT( KGSRFSPluginIconDirAndName, "z:gsrfsplugin.mbm"); + fp->Set( KGSRFSPluginIconDirAndName, &KDC_BITMAP_DIR, NULL ); + + if( aIconType == KGSIconTypeLbxItem ) + { + icon = AknsUtils::CreateGulIconL( AknsUtils::SkinInstance(), KAknsIIDQgnPropSetGenePhone, + fp->FullName(),EMbmGsrfspluginQgn_prop_set_gene_phone, + EMbmGsrfspluginQgn_prop_set_gene_phone_mask ); + } + else + { + icon = CGSPluginInterface::CreateIconL( aIconType ); + } + + CleanupStack::PopAndDestroy( fp ); + + return icon; + } + +// ----------------------------------------------------------------------------- +// CGSRFSPlugin::DynInitMenuPaneL() +// +// Dynamically handle help item if not supported +// ----------------------------------------------------------------------------- +void CGSRFSPlugin::DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ) + { + if( aResourceId == R_GS_MENU_ITEM_HELP ) + { + User::LeaveIfNull( aMenuPane ); + aMenuPane->SetItemDimmed( EAknCmdHelp, EFalse ); + } + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::NewContainerL() +// +// Creates new iContainer. +// --------------------------------------------------------------------------- +void CGSRFSPlugin::NewContainerL() + { + iContainer = new( ELeave ) CGSRFSPluginContainer( this ); + } + +// --------------------------------------------------------------------------- +// CGSRFSPlugin::HandleListBoxSelectionL() +// --------------------------------------------------------------------------- +void CGSRFSPlugin::HandleListBoxSelectionL() + { + CGSRFSPluginContainer *pluginContainer = static_cast( iContainer ); + const TInt currentFeatureId = pluginContainer->CurrentFeatureId(); + + CRfsHandler* iRfsHandler = new ( ELeave ) CRfsHandler; + CleanupStack :: PushL(iRfsHandler); + + TRfsType rfsType = ERfsNormal; + if ( currentFeatureId == EGSSettIdOptDeepRfs ) + { + rfsType = ERfsDeep; + } + iRfsHandler->ActivateRfsL( rfsType ); + + CleanupStack :: PopAndDestroy(iRfsHandler); + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPluginContainer.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPluginContainer.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2007-2010 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: +* +*/ + + +// INCLUDES +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "GSRFSPluginContainer.h" +#include "GSRFSPluginTraces.h" +#include "GSRFSPlugin.h" +#include "gsrfsplugin.hrh" + + +// --------------------------------------------------------- +// CGSRFSPluginContainer::CGSRFSPluginContainer() +// --------------------------------------------------------- +CGSRFSPluginContainer::CGSRFSPluginContainer( CGSRFSPlugin* aGSRFSPlugin ) + :iGSRFSPlugin( aGSRFSPlugin ) + { + TRACES("CGSRFSPluginContainer::CGSRFSPluginContainer()"); + } + +// ----------------------------------------------------------------------------- +// CGSRFSPluginContainer::ConstructL +// +// ----------------------------------------------------------------------------- +void CGSRFSPluginContainer::ConstructL(const TRect& aRect) + { + TRACES("CGSRFSPluginContainer::ConstructL()"); + + iListBox = new( ELeave ) CAknSettingStyleListBox; + BaseConstructL( aRect, R_RFS_FACTORY_SETTINGS_TITLE, R_RFS_FACTORY_SETTINGS_LBX ); + } + +// ----------------------------------------------------------------------------- +// CGSRFSPluginContainer::~CGSRFSPluginContainer +// +// ----------------------------------------------------------------------------- +CGSRFSPluginContainer::~CGSRFSPluginContainer() + { + TRACES("CGSRFSPluginContainer::~CGSRFSPluginContainer()"); + delete iListboxItemArray; + TRACES("CGSRFSPluginContainer::~CGSRFSPluginContainer(): End"); + } + +// --------------------------------------------------------------------------- +// CGSRFSPluginContainer::CurrentFeatureId() +// +// Return the feature id of selected listitem +// --------------------------------------------------------------------------- +TInt CGSRFSPluginContainer::CurrentFeatureId( ) const + { + return iListboxItemArray->CurrentFeature( ); + } + +// --------------------------------------------------------------------------- +// CGSRFSPluginContainer::ConstructListBoxL() +// +// Construct the listbox from resource array. +// --------------------------------------------------------------------------- +void CGSRFSPluginContainer::ConstructListBoxL( TInt aResLbxId ) + { + iListBox->ConstructL( this, EAknListBoxSelectionList ); + + iListboxItemArray = CGSListBoxItemTextArray::NewL( aResLbxId, *iListBox, *iCoeEnv ); + + iListBox->Model()->SetItemTextArray( iListboxItemArray ); + iListBox->Model()->SetOwnershipType( ELbmDoesNotOwnItemArray ); + } + +// --------------------------------------------------------------------------- +// CGSRFSPluginContainer::GetHelpContext() const +// +// Gets help context +// --------------------------------------------------------------------------- +void CGSRFSPluginContainer::GetHelpContext( TCoeHelpContext& aContext ) const + { + aContext.iMajor = KUidGS; + aContext.iContext = KSET_HLP_GENERAL_ORIG_SET; + } + +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPluginImplementationTable.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/Rfs/Plugins/GSRFSPlugin/src/GSRFSPluginImplementationTable.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2005 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: +* ECOM proxy table for this plugin +* +*/ + + +// System includes +#include +#include +#include "GSRFSPluginTraces.h" + +// User includes +#include "GSRFSPlugin.h" + +// Constants +const TImplementationProxy KGSRFSPluginImplementationTable[] = + { + IMPLEMENTATION_PROXY_ENTRY( 0x10275118, CGSRFSPlugin::NewL ) + }; + + +// --------------------------------------------------------------------------- +// ImplementationGroupProxy +// Gate/factory function +// +// --------------------------------------------------------------------------- +// +EXPORT_C const TImplementationProxy* ImplementationGroupProxy( + TInt& aTableCount ) + { + TRACES("ImplementationGroupProxy()"); + aTableCount = sizeof( KGSRFSPluginImplementationTable ) + / sizeof( TImplementationProxy ); + TRACES("ImplementationGroupProxy(): End"); + return KGSRFSPluginImplementationTable; + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/cprfsplugin.pro --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/cprfsplugin.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -# -# Copyright (c) 2010 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: Project file for the RFS Plugin. It creates the bld.inf and .mmp file on executing -# qmake command. -# -# - -TEMPLATE = lib -TARGET = cprfsplugin -DEPENDPATH += . inc src -INCLUDEPATH += . -INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - -CONFIG += hb\ - plugin - -MOC_DIR = moc -OBJECTS_DIR = obj -RCC_DIR = rcc - -# Platforms -SYMBIAN_PLATFORMS = WINSCW \ - ARMV5 - -LIBS += -lcpframework \ - -lRfs -# Input -HEADERS += inc/cprfsplugin.h \ - inc/cprfssettingsdataformcustomitem.h \ - inc/cprfssettingsform.h \ - inc/cprfsview.h -SOURCES += src/cprfsplugin.cpp \ - src/cprfssettingsdataformcustomitem.cpp \ - src/cprfssettingsform.cpp \ - src/cprfsview.cpp - -symbian: { - TARGET.EPOCALLOWDLLDATA = 1 - DEFINES += PLUGINUID3=0x10275117 - TARGET.UID3 = 0x10275117 -} -symbian { - deploy.path = C: - qtplugins.path = /resource/qt/plugins/controlpanel - qtplugins.sources += qmakepluginstubs/cprfsplugin.qtplugin - # This is for new exporting system coming in garden - for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin $$deploy.path$$qtplugins.path/$$basename(qtplugin)" -} -# Build.inf rules -BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \ - "rom/cprfssettingsplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(cprfssettingsplugin.iby)" - -TARGET.CAPABILITY = All -TCB -plugin.sources = cprfsplugin.dll -plugin.path = \resource\qt\plugins\controlpanel -DEPLOYMENT += plugin diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfsplugin.h --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfsplugin.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2010 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 CPRFSPLUGIN_H -#define CPRFSPLUGIN_H - -#include -#include - -class CpRfsPlugin : public QObject, public CpPluginInterface -{ -Q_OBJECT - Q_INTERFACES(CpPluginInterface) -public: - CpRfsPlugin(); - ~CpRfsPlugin(); - virtual QList createSettingFormItemData(CpItemDataHelper &itemDataHelper) const; -}; - -#endif //CPRFSPLUGIN_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfssettingsdataformcustomitem.h --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfssettingsdataformcustomitem.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2010 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 CP_RFS_SETTINGS_DATAFORM_CUSTOMITEM_H -#define CP_RFS_SETTINGS_DATAFORM_CUSTOMITEM_H - -#include - - -class HbPushButton; - -class CpRfsSettingsDataFormCustomItem : public HbDataFormViewItem -{ -Q_OBJECT - -public: - CpRfsSettingsDataFormCustomItem(QGraphicsItem *parent); - ~CpRfsSettingsDataFormCustomItem(); - virtual bool canSetModelIndex(const QModelIndex &index) const; - virtual HbAbstractViewItem* createItem(); -protected: - //Override createCustomWidget API - virtual HbWidget* createCustomWidget(); -public: - HbPushButton *mButton; - -}; - -#endif // CP_RFS_SETTINGS_DATAFORM_CUSTOMITEM_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfssettingsform.h --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfssettingsform.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2010 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 CP_RFS_SETTINGSFORM_H -#define CP_RFS_SETTINGSFORM_H - -#include -#include - -class HbDataFormModelItem; - -class CpRfsSettingsForm : public HbDataForm -{ -Q_OBJECT -public: - explicit CpRfsSettingsForm(QGraphicsItem *parent = 0); - ~CpRfsSettingsForm(); -private: - void initRfsSettingModel(); - // call these function when activated signal is emitted - void activateNormalRfs(HbWidget *widget); - void activateDeepRfs(HbWidget *widget); - -private slots: - void onItemActivated(const QModelIndex &index); - void onPressedNormalRfs(); - void onPressedDeepRfs(); - -private: - - //DataForm List Items - HbDataFormModelItem *mNormalRfs; - HbDataFormModelItem *mDeepRfs; - HbTranslator mTrans; - -}; -#endif // CP_RFS_SETTINGSFORM_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfsview.h --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/inc/cprfsview.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2010 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 CPRFSVIEW_H -#define CPRFSVIEW_H - -#include - -class CpRfsView : public CpBaseSettingView -{ - Q_OBJECT -public: - explicit CpRfsView(QGraphicsItem *parent = 0); - ~CpRfsView(); -}; - -#endif// CPRFSVIEW_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/rom/cprfssettingsplugin.iby --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/rom/cprfssettingsplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2010 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 __CPRFSSETTINGSPLUGIN_IBY__ -#define __CPRFSSETTINGSPLUGIN_IBY__ - -#include -file=ABI_DIR\BUILD_DIR\cprfsplugin.dll SHARED_LIB_DIR\cprfsplugin.dll - -data=\epoc32\data\c\resource\qt\plugins\controlpanel\cprfsplugin.qtplugin resource\qt\plugins\controlpanel\cprfsplugin.qtplugin - -#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfsplugin.cpp --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfsplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2010 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: Creates the plug-in to the control panel.Creates a setting form - * item data, by which the control panel framework can build a setting form model - * - */ -#include "cprfsplugin.h" -#include "cprfsview.h" -#include -#include -#include - -CpRfsPlugin::CpRfsPlugin() - { - } - -CpRfsPlugin::~CpRfsPlugin() - { - } -QList CpRfsPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const - { - HbTranslator trans("control_panel"); - return QList() - << new CpSettingFormEntryItemDataImpl(itemDataHelper,hbTrId("txt_cp_dblist_reset"),hbTrId("txt_cp_dblist_reset_val_reset_your_device"),QString("qtg_large_reset")); - } - -Q_EXPORT_PLUGIN2(cprfsplugin, CpRfsPlugin); diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfssettingsdataformcustomitem.cpp --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfssettingsdataformcustomitem.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2010 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: Creates the custom items required for HbDataFormModelItem. - * - */ - -#include -#include -#include -#include - -CpRfsSettingsDataFormCustomItem::CpRfsSettingsDataFormCustomItem(QGraphicsItem *parent) : -HbDataFormViewItem(parent) - { - } - -CpRfsSettingsDataFormCustomItem::~CpRfsSettingsDataFormCustomItem() - { - } - -//overridden method which is required in case of customwidget -bool CpRfsSettingsDataFormCustomItem::canSetModelIndex(const QModelIndex &index) const - { - HbDataFormModelItem::DataItemType itemType = - static_cast( - index.data(HbDataFormModelItem::ItemTypeRole).toInt()); - //each custom item can be represented by customitembase+number and 10 is just in future if u have to add extra custom items - if(itemType >= HbDataFormModelItem::CustomItemBase && - itemType <= HbDataFormModelItem::CustomItemBase + 10 ) { - return true; - } - return false; - - } -//overridden method which is required in case of customwidget -HbAbstractViewItem* CpRfsSettingsDataFormCustomItem::createItem() - { - return new CpRfsSettingsDataFormCustomItem(*this); - } -//overridden method which is required in case of customwidget -HbWidget* CpRfsSettingsDataFormCustomItem::createCustomWidget() - { - HbDataFormModelItem::DataItemType itemType = static_cast( - modelIndex().data(HbDataFormModelItem::ItemTypeRole).toInt()); - HbTranslator trans("control_panel"); - switch(itemType) - { - case HbDataFormModelItem::CustomItemBase + 1: - { - //Create 1st button - mButton = new HbPushButton(); - mButton->setText(hbTrId("txt_cp_setlabel_settings_reset_val_reset_settings")); - return mButton; - } - case HbDataFormModelItem::CustomItemBase + 2: - { - //Create 2nd button - mButton = new HbPushButton(); - mButton->setText(hbTrId("txt_cp_setlabel_device_reset_val_reset_device")); - return mButton; - } - //Some other cases can also be added if there are more than 2 custom data item - default: - return 0; - } - } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfssettingsform.cpp --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfssettingsform.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2010 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: Creates the view for "Reset" and "Delete Data and Resore" and activates the RFS operation based on the user selection. - * - */ - -#include "cprfssettingsform.h" -#include "cprfssettingsdataformcustomitem.h" - - -#include -#include -#include -#include - -CpRfsSettingsForm::CpRfsSettingsForm(QGraphicsItem *parent) : - HbDataForm(parent),mTrans("control_panel") - { - this->setHeading(hbTrId("txt_cp_subhead_reset")); - - //initialize the form model - initRfsSettingModel(); - - connect(this, SIGNAL(itemShown(QModelIndex)),this, SLOT(onItemActivated(QModelIndex))); - } - -CpRfsSettingsForm::~CpRfsSettingsForm() - { - - } - -void CpRfsSettingsForm::initRfsSettingModel() - { - HbDataFormModel *model = new HbDataFormModel(0); - - // Create the custom items because HbPushButton cannot be added to the HbDataFormModelItem - HbDataFormModelItem::DataItemType customItem1 = static_cast(HbDataFormModelItem::CustomItemBase + 1); - - mNormalRfs = model->appendDataFormItem(customItem1, QString(), model->invisibleRootItem()); - mNormalRfs->setLabel(hbTrId("txt_cp_setlabel_settings_reset")); - mNormalRfs->setDescription(hbTrId("txt_cp_info_original_settings_will_be_restored_no")); - HbDataFormModelItem::DataItemType customItem2 = static_cast(HbDataFormModelItem::CustomItemBase + 2); - - mDeepRfs = model->appendDataFormItem(customItem2, QString(), model->invisibleRootItem()); - mDeepRfs->setLabel(hbTrId("txt_cp_setlabel_device_reset")); - mDeepRfs->setDescription(hbTrId("txt_cp_info_all_data_will_be_deleted_and_factory_s")); - this->setModel(model); - } - -// On Item activated -void CpRfsSettingsForm::onItemActivated(const QModelIndex &index) - { - HbDataFormModelItem *itemData = static_cast (index.internalPointer()); - // to deal with orbit change temparialy - if (itemData->type() > HbDataFormModelItem::GroupPageItem) - { - //get the widget of setting item - HbAbstractViewItem* viewitem = static_cast(this)->itemByIndex(index); - HbWidget* widget =static_cast(viewitem)->dataItemContentWidget(); - if (itemData == mNormalRfs) - { - activateNormalRfs(widget); - } - if (itemData == mDeepRfs) - { - activateDeepRfs(widget); - } - } - } - -void CpRfsSettingsForm::activateNormalRfs(HbWidget* widget) - { - HbPushButton *advanced = qobject_cast (widget); - - if(advanced) - { - //TODO Issue in DataForm Calling the itemActivated twice - disconnect( advanced, SIGNAL(clicked()), this, SLOT(onPressedNormalRfs()) ); - - connect( advanced, SIGNAL(clicked()), this, SLOT(onPressedNormalRfs()) ); - } - } - -void CpRfsSettingsForm::activateDeepRfs(HbWidget* widget) - { - HbPushButton *advanced = qobject_cast (widget); - - if(advanced) - { - //TODO Issue in DataForm Calling the itemActivated twice - disconnect( advanced, SIGNAL(clicked()), this, SLOT(onPressedDeepRfs()) ); - - connect( advanced, SIGNAL(clicked()), this, SLOT(onPressedDeepRfs()) ); - } - } - -void CpRfsSettingsForm::onPressedNormalRfs() - { - CRfsHandler* rfsHandler = new ( ELeave ) CRfsHandler; - CleanupStack :: PushL(rfsHandler); - - //activate the Normal RFS - rfsHandler->ActivateRfsL( ERfsNormal ); - - CleanupStack :: PopAndDestroy(rfsHandler); - - } - -void CpRfsSettingsForm::onPressedDeepRfs() - { - CRfsHandler* rfsHandler = new ( ELeave ) CRfsHandler; - CleanupStack :: PushL(rfsHandler); - - //activate the Deep RFS - rfsHandler->ActivateRfsL( ERfsDeep ); - - CleanupStack :: PopAndDestroy(rfsHandler); - } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfsview.cpp --- a/coreapplicationuis/Rfs/Plugins/cprfsplugin/src/cprfsview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2010 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: Creates the settingForm for RFS plug-in where we can add setting item to the form later. - * - */ - -#include "cprfsview.h" -#include "cprfssettingsform.h" - -#include -#include "cprfssettingsdataformcustomitem.h" - -CpRfsView::CpRfsView(QGraphicsItem *parent): -CpBaseSettingView(0,parent) - { - CpRfsSettingsForm* settingForm = new CpRfsSettingsForm(this); - - //custom prototype - CpRfsSettingsDataFormCustomItem* customPrototype = new CpRfsSettingsDataFormCustomItem(settingForm); - - QList protos = settingForm->itemPrototypes(); - protos.append(customPrototype); - settingForm->setItemPrototypes(protos); - //function from hbview - setWidget(settingForm); - - } -CpRfsView::~CpRfsView() - { - } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/group/bld.inf --- a/coreapplicationuis/Rfs/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -23,6 +23,7 @@ PRJ_EXPORTS ../loc/rfs.loc MW_LAYER_LOC_EXPORT_PATH(rfs.loc) +../Plugins/GSRFSPlugin/loc/gsrfsplugin.loc MW_LAYER_LOC_EXPORT_PATH(gsrfsplugin.loc) ../rom/rfs.iby CORE_MW_LAYER_IBY_EXPORT_PATH(rfs.iby) ../rom/rfsResources.iby LANGUAGE_MW_LAYER_IBY_EXPORT_PATH(rfsResources.iby) ../rom/rfs_variant.iby CUSTOMER_MW_LAYER_IBY_EXPORT_PATH(rfs_variant.iby) @@ -31,5 +32,12 @@ PRJ_MMPFILES rfs.mmp rfsMain.mmp +../Plugins/GSRFSPlugin/group/GSRFSPlugin.mmp ../Plugins/rfscustcmd/group/rfscustcmd.mmp +PRJ_EXTENSIONS +START EXTENSION s60/mifconv + OPTION TARGETFILE GSRFSPlugin.mif + OPTION HEADERFILE GSRFSPlugin.mbg + OPTION SOURCES -c8,8 qgn_prop_set_gene_phone +END diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/group/rfs.mmp --- a/coreapplicationuis/Rfs/group/rfs.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/group/rfs.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -29,14 +29,6 @@ USERINCLUDE ../inc - -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets - - -LIBRARY HbWidgets.lib - - - MW_LAYER_SYSTEMINCLUDE SOURCEPATH ../src @@ -60,17 +52,18 @@ LIBRARY euser.lib LIBRARY efsrv.lib LIBRARY bafl.lib +LIBRARY avkon.lib LIBRARY cone.lib LIBRARY etel.lib LIBRARY etelmm.lib -LIBRARY commonengine.lib +LIBRARY CommonEngine.lib LIBRARY sysutil.lib LIBRARY hal.lib LIBRARY secui.lib LIBRARY eikcore.lib -LIBRARY syslangutil.lib -LIBRARY platformenv.lib // PathInfo +LIBRARY SysLangUtil.lib +LIBRARY PlatformEnv.lib // PathInfo LIBRARY centralrepository.lib // Central Repository LIBRARY starterclient.lib LIBRARY ecom.lib -LIBRARY featmgr.lib +LIBRARY FeatMgr.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/group/rfsMain.mmp --- a/coreapplicationuis/Rfs/group/rfsMain.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/group/rfsMain.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET rfsserver.exe +TARGET RfsServer.exe TARGETTYPE exe SOURCEPATH ../src VENDORID VID_DEFAULT diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/inc/rfsConnectionObserver.h --- a/coreapplicationuis/Rfs/inc/rfsConnectionObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/inc/rfsConnectionObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -19,14 +19,14 @@ #ifndef __RFSPDPOBSERVER_H #define __RFSPDPOBSERVER_H -#include +#include // P&S KEYS FROM SIP & PDP CONNECTION #include #include #include -#include "rfscontimer.h" +#include "rfsConTimer.h" class CRfsConTimer; @@ -36,7 +36,7 @@ EPdpConnectionClose // this should be the last enum }; -NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive,public MHbDeviceProgressDialogObserver +NONSHARABLE_CLASS( CRfsConnectionObserver ): public CActive { public: @@ -49,11 +49,6 @@ * Destructor */ virtual ~CRfsConnectionObserver(); - - void ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* iDialog); - - void ProgressDialogClosed(const CHbDeviceProgressDialogSymbian * iDialog) ; - public: /** @@ -140,8 +135,9 @@ /** * Own: Wait dialog */ - CHbDeviceProgressDialogSymbian* iDialog ; - /** + CAknWaitDialog* iWaitDialog; + + /** * Own: PDP property */ RProperty iPDPProperty; @@ -177,8 +173,6 @@ TBool iIsSipInformedForClosingAllConnection; TBool iIsPDPInformedforClosingAllConnection; TBool iIsClosingConnectionsApplicable; - //for synchronous dialog handling - CActiveSchedulerWait *iWait; public: diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/rom/rfs.iby --- a/coreapplicationuis/Rfs/rom/rfs.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/rom/rfs.iby Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -21,6 +21,9 @@ file=ABI_DIR\BUILD_DIR\RFS.DLL SHARED_LIB_DIR\RFS.DLL file=ABI_DIR\BUILD_DIR\RfsServer.exe PROGRAMS_DIR\RfsServer.exe +ECOM_PLUGIN(GSRFSPlugin.dll,10275117.rsc) +SCALABLE_IMAGE(APP_BITMAP_DIR,APP_BITMAP_DIR,GSRFSPlugin) + file=ABI_DIR\BUILD_DIR\rfscustcmd.dll SHARED_LIB_DIR\rfscustcmd.dll #endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/rom/rfsResources.iby --- a/coreapplicationuis/Rfs/rom/rfsResources.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/rom/rfsResources.iby Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -21,4 +21,5 @@ //Resource file(s) for RFS data=DATAZ_\RESOURCE_FILES_DIR\Rfs.rsc RESOURCE_FILES_DIR\Rfs.rsc +data=DATAZ_\RESOURCE_FILES_DIR\GSRFSPluginRsc.RSC RESOURCE_FILES_DIR\GSRFSPluginRsc.RSC #endif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/src/rfs.rss --- a/coreapplicationuis/Rfs/src/rfs.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/src/rfs.rss Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -27,7 +27,10 @@ #include "rfs.loc" #include #include - +#include +#include +#include +#include // RESOURCE DEFINITIONS @@ -39,12 +42,76 @@ RESOURCE TBUF r_device_restart { buf = qtn_rfs_note_device_restart; } +// ----------------------------------------------------------------------------- +// R_CONFIRM_RFS +// ----------------------------------------------------------------------------- -RESOURCE TBUF r_confirm_rfs { buf = qtn_rfs_restore_query; } +RESOURCE DIALOG r_confirm_rfs + { + flags = EGeneralQueryFlags; + + buttons = R_AVKON_SOFTKEYS_YES_NO__YES; + items = + { + DLG_LINE + { + type = EAknCtQuery; + id = EGeneralQuery; + control = AVKON_CONFIRMATION_QUERY + { + layout = EConfirmationLayout; + label = qtn_rfs_restore_query; + }; + } + }; + } + +// ----------------------------------------------------------------------------- +// R_CONFIRM_DEEP_RFS +// ----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_confirm_deep_rfs + { + flags = EGeneralQueryFlags; -RESOURCE TBUF r_confirm_deep_rfs { buf = qtn_rfs_reset_phone_settings; } + buttons = R_AVKON_SOFTKEYS_YES_NO__YES; + items = + { + DLG_LINE + { + type = EAknCtQuery; + id = EGeneralQuery; + control = AVKON_CONFIRMATION_QUERY + { + layout = EConfirmationLayout; + label = qtn_rfs_reset_phone_settings; + }; + } + }; + } -RESOURCE TBUF r_closing_connections { buf = qtn_rfs_note_closing_connections; } - +// ----------------------------------------------------------------------------- +// R_CLOSING_CONNECTIONS +// ----------------------------------------------------------------------------- +// +RESOURCE DIALOG r_closing_connections + { + flags = EAknWaitNoteFlags | EEikDialogFlagWait; + buttons = R_AVKON_SOFTKEYS_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EGeneralNote; + control = AVKON_NOTE + { + layout = EWaitLayout; + singular_label = qtn_rfs_note_closing_connections; + animation = R_QGN_GRAF_WAIT_BAR_ANIM; + }; + } + }; + } // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/src/rfsConnectionObserver.cpp --- a/coreapplicationuis/Rfs/src/rfsConnectionObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/src/rfsConnectionObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,12 +20,11 @@ // SYSTEM INCLUDES #include #include + #include -#include #include +#include #include -#include - // USER INCLUDES @@ -107,12 +106,12 @@ // proceed further to create a common dialog. This will be a wait for dialog which will be // of synchrnous type and can only be closed inside the RunL() of this active class. // Provisions needed to be added to know whether this dialog needs resetting the pointer, - // this will be the case when dialog is actually started using 'showl()', + // this will be the case when dialog is actually started using 'ExecuteLD()', // Otherwise we need to delete this dialog and reset the pointer to NULL. - if (iIsDialogNeedToBeDisplayed) - { - iDialog = CHbDeviceProgressDialogSymbian::NewL(CHbDeviceProgressDialogSymbian::EWaitDialog); - } + if (iIsDialogNeedToBeDisplayed) + { + iWaitDialog = new( ELeave ) CAknWaitDialog(reinterpret_cast( &iWaitDialog ) ); + } // Now we proceed further to setting of the next state i,e, enter the state machine of this active object // which will start from closing of the active connections and proceed to close the other connections @@ -175,7 +174,6 @@ delete iRfsConTimer; } Cancel(); - delete iWait; TRACES("CRfsConnectionObserver::~CRfsConnectionObserver(): End"); } @@ -218,61 +216,36 @@ // This means that RFS has failed as there was some problem setting the P&S keys User::LeaveIfError(err); - // we set the flag to indicate showl is called and the dialog needs to be + // we set the flag to indicate ExecuteLD is called and the dialog needs to be // dismissed from within the RunL() iIsWaitForDialogExecuted = ETrue; // Start displaying the dialog which will then be closed form the RunL() // Here the code execution blocks and we will proceed further only when // this dialog is canceled - - HBufC* prompt = StringLoader::LoadLC( R_CLOSING_CONNECTIONS ); + err = iWaitDialog->ExecuteLD( R_CLOSING_CONNECTIONS ); - iDialog->SetTextL(*prompt); - - //observer interface is used since showl is aynchronous and we have to have callbacks - //if cancel is pressed or dialog is closed - iDialog->SetObserver(this); - iDialog->ShowL(); - //activeschedulerwait is used since we want synchronous execution and control goes into - //a loop here and returns to start when dialog is cancelled or closed. - iWait = new (ELeave) CActiveSchedulerWait; - iWait->Start(); - delete iWait; - iWait=NULL; - CleanupStack::PopAndDestroy( prompt ); - - return iAllConnectionClosed; - } - -void CRfsConnectionObserver::ProgressDialogCancelled(const CHbDeviceProgressDialogSymbian* iDialog) -{ + // following is the case when the user presses the Cancel button from the wait // for dialog and in that case we need to resend the notificaiton of RFS failed - // to whom all we have told previous of this to close the RFS connection - - if (iIsSipInformedForClosingAllConnection) - { - TInt err = iSIPProperty.Set(KPSSipRfsUid, KSipRfsState, ESipRfsFailed ); - } - if (iIsPDPInformedforClosingAllConnection) - { - iPDPProperty.Set(KPDPContextManager2,KPDPContextManagerFactorySettingsReset,EPDPContextManagerFactorySettingsResetStop); - } - if(iRfsConTimer) + // to whom all we have told previous of this to close the RFS connection + if (err == EEikBidCancel) + { + if (iIsSipInformedForClosingAllConnection) + { + err = iSIPProperty.Set(KPSSipRfsUid, KSipRfsState, ESipRfsFailed ); + } + if (iIsPDPInformedforClosingAllConnection) + { + iPDPProperty.Set(KPDPContextManager2,KPDPContextManagerFactorySettingsReset,EPDPContextManagerFactorySettingsResetStop); + } + if(iRfsConTimer) { // Cancel the Active timer if the user cancel the Rfs operation iRfsConTimer->Cancel(); - } -} - - -void CRfsConnectionObserver::ProgressDialogClosed(const CHbDeviceProgressDialogSymbian * iDialog) -{ - //this function is called when the dialog is closed ,note that the control from progressdialogcancelled - //comes to ProgressDialogClosed once dialog is closed - iWait->AsyncStop(); //from here the control goes to iWait->start(); -} - + } + } + return iAllConnectionClosed; + } void CRfsConnectionObserver::ReportRfsCompletionToSip() { @@ -411,7 +384,7 @@ iAllConnectionClosed = ETrue; iRfsConTimer->Cancel(); DismissWaitDialog(); - } + } } } // end switch-case block } @@ -489,21 +462,22 @@ { TRACES("CRfsConnectionObserver::DismissWaitDialog()"); - if ( iDialog && iIsWaitForDialogExecuted) + if ( iWaitDialog && iIsWaitForDialogExecuted) { - iDialog->Close(); + TRAP_IGNORE( iWaitDialog->ProcessFinishedL() ); } // Sanity Check: // It can be a case when dialog was need to be displayed but was not due to some error - // this means that the 'iDialog' was constructed but never used and destroyed - // i.e. the showl() was never called - else if(iIsDialogNeedToBeDisplayed && !iIsWaitForDialogExecuted) + // this means that the 'iWaitDialog' was constructed but never used and destroyed + // i.e. the ExecuteLD() was never called + else if(iIsDialogNeedToBeDisplayed && !iIsWaitForDialogExecuted) { - delete iDialog; + delete iWaitDialog; } - // Reset the pointer to NULL - iDialog = NULL; + + // Reset the pointer to NULL + iWaitDialog = NULL; TRACES("CRfsConnectionObserver::DismissWaitDialog(): End"); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/src/rfsHandler.cpp --- a/coreapplicationuis/Rfs/src/rfsHandler.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/src/rfsHandler.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008-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" @@ -39,7 +39,10 @@ #include // security UI #include -#include + +#include +#include + #include #include #include @@ -47,18 +50,16 @@ #include #include "CleanupResetPointer.h" +#include #include #include #include "rfsConnectionObserver.h" #include "rfsHandler.h" #include "rfsClient.h" #include "RfsTraces.h" -#include _LIT( KRfsResourceFileName, "Z:rfs.rsc"); -_LIT(KYes,"yes"); -_LIT(KNo,"No"); // CONSTANTS const TInt KPhoneIndex = 0; @@ -186,19 +187,11 @@ if( startersession.Connect() == KErrNone ) { // Displays information note to the user telling that the device will restart - HBufC* prompt = StringLoader::LoadLC( R_DEVICE_RESTART ); - - CHbDeviceMessageBoxSymbian* note = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EInformation); - CleanupStack::PushL(note); - note->SetTextL(*prompt); - //could have used show() but it is aynchronous and execution proceeds before note is seen so have used synchronous API exec() - note->ExecL(); - CleanupStack::PopAndDestroy(note); - CleanupStack::PopAndDestroy( prompt ); - - - - + HBufC* prompt = iEnv->AllocReadResourceLC( R_DEVICE_RESTART ); + CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); + note->ExecuteLD( *prompt ); + CleanupStack::PopAndDestroy( prompt ); + if (aType == ERfsNormal ) startersession.Reset( RStarterSession::ENormalRFSReset ); else if (aType == ERfsDeep ) startersession.Reset( RStarterSession::EDeepRFSReset ); else startersession.Reset( RStarterSession::EUnknownReset ); @@ -245,9 +238,12 @@ EXPORT_C void CRfsHandler::Cancel() { TRACES("CRfsHandler::Cancel()"); - - - // delete security handler + + // delete confirmation query + delete iQuery; + iQuery = NULL; + + // delete security handler if ( iSecurityHandler ) { iSecurityHandler->CancelSecCodeQuery(); @@ -330,26 +326,32 @@ TBool CRfsHandler::AskConfirmationL( const TBool& aThisDestroyed, TRfsType aType ) { TRACES("CRfsHandler::AskConfirmationL()"); - - + CleanupResetPointerPushL( iQuery ); + + // Show the confirmation query. + + iQuery = CAknQueryDialog::NewL(); // no tone as default + TInt resourceId = ( aType == ERfsNormal ) ? R_CONFIRM_RFS : R_CONFIRM_DEEP_RFS; - HBufC* query = iEnv->AllocReadResourceLC( resourceId ); - - // Show the confirmation query. - - CHbDeviceMessageBoxSymbian::TButtonId selection = CHbDeviceMessageBoxSymbian::QuestionL(*query, KYes, KNo); - TBool ret; - if (selection == CHbDeviceMessageBoxSymbian::EAcceptButton) // user pressed yes + //iQuery->SetSize(); + //iQuery->pref + + TBool ret = iQuery->ExecuteLD( resourceId ); + + if ( aThisDestroyed ) { - ret=ETrue; + // this object was destroyed + ret = EFalse; + // remove cleanup item + CleanupStack::Pop(); } else { - ret=EFalse; - } - CleanupStack::PopAndDestroy(query); - return ret; - + // NULLs iQuery + CleanupStack::PopAndDestroy(); + } + + return ret; } // ----------------------------------------------------------------------------- @@ -439,13 +441,11 @@ { HBufC* prompt = iEnv->AllocReadResourceLC( R_ACTIVE_CALLS ); - CHbDeviceMessageBoxSymbian* note = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EInformation); - CleanupStack::PushL(note); - note->SetTextL(*prompt); - note->ShowL(); - CleanupStack::PopAndDestroy( note ); - CleanupStack::PopAndDestroy( prompt ); - + CAknInformationNote* note = new ( ELeave ) CAknInformationNote( ETrue ); + + note->ExecuteLD( *prompt ); + + CleanupStack::PopAndDestroy( prompt ); return ETrue; } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/Rfs/src/rfscontimer.cpp --- a/coreapplicationuis/Rfs/src/rfscontimer.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/Rfs/src/rfscontimer.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -16,9 +16,8 @@ * */ -#include -#include "rfscontimer.h" +#include "rfsConTimer.h" #include "RfsTraces.h" const TInt KRfsConnectionTimeOut = 60000000; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Data/SysAp.rss --- a/coreapplicationuis/SysAp/Data/SysAp.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Data/SysAp.rss Wed Sep 01 12:24:48 2010 +0100 @@ -21,7 +21,7 @@ // INCLUDES #include -#include +#include #include #include #include @@ -31,18 +31,12 @@ RESOURCE RSS_SIGNATURE { } -RESOURCE TBUF { buf="sysap"; } +RESOURCE TBUF { buf=""; } RESOURCE EIK_APP_INFO - { - status_pane = r_status_pane; - } - -RESOURCE STATUS_PANE_APP_MODEL r_status_pane - { - layout= R_AVKON_STATUS_PANE_LAYOUT_EMPTY; - } - +{ + status_pane=R_AVKON_STATUS_PANE_LAYOUT_EMPTY; +} // LOCALIZED STRINGS diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Group/SysAp.mmp --- a/coreapplicationuis/SysAp/Group/SysAp.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Group/SysAp.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -18,7 +18,7 @@ #include #include -TARGET sysap.exe +TARGET SysAp.exe TARGETTYPE exe UID 0x0 0x100058F3 @@ -35,49 +35,123 @@ MACRO SYSAP_USE_STARTUP_UI_PHASE #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - SOURCEPATH ../Src SOURCE SysApApp.cpp +SOURCE SysApAppUi.cpp SOURCE SysApDocument.cpp -//SOURCE main.cpp -SOURCE SysApAppUi.cpp -//SOURCE SysApWsClient.cpp -SOURCE SysApFeatureManager.cpp +SOURCE sysapkeymanagement.cpp SOURCE SysApLightsController.cpp SOURCE SysApTimer.cpp -SOURCE sysaplightpluginhandler.cpp + +SOURCE SysApPubSubObserver.cpp +SOURCE SysApProfileObserver.cpp +SOURCE SysApEtelNetworkBarObserver.cpp +SOURCE sysapetelnetworkbargetter.cpp + +SOURCE CenRepObservers/sysapcenrepfmtxobserver.cpp +SOURCE CenRepObservers/SysApCenRepLogsObserver.cpp +SOURCE CenRepObservers/SysApCenRepBTObserver.cpp +SOURCE CenRepObservers/SysApCenRepHacSettingObserver.cpp +SOURCE CenRepObservers/sysapcenreplightsettingsobserver.cpp +SOURCE CenRepObservers/sysapcenrepcallforwardingobserver.cpp +SOURCE CenRepObservers/sysapcenrepmsgwaitingobserver.cpp +SOURCE SysApCenRepController.cpp + +SOURCE SysApStartupController.cpp +SOURCE SysApConnectionMonitorObserver.cpp +SOURCE SysApPowerKeyMenuObserver.cpp +SOURCE SysApSsSettingsObserver.cpp +SOURCE SysApShutdownImage.cpp +SOURCE SysApShutdownAnimation.cpp +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +SOURCE SysApShutdownTone.cpp +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +SOURCE SysApMsgSimMemLowQuery.cpp +SOURCE SysApNspsAnim.cpp SOURCE SysApNspsHandler.cpp -SOURCE SysApNspsAnim.cpp -SOURCE SysApPubSubObserver.cpp SysApSubscriber.cpp sysapremconobserver.cpp -SOURCE sysapdefaultkeyhandler.cpp SysApStartupController.cpp -SOURCE SysApShutdownImage.cpp -SOURCE hbdevicepowermenusymbian.cpp -SOURCE hbdeviceinputdialogsymbian.cpp +SOURCE SysApEtelNetworkStatusNspsObserver.cpp +SOURCE SysApEtelSmsStoreObserver.cpp +SOURCE SysApWaitNote.cpp +SOURCE SysApConfirmationQuery.cpp +SOURCE SysApFeatureManager.cpp +SOURCE SysApSubscriber.cpp + +SOURCE SysApAnimKeySndControl.cpp +SOURCE SysApKeySndAnim.cpp +SOURCE SysApKeySndHandler.cpp + +SOURCE SysApSimChanged.cpp +LIBRARY logcli.lib + +LIBRARY hal.lib +SOURCE SysApAccessoryObserver.cpp +LIBRARY AccClient.lib + +SOURCE SysApEtelConnector.cpp #ifdef __OFFLINE_MODE SOURCE OfflineModeController/SysApOfflineModeControllerImpl.cpp +#else +SOURCE OfflineModeController/SysApOfflineModeControllerStub.cpp +#endif + +//Always use stub implementation of privacy framework, as it is no longer supported +// Find out if/how a replacement must be done +SOURCE PrivacyFramework/SysApLocationPrivacyIndicatorStub.cpp + +#ifdef __USB +SOURCE Usb/SysApUsbIndicatorImpl.cpp +LIBRARY usbman.lib // USB Manager +#else +SOURCE Usb/SysApUsbIndicatorStub.cpp +#endif +SOURCE Usb/sysapusbchargerdetector.cpp + +#ifdef __BT +SOURCE Bt/SysApBtControllerImpl.cpp +LIBRARY btengdevman.lib +LIBRARY btengsettings.lib +LIBRARY btmanclient.lib +#else +SOURCE Bt/SysApBtControllerStub.cpp #endif +#ifdef __BT_SAP +SOURCE BtSap/SysApBtSapControllerImpl.cpp +LIBRARY btengconnman.lib +LIBRARY btdevice.lib +LIBRARY bluetooth.lib +#else +SOURCE BtSap/SysApBtSapControllerStub.cpp +#endif -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets -SYSTEMINCLUDE /epoc32/include/mw/hb/hbcore +SOURCE SysApMediatorObserver.cpp -SYSTEMINCLUDE /epoc32/include/mw - +SOURCE sysapdefaultkeyhandler.cpp +#ifdef RD_LIGHT_CONTROL_CHANGE +SOURCE sysaplightpluginhandler.cpp +#endif -USERINCLUDE . -USERINCLUDE ../Inc -USERINCLUDE ../Src/CenRepObservers -USERINCLUDE ../Src/Usb -USERINCLUDE ../Src/powersavemode -USERINCLUDE ../../inc // subsystem headers -USERINCLUDE ../../../inc // ado headers -USERINCLUDE ../CenRep -USERINCLUDE ../PubSub -USERINCLUDE ../Src/memorycard +SOURCE sysapaudioroutingobserver.cpp +SOURCE sysapeteldatabearerobserver.cpp + +SOURCE memorycard/SysApMMCObserver.cpp +#ifdef RD_MULTIPLE_DRIVE +SOURCE memorycard/sysapdrivelist.cpp +SOURCE memorycard/sysapdriveunlockhandler.cpp +SOURCE memorycard/sysapdriveejecthandler.cpp +#endif // RD_MULTIPLE_DRIVE -MW_LAYER_SYSTEMINCLUDE -APP_LAYER_SYSTEMINCLUDE +SOURCE sysapetelnetworkinfoobserver.cpp +SOURCE sysapremconobserver.cpp +SOURCE powersavemode/sysappsmcontroller.cpp +SOURCE sysapbatteryinfocontroller.cpp + +SOURCE gan\sysapganpropertylistener.cpp +SOURCE gan\sysapganhandler.cpp + +SOURCE SysApSatObserver.cpp +LIBRARY satclient.lib // for sat refresh START RESOURCE ../Data/SysAp.rss HEADER @@ -97,6 +171,22 @@ TARGETPATH /private/10003a3f/apps END +SOURCEPATH ../Data + +USERINCLUDE . +USERINCLUDE ../Inc +USERINCLUDE ../Src/CenRepObservers +USERINCLUDE ../Src/memorycard +USERINCLUDE ../Src/Usb +USERINCLUDE ../Src/powersavemode +USERINCLUDE ../../inc // subsystem headers +USERINCLUDE ../../../inc // ado headers +USERINCLUDE ../CenRep +USERINCLUDE ../PubSub + +USERINCLUDE ../src/gan + +APP_LAYER_SYSTEMINCLUDE // used instead of MW_LAYER_SYSTEMINCLUDE due to dependencies to APP layer LIBRARY euser.lib LIBRARY apparc.lib @@ -104,131 +194,67 @@ LIBRARY eikcore.lib LIBRARY apgrfx.lib LIBRARY ws32.lib - +LIBRARY avkon.lib LIBRARY bafl.lib - +LIBRARY aknnotify.lib LIBRARY eiksrvc.lib LIBRARY connmon.lib -LIBRARY dsclient.lib -LIBRARY profileeng.lib -LIBRARY starterclient.lib - - +LIBRARY DSClient.lib +LIBRARY ProfileEng.lib +LIBRARY StarterClient.lib +LIBRARY centralrepository.lib +LIBRARY CenRepNotifHandler.lib +LIBRARY CommonEngine.lib +LIBRARY ActivityManager.lib +LIBRARY AknCapServerClient.lib +LIBRARY secui.lib +LIBRARY sssettings.lib LIBRARY fbscli.lib LIBRARY etel.lib LIBRARY etelmm.lib -LIBRARY efsrv.lib - -LIBRARY esock.lib - -LIBRARY ecom.lib - -LIBRARY hbwidgets.lib -//LIBRARY qtcore.lib - - -//For CHbIndicatorSymbian and for CHbPowereMenusymbian -LIBRARY hbcore.lib -LIBRARY hwrmlightclient.lib +LIBRARY customapi.lib LIBRARY featmgr.lib -LIBRARY activitymanager.lib -LIBRARY remconcoreapi.lib -LIBRARY remconinterfacebase.lib -//LIBRARY hbpowermenuwidget.lib - -// End of File - - -#ifdef __USB -SOURCEPATH ../Src/Usb -SOURCE SysApUsbIndicatorImpl.cpp -LIBRARY usbman.lib // USB Manager -#endif -SOURCE sysapusbchargerdetector.cpp - -SOURCEPATH ../Src -SOURCE SysApAccessoryObserver.cpp SysApCenRepController.cpp -LIBRARY accclient.lib -LIBRARY accpolicy.lib - -SOURCE CenRepObservers/SysApCenRepBTObserver.cpp -SOURCE CenRepObservers/SysApCenRepHacSettingObserver.cpp -SOURCE CenRepObservers/sysapcenreplightsettingsobserver.cpp -SOURCE CenRepObservers/SysApCenRepLogsObserver.cpp -SOURCE CenRepObservers/sysapcenrepofflinemodeobserver.cpp - -LIBRARY centralrepository.lib -LIBRARY cenrepnotifhandler.lib - -SOURCE sysapaudioroutingobserver.cpp -LIBRARY telephonyaudiorouting.lib - +LIBRARY efsrv.lib +LIBRARY aknmemorycardui.lib +LIBRARY esock.lib #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION LIBRARY sanimctrl.lib #else // RD_STARTUP_ANIMATION_CUSTOMIZATION LIBRARY MediaClientAudio.lib #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - -LIBRARY bmpanim.lib - -SOURCEPATH ../Src/powersavemode -SOURCE sysappsmcontroller.cpp -LIBRARY psmclient.lib - -SOURCEPATH ../Src -SOURCE sysapbatteryinfocontroller.cpp SysApSimChanged.cpp +LIBRARY hwrmlightclient.lib +LIBRARY hwrmfmtxclient.lib +LIBRARY remconcoreapi.lib +LIBRARY remconinterfacebase.lib +LIBRARY AknIcon.lib +LIBRARY CdlEngine.lib -LIBRARY secui.lib -LIBRARY bsutil.lib -LIBRARY CommonEngine.lib -SOURCEPATH ../Src/Bt -SOURCE SysApBtControllerImpl.cpp -SOURCEPATH ../Src/BtSap -SOURCE SysApBtSapControllerImpl.cpp +// POC launching +LIBRARY ServiceHandler.lib -//LIBRARY eikcoctl.lib -//LIBRARY etelpckt.lib +LIBRARY ecom.lib -LIBRARY btengconnman.lib -LIBRARY btdevice.lib -LIBRARY bluetooth.lib - -LIBRARY btengdevman.lib -LIBRARY btengsettings.lib -LIBRARY btmanclient.lib - -LIBRARY lockclient.lib +LIBRARY mediatorclient.lib +LIBRARY bmpanim.lib -SOURCEPATH ../Src -SOURCE sysapkeymanagement.cpp SysApTaskList.cpp -SOURCE SysApKeySndHandler.cpp SysApKeySndAnim.cpp SysApAnimKeySndControl.cpp SysApShutdownAnimation.cpp - -//For Shutdown -LIBRARY SVGEngine.lib -LIBRARY gdi.lib - -SOURCEPATH ../Src - -SOURCE memorycard/SysApMMCObserver.cpp -#ifdef RD_MULTIPLE_DRIVE -SOURCE memorycard/sysapdrivelist.cpp -SOURCE memorycard/sysapdriveunlockhandler.cpp -SOURCE memorycard/sysapdriveejecthandler.cpp -#endif // RD_MULTIPLE_DRIVE +LIBRARY TelephonyAudioRouting.lib +LIBRARY etelpckt.lib #ifdef RD_MULTIPLE_DRIVE LIBRARY platformenv.lib LIBRARY disknotifyhandler.lib #endif // RD_MULTIPLE_DRIVE +LIBRARY psmclient.lib -LIBRARY avkon.lib +LIBRARY keylockpolicyapi.lib -LIBRARY customapi.lib +LIBRARY bsutil.lib +LIBRARY batterypopupcontrol.lib -SOURCE SysApEtelNetworkStatusNspsObserver.cpp SysApEtelConnector.cpp SysApEtelNetworkBarObserver.cpp SysApEtelSmsStoreObserver.cpp sysapeteldatabearerobserver.cpp sysapetelnetworkbargetter.cpp sysapetelnetworkinfoobserver.cpp - -LIBRARY etelpckt.lib +LIBRARY eikcoctl.lib +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Group/bld.inf --- a/coreapplicationuis/SysAp/Group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -22,6 +22,11 @@ DEFAULT PRJ_EXTENSIONS +START EXTENSION s60/mifconv + OPTION TARGETFILE sysap.mif + OPTION HEADERFILE sysap.mbg + OPTION SOURCES -c8 qgn_startup_screen +END PRJ_EXPORTS @@ -36,15 +41,12 @@ ../rom/SysAp_variant.iby CUSTOMER_MW_LAYER_IBY_EXPORT_PATH(SysAp_variant.iby) ../loc/SysAp.loc MW_LAYER_LOC_EXPORT_PATH(SysAp.loc) -../PubSub/CoreApplicationUIsInternalPSKeys.h |../../../inc/coreapplicationuisinternalpskeys.h -../PubSub/CoreApplicationUIsPrivatePSKeys.h |../../inc/coreapplicationuisprivatepskeys.h -../CenRep/CoreApplicationUIsPrivateCRKeys.h |../../inc/coreapplicationuisprivatecrkeys.h +../PubSub/CoreApplicationUIsInternalPSKeys.h |../../../inc/CoreApplicationUIsInternalPSKeys.h +../PubSub/CoreApplicationUIsPrivatePSKeys.h |../../inc/CoreApplicationUIsPrivatePSKeys.h +../CenRep/CoreApplicationUIsPrivateCRKeys.h |../../inc/CoreApplicationUIsPrivateCRKeys.h -../PubSub/CoreApplicationUIsPrivatePSKeys.h |../../../inc/coreapplicationuisprivatepskeys.h // Illegal export for avoiding breaks +../PubSub/CoreApplicationUIsPrivatePSKeys.h |../../../inc/CoreApplicationUIsPrivatePSKeys.h // Illegal export for avoiding breaks -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/data/z/resource/apps/qgn_sysap_screen.svg -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/udeb/z/resource/apps/qgn_sysap_screen.svg -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/urel/z/resource/apps/qgn_sysap_screen.svg PRJ_MMPFILES //gnumakefile sysap_icons.mk diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApAccessoryObserver.h --- a/coreapplicationuis/SysAp/Inc/SysApAccessoryObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApAccessoryObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -25,7 +25,6 @@ #include #include #include -#include // FORWARD DECLARATIONS class CSysApAppUi; @@ -57,7 +56,6 @@ * @return Current accessory mode */ TAccMode GetAccessoryMode() const; - TInt GetAccessoryConnectionType() const; private: /** @@ -120,8 +118,6 @@ * notifications due change in audio output status. */ TAccMode iPreviousMode; - RAccessoryConnection iAccessoryConnection; - TInt iPhysicalConnectionType; }; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApApp.h --- a/coreapplicationuis/SysAp/Inc/SysApApp.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApApp.h Wed Sep 01 12:24:48 2010 +0100 @@ -20,8 +20,7 @@ #define SYSAPAPP_H // INCLUDES -//#include -#include +#include // CONSTANTS const TUid KUidSysAp={0x100058F3}; @@ -34,7 +33,7 @@ * @since 1.0 */ -class CSysApApp : public CEikApplication +class CSysApApp : public CAknApplication { private: // from CApaApplication /** diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApAppUi.h --- a/coreapplicationuis/SysAp/Inc/SysApAppUi.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApAppUi.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,89 +1,117 @@ /* - * Copyright (c) 2005-2010 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: - * - */ +* Copyright (c) 2005-2010 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: CSysApAppUi class definition. This class handles all user +* actions and also System Agent events. +* +*/ + #ifndef SYSAPAPPUI_H #define SYSAPAPPUI_H +// INCLUDES #include -#include "SysAp.hrh" -#include -#include -#include -#include -#include +#include +#ifndef RD_MULTIPLE_DRIVE + #include +#endif // RD_MULTIPLE_DRIVE #include +#include +#include #include - +#include +#include "SysAp.hrh" +#include "SysApMMCObserver.h" +#include "MSysApPropertyResponder.h" #include "SysApTimer.h" -#include "SysApLightsController.h" -#include "coreapplicationuisprivatecrkeys.h" -#include "sysapusbchargerdetector.h" +#include +#include "CoreApplicationUIsPrivateCRKeys.h" +#include + #include "SysApAccessoryObserver.h" -#include -#include -//For Powermenu--CHbDevicePowerMenuSymbian -#include "hbdevicepowermenusymbian.h" - -#include "sysappsmcontroller.h" -#include "SysApMMCObserver.h" - #ifdef RD_MULTIPLE_DRIVE -#include "sysapdrivelist.h" + #include "sysapdrivelist.h" #endif // RD_MULTIPLE_DRIVE -#include - +#include "sysapusbchargerdetector.h" +#include "sysappsmcontroller.h" -class CSysApFeatureManager; -class CSysApNspsHandler; +// FORWARD DECLARATIONS +class CAknSmallIndicator; +class CAknSignalNotify; +class CAknBatteryNotify; +class CAknGlobalListQuery; +class CAknGlobalNote; +class CSystemLock; +class CSysApLightsController; class CSysApPubSubObserver; +class CSysApProfileObserver; +class CSysApConnectionMonitorObserver; +class CSysApCenRepLightSettingsObserver; +class CSysApCenRepLogsObserver; +class CSysApCenRepBtObserver; +class CSysApCenRepFmTxObserver; +class CSysApCenRepController; class CSysApStartupController; -class CSysApDefaultKeyHandler; -class CSysApKeyManagement; -class MSysApOfflineModeController; -class CHbDevicePowerMenuSymbian; +class CSysApPowerKeyMenuObserver; +class CSysApWaitNote; +class CSysApSsSettingsObserver; class CSysApShutdownImage; +class CSysApShutdownAnimation; +class CSysApEtelConnector; +class CSysApMsgSimMemLowQuery; +class CSysApNspsHandler; +class CSysApConfirmationQuery; +class CSysApFeatureManager; +class MSysApOfflineModeController; +class MSysApBtController; +class MSysApBtSapController; +class MSysApUsbIndicator; +class MSysApLocationPrivacyIndicator; +class MProfileEngine; +class MProfilesNamesArray; class CSysApKeySndHandler; -class CSysApCenRepController; -class CSysApCenRepLightSettingsObserver; -class CSysApCenRepBtObserver; +class CSysApKeyManagement; // KEF +class CSysApMediatorObserver; +class CAknAppUiBase; class CSysApCenRepHacSettingObserver; class CSysApAudioRoutingObserver; -class CSysApSsSettingsObserver; -class CSystemLock; class CSysApCenRepCallForwardingObserver; -class CSysApBatteryInfoController; -class MSysApBtSapController; -class MSysApBtController; -class CSysApCenRepLogsObserver; -class MSysApUsbIndicator; -class CKeyguardAccessApi; -class CHbIndicatorSymbian; -class CSysApShutdownAnimation; +class CSysApCenRepMsgWaitingObserver; + +// POC launching +class CAiwServiceHandler; class CSysApDefaultKeyHandler; class CSysApDriveUnlockHandler; class CSysApDriveEjectHandler; -class CHbDeviceInputDialogSymbian; -class CSysApEtelConnector; + +class CSysApGanHandler; + +class CSysApBatteryInfoController; +//CONSTANTS +const TInt KDummyReason( -1 ); const TInt KBluetoothModulePowerModeOn ( 1 ); -const TInt KDummyReason( -1 ); +const TInt KBluetoothModulePowerModeOff ( 0 ); +const TInt KGeneralProfileId ( 0 ); +const TInt KOfflineModeProfileId ( 5 ); +const TInt KApplicationScanningInterval( 1 ); // 1 second +_LIT( KFSName, "Fat" ); // MMC file system name +const TDriveNumber KMMCDrive = EDriveE; // MMC drive number + //CLASS DECLARATION @@ -96,13 +124,17 @@ * @since 1.0 */ -class CSysApAppUi : public CAknAppUi, +class CSysApAppUi : + public CAknAppUi, +#ifndef RD_MULTIPLE_DRIVE + public MAknMemoryCardDialogObserver, +#endif // RD_MULTIPLE_DRIVE public MSysApMemoryCardObserver, public MSysApTimerResponder, public MSysapCallback, public MSysApPsmControllerNotifyCallback - { - public: +{ + public: /** * C++ default constructor. * @param None @@ -116,10 +148,7 @@ * @return void */ virtual ~CSysApAppUi(); - - // from CCoeAppUiBase - void PrepareToExit(); - + protected: // From MSysApTimerResponder /** @@ -128,110 +157,150 @@ * @return void */ void TimerExpiredL(); - - private: // from MSysapCallback - /** - * Executes a command in SysAp. - * - * @since S60 3.1 - * @param[in] aCommand command identifier - * @return None - * @leave an error code, system wide/command specific - * - * @see MSysapCallback::TSysapCommand - */ - void ExecCommandL( TSysapCommand aCommand ); + + public: /** - * Executes a command in SysAp. - * - * @since S60 3.1 - * @param aCommand command identifier - * @param aParam command specific parameter data - * @return None - * @leave an error code, system wide/command specific - * - * @see MSysapCallback::TSysapCommand + * Gets called when shutdown continues after shutdown animation + * @param None + * @return void */ - void ExecCommandL( TSysapCommand aCommand, const TDesC8& aParam ); + void ContinueShutdown(); /** - * Queries information from SysAp. - * - * @since S60 3.1 - * @param[in] aQuery query identifier - * @param[out] aReturn query specific return data - * @return None - * @leave an error code, system wide/command specific - * - * @see MSysapCallback::TSysapQuery + * Gets called when there is need to shutdown the device initiated by Symbian side + * @param None + * @return void */ - void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ); + void DoShutdownL( const TBool aReset, const TInt aResetReason ); /** - * Queries information from SysAp. - * - * @since S60 3.1 - * @param[in] aQuery query identifier - * @param[out] aReturn query specific return data - * @param[in] aParam query specific parameter data - * @return None - * @leave an error code, system wide/command specific - * - * @see MSysapCallback::TSysapQuery + * Gets called by CSysApSharedDataObserver if user has selected "No" in + * "Do you want to use the phone in Off-line mode?" query in startup. + * @param aDoProfileChange if ETrue, the last active profile is restored + * @return void */ - void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& aParam ); - -// private: + void GoOnlineL( TBool aDoProfileChange = ETrue ); + /** - * EPOC default constructor. + * Gets called by CSysApSharedDataObserver in Simless Offline Mode startup. + * @param None + * @return void + */ + void GoOfflineL(); + + /** + * Calls CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL() * @param None * @return void */ + void SwitchFromOnlineToOfflineModeL(); + + /** + * Called when offline mode change has been finished. + */ + void OfflineModeChangedL(); + + /** + * Gets called after changing the SW state. + * @param aSwState The new state + * @return void + */ + void DoStateChangedL( const RStarterSession::TGlobalState aSwState ); + +#ifdef SYSAP_USE_STARTUP_UI_PHASE + /** + * Called when UI is ready after boot. + */ + void HandleUiReadyAfterBootL(); + +#endif // SYSAP_USE_STARTUP_UI_PHASE -#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION - void -#else // RD_STARTUP_ANIMATION_CUSTOMIZATION - TBool -#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - ShowAnimationL(); - - void PrepareForShutdownAnimation(); - - public: - void ConstructL(); - - private: // from CEikAppUi + /** + * Returns whether UI is ready after boot. + */ + TBool UiReady() const; + + /** + * Gets called when any case selection on powerkey menu is done. + * Does what is needed per selection. + * @param TInt aSelection + * @return void + */ + void PowerKeyPopUpMenuSelectionDoneL( TInt aSelection ); + + /** + * Gets called when Alarm is being shown to user and lights need to be blinked. + * @param TBool aAlerting + * @return void + */ + void AlertUiAlertingL( const TBool aAlerting ); + + /** + * Gets called when Alarm is being shown to user and keylock need to be turned off. + * @param TBool aKeyLockOff + * @return void + */ + void AlertUiKeyLockOff( const TBool aKeyLockOff ); + /** - * Handles a change to the application's resources which are shared across the environment. + * Notifies changes in KPSUidCoreApplicationUIs::KLightControl to light controller. + */ + void HandleLightsRequireL() const; + + /** + * Notifies changes in KPSUidCoreApplicationUIs::KCoreAppUIsLightsRawKeyEvent to light controller. + * + * @since S60 3.2 + */ + void HandleRawKeyEventLightsRequireL() const; + + /** + * Gets called when Video Telephony requests to force/cancel lights on/ + * @param const TInt aLightsParameter + * @return void + */ + void HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const; + + /** + * Gets called when Screen Saver requests to force lights on/off + * @param const TInt aLightsParameter + * @return void + */ + void HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const; + + /** + * Gets called when AT Command requests to force lights on/off + * @param const TInt aLightsParameter + * @return void + */ + void HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const; + /** + * Calls SysApLightsController::SwitchLightsOnSoftRejectL * * @since S60 3.1 - * @param aType The type of resources that have changed. + * @param None. * @return None. */ -// void HandleResourceChangeL(TInt aType); - - private: - /** - * Takes care of command handling. - * @param aCommand command to be handled - * @return void - */ - void HandleCommandL( TInt aCommand); + void SwitchLightsOnSoftRejectL(); /** - * handles key events - * @param TKeyEvent& aKeyEvent - * @param TEventCode aType - * @return TKeyResponse + * Asks state of one property from PubSub + * @param const TUid& + * @param const TUint + * @return const TInt ( value of property or error code ) + */ + TInt StateOfProperty( const TUid& aCategory, const TUint aKey ) const; + + /** + * Sets the indicator's aIndicator state to state aState. + * @param TInt aIndicator + * @param TInt aState + * @return void */ - TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); - void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent); - - public: - // void CallFromMain(); - - /** + void SetIndicatorStateL( const TInt aIndicator, const TInt aState ) const; + + /** * Returns the state of keylock * @param none * @return TBool the state of keylock @@ -244,102 +313,89 @@ * @return TBool the state of devicelock */ TBool DeviceLockState() const; - - /** - * Returns reference to SysAp's internal feature manager. - * - * @since S60 3.1 - * @return CSysApFeatureManager& + + /* + * @param None + * @return void */ - CSysApFeatureManager& SysApFeatureManager(); - - /* + void SetIhfIndicatorL(); + + /* + * Handles actions needed when either SIM memory gets too full to receive any more SMS's. + * @param aSimStoreFull If true, SIM memory is full. + * @return void + */ + void HandleSmsStorageNotificationL( TBool aSimStoreFull ); + + void HandleNspsRawKeyEventL(); + + void HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ); + + void HandleMessageTonePlayingQuitability( TInt aTonePlayingStatus ); + + /* * Called by SysApLightsController when the lights are switced on/off * @param aActivate If ETrue forwarding is activated, otherwise deactivated * @return void */ void ActivateKeyeventForwardingForLights(TBool aActivate); - - TBool IsEncryptionOperationOngoingL() const; -// void ConnectToFileServerL(); -// void ConnectToWindowServerL(); - void ShowExampleUiNoteL ( const TDesC& noteText )const; - void ShowNotificationDialog(const TDesC& noteText)const; - void PopupNote(); -// void CreateWindowGroup(); - TBool ResourcesFreed() const; - void ShowUiNoteL( const TSysApNoteIds aNote ) const; - TInt StateOfProperty( const TUid& aCategory, const TUint aKey ) const; - TBool OfflineModeActive(); - void GoOnlineL( TBool aDoProfileChange = ETrue ); - void GoOfflineL(); - void SwitchFromOnlineToOfflineModeL(); - - void DoStateChangedL( const RStarterSession::TGlobalState aSwState ); - TInt SetStarterState( const RStarterSession::TGlobalState aState ); - TInt BluetoothPowerMode() const; - void SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ); - RStarterSession& StarterSession(); - TInt SetBtPowerState( TBool aBtState ); - TBool SimSupported(); - TBool BtSapEnabled(); - void OfflineModeChangedL(); - TBool UiReady() const; - void DoShutdownL( const TBool aReset, const TInt aResetReason ); - TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; - void SetUsbAttachStatus( const TBool aUsbAttached ); - TSysApUsbChargerDetector& UsbChargerDetector(); - - void HandleAccessoryConnectedL( TAccMode aAccessoryState, TInt aPhysicalConnectionType ); + + /** + * Gets called when shutdown requested when sw state == ESWStateAlarm + * context active. + * @param None + * @return void + */ + void StartShutDownTimerOnAlarmAndChargingStates(); + static TInt DoShutdownOnAlarmStateAfterCallBack( TAny* aObject ); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Starts shutdown animation timing after shutdown tone sync is done + */ + void StartAnimTiming(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * Stops shutdown animation timing and continues shutdown. + */ + static TInt DoStopAnimTiming( TAny* aObject ); + /** + * Gets called when GPRS is suspended because of a phone call established while + * context active. Delay (KDelayBeforeShowingGprsSuspendedNote) required to ensure + * that the phone call was really established. + * @param None + * @return void + */ + void StartGprsSuspendedTimer(); + static TInt ShowGprsSuspendedNoteAfterCallBack( TAny* aObject ); + + /** + * Gets called when an accessory was connected to device. The indicator + * is shown and profile gets changed if needed. + * @param aAccessoryState Indicates the new accessory state + * @return void + */ + void HandleAccessoryConnectedL( TAccMode aAccessoryState ); + + /** + * Gets called when headset/loopset was disconnected from device. The indicator + * is hidden and the original profile gets restored if needed. + * @param None + * @return void + */ void HandleAccessoryDisconnectedL(); - void DoLightsTimeoutChangedL( const TInt aTimeout ); - void SetHacIndicatorL(); - void DoNotActivateBt(); - void SetIhfIndicatorL(); - void HandleLongPowerKeyPressedL(); - void IgnoreZeroNetworkBarNotifications(TBool aIgnore); - void InitCloseSimApplicationsL(); - void CloseSimApplicationsL(); - void DoSimChangedFromPreviousBootL(); - void ShowAlarmIndicatorL( TBool aShowIndicator ); - void AlertUiAlertingL( const TBool aAlerting ); - void HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const; - void HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const; - void HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const; - void HandleLightsRequireL() const; - void AlertUiKeyLockOff( const TBool aKeyLockOff ); - void DoNotEnableKeylock(); - void SwitchLightsOnSoftRejectL(); - void SetDeviceLockEnabledL( const TBool aLockEnabled ); - void HandleBatteryStatusL( const TInt aValue ); - void BatteryEmptyL(); - void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, - const TDesC& aValue = KNullDesC ); - void HandleChargingStatusL( const TInt aValue ); - void HandleChargerNotesL( const TInt aValue ); - void UpdateBatteryBarsL( const TInt aState ); - void ShowChargingNoteL(); - void HandleCurrentCallStateChangeL( TInt aCurrentCallState ); - TBool IsEmergencyCall(); - CSysApCenRepController& CenRepController(); - void HandleWlanIndicatorL( TInt aValue ); - void SetKeyLockEnabledL(); - void SetKeyLockDisabledL(); - void SetLightsOnUnlockNoteL(); - void SetLightsOnEcsQueryL(); - void SetLightsOnSecurityQueryL(); - TBool CheckLongPowerKeyPressed(); - TBool ReleasePowerMenuCustomDialogMemory(); - TBool NotifiedDialogIfRequiredAndReleaseMemory(); - static TInt DoStopAnimTiming( TAny* aObject ); - CEikStatusPane* StatusPane(); - - void EjectUsed( TInt aDrive ); - - void EjectMMCL(); - + /** + * Gets called when SysAp receives KSysApSatRefreshStart. All + * non-system UI applications are closed + * and an information note is shown to the user. + * @param None + * @return void + */ + void HandleSatRefreshL(); + #ifndef RD_MULTIPLE_DRIVE /** * Mounts MMC drive @@ -355,7 +411,46 @@ */ TInt DismountMMC(); #endif // RD_MULTIPLE_DRIVE - + + /** + * MMC Hot Swap Ejection from powerkey menu + * @param None + * @return void + */ + void EjectMMCL(); + + /** + * Disconnect BtSap from powerkey meny + * @param None + * @return void + */ + void DisconnectBtSap(); + + /** + * Enable or disable FM transmission + */ + void ChangeFmTxStateL( TBool aEnable ); + +#ifndef RD_MULTIPLE_DRIVE + public: // from MAknMemoryCardDialogObserver + + /** + * To be notified when unlock completed + * @param TInt aResult + * @return void + */ + void UnlockComplete( TInt aResult ); +#endif // RD_MULTIPLE_DRIVE + + public: + + /** + * Plays the sound EAvkonSIDInformationTone + * @param None + * @return void + */ + void Beep(); + #ifndef RD_MULTIPLE_DRIVE /** * Unlocks MMC @@ -409,7 +504,304 @@ TBool ShowMMCDismountedDialogL( TInt aDrive, CSysApDriveList::TDriveEjectType aEjectType ); #endif // RD_MULTIPLE_DRIVE - + + /** + * Called after confirming dialog "MMC removed..." + * @param None + * @return void + */ + void MMCDismountedDialogConfirmed(); + + /** + * Gets called by CSysApSharedDataObserver when "Eject" is started + * or finished in File Manager application. + * @param None + * @return void + */ + void EjectStarted( TBool ejectStarted ); + + private: + /** + * EPOC default constructor. + * @param None + * @return void + */ + void ConstructL(); + + /** + * Deactivate PSM on reboot if battery level is above threshold value. + * @param None + * @return void + */ + void DeactivatePSMifBatteryNotLowL(); + + private: + +#ifndef RD_MULTIPLE_DRIVE + + /** + * Resolves process UID based on its thread id + * + * @since S60 3.1 + * @param aThreadId id of the thread + * @return TInt32 process UID + */ + TInt32 ResolveUidFromThread( TUint aThreadId ) const; + + /** + * Called recursively when shutting down apps in Hot Swap + * @param None + * @return void + */ + void CloseUIAppsInHotSwapL(); + + /** + * Called by CloseUIApplicationsHotSwapL when completing + * shutting apps + * @param None + * @return void + */ + void CompleteAppsShuttingInHotSwapL(); +#endif // RD_MULTIPLE_DRIVE + + public: + + /** + * Initializes parameters used in shutting down apps in BT SAP + * @param None + * @return void + */ + void InitCloseSimApplicationsL(); + + private: + + /** + * Called recursively when shutting down apps in BT SAP + * @param None + * @return void + */ + void CloseSimApplicationsL(); + + /** + * Called to re-envoke CloseSimApplicationsL() + * @param None + * @return void + */ + static TInt DoCloseSimApplicationsAfterCallBack( TAny* aObject ); + + private: + /** + * Takes care of command handling. + * @param aCommand command to be handled + * @return void + */ + void HandleCommandL( TInt aCommand); + + /** + * handles key events + * @param TKeyEvent& aKeyEvent + * @param TEventCode aType + * @return TKeyResponse + */ + TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); + + private: + // By default, prohibit copy constructor + CSysApAppUi( const CSysApAppUi& ); + + // Prohibit assigment operator + CSysApAppUi& operator= ( const CSysApAppUi& ); + + private: + void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent); + /** + * Gets called by ConstructL function to set initial states to indicators etc + * Needed state information is got from Shared Data and status pane's components + * are set to the correct states. + * @param None + * @return void + */ + void InitializeStatusPaneAreaL(); + + /** + * Gets called by HandleKeyEventL after detecting a long press of powerkey. + * According to current state of the device desides if it is time to either + * shutdown or make startup (from charging state ) to normal state + * @param None + * @return void + */ + void HandleLongPowerKeyPressedL(); + + /** + * Gets called by HandleKeyEventL after a short press of powerkey. + * According to current state of the device desides if it is time to + * either switch lights on and show mode selection dialog(normal state) + * or to shutdown the phone (in alarm state). + * @param None + * @return void + */ + void HandleShortPowerKeyPressedL(); + + /** + * Frees SysAp's reserved memory, closes connections to servers etc. + * @param None + * @return void + */ + void FreeResources(); + + public: + + /** + * Displays a UI query. + * @param TSysApConfirmationQueryIds + * @param aValue query related value + * @return void + */ + void ShowQueryL( const TSysApConfirmationQueryIds aQueryId, + const TDesC& aValue = KNullDesC ); + + /** + * Displays a UI note. + * @param TSysApNoteIds aSysApNoteIds + * @return void + */ + void ShowUiNoteL( const TSysApNoteIds aNote ) const; + + /** + * Displays a "Charger connected" note. + * @param None + * @return void + */ + void ShowChargingNoteL(); + + /** + * Handles charger related notes + * @param TInt : KPSUidChargerCStatusValue + * @return void + */ + void HandleChargerNotesL( const TInt aValue ); + + /** + * Displays a "Selected profile" note. + * @param None + * @return void + */ + void ShowProfileNoteL(); + + /** + * Cancels a UI wait note. + * @param None + * @return void + */ + void CancelWaitNote(); + + /** + * Cancels the global list query + * @param None + * @return void + */ + void CancelGlobalListQuery(); + + /** + * Updates signal bars to the value cached by Etel connector. + * @return void + */ + void UpdateSignalBarsL(); + + /** + * Updates signal bars to specified state. + * @param TInt aState Number of bars or KAknSignalOffLineMode + * @return void + */ + void UpdateSignalBarsL( const TInt aState ); + + /** + * Gets called by HandleSystemAgentEventL to singal availability indicator + * ie. Gprs state icon or common signal icon. + * @param None + * @return void + */ + void SetSignalIndicatorL(); + + /** + * Gets called by SetSignalIndicatorL() when in GSM network + * @param None + * @return void + */ + void SetSignalIndicatorGsmL(); + + /** + * Gets called by SetSignalIndicatorL() when in Wcdma network + * @param None + * @return void + */ + void SetSignalIndicatorWcdmaL(); + + /** + * Gets called by SetSignalIndicatorL() when in Gan network + * @param None + * @return void + */ + void SetSignalIndicatorGanL(); + + /** + * Handles GPRS suspend/resume notes if feature supported. + * ie. Gprs state icon or common signal icon. + * @param None + * @return void + */ + void HandleGprsNotesL(); + + /** + * Returns the current bluetooth power mode setting using CSysApSharedDataObserver + * @param None + * @return TInt + */ + TInt BluetoothPowerMode() const; + + /** + * Activates the profile given as a parameter + * @param TInt aProfileId + * @return void + */ + void ActivateProfileL( const TInt aProfileId ) const; + + /** + * Activates the profile saved in iProfileToBeActivated. + * @param None + * @return void + */ + void ActivateOnlineProfileL() const; + + /** + * Checks whether Offline Mode is activated + * @param TBool + * @return void + */ + TBool OfflineModeActive(); + + /** + * Tolds Offline Mode controller not to activate BT + * when next going online. + * @param None + * @return void + */ + void DoNotActivateBt(); + + /** + * Switches BT module on/off using BT Engine + * @param TBool: ETrue = on, EFalse = off + * @return void + */ + TInt SetBtPowerState( TBool aBtState ); + + /** + * Sets iKeyLockOnBeforeCall = EFalse. + * @param None + * @return void + */ + void DoNotEnableKeylock(); + #ifdef RD_MULTIPLE_DRIVE /* * Starts wait note for eject @@ -421,175 +813,828 @@ */ TBool IsEjectQueryVisible(); #endif // RD_MULTIPLE_DRIVE - - -#ifdef SYSAP_USE_STARTUP_UI_PHASE + + /** + * Gets called by CSysApSharedDataObserver when "Eject" is selected + * in File Manager application. + * @param aDrive Drive to eject + * @return void + */ + void EjectUsed( TInt aDrive ); + + /** + * MMC Hot Swap Ejection from powerkey menu was canceled + * @param None + * @return void + */ + void EjectMMCCanceled(); + + private: + + /** + * Gets currently active profile's name. + * @param TPtr aProfileName + * @return void + */ + void ActiveProfileNameL( TPtr aProfileName ); + + public: + + /** + * Gets called by HandleSystemAgentEventL to update battery bars. + * @param TInt aState + * @return void + */ + void UpdateBatteryBarsL( const TInt aState ); + /** - * Called when UI is ready after boot. + * Gets called by HandleSystemAgentEventL when profile was changed. + * Profile selected Global Note is shown. + * @param TInt aValue + * @return void + */ + void HandleProfileChangedL( const TInt aValue ); + + /** + * Checks if the active profile is silent and updates CSysApLightsController + * if needed. + * @param None + * @return void + */ + void CheckSilentModeL(); + + /** + * Gets called by CSysApOfflineModeController when activation/deactivation + * of Offline Mode fails + * @param TBool aOffline + * @return void */ - void HandleUiReadyAfterBootL(); + void RestoreProfileL( const TBool aOffline ); + + /** + * Returns the id of the active profile. + * @param None + * @return Int + */ + TInt ActiveProfileId(); + + /** + * Gets called when the value of the SD key KGSDisplayLightsTimeout + * changes + * @param TInt : lights timeout in seconds + * @return void + */ + void DoLightsTimeoutChangedL( const TInt aTimeout ); + + private: + + /** + * Checks whether it is necessary to change profiles in case an accessory + * was connected/disconnected while the device was powered down. + * + * @param TInt aValue + * @return void + */ + void HandleAccessoryProfileInStartupL( ); -#endif // SYSAP_USE_STARTUP_UI_PHASE + public: + /** + * Gets called by HandleSystemAgentEventL to Disable keylock when devicelock is activated. + * This is done already when device lock is activated because this + * @param None + * @return void + */ + void SetDeviceLockEnabledL( const TBool aLockEnabled ); + + private: + + /** + * Gets called by HandleShortPowerKeyPressedL to display the power key popup menu + * @param None + * @return void + */ + void ShowPowerKeyPopUpMenuL(); + + /** + * Does what is needed to do inside SysAp before actually doing + * other shutdown related things. This is used when shutdown image is enabled. + * @param None + * @return void + */ + void PrepareForShutdownImage(); + + /** + * Does what is needed to do inside SysAp before actually doing + * other shutdown related things. This is used when shutdown animation is enabled. + * @param None + * @return void + */ + void PrepareForShutdownAnimation(); - - void MMCDismountedDialogConfirmed(); - - void EjectStarted( TBool ejectStarted ); - - void EjectMMCCanceled(); - - void HandleNspsRawKeyEventL(); + /** + * Show shutdown animation + * + * @param + * @return ETrue if animation is enabled + */ + #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + void + #else // RD_STARTUP_ANIMATION_CUSTOMIZATION + TBool + #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + ShowAnimationL(); + + /** + * Makes Status pane visible/invisible when needed and changes it's layout between Charging/Alarm + * @param None + * @return void + */ + void SetStatusPaneLayoutL( const TSysApPhoneState aState ); + + /** + * Checks from current Symbian swstate if it is ok to initiate shutdown + * @param None + * @return const TBool + */ + TBool OkToInitiateShutdown(); + + /** + * Shows shutdown animation or shutdown image + * @param None + * @return void + */ + void PrepareForCompleteShutdown(); + + /** + * Makes the end part of shutdown sequence. + * @param None + * @return void + */ + void CompleteShutdown( const TBool aReset = EFalse, const TInt aResetReason = KDummyReason ); + + /** + * Sets calls forwarding indicators on/off accrding to aCallsForwardingState + * @param TInt aCallsForwardingState + * @return void + */ + void DoSwStateNormalConstructionL(); + + public: + + /** + * Starts an application or brings an already running application + * to foreground. + * @param TUid: UID of the application that is activated + * @return void + */ + void ActivateApplicationL( const TUid aUid ); - void HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ); - - void HandleRawKeyEventLightsRequireL() const; - - void HandleSmsStorageNotificationL( TBool aSimStoreFull ); - - void UpdateSignalBarsL(); - - void ReleaseMemoryForMemoryCardDialog(); - - private: - /** - * Frees SysAp's reserved memory, closes connections to servers etc. - * @param None - * @return void - */ - void FreeResources(); - TBool OkToInitiateShutdown(); + void HandleCurrentCallStateChangeL( TInt aCurrentCallState ); + + void DoSimChangedFromPreviousBootL(); + + /** + * Gets called in SysAp construction or when SysAp gets a SA/P&S notification + * @param const TInt: indicator status + * @return void + */ + void HandleLocationPrivacyIndicatorL( const TInt aState ); + + /** + * Return value of the__SIMCARD feature + * @param None + * @return TBool + */ + TBool SimSupported(); + + /** + * Notify CSysApLightController of the empty battery. + * @param None + * @return void + */ + void BatteryEmptyL(); + + /** + * Prompt starter to change mode + * @param aState The new state + * @return KErrArgument if the state change is illegal (from current state + * it is not possible to change to the requested state), KErrNone if the + * global state change has been successfully initiated. + */ + TInt SetStarterState( const RStarterSession::TGlobalState aState ); + + /** + * Creates the device name string for BT Sap disconnect prompt. + * @return device name string. + */ + HBufC* GetBtSapDeviceNameL(); + + /** + * Handle alarm indicator + * @param aShowIndicator If ETrue, indicator is show, otherwise it is hidden. + */ + void ShowAlarmIndicatorL( TBool aShowIndicator ); + + /** + * Informs lights controller that flip has been opened/close + * @param aFlipOpen ETrue if flip is open, EFalse otherwise + */ + void SetFlipOpenL( TBool aFlipOpen ); + + /** + * Creates a virtual flip key event that is passed to the key management + * of SysAp. + * + * @since S60 3.2 + * @param aFlipOpen ETrue if flip is open, EFalse otherwise + * @return None + */ + void SimulateFlipKeyEventL( TBool aFlipOpen ); + + /** + * Informs lights controller that grip has been opened/close + * @param aGripOpen ETrue if grip is open, EFalse otherwise + */ + void SetGripOpenL( TBool aGripOpen ); + + /** + * Sets the status of the Central Repository key + * KCRUidCoreApplicationUIs / KCoreAppUIsNetworkConnectionAllowed + * @param TInt + * @return void + */ + void SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ); + + /** + * Get pointer to RTelServer + * + * @return pointer to RTelServer if iSysApEtelConnector is initialized. Otherwise return NULL. + */ + RTelServer* GetTelServer(); + + /** + * Show WLan indicator + * + * @param aValue The value of KPSWlanIndicator PS key. + */ + void HandleWlanIndicatorL( TInt aValue ); + + /** + * Show TARM indicator + * + * @param aValue The value of KCoreAppUIsTarmIndicator PS key + */ + void HandleTarmIndicatorL( TInt aValue ); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Continue shutdown animation showing after sync request + */ + void ShutdownAnimationSyncOK(); +#endif RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * Skip shutdown animation (i.e. stop showing it). Initiated by CoverUI. + */ + void SkipShutdownAnimation(); + + /** + * Notifies CoverUI about skipping shutdown animation. + */ + void NotifyShutdownAnimationSkip(); + + /** + * Check cover display support + * + * @return ETrue if cover display is supported, EFalse otherwise + */ + TBool CoverDisplaySupported(); + + /** + * Returns reference to RStarterSession + * RStarterSession is connected when this method is called + * for the first time. + * + * Always (except when freeing resources) access the starter session via this method, + * don't use the member variable directly. + * + * @return reference to RStarterSession + */ + RStarterSession& StarterSession(); + + /** + * Returns reference to SysAp's CenRep controller + * + * @since S60 3.1 + * @param None + * @return reference to CSysApCenRepController + */ + CSysApCenRepController& CenRepController(); + + /** + * Ignore zero network bars signal notifies. + * This is needed in BT SAP mode. + * + * @param aIgnore If ETrue, ignore any future zero network bars notifications. + */ + void IgnoreZeroNetworkBarNotifications(TBool aIgnore); + + /** + * Check if BT SAP is enabled + * + * @return ETrue if BT SAP is enabled, EFalse otherwise + */ + TBool BtSapEnabled(); + + /** + * Deactivate BT when changing to normal mode. + * Can only be used during startup, has no effect after that. + */ + void DeactivateBT(); + + private: + /** + * Returns reference to SysAp's keylock session + * RAknKeylock2 session is connected when this method is called + * for the first time. + * + * Always (except when freeing resources) access the keylock session via this method, + * don't use the member variable directly. + * + * @since S60 3.1 + * @param None + * @return reference to RAknKeylock2 + */ + RAknKeylock2& KeyLock(); - void CompleteShutdown( const TBool aReset = EFalse, const TInt aResetReason = KDummyReason ); - void PrepareForShutdownImage(); - TInt ShowShutdownImage( TInt aBitmapId ); - void ShowShutdownImageL( TInt aBitmapId ); - TBool IhfEnabledL(); - void DoSwStateNormalConstructionL(); - static TInt DoCloseSimApplicationsAfterCallBack( TAny* aObject ); - - // from MSysApPsmControllerNotifyCallback - void NotifyPowerSaveModeL( TSysApPsmStatus aStatus ); - - void HandleUsbCharger( const TInt aValue ); - TBool IsStateNormal() const; - void HandleAccessoryProfileInStartupL( ); - - CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL(); - void ContinueShutdown(); - + +#ifdef __SYSAP_MODULE_TEST + + /** + * Can be used for showing a CAknGlobalNote in module tests + * @param noteText : text to be shown in the note + * @return void + */ + void ModuleTestShowUiNoteL( const TDesC& noteText ) const; +#endif + + /** + * shows power down note before displaying shutdown image + * @param: none + * @return void + */ + void ShowShutdownNoteL(); + + /** Return ETrue if the global system state is one of the 'normal' + * states: ESwStateNormalRfOn, ESwStateNormalRfOff or + * ESwStateNormalBTSap. + */ + TBool IsStateNormal() const; + + /** + * Returns max of three integers + * @param: TInt + * @return void + */ + TInt Max( const TInt aA, const TInt aB, const TInt aC ); + + /** + * Displays shutdown image. + * This method is just a nonleaving implementation, + * calls ShowShutdownImageL for performing the task. + * + * @since S60 3.1 + * @param aBitmapId bitmap identifier + * @return TInt an error value + * @see CSysApAppUi::ShowShutdownImageL + */ + TInt ShowShutdownImage( TInt aBitmapId ); + + /** + * Displays shutdown image. If a CSysApShutdownImage instance + * does not exist, it will be created. + * + * @since S60 3.1 + * @param aBitmapId bitmap identifier + * @return None + * @leave Symbian error code + */ + void ShowShutdownImageL( TInt aBitmapId ); + + private: // from MSysapCallback + /** + * Executes a command in SysAp. + * + * @since S60 3.1 + * @param[in] aCommand command identifier + * @return None + * @leave an error code, system wide/command specific + * + * @see MSysapCallback::TSysapCommand + */ + void ExecCommandL( TSysapCommand aCommand ); + + /** + * Executes a command in SysAp. + * + * @since S60 3.1 + * @param aCommand command identifier + * @param aParam command specific parameter data + * @return None + * @leave an error code, system wide/command specific + * + * @see MSysapCallback::TSysapCommand + */ + void ExecCommandL( TSysapCommand aCommand, const TDesC8& aParam ); + + /** + * Queries information from SysAp. + * + * @since S60 3.1 + * @param[in] aQuery query identifier + * @param[out] aReturn query specific return data + * @return None + * @leave an error code, system wide/command specific + * + * @see MSysapCallback::TSysapQuery + */ + void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ); + + /** + * Queries information from SysAp. + * + * @since S60 3.1 + * @param[in] aQuery query identifier + * @param[out] aReturn query specific return data + * @param[in] aParam query specific parameter data + * @return None + * @leave an error code, system wide/command specific + * + * @see MSysapCallback::TSysapQuery + */ + void ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& aParam ); + + public: + /** + * Sets HAC (Hearing Aid Compatibility) indicator according to its CenRep-setting + * state. + * HAC indicator is not displayed if an accessory is connected. + * + * @param None + * @return None + */ + void SetHacIndicatorL(); + + /** + * Returns reference to SysAp's internal feature manager. + * + * @since S60 3.1 + * @return CSysApFeatureManager& + */ + CSysApFeatureManager& SysApFeatureManager(); + + /** + * Handles response to power save activation query. + * + * @param aEnable If ETrue, the user has accepted the query. + */ + void HandleActivatePsmQueryResponse( TBool aEnable ); + + /** + * Handles response to power save deactivation query. + * + * @param aDisable If ETrue, the user has accepted the query. + */ + void HandleDeactivatePsmQueryResponse( TBool aDisable ); + + private: // from CAknAppUi + /** + * Handles a change to the application's resources which are shared across the environment. + * + * @since S60 3.1 + * @param aType The type of resources that have changed. + * @return None. + */ + void HandleResourceChangeL(TInt aType); + + private: + /** + * Shows and hides the memory card indicator depending on whether the memory card is inserted or not. + * + * @since S60 3.1 + * @param None. + * @return None. + */ + void SetMemoryCardIndicatorL(); + + /** + * Returns whether IHF has been enabled. + * Creates audio routing observer if it does not exist.. + * + * @since S60 3.2 + * @return TBool ETrue if IHF is enabled + */ + TBool IhfEnabledL(); + #ifdef RD_MULTIPLE_DRIVE void UpdateInsertedMemoryCardsL(); #endif // RD_MULTIPLE_DRIVE + + /** + * Handles setup of USB charger from given charging status. + * + * @since S60 3.2 + * @param aValue Given charging status + */ + void HandleUsbCharger( const TInt aValue ); + + public: + /** + * Sets USB connection attach status. + * This prevents double beep when USB file transfer gets activated. + * + * @since S60 3.2 + * @param aUsbConnected ETrue if USB cable has just been attached, otherwise EFalse + */ + void SetUsbAttachStatus( const TBool aUsbAttached ); + + /** + * Returns whether the key event is considered to be a device mode key event, + * which usually causes a transition in the device mode (e.g. grip, flip or twist). + * + * @since S60 3.2 + * @param aKeyEvent key event + * @return TBool ETrue key event is considered to be a device mode key + * EFalse not a device moed key + */ + TBool IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const; + + /** + * Returns whether resources (objects, server connections) owned by this + * class has been freed. + * + * @since S60 3.2 + * @return TBool ETrue if resource deallocation has been performed. + */ + TBool ResourcesFreed() const; + + /** + * Returns pointer to CSysApEtelConnector. + * + * @since S60 3.2 + * @return pointer to CSysApEtelConnector instance owned by this class. + * NULL if the object creation has failed. + */ + CSysApEtelConnector* EtelConnector() const; + + /** + * Returns reference to USB charger detector, TSysApUsbChargerDetector. + * + * @since S60 3.2 + * @return Reference to USB charger detector. + */ + TSysApUsbChargerDetector& UsbChargerDetector(); + + /** + * Sets envelope indicator according to current messaging status. + * + * @since S60 3.2 + */ + void SetEnvelopeIndicatorL(); + + /** + * Handles value changes of the key KHWRMBatteryStatus. + * + * @since S60 3.2 + * @param aValue the updated key value + */ + void HandleBatteryStatusL( const TInt aValue ); - private: -// CSysApWsClient* iSysApWsClient; - CSysApLightsController* iSysApLightsController; - CSysApFeatureManager* iSysApFeatureManager; - CSysApNspsHandler* iSysApNspsHandler; - CSysApPubSubObserver* iSysApPubSubObserver; + /** + * Handles value changes of the key KHWRMChargingStatus. + * + * @since S60 3.2 + * @param aValue the updated key value + */ + void HandleChargingStatusL( const TInt aValue ); + + /** + * Cancel the specified query if it is active. + * + * @param aQueryId ID of the query that must be cancelled. + * If ESysApNoQuery is given, the active query is cancelled. + * without checking its ID. + */ + void CancelQuery( TSysApConfirmationQueryIds aQueryId ); - CSysApDefaultKeyHandler* iSysApDefaultKeyHandler; -// RWindowGroup groupWin; - CSysApStartupController* iSysApStartupController; - MSysApOfflineModeController* iSysApOfflineModeController; - RStarterSession iStarterSession; - TSysApUsbChargerDetector iSysApUsbChargerDetector; - CSysApAccessoryObserver* iSysApAccessoryObserver; - CSysApShutdownImage* iSysApShutdownImage; - CSysApShutdownAnimation* iSysApShutdownAnimation; - CSysApKeySndHandler* iSysApKeySndHandler; - CSysApCenRepController* iSysApCenRepController; - CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; - CSysApCenRepBtObserver* iSysApCenRepBtObserver; - CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; - - CSysApAudioRoutingObserver* iSysApAudioRoutingObserver; - CSysApPsmController* iSysApPsmController; - CHbSymbianVariant* iVariantAccState ; - CSysApSsSettingsObserver* iSysApSsSettingsObserver; - CSystemLock* iSysApSystemLock; - CSysApCenRepCallForwardingObserver* iSysApCenRepCallForwardingObserver; - CSysApBatteryInfoController* iSysApBatteryInfoController; - MSysApBtSapController* iSysApBtSapController; - CPeriodic* iSapTimer; - MSysApBtController* iSysApBtController; - CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; - MSysApUsbIndicator* iSysApUsbIndicatorController; - CKeyguardAccessApi* iKeyguardController; - CHbDevicePowerMenuSymbian* iPowerMenuDialog; - CSysApKeyManagement* iSysApKeyManagement; - CSysApMMCObserver* iSysApMMCObserver; - CSysApEtelConnector* iSysApEtelConnector; - - public: - CHbIndicatorSymbian* iHbIndicatorSymbian; - + private: + // from MSysApPsmControllerNotifyCallback + void NotifyPowerSaveModeL( TSysApPsmStatus aStatus ); + + private: + /** + * Get the logs observer. Created if does not exist. + * + * @since S60 3.2 + * @return reference to CSysApCenRepLogsObserver object + */ + CSysApCenRepLogsObserver& LogsObserverL(); + + /** + * Adds MMC removal item(s) to power menu. + * + * @since S60 5.2 + * + * @param aProfileNameCDesCArray Array holding menu item labels + * @param aItemIdArray Item labels for cover ui + * @param aPowerMenuItemIndex last used index in power menue + */ + void AddMmcMenuItemsL( CDesCArray*& aProfileNameCDesCArray, + RArray& aItemIdArray, + TInt& aPowerMenuItemIndex ); + + public: + /** + * Starts the charging animation in the battery pane. + */ + void StartChargingBatteryL(); + + /** + * Stops the charging animation in the battery pane. + */ + void StopChargingBatteryL(); + +private: + //Data members + + /***************************************************** + * Series 60 Customer / DOS + * Series 60 Domestic OS API + *****************************************************/ + + CSysApLightsController* iSysApLightsController; + + CSysApPubSubObserver* iSysApPubSubObserver; + CSysApProfileObserver* iSysApProfileObserver; - private: - TBool iPowerKeyPopupMenuActive; + CSysApCenRepLightSettingsObserver* iSysApCenRepLightSettingsObserver; + CSysApCenRepLogsObserver* iSysApCenRepLogsObserver; + CSysApCenRepBtObserver* iSysApCenRepBtObserver; + CSysApCenRepHacSettingObserver* iSysApCenRepHacSettingObserver; + CSysApCenRepFmTxObserver* iSysApCenRepFmTxObserver; + CSysApCenRepController* iSysApCenRepController; + CSysApStartupController* iSysApStartupController; + CSysApConnectionMonitorObserver* iSysApConnectionMonitorObserver; + CSysApPowerKeyMenuObserver* iSysApPowerKeyMenuObserver; + CSysApSsSettingsObserver* iSysApSsSettingsObserver; + CSysApShutdownImage* iSysApShutdownImage; + CSysApShutdownAnimation* iSysApShutdownAnimation; + CSysApEtelConnector* iSysApEtelConnector; + CSysApAccessoryObserver* iSysApAccessoryObserver; + CSysApMsgSimMemLowQuery* iSysApMsgSimMemLowQuery; + CSysApWaitNote* iSysApWaitNote; + CSysApConfirmationQuery* iSysApConfirmationQuery; + CSysApConfirmationQuery* iSysApConfirmationQueryForRestart; + CSysApFeatureManager* iSysApFeatureManager; + MSysApOfflineModeController* iSysApOfflineModeController; + CSysApMMCObserver* iSysApMMCObserver; + CSysApNspsHandler* iSysApNspsHandler; + MSysApUsbIndicator* iSysApUsbIndicatorController; + MSysApBtController* iSysApBtController; + MSysApBtSapController* iSysApBtSapController; + MSysApLocationPrivacyIndicator* iSysApLocationPrivacyIndicator; + CAknBatteryNotify* iBatteryNotify; + CAknSignalNotify* iSignalNotify; + CAknGlobalListQuery* iGlobalListQuery; + + CSystemLock* iSysApSystemLock; + MProfileEngine* iProfileEngine; + MProfilesNamesArray* iProfileNamesArray; + RStarterSession iStarterSession; + RAknKeylock2 iKeyLock; +#ifndef RD_MULTIPLE_DRIVE + CAknMemoryCardDialog* iMemoryCardDialog; +#endif // RD_MULTIPLE_DRIVE + TInt iCapturedEKeyPowerOff; + TInt iCapturedEKeyPowerOffUpAndDowns; + TInt iCapturedAppskey; + TInt iCapturedAppskeyUpAndDowns; + + + TInt iNumberOfProfileNamesInPowerKeyMenu; + + TBool iPowerkeyMenuLockKeypadShown; + TBool iPowerkeyMenuExitSapShown; + TBool iPowerkeyMenuLockSystemShown; + TBool iPowerkeyMenuEjectShown; + + TInt iPowerkeyMenuLockKeypadSelection; + TInt iPowerkeyMenuExitSapSelection; + TInt iPowerkeyMenuLockSystemSelection; +#ifndef RD_MULTIPLE_DRIVE + TInt iPowerkeyMenuEjectSelection; +#endif // RD_MULTIPLE_DRIVE + + TInt iProfileToBeActivated; + TInt iActiveProfileBeforeOfflineMode; + + TInt iApplicationScanningRoundNumberInBtSap; + TBool iTimeToKillInBtSap; + + TBool iLastPowerKeyWasShort; + TBool iIgnoreNextPowerKeyUpEvent; + TBool iIgnoreNextPowerKeyRepeats; + TBool iPowerKeyPopupMenuActive; + TBool iDisablePowerkeyMenu; + TBool iPowerkeyMenuPowerOffShown; + TBool iDeviceLockEnabled; TBool iKeyLockEnabled; TBool iKeyLockOnBeforeCall; TBool iKeyLockOnBeforeAlarm; TBool iKeyLockOnBeforeCradle; - TBool iResourcesFreed; - TInt iCapturedEKeyPowerOff; - TInt iCapturedEKeyPowerOffUpAndDowns; - TBool iOfflineModeActive; - TBool iShutdownStarted; - - TBool iIgnoreNextPowerKeyUpEvent; // need to be added this flag in maliks client side apis. - TBool iLastPowerKeyWasShort; - TBool iPowerKeyPopupMenuDismissed; // need to be added this flag in malik implementation. - TInt iKeyBoardRepeatCount; - TBool iIgnoreNextPowerKeyRepeats; - TInt iActiveProfileBeforeOfflineMode; - + TBool iShowkeypadActivatedNoteAfterSoftReject; + + TBool iEmergencyCallActive; TBool iSimChangedDone; - TBool iIgnoreZeroNetworkBarNotifications; - TInt iApplicationScanningRoundNumberInBtSap; - TBool iTimeToKillInBtSap; - TBool iShowkeypadActivatedNoteAfterSoftReject; - TBool iCharging; // Indicates if charging is currently on - TBool iEmergencyCallActive; - TBool iCallActivated; // used in defining whether to show GPRS suspended note - - TBool iActivateBt; - TBool iDeactivateBt; - - TBool iIgnoreAccessorySpecificProfileChanges; - TBool iCheckLongPowerKeyEvent; - TInt iCapturedAppskey; - TInt iCapturedAppskeyUpAndDowns; - TBool iShutdownContinued; + TBool iResourcesFreed; TBool iNsps; - - - //CPeriodic* iTimer; -#ifndef RD_MULTIPLE_DRIVE - TInt iPowerkeyMenuEjectSelection; -#endif // RD_MULTIPLE_DRIVE - #ifndef RD_MULTIPLE_DRIVE TBool iHideFirstBeep; #endif // RD_MULTIPLE_DRIVE - + TBool iShutdownStarted; + TBool iAlarmOrChargingStateShutdownStarted; + + TBool iIgnoreAccessorySpecificProfileChanges; + TBool iAccessoryJustConnected; + + TBool iHandleNextProfileEvent; + TBool iActivateBt; + TBool iDeactivateBt; #ifndef RD_MULTIPLE_DRIVE TBool iTimeToKill; // MMC Hot Swap TInt iApplicationScanningRoundNumber; // MMC Hot Swap #endif // RD_MULTIPLE_DRIVE - + TBool iGprsActivated; // used in defining whether to show GPRS suspended note + TBool iGprsSuspended; // used in defining whether to show GPRS suspended note + TBool iCallActivated; // used in defining whether to show GPRS suspended note + TBool iGprsSuspendedNoteShown; + + TBool iMMCEjectUsed; #ifndef RD_MULTIPLE_DRIVE TBool iMMCPowerMenuEjectUsed; TBool iMMCInserted; #endif // RD_MULTIPLE_DRIVE - + + CPeriodic* iTimer; + CPeriodic* iSapTimer; +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + CPeriodic* iAnimTimer; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + CSysApTimer* iSysApTimer; + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + TInt iAnimationShowingTime; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + CSysApKeySndHandler* iSysApKeySndHandler; + + TBool iIgnoreZeroNetworkBarNotifications; + + TBool iCharging; // Indicates if charging is currently on + CSysApKeyManagement* iSysApKeyManagement; + + CSysApMediatorObserver* iSysApMediatorObserver; + TBool iShutdownContinued; + + /** + * The default key handler. + * Own. + */ + CSysApDefaultKeyHandler* iSysApDefaultKeyHandler; + + TBool iPowerKeyPopupMenuDismissed; // Indicates if the popup menu has been dismissed + #ifndef RD_MULTIPLE_DRIVE TBool iHideNextBeep; // Prevents double beep when USB file transfer gets activated TBool iFileManagerCloseDisabled; // Prevents File Manager to close on hotswap #endif // RD_MULTIPLE_DRIVE - + + CSysApAudioRoutingObserver* iSysApAudioRoutingObserver; + + /** + * Call forwarding status CenRep key observer. + * Own. + */ + CSysApCenRepCallForwardingObserver* iSysApCenRepCallForwardingObserver; + + /** + * Message waiting status CenRep key observer. + * Own. + */ + CSysApCenRepMsgWaitingObserver* iSysApCenRepMsgWaitingObserver; + #ifdef RD_MULTIPLE_DRIVE // First power menu index used for eject TInt iPowerkeyMenuEjectSelectionBase; @@ -624,10 +1669,47 @@ // Stores drive for eject query TInt iDriveToEject; #endif // RD_MULTIPLE_DRIVE - - TBool iMMCEjectUsed; - CHbDeviceInputDialogSymbian* iMemCardPwdDialog; + + /** + * For USB charger detection. + */ + TSysApUsbChargerDetector iSysApUsbChargerDetector; + + /** + * SysAp power save mode controller. + * Own. + */ + CSysApPsmController* iSysApPsmController; - }; - -#endif + /** + * SysAp battery info controller. + * Own. + */ + CSysApBatteryInfoController* iSysApBatteryInfoController; + + /** + * Returns whether a de/encrypting operation is ongoing + * + * @since S60 3.1 + * @return TBool ETrue if a de/encrypting operation is in progress + */ + TBool IsEncryptionOperationOngoingL() const; + TInt iKeyBoardRepeatCount; + + //Offset of profile-related menu items in power key menu + TInt iProfileItemsOffset; + //Flag to record if the TD network is enalbed. + TBool iTDEnable; + TBool IsDefaultPowerKeyBehavior(); + + // Are we in GAN mode + TBool iGanEnabled; + + // Handler for GAN events + CSysApGanHandler* iSysApGanHandler; + + }; + +#endif // SYSAPAPPUI_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApDocument.h --- a/coreapplicationuis/SysAp/Inc/SysApDocument.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApDocument.h Wed Sep 01 12:24:48 2010 +0100 @@ -20,8 +20,7 @@ #define SYSAPDOCUMENT_H // INCLUDES -//#include -#include +#include // FORWARD DECLARATIONS class CEikAppUi; @@ -33,7 +32,7 @@ * @since 1.0 */ -class CSysApDocument : public CEikDocument +class CSysApDocument : public CAknDocument { public: /** @@ -41,12 +40,7 @@ * @param CEikApplication& aApp * @return void */ - CSysApDocument(CEikApplication& aApp): CEikDocument(aApp) { } - - /** - * Two-phased constructor. - */ -// static CSysApDocument* NewL(CEikApplication& aApp); + CSysApDocument(CEikApplication& aApp): CAknDocument(aApp) { } /** * Destructor. @@ -56,12 +50,6 @@ virtual ~CSysApDocument(); private: - - /** - * EPOC default constructor. - */ -// void ConstructL(); - /** * C++ default constructor. * @param None diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApFeatureManager.h --- a/coreapplicationuis/SysAp/Inc/SysApFeatureManager.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApFeatureManager.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2010 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" @@ -180,6 +180,14 @@ TBool GripNotSupported() const; /** + * Returns whether SlideSupported is set. + * + * @since S60 9.2 + * @return ETrue if feature is set + */ + TBool SlideSupported() const; + + /** * Returns whether Cover Display is supported. * * @since S60 3.2 @@ -209,7 +217,7 @@ * @since S60 3.2 * @return ETrue if feature is supported */ - // TBool FmTxSupported() const; + TBool FmTxSupported() const; /** * Returns whether pen is enabled. @@ -244,7 +252,25 @@ * @since S60 5.1 * @return ETrue if feature is supported */ - // TBool FmTxRdsTextSupported() const; + TBool FmTxRdsTextSupported() const; + + + /** + * Returns whether a short press of the power key + * triggers the keylock + * + * @since S60 5.2 + * @return ETrue if feature is supported + */ + TBool PowerKeyIsLockKey() const; + + /** + * Returns whether GAN is supported. + * + * @since S60 3.2 + * @return ETrue if feature is supported + */ + TBool GanSupported() const; private: @@ -322,6 +348,11 @@ TBool iGripNotSupported; /** + * Slide supported status. + */ + TBool iSlideSupported; + + /** * Cover display support status. */ TBool iCoverDisplaySupported; @@ -339,7 +370,7 @@ /** * FM TX supported status */ - // TBool iFmTxSupported; + TBool iFmTxSupported; /** * Pen enabled status. @@ -359,7 +390,19 @@ /** * FM TX RDS Text support status. */ - // TBool iFmTxRdsTextSupported; + TBool iFmTxRdsTextSupported; + + + /** + * Short press of power key invokes keylock + */ + TBool iPowerKeyIsLockKey; + + /** + * Generic Access Network (GAN) supported status. + */ + TBool iGanSupported; + }; #endif // SYSAPFEATUREMANAGER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApMediatorObserver.h --- a/coreapplicationuis/SysAp/Inc/SysApMediatorObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApMediatorObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -28,7 +28,7 @@ #include #include #include // Remove this when SecondaryDisplayStartupAPI.h includes it properly. -#include +#include #include "SysApAppUi.h" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApPubSubObserver.h --- a/coreapplicationuis/SysAp/Inc/SysApPubSubObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApPubSubObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -38,15 +38,6 @@ * @since 2.X */ -enum TSecurityUIsLights - { - ESecurityUIsLightsUninitialized = 0, - ESecurityUIsLightsLockOnRequest, - ESecurityUIsLightsQueryOnRequest, - ESecurityUIsLightsLockOffRequest, - ESecurityUIsLightsLastValue - }; - class CSysApPubSubObserver : public CBase, public MSysApPropertyResponder @@ -108,7 +99,7 @@ /** * Handle keys under category KPSUidHWRMFmTx */ - // void HandleHwrmFmTxCategoryL( const TUint aKey, const TInt aValue ); + void HandleHwrmFmTxCategoryL( const TUint aKey, const TInt aValue ); /** * Handle keys under category KPSUidDataSynchronizationInternalKeys @@ -143,9 +134,6 @@ */ CSysApPubSubObserver( CSysApAppUi& aSysApAppUi ); void ConstructL(); - - void HandleLKeylockEventL( const TUint aKey, const TInt aValue ); - void HandleLightsOnRequestL( const TUint aKey, const TInt aValue ); protected: // From MSysApPropertyResponder @@ -163,8 +151,8 @@ CSysApSubscriber* iInboxStatusSubscriber; // KUidInboxStatusValue CSysApSubscriber* iOutboxStatusSubscriber; // KUidOutboxStatus CSysApSubscriber* iIrdaStatusSubscriber; // KPSUidIrdaStatus -// CSysApSubscriber* iGprsStatusSubscriber; // KPSUidGprsStatus -// CSysApSubscriber* iWcdmaStatusSubscriber; // KPSUidWcdmaStatus + CSysApSubscriber* iGprsStatusSubscriber; // KPSUidGprsStatus + CSysApSubscriber* iWcdmaStatusSubscriber; // KPSUidWcdmaStatus CSysApSubscriber* iLocationGlobalPrivacySubscriber; // KPSUidLocationGlobalPrivacy CSysApSubscriber* iRestoreBackupSubscriber; // KUidBackupRestoreKey @@ -172,11 +160,11 @@ CSysApSubscriber* iSimChangedSubscriber; // KPSSimChanged // Category KHWRMFmTxStatus - // CSysApSubscriber* iFmTxStatusSubscriber; // KPSUidHWRMFmTx + CSysApSubscriber* iFmTxStatusSubscriber; // KPSUidHWRMFmTx - // TInt iPreviousFmTxPSValue; + TInt iPreviousFmTxPSValue; - // CSysApRemConObserver* iFmTxRemConObserver; + CSysApRemConObserver* iFmTxRemConObserver; // Category KPSUidCoreApplicationUIs @@ -250,13 +238,6 @@ * Own. */ CSysApSubscriber* iSmsPhoneStoreSubscriber; - - CSysApSubscriber* iKeylockEventSubscriber; - - CSysApSubscriber* iLightsOnRequestSubscriber; - - CSysApSubscriber* iPowerMenuCustomDialogSubscriber; - }; #endif // SYSAPPUBSUBOBSERVER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApShutdownImage.h --- a/coreapplicationuis/SysAp/Inc/SysApShutdownImage.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApShutdownImage.h Wed Sep 01 12:24:48 2010 +0100 @@ -56,8 +56,6 @@ void ShowShutdownImageL(TInt aBitmapId); RWindow& ShutdownCoeControlWindow(); - - void SetRectForAnimation(); #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION /** @@ -133,7 +131,6 @@ */ TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); - CFbsBitmap* ReadSVGL (TFileName aFileName); private: // Data //Used for showing user selected image diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h --- a/coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/SysApSsSettingsObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -24,7 +24,7 @@ // INCLUDES #include -#include +#include // FORWARD DECLARATIONS class CSysApAppUi; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/SysApTaskList.h --- a/coreapplicationuis/SysAp/Inc/SysApTaskList.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -/* -* Copyright (c) 2005 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 SYSAPTASKLIST_H -#define SYSAPTASKLIST_H - -// INCLUDES - -#include -#include - -// CLASS DECLARATION - -/** -* Class for finding out about running applications. -* This class specialises in locating and identifying root applications, -* those applications who do not have any parent window group. -* It can be used along-side TApaTaskList. -* -* @since Series 60 3.0 -*/ -class CSysApTaskList : public CBase - { -public: - /** - * Factory function - * @param aWsSession an open session to the window server, often from CEikonEnv::WsSession() - * @return a new fully constructed instance of CSysApTaskList - */ - static CSysApTaskList* NewL(RWsSession& aWsSession); - /** - * Factory function - * @param aWsSession an open session to the window server, often from CEikonEnv::WsSession() - * @return a new fully constructed instance of CSysApTaskList, which is on the cleanup stack - */ - static CSysApTaskList* NewLC(RWsSession& aWsSession); - /** - * Destructor. - */ - ~CSysApTaskList(); - - /** - * Refresh the window group array - */ - void UpdateListL(); - /** - * Accessor for the window group array - * @return an array containing the window groups of running applications. - */ - const RArray& WgArray() const; - - /** - * Find an application with the requested UID 3, which is running as a root application - * @param aAppUid the UID 3 of the target application. - * @return a TApaTask which refers to the running instance of the application. - * if the application is not running, the TApaTask's Exists() function will return EFalse. - */ - TApaTask FindRootApp(TUid aAppUid) const; - /** - * Query whether an application's window group is running as a root application. - * @param aWgId the window group identifier of the target application. - * @return ETrue if this window group is running as a root window group. - */ - TBool IsRootWindowGroup(TInt aWgId) const; - - /** - * Find the parent window group. If there is no parent, 0 is returned. - * @param aWgId the window group id that you want to find the parent of. - * @return The window group id of the parent, or 0 if there is no parent. - */ - TInt FindParentWgId(TInt aWgId) const; - /** - * Find the child window group. If there is no child, 0 is returned. - * @param aWgId the window group id that you want to find the child of. - * @return The window group id of the child, or 0 if there is no child. - */ - TInt FindChildWgId(TInt aWgId) const; - -private: - CSysApTaskList(RWsSession& aWsSession); - void ConstructL(); - -private: - RWsSession& iWs; - RArray iWgs; - }; - -#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/hbdeviceinputdialogsymbian.h --- a/coreapplicationuis/SysAp/Inc/hbdeviceinputdialogsymbian.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (developer.feedback@nokia.com) -** -** This file is part of the HbWidgets module of the UI Extensions for Mobile. -** -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this file. -** Please review the following information to ensure the GNU Lesser General -** Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at developer.feedback@nokia.com. -** -****************************************************************************/ - -#ifndef HBDEVICEINPUTDIALOGSYMBIAN_H -#define HBDEVICEINPUTDIALOGSYMBIAN_H - -#if defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) - -#include -#include -#include -#ifdef _DEBUG - - #define TRACES( x ) x - -#else - - #define TRACES( x ) - -#endif - -class CHbDeviceInputDialogPrivate; -class MHbDeviceInputDialogObserver; - -class CHbDeviceInputDialogSymbian : public CBase -{ -public: - enum InputMode { - TextInput, - IntInput, - RealInput, - IpInput - }; - - enum TButtonId { - EAcceptButton, - ERejectButton - }; - -public: - - static CHbDeviceInputDialogSymbian* NewL(MHbDeviceInputDialogObserver *aObserver = 0); - ~CHbDeviceInputDialogSymbian(); - - TPtrC getTextL(); - - void ShowL(); - void Close(); - - void SetObserver(MHbDeviceInputDialogObserver *aObserver); - -private: - friend class CHbDeviceInputDialogPrivate; - CHbDeviceInputDialogSymbian(); - CHbDeviceInputDialogPrivate* d; - TBuf<16> iPassword; - TBuf8<16> iTemp; - -}; - -class MHbDeviceInputDialogObserver -{ -public: - virtual void InputDialogClosed(const CHbDeviceInputDialogSymbian* aInputDialog, - CHbDeviceInputDialogSymbian::TButtonId aButton) = 0; - virtual void DataReceived(CHbSymbianVariantMap data) = 0; -}; - -#endif // defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) -#endif // HBDEVICEINPUTDIALOGSYMBIAN_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/hbdevicepowermenusymbian.h --- a/coreapplicationuis/SysAp/Inc/hbdevicepowermenusymbian.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2010 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 HBDEVICEPOWERMENUSYMBIAN_H -#define HBDEVICEPOWERMENUSYMBIAN_H - -#if defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) - -#include -#include -#include -#include -#include -#include -#include "SysApAppUi.h" - -class CHbDevicePowerMenuPrivate; - -class CHbDevicePowerMenuSymbian : public CBase -{ -public: - - static CHbDevicePowerMenuSymbian* NewL(CSysApAppUi& aSysApServer ); - virtual ~CHbDevicePowerMenuSymbian(); - - //Displays Dialog - void ShowL(); - //Getters and Setters - void SetVolume(TInt aVolume); - void SetSilenceMode(TBool aEnable); - void SetOfflineMode(TBool aChecked); - void SetVibrationEnabled(TBool aEnable); - void SetPowerOffEnabled(TBool aEnable); - -private: - - CHbDevicePowerMenuSymbian(CSysApAppUi& aSysApServer); - void ConstructL(); - -private: - friend class CHbDevicePowerMenuPrivate; - //Used to set master Volume/Vibrate/Silence Mode in Control Panel - MProfileEngineExtended2* iProfileEngine; - //Used to Set and Get OfflineMode to and from Control Panel - CRepository* iCenrepOffline; - //Used to Get Master Volume/Vibrate/Silence Mode in Control Panel - CRepository* iCenrepProfile; - //Used to handle ShutDown - CSysApAppUi& iSysApServer; - CHbDevicePowerMenuPrivate* iPowerMenuPrivate; -}; - -#endif // defined(__SYMBIAN32__) || defined(SYMBIAN) || defined(HB_DOXYGEN) - -#endif // HBDEVICEPOWERMENUSYMBIAN_H - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/sysapaudioroutingobserver.h --- a/coreapplicationuis/SysAp/Inc/sysapaudioroutingobserver.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,127 +0,0 @@ -/* -* Copyright (c) 2007 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: Observes audio output routing changes -* -*/ - - -#ifndef SYSAPAUDIOROUTINGONBSERVER_H -#define SYSAPAUDIOROUTINGONBSERVER_H - -#include -class CSysApAppUi; - -/** - * ?one_line_short_description - * - * ?more_complete_description - * - * @lib ?library - * @since S60 ?S60_version *** for example, S60 v3.0 - */ -class CSysApAudioRoutingObserver : public CBase, - public MTelephonyAudioRoutingObserver - { - -public: - - /** - * Symbian two-phased constructor. - * - * @param aSysApAppUi reference to System Application's application UI class - */ - static CSysApAudioRoutingObserver* NewL( CSysApAppUi& aSysApAppUi ); - - /** - * Destructor. - */ - virtual ~CSysApAudioRoutingObserver(); - - /** - * Returns whether audio output is routed to IHF. - * - * @since S60 3.2 - * @return TBool ETrue audios routed to IHF - * EFalse audios not routed to IHF. - */ - TBool IhfEnabled() const; - -private: // from MTelephonyAudioRoutingObserver - /** - * Signals that available audio outputs have changed. - * - * @since S60 3.2 - * @param CTelephonyAudioRouting& aTelephonyAudioRouting reference. - * @see MTelephonyAudioRoutingObserver::AvailableOutputsChanged - */ - virtual void AvailableOutputsChanged( CTelephonyAudioRouting& aTelephonyAudioRouting); - - /** - * Signals that current output has changed. - * - * @since 60 3.2 - * @param CTelephonyAudioRouting& aTelephonyAudioRouting reference. - * @see MTelephonyAudioRoutingObserver::OutputChanged - */ - virtual void OutputChanged( CTelephonyAudioRouting& aTelephonyAudioRouting); - - /** - * Signals that CTelephonyAudioRouting::SetOutputL request issued by this - * application (on CTelephonyAudioRouting instance) was serviced by the - * Adaptation. - * - * @since S60 3.2 - * @param CTelephonyAudioRouting& aTelephonyAudioRouting reference. - * @param aError KErrNone if output requested by application is set, else - * system-wide error code. - * @see MTelephonyAudioRoutingObserver::SetOutputComplete - */ - virtual void SetOutputComplete( CTelephonyAudioRouting& aTelephonyAudioRouting, TInt aError); - -private: - - /** - * C++ default constructor. - */ - CSysApAudioRoutingObserver(); - - /** - * Constructor. - * - * @param aSysApAppUi reference to System Application's application UI class - */ - CSysApAudioRoutingObserver( CSysApAppUi& aSysApAppUi ); - - /** - * Symbian 2nd-phase constructor. - */ - void ConstructL(); - -private: // data - - /** - * Telephony audio routing instance. - * Own. - */ - CTelephonyAudioRouting* iTelephonyAudioRouting; - - /** - * System Application application UI class. - */ - CSysApAppUi& iSysApAppUi; - - }; - - -#endif // SYSAPAUDIOROUTINGONBSERVER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/sysapbatteryinfocontroller.h --- a/coreapplicationuis/SysAp/Inc/sysapbatteryinfocontroller.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/sysapbatteryinfocontroller.h Wed Sep 01 12:24:48 2010 +0100 @@ -22,7 +22,7 @@ #include class CBSUtil; -// class CBatteryPopupControl; +class CBatteryPopupControl; /** * Controller for enhanced battery information. @@ -101,6 +101,12 @@ */ void BatteryStatusUpdated( const TInt aValue ); + /** + * Check if battery status is above the threshold level + * + */ + TBool IsBatteryInfoAboveThreshold() const; + private: /** @@ -151,7 +157,7 @@ * Battery popup control. * Own. */ - // CBatteryPopupControl* iBatteryPopup; + CBatteryPopupControl* iBatteryPopup; }; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/sysapdefaultkeyhandler.h --- a/coreapplicationuis/SysAp/Inc/sysapdefaultkeyhandler.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/sysapdefaultkeyhandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -21,13 +21,13 @@ #include #include -//#include +#include +#include -class RWindowGroup; class MSysapCallback; - -//class RAknKeylock2; -//class CSysApAppUi; +class RAknKeylock2; +class CRepository; +class CKeyLockPolicyApi; /** @@ -52,7 +52,7 @@ * @param aCallback reference to System Application callback interface. * @return pointer to a new instance of CSysApDefaultKeyHandler. */ - static CSysApDefaultKeyHandler* NewL(MSysapCallback& callback); + static CSysApDefaultKeyHandler* NewL( MSysapCallback& callback ); /** * Destructor. @@ -88,7 +88,7 @@ * * @param aCallback reference to System Application callback interface. */ - CSysApDefaultKeyHandler(MSysapCallback& callback ); + CSysApDefaultKeyHandler( MSysapCallback& callback ); private: @@ -165,10 +165,7 @@ TBool DoShowKeysLockedNote(); private: // data - - // Our window group from SysappUi - // RWindowGroup& iRootWindowGroup; - + /** * Reference to callback object. */ @@ -188,7 +185,12 @@ * Pointer to sysap-owned RAknKeylock2* * Not own. */ -// RAknKeylock2* iKeylock; + RAknKeylock2* iKeylock; + + /** + * Owned. Used to enable/disable keylock activation when slide is close/open + */ + CKeyLockPolicyApi* iKeylockPolicy; /** * Handle of the captured camera key event. @@ -228,8 +230,18 @@ /** * Avkon UI Server */ -// RAknUiServer iAknUiServer; + RAknUiServer iAknUiServer; + /** + * Keypad slide handling CR + */ + CRepository* iSlideRepository; + TBool iKeypadWasLocked; + + /** + * Call status P&S for slide handling + */ + RProperty iCallStateProperty; }; #endif // SYSAPDEFAULTKEYHANDLER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/sysapkeymanagement.h --- a/coreapplicationuis/SysAp/Inc/sysapkeymanagement.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/sysapkeymanagement.h Wed Sep 01 12:24:48 2010 +0100 @@ -88,7 +88,6 @@ */ RArray iUpAndDownKeyHandles; //Handles of keys when capturing them - RArray iLongKeyPressHandle ; //Handles long key when capturing them /** * Tells if the plugin is a key provider plugin (plugin version 2) */ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Inc/sysapremconobserver.h --- a/coreapplicationuis/SysAp/Inc/sysapremconobserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Inc/sysapremconobserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 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" @@ -54,7 +54,16 @@ * Destructor. */ virtual ~CSysApRemConObserver(); - + + /** + * Open remcon interface and reserve the volume keys + */ + void StartRemconInterfaceL(); + + /** + * close the remcon interface and release the volume keys + */ + void StopRemconInterface(); protected: // Functions from base classes /** diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/PubSub/CoreApplicationUIsPrivatePSKeys.h --- a/coreapplicationuis/SysAp/PubSub/CoreApplicationUIsPrivatePSKeys.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/PubSub/CoreApplicationUIsPrivatePSKeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -21,7 +21,7 @@ #define COREAPPLICATIONUISPRIVATEPSKEYS_H // INCLUDES -#include "coreapplicationuisinternalpskeys.h" +#include "CoreApplicationUIsInternalPSKeys.h" #endif // COREAPPLICATIONUISPRIVATEPSKEYS_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/BtSap/SysApBtSapControllerImpl.cpp --- a/coreapplicationuis/SysAp/Src/BtSap/SysApBtSapControllerImpl.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/BtSap/SysApBtSapControllerImpl.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -26,7 +26,8 @@ #include #include #include -//#include +#include +#include MSysApBtSapController* CreateSysApBtSapControllerL( CSysApAppUi& aSysApAppUi ) @@ -162,7 +163,7 @@ // No RF available so signal bars should be same as in offline mode. iSysApAppUi.IgnoreZeroNetworkBarNotifications(ETrue); -// TRAP( err, iSysApAppUi.UpdateSignalBarsL( KAknSignalOffLineMode ) ); + TRAP( err, iSysApAppUi.UpdateSignalBarsL( KAknSignalOffLineMode ) ); iSysApAppUi.SetNetworkConnectionAllowed( ECoreAppUIsNetworkConnectionNotAllowed ); @@ -183,8 +184,7 @@ iFinalizeDisconnectNeeded = EFalse; iSysApAppUi.IgnoreZeroNetworkBarNotifications(EFalse); -// if ( iSysApAppUi.ActiveProfileId() == KOfflineModeProfileId ) - if(0) + if ( iSysApAppUi.ActiveProfileId() == KOfflineModeProfileId ) { if ( iSwitchingToOffline ) { @@ -216,6 +216,7 @@ // ---------------------------------------------------------------------------- void CSysApBtSapController::HandlePropertyChangedL( const TUid& aCategory, const TUint aKey ) { + TInt simStatus = ESimStatusUninitialized; if ( aCategory == KPSUidBluetoothSapConnectionState && aKey == KBTSapConnectionState ) { TInt value( 0 ); @@ -232,7 +233,9 @@ break; case EBTSapConnecting: TRACES( RDebug::Print( _L("CSysApBtSapController::HandlePropertyChangedL: EBTSapConnecting, iBtSapEnabled=%d"), iBtSapEnabled ) ); - if ( !iBtSapEnabled ) + //Ensure SIM is present + simStatus = iSysApAppUi.StateOfProperty( KPSUidStartup, KPSSimStatus ); + if ( !iBtSapEnabled && !(simStatus == ESimNotPresent || simStatus == ESimNotSupported)) { iSysApAppUi.InitCloseSimApplicationsL(); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp --- a/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -69,12 +69,6 @@ void CSysApCenRepLogsObserver::ConstructL() { - const TUid KCRUidLogs = {0x101F874E}; - /** - * Informs the Logs application about the amount of new missed calls. - * Integer type - **/ - const TUint32 KLogsNewMissedCalls = 0x00000006; TRAPD( err, iSession = CRepository::NewL( KCRUidLogs ) ); TRACES( RDebug::Print( _L("CSysApCenRepLogsObserver::ConstructL: err=%d (KCRUidLogs)"), err ) ); User::LeaveIfError( err ); @@ -85,7 +79,7 @@ KLogsNewMissedCalls ); iNewMissedCallsHandler->StartListeningL(); - iSession->Get(KLogsNewMissedCalls, iMissedCallsValue); + User::LeaveIfError(iSession->Get(KLogsNewMissedCalls, iMissedCallsValue)); } // ---------------------------------------------------------------------------- @@ -154,9 +148,9 @@ if ( iSimChangedCheckDone && iUiReady ) { -// TInt newState( iMissedCallsValue > 0 ? EAknIndicatorStateOn : EAknIndicatorStateOff ); + TInt newState( iMissedCallsValue > 0 ? EAknIndicatorStateOn : EAknIndicatorStateOff ); -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorMissedCalls, newState ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorMissedCalls, newState ); } } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.h --- a/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/CenRepObservers/SysApCenRepLogsObserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -23,7 +23,7 @@ #include #include #include -//#include +#include // FORWARD DECLARATIONS class CSysApAppUi; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepfmtxobserver.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepfmtxobserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,140 @@ +/* +* Copyright (c) 2007 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: CSysApCenRepFmTxObserver implementation. + * +*/ + + +// INCLUDE FILES +#include +#include +#include +#include +#include "sysapcenrepfmtxobserver.h" +#include "SysApAppUi.h" +#include "SysAp.hrh" + +// ========================== MEMBER FUNCTIONS ================================ + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver* CSysApCenRepFmTxObserver::NewL() +// ---------------------------------------------------------------------------- + +CSysApCenRepFmTxObserver* CSysApCenRepFmTxObserver::NewL( CSysApAppUi& aSysApAppUi ) + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::NewL" ) ) ); + CSysApCenRepFmTxObserver* self = new ( ELeave ) CSysApCenRepFmTxObserver( aSysApAppUi ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::CSysApCenRepFmTxObserver( CSysApAppUi& aSysApAppUi ) +// ---------------------------------------------------------------------------- + +CSysApCenRepFmTxObserver::CSysApCenRepFmTxObserver( CSysApAppUi& aSysApAppUi ) + : iSysApAppUi( aSysApAppUi ), + iSession( NULL ), + iFmTxPowerStateHandler( NULL ), + iFrequency( 0 ) + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::CSysApCenRepFmTxObserver" ) ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::~CSysApCenRepFmTxObserver() +// ---------------------------------------------------------------------------- + +CSysApCenRepFmTxObserver::~CSysApCenRepFmTxObserver() + { + TRACES( RDebug::Print( _L("~CSysApCenRepFmTxObserver") ) ); + delete iFmTxPowerStateHandler; + delete iSession; + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::ConstructL() +// ---------------------------------------------------------------------------- + +void CSysApCenRepFmTxObserver::ConstructL() + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::ConstructL: trying CRepository::NewL( KCRUidBluetoothPowerState )") ) ); + iSession = CRepository::NewL( KCRUidFmTxCenRes ); + iFmTxPowerStateHandler = + CCenRepNotifyHandler::NewL( *this, + *iSession, + CCenRepNotifyHandler::EIntKey, + KFmTxCenResKeyFrequency ); + iFmTxPowerStateHandler->StartListeningL(); + TInt err = iSession->Get( KFmTxCenResKeyFrequency, iFrequency ); + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::ConstructL: err=%d, iFrequency=%d"), err, iFrequency ) ); + User::LeaveIfError( err ); + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::HandleNotifyInt() +// ---------------------------------------------------------------------------- + +void CSysApCenRepFmTxObserver::HandleNotifyInt( TUint32 aId, TInt aNewValue ) + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::HandleNotifyInt(): aId=%d, aNewValue=%d" ), aId, aNewValue ) ); + if ( aId == KFmTxCenResKeyFrequency ) + { + iFrequency = aNewValue; + TFmTxState state = static_cast(iSysApAppUi.StateOfProperty( KPSUidHWRMFmTx, KHWRMFmTxStatus )); + switch ( state ) + { + case EFmTxStateActive: + case EFmTxStateInactive: + case EFmTxStatePowerSaveInactivity: + case EFmTxStatePowerSaveAccessory: + case EFmTxStateScanning: + // show "Tune radio to xx.xx MHz" if FM TX is on + TRAPD( err, iSysApAppUi.ShowUiNoteL( EFmTxOnNote ) ); + if ( err != KErrNone ) + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::HandleNotifyInt(): err=%d" ), err ) ); + } + break; + + default: + // do nothing + break; + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::HandleNotifyError() +// ---------------------------------------------------------------------------- + +void CSysApCenRepFmTxObserver::HandleNotifyError( TUint32 /* aId */, TInt /* error */, CCenRepNotifyHandler* /* aHandler */ ) + { + TRACES( RDebug::Print( _L("CSysApCenRepFmTxObserver::HandleNotifyError()" ) ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApCenRepFmTxObserver::Frequency() +// ---------------------------------------------------------------------------- + +TInt CSysApCenRepFmTxObserver::Frequency() const + { + return iFrequency; + } + + +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepfmtxobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepfmtxobserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,124 @@ +/* +* Copyright (c) 2007 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: CSysApCenRepFmTxObserver class definition. +* +*/ + + +#ifndef SYSAPCENREPFMTXOBSERVER_H +#define SYSAPCENREPFMTXOBSERVER_H + +// INCLUDES +#include +#include + + +// FORWARD DECLARATIONS +class CRepository; +class CSysApAppUi; + +// CLASS DECLARATION + +/** +* CSysApCenRepFmTxObserver +* +* Observer class for FM TX related Central Repository keys. +* +* @lib None. +* @since 3.2 +*/ + +class CSysApCenRepFmTxObserver : public CBase, public MCenRepNotifyHandlerCallback + { + public: // Constructors and destructor + /** + * Symbian two-phased constructor. + */ + static CSysApCenRepFmTxObserver* NewL( CSysApAppUi& aSysApAppUi ); + + /** + * Destructor. + */ + virtual ~CSysApCenRepFmTxObserver(); + + private: + + /** + * Symbian 2nd-phase constructor. + * @param None + * @return void + */ + void ConstructL( ); + + /** + * Constructor + * @param CSysApAppUi& aSysApAppUi + * @return void + */ + CSysApCenRepFmTxObserver( CSysApAppUi& aSysApAppUi ); + + /** + * C++ default constructor. + * @param None + * @return void + */ + CSysApCenRepFmTxObserver(); + + public: // From MCenRepNotifyHandlerCallback + void HandleNotifyInt( TUint32 aId, TInt aNewValue ); + void HandleNotifyError( TUint32 aId, TInt error, CCenRepNotifyHandler* aHandler ); + + public: // Other functions + + /** + * Returns the current frequency + * + * @return TInt + */ + TInt Frequency() const; + + private: + // By default, prohibit copy constructor + CSysApCenRepFmTxObserver( const CSysApCenRepFmTxObserver& ); + + // Prohibit assigment operator + CSysApCenRepFmTxObserver& operator= ( const CSysApCenRepFmTxObserver& ); + + private: + /** + * SysAp application class. + */ + CSysApAppUi& iSysApAppUi; + + /** + * CenRep session for FM TX keys. + * Own. + */ + CRepository* iSession; + + /** + * Notify handler for FM TX CenRep key. + * Own. + */ + CCenRepNotifyHandler* iFmTxPowerStateHandler; + + /** + * Tuned FM TX frequency. + */ + TInt iFrequency; + }; + +#endif // SYSAPCENREPFMTXOBSERVER_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepofflinemodeobserver.cpp --- a/coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepofflinemodeobserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ -/* - * Copyright (c) 2005-2010 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: - * CSysApCenRepOfflineModeObserver is a an observer for the Offline Mode central Repository key. - * This class handles the changes to the offline mode changes done from Power Menu or Control Panel - * - */ - -#include "sysapcenrepofflinemodeobserver.h" -#include "CoreApplicationUIsSDKCRKeys.h" -#include "SysAp.hrh" - -#ifdef _DEBUG -#include -#endif - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::NewL( MSysApOfflineModeController& ) -// Creates an instance of CSysApCenRepOfflineModeObserver and returns -// ---------------------------------------------------------------------------- - -CSysApCenRepOfflineModeObserver* CSysApCenRepOfflineModeObserver::NewL( - MSysApOfflineModeController& aSysApOfflineModeController ) - { - TRACES( RDebug::Printf("CSysApCenRepOfflineModeObserver::NewL") ); - CSysApCenRepOfflineModeObserver* self = - new (ELeave) CSysApCenRepOfflineModeObserver(aSysApOfflineModeController); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop(); //self - return self; - } - - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::CSysApCenRepOfflineModeObserver( MSysApOfflineModeController& ) -// ---------------------------------------------------------------------------- - -CSysApCenRepOfflineModeObserver::CSysApCenRepOfflineModeObserver( - MSysApOfflineModeController& aSysApOfflineModeController ) - : iSysApOfflineModeController( aSysApOfflineModeController ) - { - TRACES( RDebug::Printf("CSysApCenRepOfflineModeObserver::CSysApCenRepOfflineModeObserver" ) ); - } - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::~CSysApCenRepOfflineModeObserver() -// ---------------------------------------------------------------------------- - -CSysApCenRepOfflineModeObserver::~CSysApCenRepOfflineModeObserver() - { - TRACES( RDebug::Printf("~CSysApCenRepOfflineModeObserver" ) ); - if( iOfflineModeHandler ) - { - iOfflineModeHandler->StopListening(); - } - delete iOfflineModeHandler; - delete iOfflineCenRep; - } - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::ConstructL() -// ---------------------------------------------------------------------------- - -void CSysApCenRepOfflineModeObserver::ConstructL() - { - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::ConstructL: trying CRepository::NewL(KCRUidCoreApplicationUIs)")); - - iOfflineCenRep = CRepository::NewL( KCRUidCoreApplicationUIs ); - - iOfflineModeHandler = - CCenRepNotifyHandler::NewL( *this, - *iOfflineCenRep, - CCenRepNotifyHandler::EIntKey, - KCoreAppUIsNetworkConnectionAllowed ); - iOfflineModeHandler->StartListeningL(); - } - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::HandleNotifyInt() -// Handles the changes to offline mode state -// ---------------------------------------------------------------------------- - -void CSysApCenRepOfflineModeObserver::HandleNotifyInt( TUint32 aId, TInt aNewValue ) - { - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::HandleNotifyInt(), aId=0x%x, aNewValue=%d", aId, aNewValue)); - if ( aId == KCoreAppUIsNetworkConnectionAllowed ) - { - if( aNewValue == ECoreAppUIsNetworkConnectionNotAllowed ) - { - // Offline mode enabled. Go Offline - TRACES( RDebug::Printf("CSysApCenRepOfflineModeObserver::HandleNotifyInt() Offline mode Enabled")); - // Ignore any leave because it will have already been handled by showing an - // error notification to the user - TRAP_IGNORE(iSysApOfflineModeController.SwitchFromOnlineToOfflineModeL()); - } - else if( aNewValue == ECoreAppUIsNetworkConnectionAllowed ) - { - // Offline mode disabled. Go Online - TRACES( RDebug::Printf("CSysApCenRepOfflineModeObserver::HandleNotifyInt() Offline mode Disabled")); - // Ignore any leave because it will have already been handled by showing an - // error notification to the user - TRAP_IGNORE(iSysApOfflineModeController.GoOnlineIfOkL()); - } - else - { - // Any other value is invalid - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::HandleNotifyInt() Invalid Value %d", aNewValue)); - } - } - } - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::HandleNotifyError() -// ---------------------------------------------------------------------------- - -void CSysApCenRepOfflineModeObserver::HandleNotifyError( TUint32, TInt, CCenRepNotifyHandler* ) - { - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::HandleNotifyError()")); - // Nothing to do if start listening leaves - TRAP_IGNORE(iOfflineModeHandler->StartListeningL()); - } - - - -// ---------------------------------------------------------------------------- -// CSysApCenRepOfflineModeObserver::IsOffline() -// Fetches the Cen Rep for Offline mode and -// Return true if Offline mode is enabled, false otherwise -// ---------------------------------------------------------------------------- -TBool CSysApCenRepOfflineModeObserver::IsOffline() const - { - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::IsOffline")); - TBool nwConnAllowed = ETrue; - iOfflineCenRep->Get(KCoreAppUIsNetworkConnectionAllowed, nwConnAllowed); - TRACES(RDebug::Printf("CSysApCenRepOfflineModeObserver::IsOffline returns %d",!nwConnAllowed)); - return !nwConnAllowed; - } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepofflinemodeobserver.h --- a/coreapplicationuis/SysAp/Src/CenRepObservers/sysapcenrepofflinemodeobserver.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2010 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: - * CSysApCenRepOfflineModeObserver is a an observer for the Offline Mode central Repository key. - * This class handles the changes to the offline mode changes done from Power Menu or Control Panel - * - */ - - -#ifndef SYSAPCENREPOFFLINEMODEOBSERVER_H -#define SYSAPCENREPOFFLINEMODEOBSERVER_H - -// INCLUDES -#include -#include -#include - -#include "MSysApOfflineModeController.h" - -NONSHARABLE_CLASS(CSysApCenRepOfflineModeObserver) : public CBase, - public MCenRepNotifyHandlerCallback - { -public: // Constructors and destructor - /** - * Default constructor - */ - static CSysApCenRepOfflineModeObserver* NewL( - MSysApOfflineModeController& aSysApOfflineModeController ); - - /** - * Destructor. - */ - ~CSysApCenRepOfflineModeObserver(); - -private: - /** - * Two phase ConstructL - */ - void ConstructL( ); - - /** - * Constructor - * @param aSysApOfflineModeController is the instance of Offline mode controller - */ - CSysApCenRepOfflineModeObserver( MSysApOfflineModeController& aSysApOfflineModeController ); - - /** - * default constructor. - */ - CSysApCenRepOfflineModeObserver(); - -public: // From MCenRepNotifyHandlerCallback - /** - * Handles the changes to offline mode state - * @param aId is the cen rep key which was changed - * @param aNewValue is the new value - */ - void HandleNotifyInt( TUint32 aId, TInt aNewValue ); - - /** - * Handles the error in changing offline mode state - * @param aId is the cen rep key which was changed - * @param aError is the error id - * @param aHandler is Offline cep rep handler same as iOfflineModeHandler - */ - void HandleNotifyError( TUint32 aId, TInt aError, CCenRepNotifyHandler* aHandler ); - - /** - * Returns whether Offline mode is currently active or not - * @return ETrue if Offline mode is active, else EFalse - */ - TBool IsOffline() const; - -private: - /** - * Instance of Offline mode controller. Used for enabling or disabling offline mode - */ - MSysApOfflineModeController& iSysApOfflineModeController; - - /** - * Central Repository for gettting the Offline Mode - */ - CRepository* iOfflineCenRep; - - /** - * Handler to the cen rep for listening to the offline changes - */ - CCenRepNotifyHandler* iOfflineModeHandler; - }; - -#endif // SYSAPCENREPBTOBSERVER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp --- a/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,22 +1,19 @@ /* - * Copyright (c) 2005-2010 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". +* Copyright (c) 2005-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". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: CSysApOfflineModeController implementation * - * Initial Contributors: - * Nokia Corporation - initial contribution. - * - * Contributors: - * - * Description: - * CSysApOfflineModeController controls the offline mode. - * It turns OFF RF, BT and WLAN when offline mode is enabled and turns them ON when - * Offline mode is disabled - * - */ +*/ // INCLUDES @@ -26,10 +23,8 @@ #include "SysAp.hrh" #include "DosSvrServices.h" #include "SysApCenRepController.h" -#include "sysapcenrepofflinemodeobserver.h" #include #include -#include // For Turning ON/OFF WLAN MSysApOfflineModeController* CreateSysApOfflineModeControllerL( CSysApAppUi& aSysApAppUi ) @@ -58,18 +53,22 @@ void CSysApOfflineModeController::ConstructL() { TRACES( RDebug::Print( _L("CSysApOfflineModeController::ConstructL") ) ); - - // create an observer for Offline Mode - TRACES( RDebug::Print( _L("CSysApOfflineModeController::ConstructL: trying CSysApCenRepOfflineModeObserver::NewL") ) ); - iSysApCenRepOfflineModeObserver = CSysApCenRepOfflineModeObserver::NewL(*this ); - iOfflineModeActive = iSysApCenRepOfflineModeObserver->IsOffline(); + // Check the active profile + TInt activeProfile( iSysApAppUi.ActiveProfileId() ); + activeProfile = iSysApAppUi.ActiveProfileId(); + if ( activeProfile == KOfflineModeProfileId ) + { + iOfflineModeActive = ETrue; + } } // ---------------------------------------------------------------------------- // CSysApOfflineModeController::CSysApOfflineModeController() // ---------------------------------------------------------------------------- CSysApOfflineModeController::CSysApOfflineModeController( CSysApAppUi& aSysApAppUi ) : - iSysApAppUi( aSysApAppUi ) + iSysApAppUi( aSysApAppUi ), + iOfflineModeActive( EFalse ), + iDoNotActivateRF( EFalse ) { } @@ -80,7 +79,6 @@ CSysApOfflineModeController::~CSysApOfflineModeController() { - delete iSysApCenRepOfflineModeObserver; } // ---------------------------------------------------------------------------- @@ -89,7 +87,6 @@ TBool CSysApOfflineModeController::OfflineModeActive() { - TRACES( RDebug::Print( _L("CSysApOfflineModeController::OfflineModeActive returns %d"), iOfflineModeActive ) ); return iOfflineModeActive; } @@ -100,7 +97,6 @@ void CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL() { TRACES( RDebug::Print( _L("CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL") ) ); - TInt err ( 0 ); // Set state to starter. Note that if state is same as the current state, then nothing happens. @@ -108,6 +104,7 @@ if ( err ) { + iSysApAppUi.RestoreProfileL( EFalse ); iSysApAppUi.ShowUiNoteL( ECannotActivateOfflineModeNote ); } else @@ -122,22 +119,8 @@ SetBtActiveBeforeOfflineMode( ETrue ); // Update "BT active" setting TRACES( RDebug::Print( _L("CSysApOfflineModeController SetBtPowerStateL returned %d"), err ) ); } - /* Turn OFF WLAN */ - TInt err( KErrNone ); - CRepository* repository = CRepository::NewL( KCRUidWlanDeviceSettingsRegistryId ); - err = repository->Set(KWlanOnOff, 0); - delete repository; - if(err) - { - TRACES( RDebug::Printf("CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL Could not disable WLAN") ); - User::Leave(err); - } - else - { - TRACES( RDebug::Printf("CSysApOfflineModeController::SwitchFromOnlineToOfflineModeL WLAN Disabled" ) ); - } - - iSysApAppUi.OfflineModeChangedL(); + + iSysApAppUi.OfflineModeChangedL(); } } @@ -161,6 +144,7 @@ if ( err ) { + iSysApAppUi.RestoreProfileL( ETrue ); iSysApAppUi.ShowUiNoteL( ECannotDeactivateOfflineModeNote ); } else @@ -175,25 +159,11 @@ TRACES( RDebug::Print( _L("CSysApOfflineModeController SetBtPowerStateL returned %d"), err ) ); } - /* Turn ON WLAN */ - TInt err( KErrNone ); - CRepository* repository = CRepository::NewL( KCRUidWlanDeviceSettingsRegistryId ); - err = repository->Set(KWlanOnOff, 1); - delete repository; - if(err) - { - TRACES( RDebug::Printf("CSysApOfflineModeController::SwitchFromOfflineToOnlineModeL Could not enable WLAN") ); - User::Leave(err); - } - else - { - TRACES( RDebug::Printf("CSysApOfflineModeController::SwitchFromOfflineToOnlineModeL WLAN Enabled") ); - } + iSysApAppUi.OfflineModeChangedL(); - iSysApAppUi.OfflineModeChangedL(); - iSysApAppUi.SetNetworkConnectionAllowed( ECoreAppUIsNetworkConnectionAllowed ); - } - } + iSysApAppUi.SetNetworkConnectionAllowed( ECoreAppUIsNetworkConnectionAllowed ); + } + } // ---------------------------------------------------------------------------- // CSysApOfflineModeController::CheckOfflineModeInitialStatusesL() @@ -234,12 +204,10 @@ ( iSysApAppUi.BtSapEnabled() && simStatus != ESimNotPresent ) || simStatus == ESimUsable ) { - TRACES( RDebug::Printf("CSysApOfflineModeController::GoOnlineIfOkL SIM check PASSED") ); - SwitchFromOfflineToOnlineModeL(); + iSysApAppUi.ShowQueryL( ESysApLeaveOfflineModeQuery ); } else { - TRACES( RDebug::Printf("CSysApOfflineModeController::GoOnlineIfOkL SIM check FALIED" ) ); iSysApAppUi.ShowUiNoteL( EInsertSimNote ); } } @@ -265,7 +233,6 @@ TInt btToBeActivated = iSysApAppUi.CenRepController().GetInt( KCRUidCoreApplicationUIsSysAp, KSysApBtStatusBeforeOfflineMode, &err ); - if ( err ) { TRACES( RDebug::Print( _L("CSysApOfflineModeController::BtActiveBeforeOfflineMode: ERROR: %d" ), err ) ); @@ -274,7 +241,6 @@ else { return ( TBool ) btToBeActivated; - //return ETrue; } } @@ -287,7 +253,6 @@ return BtActiveBeforeOfflineMode(); } - // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.h --- a/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/OfflineModeController/SysApOfflineModeControllerImpl.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,22 +1,19 @@ /* - * Copyright (c) 2005-2010 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: - * CSysApOfflineModeController controls the offline mode. - * It turns OFF RF, BT and WLAN when offline mode is enabled and turns them ON when - * Offline mode is disabled - * - */ +* Copyright (c) 2005 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: The stub implementation of MSysApOfflineModeController. +* +*/ #ifndef SYSAPOFFLINEMODECONTROLLERIMPL_H @@ -30,7 +27,6 @@ // FORWARD DECLARATIONS class CSysApAppUi; -class CSysApCenRepOfflineModeObserver; // CLASS DECLARATION /** @@ -164,11 +160,6 @@ private: CSysApAppUi& iSysApAppUi; - - /** - * Instance of the Offline mode observer. Listens to offline mode changes - */ - CSysApCenRepOfflineModeObserver* iSysApCenRepOfflineModeObserver; TBool iOfflineModeActive; TBool iDoNotActivateRF; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApAccessoryObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApAccessoryObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApAccessoryObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,8 +20,6 @@ #include "SysApAccessoryObserver.h" #include "SysAp.hrh" #include "SysApAppUi.h" -#include -#include #include // RDebug @@ -61,7 +59,6 @@ TRACES( RDebug::Print( _L("CSysApAccessoryObserver::~CSysApAccessoryObserver") ) ); Cancel(); iAccessoryMode.CloseSubSession(); - iAccessoryConnection.CloseSubSession(); iAccessoryServer.Close(); } @@ -95,51 +92,9 @@ TRACES( RDebug::Print( _L("CSysApAccessoryObserver::ConstructL(): iAccMode.iAccessoryMode=%d" ), iAccMode.iAccessoryMode ) ); iPreviousMode = iAccMode.iAccessoryMode; } - TRACES( RDebug::Print( _L("CSysApAccessoryObserver::ConstructL(): trying RAccessoryConnection::CreateSubSession" ) ) ); - err = iAccessoryConnection.CreateSubSession( iAccessoryServer ); - if ( err == KErrNone ) - { - TRACES( RDebug::Print( _L("CSysApAccessoryObserver::ConstructL(): connection to RAccessoryConnection established" ) ) ); - TAccPolGenericIDArray iAccGenericIDArray; - err = iAccessoryConnection.GetAccessoryConnectionStatus( iAccGenericIDArray ); - if ( err == KErrNone ) - { - TInt iIndex = 0; - TAccPolGenericID iAccGenericID = iAccGenericIDArray.GetGenericIDL( iIndex ); - TUint iPhysicalConnection = iAccGenericID.PhysicalConnectionCaps(); - if (iPhysicalConnection & KPCWired) - { - iPhysicalConnectionType = KPCWired; - } - else if (iPhysicalConnection & KPCBluetooth) - { - iPhysicalConnectionType = KPCBluetooth; - } - else if (iPhysicalConnection & KPCInfraRed) - { - iPhysicalConnectionType = KPCInfraRed; - } - else if (iPhysicalConnection & KPCUSB) - { - iPhysicalConnectionType = KPCUSB; - } - else if (iPhysicalConnection & KPCHDMI) - { - iPhysicalConnectionType = KPCHDMI; - } iAccessoryMode.NotifyAccessoryModeChanged( iStatus, iAccMode ); SetActive(); - } - else - { - TRACES( RDebug::Print( _L("CSysApAccessoryObserver::ConstructL(): Error in Getting AccessoryConnectionStatus Error: %d " ),err ) ); - } - } - else - { - TRACES( RDebug::Print( _L("CSysApAccessoryObserver::ConstructL(): RAccessoryConnection::CreateSubSession - Error: %d" ), err ) ); - } } else { @@ -160,7 +115,6 @@ { TRACES( RDebug::Print( _L("CSysApAccessoryObserver::DoCancel()" ) ) ); iAccessoryMode.CancelNotifyAccessoryModeChanged(); - iAccessoryConnection.CancelGetAccessoryConnectionStatus(); } // ---------------------------------------------------------------------------- @@ -179,37 +133,7 @@ } else if ( iAccMode.iAccessoryMode != iPreviousMode ) // for filtering audio output change notifications { - TInt err( KErrNone ); - TAccPolGenericIDArray iAccGenericIDArray; - err = iAccessoryConnection.GetAccessoryConnectionStatus( iAccGenericIDArray ); - if ( err == KErrNone ) - { - TInt iIndex = 0; - TAccPolGenericID iAccGenericID = iAccGenericIDArray.GetGenericIDL( iIndex ); - TUint iPhysicalConnection = iAccGenericID.PhysicalConnectionCaps(); - if ( iPhysicalConnection & KPCWired ) - { - iPhysicalConnectionType = KPCWired; - } - else if ( iPhysicalConnection & KPCBluetooth ) - { - iPhysicalConnectionType = KPCBluetooth; - } - else if ( iPhysicalConnection & KPCInfraRed ) - { - iPhysicalConnectionType = KPCInfraRed; - } - else if ( iPhysicalConnection & KPCUSB ) - { - iPhysicalConnectionType = KPCUSB; - } - else if ( iPhysicalConnection & KPCHDMI ) - { - iPhysicalConnectionType = KPCHDMI; - } - } - TRACES( RDebug::Print( _L("CSysApAccessoryObserver::RunL: iAccessoryMode: %d, iPhysicalConnectionType: %d" ), iAccMode.iAccessoryMode,iPhysicalConnectionType ) ); - iSysApAppUi.HandleAccessoryConnectedL( iAccMode.iAccessoryMode,iPhysicalConnectionType ); + iSysApAppUi.HandleAccessoryConnectedL( iAccMode.iAccessoryMode ); } iPreviousMode = iAccMode.iAccessoryMode; @@ -244,14 +168,6 @@ return iAccMode.iAccessoryMode; } - -// ---------------------------------------------------------------------------- -// CSysApAccessoryObserver::GetAccessoryConnectionType() const -// ---------------------------------------------------------------------------- -TInt CSysApAccessoryObserver::GetAccessoryConnectionType() const - { - return iPhysicalConnectionType; - } // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApApp.cpp --- a/coreapplicationuis/SysAp/Src/SysApApp.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApApp.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -40,8 +40,6 @@ CApaDocument* CSysApApp::CreateDocumentL() { return new( ELeave ) CSysApDocument( *this ); - - // return CSysApDocument::NewL(*this); } // ===================== OTHER EXPORTED FUNCTIONS ============================ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApAppUi.cpp --- a/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApAppUi.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -14,92 +14,183 @@ * Description: CSysApAppUi implementation. * */ + + // INCLUDES -#include -#include "sysapappui.h" -#include "coreapplicationuisprivatepskeys.h" -#include -//#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include -#include -#include -#include -#include -#include - -//#include "SysApWsClient.h" -#include "SysApFeatureManager.h" -#include "SysApNspsHandler.h" +#include + +#include +#include "CoreApplicationUIsPrivatePSKeys.h" +#include +#include +#include + +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS + #include +#else + #include + #include + #include +#endif //SYMBIAN_ENABLE_SPLIT_HEADERS + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "sysapganhandler.h" +#include +#include +#include +#include +#include + +#include "SysApSimChanged.h" + +#include +#include "SysApLightsController.h" + #include "SysApPubSubObserver.h" -#include "sysapdefaultkeyhandler.h" -#include "SysApStartupController.h" -#include "MSysApOfflineModeController.h" -#include "SysApCenRepController.h" +#include "SysApProfileObserver.h" + #include "sysapcenreplightsettingsobserver.h" #include "SysApCenRepLogsObserver.h" #include "SysApCenRepBTObserver.h" #include "SysApCenRepHacSettingObserver.h" -#include "sysapaudioroutingobserver.h" -#include "sysapbatteryinfocontroller.h" -#include "SysApSimChanged.h" -#include "MSysApBtSapController.h" +#include "SysApCenRepController.h" +#include "CoreApplicationUIsPrivateCRKeys.h" +#include "CoreApplicationUIsPrivatePSKeys.h" +#include + +#include "SysApStartupController.h" +#include "SysApConnectionMonitorObserver.h" +#include "SysApPowerKeyMenuObserver.h" +#include "SysApSsSettingsObserver.h" +#include "SysApAppUi.h" +#include "SysApShutdownImage.h" +#include "SysApEtelConnector.h" + +#include "SysApApp.h" +#include "SysApMsgSimMemLowQuery.h" +#include "SysApNspsHandler.h" +#include "SysApWaitNote.h" +#include "SysApConfirmationQuery.h" +#include "SysApFeatureManager.h" +#include "SysApSubscriber.h" +#include "MSysApOfflineModeController.h" #include "MSysApBtController.h" +#include "MSysApBtSapController.h" +#include "MSysApLocationPrivacyIndicator.h" #include "MSysApUsbIndicator.h" -#include "sysapkeymanagement.h" -#include "SysApShutdownImage.h" -#include "SysApKeySndHandler.h" + +#include #include "SysApShutdownAnimation.h" -#include "SysApEtelConnector.h" + +#include +#include +#include +#include "sysapcenrepfmtxobserver.h" + +#include "SysApKeySndHandler.h" + +#include // KIrdaPropertyCategory // KIrdaStatus + +#include + +// POC launching +#include +#include + +#include // KUidPhonePwr + +#include // WLan indicator + +#include +#include "sysapkeymanagement.h" + +#include "SysApMediatorObserver.h" + +#include +#include "aknSDData.h" + +#include +#include + +#include "sysapdefaultkeyhandler.h" +#include "sysapaudioroutingobserver.h" +#include "sysapcenrepcallforwardingobserver.h" +#include "sysapcenrepmsgwaitingobserver.h" #ifdef RD_MULTIPLE_DRIVE -#include "sysapdrivelist.h" -#include "sysapdriveunlockhandler.h" -#include "sysapdriveejecthandler.h" -#include "hbdeviceinputdialogsymbian.h" + #include "sysapdrivelist.h" + #include "sysapdriveunlockhandler.h" + #include "sysapdriveejecthandler.h" #endif // RD_MULTIPLE_DRIVE -#include -#include -#include -#include +#include "sysappsmcontroller.h" +#include "sysapbatteryinfocontroller.h" + +#include + #include // USB transfer modes #include -#include "sysap.rsg" -#include - -class CHbSymbianVariant; +#include +#include +#include + +// CONSTANTS +const TInt KPowerKeyMenuSelectionCancelled( -1 ); +const TInt KPowerKeyMenuSelectionSwitchOff( 0 ); const TInt KModifierMask( 0 ); -_LIT_SECURITY_POLICY_PASS(KAlwaysPassPolicy); -_LIT_SECURITY_POLICY_C1(KWriteDeviceDataPolicy, ECapabilityWriteDeviceData); +const TInt KDelayBeforeShuttingDownInAlarmAndChargingStates( 500000 ); +const TInt KDelayBeforeShowingGprsSuspendedNote( 500000 ); const TInt KDelayBeforeNextScanningRound( 1000000 ); +const TInt KActiveProfile( 0 ); //The value of ActiveProfile for accessory default profile selection in GS/SD. +const TInt KProfileListInitialIndex( 0 ); +const TInt KMaxProfileNameLength( 64 ); +const TInt KTimeToShowShutdownNote( 2000000 ); //2 seconds time for Goodbye note to show before being shutdown +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +const TInt KCoefficientToMakeMicroToMilliSeconds = 1000; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION /* ENABLE ANIMATION: Add id of background image. Example: const TInt KBackgroundImageID = EMbmSysapQgn_graf_startup_bg; If there is no image defined, clear screen is used.*/ const TInt KBackgroundImageID = 0; - - -_LIT(KAccesoryPlugin,"com.nokia.accessory.indicatorplugin/1.0"); -_LIT(KAccMode, "AccMode"); -_LIT(KAccPhyConType, "AccType"); - -_LIT(KPsmPlugin,"com.nokia.hb.powersavemodeplugin/1.0"); -_LIT(KPsm,"PSM"); -_LIT(KCharging,"Charging"); -_LIT(KPsmlocalisationfile, "powermanagement_"); -_LIT(KtsfilePath, "z:/resource/qt/translations/"); -_LIT(KlowbatteryIcon,"qtg_small_bt_low_battery.svg"); -_LIT(KbatteryFullIcon,"qtg_status_battery.svg"); - - +#ifndef RD_MULTIPLE_DRIVE +const TInt32 KAutolockAppUid = 0x100059B5; +const TInt KFileManagerAppUid = 0x101F84EB; +#endif // RD_MULTIPLE_DRIVE +const TInt KCoefficientKhzToMhz = 1000; +const TInt KDecimalsInMhzFrequency = 2; + +const TInt KHWSwitchGroup( 29 ); +const TInt KHWSwitchGrip( 2 ); + +_LIT_SECURITY_POLICY_PASS(KAlwaysPassPolicy); +_LIT_SECURITY_POLICY_C1(KWriteDeviceDataPolicy, ECapabilityWriteDeviceData); // ============================ MEMBER FUNCTIONS ============================== @@ -107,27 +198,60 @@ // CSysApAppUi::CSysApAppUi() // ---------------------------------------------------------------------------- -CSysApAppUi::CSysApAppUi() - :iSysApShutdownImage(NULL), - iPowerMenuDialog(NULL), - iDeviceLockEnabled(EFalse), - iKeyLockEnabled(EFalse), - iPowerKeyPopupMenuActive(EFalse), - iResourcesFreed (EFalse), - iShutdownStarted (EFalse), - iSysApAudioRoutingObserver (NULL), - iSysApBatteryInfoController (NULL), - iSysApPsmController(NULL), - iSapTimer (NULL), - iSysApCenRepLogsObserver (NULL), - iSysApUsbIndicatorController(NULL), - iKeyguardController (NULL), - iKeyLockOnBeforeCall (EFalse), - iCheckLongPowerKeyEvent (EFalse), - iMMCEjectUsed( EFalse ), - iMemCardPwdDialog(NULL) - { - TRACES( RDebug::Print( _L("CSysApAppUi::CSysApAppUi()") ) ); +CSysApAppUi::CSysApAppUi() : + iSysApCenRepLogsObserver( NULL ), + iSysApCenRepHacSettingObserver( NULL ), + iSysApPowerKeyMenuObserver( NULL ), + iSysApShutdownImage( NULL ), + iSysApConfirmationQuery( NULL ), + iSysApConfirmationQueryForRestart( NULL ), + iSignalNotify( NULL ), +#ifndef RD_MULTIPLE_DRIVE + iMemoryCardDialog( 0 ), +#endif // RD_MULTIPLE_DRIVE + iPowerKeyPopupMenuActive( EFalse ), + iDisablePowerkeyMenu( EFalse ), + iDeviceLockEnabled( EFalse ), + iKeyLockEnabled( EFalse ), + iShowkeypadActivatedNoteAfterSoftReject( EFalse ), + iEmergencyCallActive( EFalse ), + iSimChangedDone( EFalse ), + iResourcesFreed( EFalse ), +#ifndef RD_MULTIPLE_DRIVE + iHideFirstBeep( ETrue ), +#endif // RD_MULTIPLE_DRIVE + iShutdownStarted( EFalse ), + iIgnoreAccessorySpecificProfileChanges( ETrue ), + iAccessoryJustConnected( EFalse ), + iHandleNextProfileEvent( ETrue ), + iActivateBt( EFalse ), + iDeactivateBt( EFalse ), + iGprsActivated( EFalse ), + iGprsSuspended( EFalse ), + iCallActivated( EFalse ), + iGprsSuspendedNoteShown( EFalse ), + iMMCEjectUsed( EFalse ), +#ifndef RD_MULTIPLE_DRIVE + iMMCPowerMenuEjectUsed( EFalse ), + iMMCInserted( EFalse ), +#endif // RD_MULTIPLE_DRIVE + iTimer( NULL ), + iSapTimer( NULL ), +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iAnimTimer( NULL ), +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iSysApTimer( NULL ), +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iAnimationShowingTime( 0 ), +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iShutdownContinued( EFalse ), + iSysApAudioRoutingObserver( NULL ), + iSysApCenRepCallForwardingObserver( NULL ), + iSysApCenRepMsgWaitingObserver( NULL ), + iSysApGanHandler( NULL ), + iKeyBoardRepeatCount(-1) + { + TRACES( RDebug::Print( _L("CSysApAppUi::CSysApAppUi()") ) ); } // ---------------------------------------------------------------------------- @@ -137,59 +261,63 @@ void CSysApAppUi::ConstructL() { TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: START") ) ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying BaseConstructL()") ) ); - BaseConstructL(); + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying BaseConstructL( EAknEnableSkin )") ) ); + BaseConstructL( EAknEnableSkin ); TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: BaseConstructL() OK") ) ); - + + + /*SysAp is set as system application (Symbian terminology). This means some special privilege compared + to other applications. For example it does not get closed when system is asked to close applications + */ iEikonEnv->SetSystem( ETrue ); + // For cdma + + iTDEnable = FeatureManager::FeatureSupported( KFeatureIdFfTdScdma ); iEikonEnv->WsSession().ComputeMode( RWsSession::EPriorityControlDisabled ); - + + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PushContextL( R_AVKON_SILENT_SKEY_LIST ); + RThread().SetProcessPriority( EPriorityForeground ); - + + /*SysAp does not have any visible Status pane. An exception will be Charging state + where SysAp shows Status Pane as it is the only running application. + */ TInt mode; User::LeaveIfError( RProperty::Get( KPSUidStartup, KPSGlobalStartupMode, mode ) ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: KPSGlobalStartupMode = %d"), mode ) ); - - //SysAp needs to capture PowerKey events because it handles all functionality related to that - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CEikApplication::RootWin()") ) ); - RWindowGroup groupWin = iCoeEnv->RootWin(); - User::LeaveIfError ( iCapturedEKeyPowerOff = groupWin.CaptureKey( EKeyPowerOff, KModifierMask, KModifierMask ) ); - User::LeaveIfError ( iCapturedEKeyPowerOffUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyDevice2, KModifierMask, KModifierMask ) ); - - TRACES ( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApDefaultKeyHandler::NewL()") ) ); - iSysApDefaultKeyHandler = CSysApDefaultKeyHandler::NewL(*this); - - // Define P&S keys "owned" by SysAp - RProperty::Define( KPSUidUikon, KUikMMCInserted, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); - //initially assuming that the memory card is not inserted - RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); - TDriveInfo driveInfo; - TInt driveNumber; - TInt err; - RFs& fileServer = iEikonEnv->FsSession(); - for ( driveNumber = EDriveD; driveNumber < EDriveZ; driveNumber++ ) - { - err = fileServer.Drive(driveInfo,driveNumber); - if(driveNumber == EDriveF && err == KErrNone && driveInfo.iType == EMediaHardDisk && driveInfo.iDriveAtt & KDriveAttRemovable) - { - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: err = %d, driveInfo.iType = %d, driveInfo.iDriveAtt %d, KDriveAttRemovable = %d "),err,driveInfo.iType,driveInfo.iDriveAtt,KDriveAttRemovable) ); - RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); - break; // Memory card drive found... - } - } - + + if( mode == EStartupModeCharging || mode == EStartupModeAlarm ) + { + SetStatusPaneLayoutL( + mode == EStartupModeCharging ? ESysApCharging : ESysApAlarm ); + + SetKeyEventFlags( + CAknAppUiBase::EDisableSendKeyShort | + CAknAppUiBase::EDisableSendKeyLong ); + } + else + { + SetStatusPaneLayoutL( ESysApNormal ); + } + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApFeatureManager::NewL()") ) ); iSysApFeatureManager = CSysApFeatureManager::NewL(); - + // Setup USB charging detector - iSysApUsbChargerDetector.EnableUsbCharging( - iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) && - iSysApFeatureManager->Supported( KSysApFeatureIdUsbChargingWithoutReminderNotes ) ); - + iSysApUsbChargerDetector.EnableUsbCharging( + iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) && + iSysApFeatureManager->Supported( KSysApFeatureIdUsbChargingWithoutReminderNotes ) ); + + // Construct notifiers that are used frequently or in OOM situations. + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CAknBatteryNotify::NewL()") ) ); + iBatteryNotify = CAknBatteryNotify::NewL(); + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CAknSignalNotify::NewL()") ) ); + iSignalNotify = CAknSignalNotify::NewL(); + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying new ( ELeave ) CSysApMsgSimMemLowQuery") ) ); + iSysApMsgSimMemLowQuery = new( ELeave ) CSysApMsgSimMemLowQuery( iSysApFeatureManager->CoverDisplaySupported() ); + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApPubSubObserver::NewL()") ) ); iSysApPubSubObserver = CSysApPubSubObserver::NewL( *this ); - RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsPoCIndicator, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPoCIndicator, ECoreAppUIsPocIndicatorUninitialized ); RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsPoCMissedIndicator, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); @@ -202,6 +330,43 @@ RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsVideoSharingIndicator, ECoreAppUIsVideoSharingIndicatorUninitialized ); + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApAccessoryObserver::NewL()") ) ); + iSysApAccessoryObserver = CSysApAccessoryObserver::NewL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepController::NewL()") ) ); + iSysApCenRepController = CSysApCenRepController::NewL(); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepLightSettingsObserver::NewL") ) ); + iSysApCenRepLightSettingsObserver = CSysApCenRepLightSettingsObserver::NewL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepBtObserver::NewL") ) ); + iSysApCenRepBtObserver = CSysApCenRepBtObserver::NewL( *this ); + + if ( iSysApFeatureManager->FmTxSupported() ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepFmTxObserver::NewL") ) ); + iSysApCenRepFmTxObserver = CSysApCenRepFmTxObserver::NewL( *this ); + } + + // Define P&S keys "owned" by SysAp + RProperty::Define( KPSUidUikon, KUikMMCInserted, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); + //initially set the value as 0 assuming mmc is not inserted + RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); + TDriveInfo driveInfo; + TInt driveNumber; + TInt err; + RFs& fileServer = iEikonEnv->FsSession(); + for ( driveNumber = EDriveD; driveNumber < EDriveZ; driveNumber++ ) + { + err = fileServer.Drive(driveInfo,driveNumber); + if(driveNumber==EDriveF && err == KErrNone && driveInfo.iType == EMediaHardDisk && driveInfo.iDriveAtt & KDriveAttRemovable) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: err = %d, driveInfo.iType = %d, driveInfo.iDriveAtt %d, KDriveAttRemovable = %d "),err,driveInfo.iType,driveInfo.iDriveAtt,KDriveAttRemovable) ); + RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); + break; // Memory card drive found... + } + } + RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsHideAlarm, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsDisableKeyguard, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsSoftReject, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); @@ -222,40 +387,45 @@ // Initialize P&S keys "owned" by SysAp RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsHideAlarm, ECoreAppUIsHideAlarmUninitialized ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApAccessoryObserver::NewL()") ) ); - iSysApAccessoryObserver = CSysApAccessoryObserver::NewL( *this ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepController::NewL()") ) ); - iSysApCenRepController = CSysApCenRepController::NewL(); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepLightSettingsObserver::NewL") ) ); - iSysApCenRepLightSettingsObserver = CSysApCenRepLightSettingsObserver::NewL( *this ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApCenRepBtObserver::NewL") ) ); - iSysApCenRepBtObserver = CSysApCenRepBtObserver::NewL( *this ); - + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApStartupController::NewL()") ) ); iSysApStartupController = CSysApStartupController::NewL( *this, iSysApFeatureManager->OfflineModeSupported() ); - iActiveProfileBeforeOfflineMode = iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileBeforeOfflineMode ); - - iSysApFeatureManager->FeatureVariationCheckDone(); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApLightsController::NewL()") ) ); iSysApLightsController = CSysApLightsController::NewL( *this, iSysApCenRepLightSettingsObserver->GetLightsTimeout(), iSysApFeatureManager->CoverDisplaySupported() ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : trying CreateSysApOfflineModeControllerL()") ) ); - iSysApOfflineModeController = CreateSysApOfflineModeControllerL( *this ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : trying DoInitialSwStateCheckL()") ) ); - iSysApStartupController->DoInitialSwStateCheckL(); - - TRACES( RDebug::Print( _L("CCSysApAppUi::ConstructL trying CSysApCenRepHacSettingObserver::NewL") ) ); - iSysApCenRepHacSettingObserver = CSysApCenRepHacSettingObserver::NewL( *this ); - + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApEtelConnector::NewL()") ) ); + iSysApEtelConnector = CSysApEtelConnector::NewL( *this ); + + //SysAp needs to capture PowerKey events because it handles all functionality related to that + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CEikApplication::RootWin()") ) ); + RWindowGroup groupWin = iCoeEnv->RootWin(); + User::LeaveIfError ( iCapturedEKeyPowerOff = groupWin.CaptureKey( EKeyPowerOff, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyPowerOffUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyDevice2, KModifierMask, KModifierMask ) ); + + TRACES ( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApDefaultKeyHandler::NewL()") ) ); + iSysApDefaultKeyHandler = CSysApDefaultKeyHandler::NewL( *this ); + + TInt status(0); + err = UserSvr::HalFunction( KHWSwitchGroup, KHWSwitchGrip, &status, 0 ); + if( err == KErrNone ) + { + if( status == 0 ) + { + RProperty::Set( KPSUidHWRM, KHWRMGripStatus, EPSHWRMGripOpen ); + } + else + { + RProperty::Set( KPSUidHWRM, KHWRMGripStatus, EPSHWRMGripClosed ); + } + } + else + { + TRACES ( RDebug::Print( _L("CSysApAppUi::ConstructL: error in getting slide status: err = %d"), err ) ); + } + #ifndef RD_MULTIPLE_DRIVE if ( iSysApFeatureManager->MmcSupported() ) { @@ -273,350 +443,102 @@ *iSysApDriveList, *this, iEikonEnv->FsSession() ); } #endif // RD_MULTIPLE_DRIVE - + //Instantiate the KEF plugin manager - //Trap constuction, since Sysap may live without iSysApKeyManagement + //Trap constuction, since Sysap may live without iSysApKeyManagement TRAPD(keyManagementErr, iSysApKeyManagement=CSysApKeyManagement::NewL(CCoeEnv::Static()->RootWin(), *this)); if (keyManagementErr) - { - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : CSysApKeyManagement::NewL returns error=%d"), keyManagementErr ) ); - } - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApEtelConnector::NewL()") ) ); - iSysApEtelConnector = CSysApEtelConnector::NewL( *this ); - + { + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : CSysApKeyManagement::NewL returns error=%d"), keyManagementErr ) ); + } + + iSysApFeatureManager->FeatureVariationCheckDone(); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApProfileObserver::NewL()") ) ); + iSysApProfileObserver = CSysApProfileObserver::NewL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : trying MProfileEngine* CreateProfileEngineL()") ) ); + iProfileEngine = CreateProfileEngineL( &( iEikonEnv->FsSession() ) ); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : trying CreateSysApOfflineModeControllerL()") ) ); + iSysApOfflineModeController = CreateSysApOfflineModeControllerL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL : trying DoInitialSwStateCheckL()") ) ); + iSysApStartupController->DoInitialSwStateCheckL(); + + iActiveProfileBeforeOfflineMode = iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileBeforeOfflineMode ); + // Initialize animdll for handling side volume keys // (needed before normal mode in case emergency number is dialed from PIN query) iSysApKeySndHandler = CSysApKeySndHandler::NewL(iEikonEnv->WsSession()); - iKeyguardController = CKeyguardAccessApi::NewL(); + + // Initialize shutdown image (needed by nspshandler) TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApShutdownImage::NewL()") ) ); - iSysApShutdownImage = CSysApShutdownImage::NewL();//NULL; // - + iSysApShutdownImage = CSysApShutdownImage::NewL(); + // Initialize nsps handler. Needed for proper lights control during PIN query. TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CSysApNspsHandler::NewL") ) ); iSysApNspsHandler = CSysApNspsHandler::NewL( iEikonEnv->WsSession(), iSysApShutdownImage->ShutdownCoeControlWindow() ); - RProperty::Define( KPSUidCoreApplicationUIs,KCoreAppUIsPowerMenuCustomDialogStatus, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogUninitialized ); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: trying CHbIndicatorSymbian::NewL()") ) ); - iHbIndicatorSymbian = CHbIndicatorSymbian::NewL(); - - TBool result = HbTextResolverSymbian::Init(KPsmlocalisationfile, KtsfilePath); - - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: END") ) ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::FreeResources() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::FreeResources() - { - TRACES( RDebug::Print( _L("CSysApAppUi::FreeResources") ) ); - delete iSysApBatteryInfoController; - delete iSysApPsmController; - delete iVariantAccState; - - delete iSysApAudioRoutingObserver; - - if (iMemCardPwdDialog!=NULL) - { - //PowerMenu already exist - delete iMemCardPwdDialog; - iMemCardPwdDialog = NULL; - } +#ifdef RD_LIGHT_CONTROL_CHANGE + // NSPS Plugin has been loaded, inform lights controller that in can activate key event forwarding + iSysApLightsController->KeyEventForwardingReady(); +#endif // RD_LIGHT_CONTROL_CHANGE + + // Create HAC setting observer now because telephony state may change before entering to normal state + TRACES( RDebug::Print( _L("CCSysApAppUi::ConstructL trying CSysApCenRepHacSettingObserver::NewL") ) ); + iSysApCenRepHacSettingObserver = CSysApCenRepHacSettingObserver::NewL( *this ); - if ( iSapTimer ) - { - iSapTimer->Cancel(); - delete iSapTimer; - } - //Powermenu - if (iPowerMenuDialog!=NULL) - { - //PowerMenu already exist - delete iPowerMenuDialog; - iPowerMenuDialog = NULL; - } - - RWindowGroup groupWin = iCoeEnv->RootWin(); - groupWin.CancelCaptureKey( iCapturedEKeyPowerOff ); - groupWin.CancelCaptureKeyUpAndDowns( iCapturedEKeyPowerOffUpAndDowns ); - - delete iSysApDefaultKeyHandler; - delete iSysApCenRepLightSettingsObserver; - delete iSysApCenRepBtObserver; - delete iSysApCenRepHacSettingObserver; - delete iSysApCenRepController; - - delete iSysApPubSubObserver; - - delete iSysApLightsController; - delete iSysApFeatureManager; - - delete iSysApCenRepLogsObserver; - delete iSysApOfflineModeController; - - delete iSysApUsbIndicatorController; - delete iKeyguardController; - delete iHbIndicatorSymbian; - delete iSysApKeyManagement; - iSysApKeyManagement = NULL; + DeactivatePSMifBatteryNotLowL (); - REComSession::FinalClose(); - iResourcesFreed = ETrue; - TRACES( RDebug::Print( _L("CSysApAppUi::FreeResources:END") ) ); - } - -// --------------------------------------------------------------------------- -// CStartupAppUi::PrepareToExit() -// --------------------------------------------------------------------------- -void CSysApAppUi::PrepareToExit() - { - TRACES(RDebug::Print( _L("CSysApAppUi::PrepareToExit()"))); - CEikAppUi::PrepareToExit(); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::StateOfProperty() -// ---------------------------------------------------------------------------- -TInt CSysApAppUi::StateOfProperty( const TUid& aCategory, const TUint aKey ) const - { - TInt err( KErrNone ); - TInt value( 0 ); - err = RProperty::Get( aCategory, aKey, value ); - if ( err ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::StateOfProperty. RProperty::Get: err=%d"), err ) ); - return err; - } - return value; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::OfflineModeActive() -// ---------------------------------------------------------------------------- -TBool CSysApAppUi::OfflineModeActive() - { - if(iSysApOfflineModeController) - { - return iSysApOfflineModeController->OfflineModeActive(); - } - else - { - return EFalse; - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::GoOnlineL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::GoOnlineL( TBool /* aDoProfileChange */ ) - { - if ( iSysApFeatureManager->OfflineModeSupported() ) - { -// TRACES( RDebug::Print( _L("CSysApAppUi::GoOnlineL: going from off-line into on-line: aDoProfileChange=%d" ), aDoProfileChange ) ); - iActivateBt = iSysApOfflineModeController->MustBtBeActivated(); - iSysApOfflineModeController->SwitchFromOfflineToOnlineModeL(); - TRACES( RDebug::Print( _L("CSysApAppUi::GoOnlineL: iActivateBt = %d" ), iActivateBt ) ); - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::GoOfflineL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::GoOfflineL() - { - if ( iSysApFeatureManager->OfflineModeSupported() ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::GoOfflineL" ) ) ); - iDeactivateBt = ETrue; - iSysApOfflineModeController->SwitchFromOnlineToOfflineModeL(); - } - } - -#ifndef SYSAP_USE_STARTUP_UI_PHASE -// need to configure the above macro. -#else // SYSAP_USE_STARTUP_UI_PHASE - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleUiReadyAfterBootL() -// Called when startup UI activities has been finished -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleUiReadyAfterBootL() - { - TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL" ) ) ); - TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); - - UpdateBatteryBarsL( state ); - DoSwStateNormalConstructionL(); - HandleAccessoryProfileInStartupL(); - - if ( iSysApFeatureManager->MmcSupported() ) - { -#ifndef RD_MULTIPLE_DRIVE - MountMMC(); - MMCStatusChangedL(); - iHideFirstBeep = EFalse; -#else // RD_MULTIPLE_DRIVE - iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); - UpdateInsertedMemoryCardsL(); -#endif // RD_MULTIPLE_DRIVE - } - - if ( iSysApFeatureManager->MmcHotSwapSupported() ) - { - iSysApMMCObserver->StartMountObserver(); - } - - if ( !iSysApPsmController ) // created here if first state change has not occurred yet - { - iSysApPsmController = CSysApPsmController::NewL( *this ); - } - - if ( iSysApPsmController ) - { - if ( iCharging ) // if charger is connected on boot PSM queries may need to be shown - { - HandleChargingStatusL( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); - } - - if ( iSysApPsmController->FullPsmEnabled() ) - { - // activate psm indicator - iVariantAccState = CHbSymbianVariant::NewL(&KPsm, CHbSymbianVariant::EDes); - if (!iHbIndicatorSymbian->Activate(KPsmPlugin,iVariantAccState)) - { - int error = iHbIndicatorSymbian->Error(); - //use the errorcode... - } - } - - } - - TInt batteryStatus = StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryStatus ); - TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: batteryStatus %d" ), batteryStatus ) ); - if( batteryStatus == EBatteryStatusLow || batteryStatus == EBatteryStatusEmpty ) - { - // low and empty battery states are informed to the user in device startup - HandleBatteryStatusL( batteryStatus ); - } - else if ( iSysApPsmController && !iCharging ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: batteryStatus %d, iCharging %d -> disable partial psm" ), batteryStatus, iCharging ) ); - - iSysApPsmController->BatteryLow( EFalse ); - iSysApPsmController->DoEnablePartialPsm( EFalse ); - } - - if ( ! iSysApUsbIndicatorController ) - { - TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) ); - if ( usbErr ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: error in constructing USB ind. controller %d" ), usbErr ) ); - } - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) -// This method is not called after boot has finished. -// ---------------------------------------------------------------------------- - -void CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: %d" ), aSwState ) ); - - TRAPD( simChangedErr, DoSimChangedFromPreviousBootL() ); - TRACES( RDebug::Print( _L("CSysApAppUi::DoStateChangedL: simChangedErr = %d" ), simChangedErr ) ); - simChangedErr = simChangedErr; // suppress 'variable not used' warning - LogsObserverL().HandleSimChangedCheckDoneL(); - - if ( iSysApFeatureManager->PowerSaveSupported() ) - { - // create controller before checking battery state, so that power saving can be enabled during boot if needed - if ( !iSysApPsmController ) // created only in first state change - { - iSysApPsmController = CSysApPsmController::NewL( *this ); - } - - // in charger boot explicitly disable power save mode - if ( aSwState == RStarterSession::ECharging ) - { - iSysApPsmController->ChargerConnected(); - iSysApPsmController->DoEnableFullPsm(EFalse); // disable power save now - } - } - - if ( aSwState == RStarterSession::ECharging || aSwState == RStarterSession::EAlarm ) - { - TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); - //Also Charging status will be updated with the following function. - UpdateBatteryBarsL( state ); - } - - if( IsStateNormal() ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL to normal state.") ) ); - - if ( iSysApFeatureManager->MmcSupported() ) - { -#ifndef RD_MULTIPLE_DRIVE - MountMMC(); - MMCStatusChangedL(); - iHideFirstBeep = EFalse; -#else // RD_MULTIPLE_DRIVE - iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); - UpdateInsertedMemoryCardsL(); -#endif // RD_MULTIPLE_DRIVE - } - if ( iSysApFeatureManager->MmcHotSwapSupported() ) - { - iSysApMMCObserver->StartMountObserver(); - } - - iSysApBtController = CreateSysApBtControllerL( *this ); - iSysApBtSapController = CreateSysApBtSapControllerL( *this ); - - if ( iActivateBt ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Activating BT" ) ) ); - SetBtPowerState( ETrue ); - } - - if ( iDeactivateBt ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Deactivating BT" ) ) ); - SetBtPowerState( EFalse ); - } - - if ( !StarterSession().Handle() ) - { - User::Leave( KErrBadHandle ); - } - -/* if ( !KeyLock().Handle() ) - { - User::Leave( KErrBadHandle ); - } -*/ -#ifdef __SYSAP_MODULE_TEST - ModuleTestShowUiNoteL( _L("SysAp: SW state normal!") ); -#endif - } - - // Allow lights - iSysApLightsController->AllowLightsOn(); - } - -#endif // SYSAP_USE_STARTUP_UI_PHASE + if( iSysApFeatureManager->GanSupported() ) + { + + + RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsGanPropertyGanMode, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); + RProperty::Define( KPSUidCoreApplicationUIs, KCoreAppUIsGanPropertySignalLevel, RProperty::EInt, KAlwaysPassPolicy, KWriteDeviceDataPolicy ); + iSysApGanHandler = CSysApGanHandler::NewL( *this ); + } + + TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: END") ) ); + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DeactivatePSMifBatteryNotLow() +// ---------------------------------------------------------------------------- + void CSysApAppUi::DeactivatePSMifBatteryNotLowL () + { + TRACES( RDebug::Print( _L("CSysApAppUi::DeactivatePSMifBatteryNotLow: Start") ) ); + if ( iSysApFeatureManager->PowerSaveSupported()) //&& iSysApFeatureManager->Supported( KSysApFeatureIdBatteryInfoPopup )) + { + // Create batteruInfoController to get current battery status; + if(iSysApBatteryInfoController == NULL) + { + iSysApBatteryInfoController = CSysApBatteryInfoController::NewL( + iSysApCenRepController->GetInt( + KCRUidCoreApplicationUIsConf, + KCoreAppUIsBatteryInformationLowThreshold ) ); + } + //Querry the battery level + TBool status = iSysApBatteryInfoController->IsBatteryInfoAboveThreshold(); + TRACES( RDebug::Print( _L("CCSysApAppUi::DeactivatePSMifBatteryNotLow IsBatteryInfoAboveThreshold=%d"), status ) ); + // Querry to deactivate PSM if PSM is activated and battery status is above threshold + if (status) + { + if(iSysApPsmController == NULL) + { + iSysApPsmController = CSysApPsmController::NewL( *this ); + } + if ( iSysApPsmController->ShowDeactivateQuery()) + ShowQueryL( ESysApBattChargingPowerSavingQuery ); + else + iSysApPsmController->DoEnablePartialPsm( EFalse ); + } + } + TRACES( RDebug::Print( _L("CSysApAppUi::DeactivatePSMifBatteryNotLow: End") ) ); + } // ---------------------------------------------------------------------------- // CSysApAppUi::~CSysApAppUi() @@ -626,7 +548,7 @@ { TRACES( RDebug::Print( _L("~CSysApAppUi() started") ) ); if( !iResourcesFreed ) - { + { FreeResources(); iStarterSession.Close(); @@ -645,7 +567,7 @@ } #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION -// delete iProfileNote; + #ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION if( iAnimTimer ) @@ -655,8 +577,12 @@ delete iAnimTimer; #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + delete iSysApPowerKeyMenuObserver; + delete iSysApStartupController; + delete iSysApGanHandler; + #ifdef RD_MULTIPLE_DRIVE iInsertedMemoryCards.Close(); delete iSysApDriveEjectHandler; @@ -666,428 +592,624 @@ TRACES( RDebug::Print( _L("~CSysApAppUi() completed") ) ); } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleLocationPrivacyIndicatorL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleLocationPrivacyIndicatorL( const TInt aState ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleLocationPrivacyIndicatorL() state=%d"), aState ) ); + if ( iSysApFeatureManager->LocationPrivacySupported() ) + { + // Phase 1. Set all Location Privacy indicators off + if ( iSysApLocationPrivacyIndicator->iIndicatorIdAcceptAll != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdRejectAll, EAknIndicatorStateOff ); + } + if ( iSysApLocationPrivacyIndicator->iIndicatorIdRejectAll != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdRejectAll, EAknIndicatorStateOff ); + } + if ( iSysApLocationPrivacyIndicator->iIndicatorIdAlwaysAsk != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdAlwaysAsk, EAknIndicatorStateOff ); + } + if ( iSysApLocationPrivacyIndicator->iIndicatorIdIndividualPrivacy != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdIndividualPrivacy, EAknIndicatorStateOff ); + } + // Phase 2. Set the required Location Privacy indicator on + switch ( aState ) + { + case EPSLocPrivAcceptAll: + if ( iSysApLocationPrivacyIndicator->iIndicatorIdAcceptAll != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdAcceptAll, EAknIndicatorStateOn ); + } + break; + case EPSLocPrivRejectAll: + if ( iSysApLocationPrivacyIndicator->iIndicatorIdRejectAll != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdRejectAll, EAknIndicatorStateOn ); + } + break; + case EPSLocPrivAlwaysAsk: + if ( iSysApLocationPrivacyIndicator->iIndicatorIdAlwaysAsk != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdAlwaysAsk, EAknIndicatorStateOn ); + } + break; + case EPSLocPrivIndividualPrivacy: + if ( iSysApLocationPrivacyIndicator->iIndicatorIdIndividualPrivacy != KSysApNoIndicator ) + { + SetIndicatorStateL( iSysApLocationPrivacyIndicator->iIndicatorIdIndividualPrivacy, EAknIndicatorStateOn ); + } + break; + default: + break; + } + } + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType ) +// ---------------------------------------------------------------------------- + +TKeyResponse CSysApAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType ) + { + if ( ! iShutdownStarted ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d, iIgnoreNextPowerKeyUpEvent:%d, iPowerKeyPopupMenuActive:%d, iLastPowerKeyWasShort:%d, iPowerKeyPopupMenuDismissed:%d"), + aKeyEvent.iCode, aKeyEvent.iScanCode, aType, iIgnoreNextPowerKeyUpEvent, iPowerKeyPopupMenuActive, iLastPowerKeyWasShort, iPowerKeyPopupMenuDismissed ) ); + +#ifdef _DEBUG + // camery latency measurement environment instrumentation, don't remove + if ( aType == EEventKey && aKeyEvent.iCode == EKeyCamera ) + { + TRACES( RDebug::Print( _L("e_KEY_EVENT_SENDING 0") ) ); + } +#endif // _DEBUG + + TBool haveStatusPane = ( StatusPane()== NULL ) ? EFalse : StatusPane()->IsVisible(); + TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: haveStatusPane = %d" ) ) ); -TBool CSysApAppUi::ResourcesFreed() const - { - return iResourcesFreed; - } - -void CSysApAppUi::ShowExampleUiNoteL( const TDesC& noteText )const - { - TRACES( RDebug::Print( _L("CSysApAppUi::ShowExampleUiNoteL:: constructing CHbDeviceMessageBoxSymbian:BeGIN") ) ); - CHbDeviceMessageBoxSymbian *note = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EInformation); - CleanupStack::PushL(note); - TRACES( RDebug::Print( _L("CSysApAppUi::ShowExampleUiNoteL:: construction of CHbDeviceMessageBoxSymbian:END") ) ); - note->SetTextL(noteText); - note->SetTimeout(300); - TRACES( RDebug::Print( _L("CSysApAppUi:: Display of CHbDeviceMessageBoxSymbian::Begin") ) ); - note->ShowL(); - TRACES( RDebug::Print( _L("CSysApAppUi:: Display of CHbDeviceMessageBoxSymbian::End") ) ); - CleanupStack::PopAndDestroy(note); - } - - -void CSysApAppUi::ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ) - { - ExecQueryL( aQuery, aReturn, KNullDesC8 ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ExecQueryL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& /*aParam*/ ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ExecQueryL: aQuery=%d"), aQuery ) ); - - switch ( aQuery ) - { - case EGetHwrmLight: // get handle to HWRM client session. Returns CHWRMLight*. - { - THwrmLightBuf retBuf( iSysApLightsController->GetHwrmLight() ); - aReturn.Copy( retBuf ); - } + TKeyResponse response( EKeyWasNotConsumed ); + if (iSysApKeyManagement && aKeyEvent.iCode != EKeyPowerOff && aKeyEvent.iCode != 'E') + { + response = iSysApKeyManagement->HandleKeyEventL(aKeyEvent, aType ); + } + + if( aType == EEventKey ) + { + switch ( aKeyEvent.iCode ) + { +#ifdef _DEBUG + case 'E': //For testing + Exit(); + break; +#endif + case EKeyPowerOff: + //Short power key press + iKeyBoardRepeatCount++; + if( aKeyEvent.iRepeats == 0 ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Short powerkey") ) ); + iLastPowerKeyWasShort = ETrue; + if ( IsDefaultPowerKeyBehavior() ) + { + //do this only if the power key menu is active (handles item navigation) + //or if the power key is not the lock key (default) + HandleShortPowerKeyPressedL(); + } + + + iIgnoreNextPowerKeyRepeats = EFalse; + } + //Long power key press + else if( aKeyEvent.iRepeats > 0 && iKeyBoardRepeatCount >= iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApPowerkeyRepeatcount )) + { + iKeyBoardRepeatCount = -1; + TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Long powerkey") ) ); + iLastPowerKeyWasShort = EFalse; + if (! IsDefaultPowerKeyBehavior() && !iIgnoreNextPowerKeyRepeats ) + { + if ( !iGlobalListQuery ) + { + HandleShortPowerKeyPressedL(); + } + } + else + { + HandleLongPowerKeyPressedL(); + } + + } + break; + + default: + { + TKeyResponse response = EKeyWasNotConsumed; + if (iSysApKeyManagement) + { + response = iSysApKeyManagement->HandleKeyEventL(aKeyEvent, aType ); + } + + if ( response == EKeyWasNotConsumed ) // none of the plugins consumed the key, offer it to default handling + { + iSysApDefaultKeyHandler->HandleKeyEventL( aKeyEvent, aType ); + } + } + break; + } + } + else if ( aType == EEventKeyUp ) + { + TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): aType == EEventKeyUp, PowerKeyIsLockKey = %d, iLastPowerKeyWasShort = %d, iPowerKeyPopupMenuActive = %d, iCharging = %d" ), iSysApFeatureManager->PowerKeyIsLockKey(), iLastPowerKeyWasShort, iPowerKeyPopupMenuActive, iCharging ) ); + if ( !IsDefaultPowerKeyBehavior() && + iLastPowerKeyWasShort && + ( aKeyEvent.iScanCode == EStdKeyDevice2 )) + { + // if the power key is the lock key && the last keypress was + // short && the power menu is not active && an alarm is not + // currently being shown, then lock the phone + TInt alarmState=0, securityQueryState=0; + TInt errorCode = RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsDisableKeyguard, alarmState ); + TInt errorCode2 = RProperty::Get( KPSUidStartup, KStartupSecurityCodeQueryStatus, securityQueryState); + TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KCoreAppUIsDisableKeyguard - State Value: %d"),alarmState)); + TRACES( RDebug::Print( _L( "CSysApAppUi::HandleKeyEventL(): Reading value of KStartupSecurityCodeQueryStatus - State Value: %d"),securityQueryState)); + TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); + //Disable keylock if Alarm is active or if a Security code query is active on the display + if ( alarmState == ECoreAppUIsDisableKeyguard || securityQueryState == ESecurityQueryActive ) + { + KeyLock().DisableWithoutNote(); + } + else + { + if( callState != EPSCTsyCallStateConnected && !iDeviceLockEnabled) + { + KeyLock().EnableWithoutNote(); + } + } + } + else + { + if ( aKeyEvent.iScanCode == EStdKeyDevice2 ) + { + if ( iIgnoreNextPowerKeyUpEvent ) + { + if ( !iPowerKeyPopupMenuDismissed ) // If the popup menu has been dismissed, do nothing + { + iPowerKeyPopupMenuActive = ETrue; + iIgnoreNextPowerKeyUpEvent = EFalse; + } + } + else if ( iLastPowerKeyWasShort ) + { + if ( iPowerKeyPopupMenuActive ) + { + if ( iGlobalListQuery ) + { + if ( iSysApFeatureManager->NoPowerKeySupported() ) + { + CancelGlobalListQuery(); + } + else + { + iGlobalListQuery->MoveSelectionDown(); + } + } + } + } + } + } + } + + TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL:ended, aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d, iIgnoreNextPowerKeyUpEvent:%d, iPowerKeyPopupMenuActive:%d, iLastPowerKeyWasShort:%d, iPowerKeyPopupMenuDismissed:%d"), + aKeyEvent.iCode, aKeyEvent.iScanCode, aType, iIgnoreNextPowerKeyUpEvent, iPowerKeyPopupMenuActive, iLastPowerKeyWasShort, iPowerKeyPopupMenuDismissed ) ); + } + else // shutdown started + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d"), + aKeyEvent.iCode, aKeyEvent.iScanCode, aType ) ); + + // When shutdown has been started, only device mode key events are passed to plug-in framework + // This for enabling plug-in activities during shutdown animation + if ( IsDeviceModeKey( aKeyEvent ) ) // Other key events are not passed, because they must cancel the shutdown animation as stated in UI spefication + { + if ( aType == EEventKey && iSysApKeyManagement ) + { + iSysApKeyManagement->HandleKeyEventL( aKeyEvent, aType ); + } + } + #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + else if ( aType == EEventKey && iSysApShutdownAnimation && !iShutdownContinued ) + { + if ( aKeyEvent.iCode != EKeyPowerOff || iLastPowerKeyWasShort ) + { + iSysApShutdownAnimation->Cancel(); + NotifyShutdownAnimationSkip(); + } + } + + #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: ended") ) ); + } + return EKeyWasConsumed; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleCommandL( TInt aCommand) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleCommandL( TInt aCommand ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleCommandL aCommend: %d"), aCommand ) ); + switch ( aCommand ) + { + case EEikCmdExit: // EAknCmdExit + // Quick fix for Defect: UTUL-7ZQLJU + Exit(); break; - - case EGetKeylock: // get handle to keylock client session. Returns RAknKeylock2*. - { - // do nothing - } + default: break; - - - default: - __ASSERT_DEBUG( EFalse, User::Panic( _L("CSysApAppUi::ExecQueryL: Invalid query"), KErrArgument ) ); - User::Leave( KErrArgument ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleApplicationSpecificEventL: aType:%d"), aType ) ); + + CAknAppUi::HandleApplicationSpecificEventL(aType, aEvent); + + if ( ResourcesFreed() ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleApplicationSpecificEventL: discarded, shutting down") ) ); + return; + } + + switch( aType ) + { + case EEikKeyLockEnabled: + iKeyLockEnabled = ETrue; + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 1 ); + SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOn ); + iSysApLightsController->KeylockStateChangedL( ETrue ); break; - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ExecCommandL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::ExecCommandL( TSysapCommand aCommand ) - { - ExecCommandL( aCommand, KNullDesC8 ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ExecCommandL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::ExecCommandL( TSysapCommand aCommand, const TDesC8& /* aParam */ ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ExecCommandL: aCommand=%d"), aCommand ) ); - - switch ( aCommand ) - { - case EResetKeyguardState: // reset the internal keyguard flags of the SysAp, except for iKeyLockOnBeforeCradle - iKeyLockOnBeforeCall = EFalse; - iKeyLockOnBeforeAlarm = EFalse; + case EEikKeyLockDisabled: + iKeyLockEnabled = EFalse; + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 0 ); + SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOff ); + if (! iDeviceLockEnabled ) + { + iSysApLightsController->KeylockStateChangedL( EFalse ); + if ( iSysApFeatureManager->MmcHotSwapSupported() ) + { + if ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateRinging && StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateAlerting ) + { + RunUnlockNotifierL(); + } + } + } + break; + case EEikKeyLockPowerKeyPressed: //sent when power key is captured by keylockserver + HandleShortPowerKeyPressedL(); + break; + + case EEikKeyLockLightsOnRequest: + iSysApLightsController->SetLightsOnUnlockNoteL(); + break; + + case EEikEcsQueryLights: // emergency note is shown + iSysApLightsController->SetLightsOnEcsQueryL(); + break; + + case EEikSecurityQueryLights: // for device lock security query + iSysApLightsController->SetLightsOnSecurityQueryL(); break; default: - // do nothing in release builds since no harm is done - __ASSERT_DEBUG( EFalse, User::Panic( _L("CSysApAppUi::ExecCommandL: Invalid command"), KErrArgument ) ); break; - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::TimerExpiredL() -// ---------------------------------------------------------------------------- -void CSysApAppUi::TimerExpiredL() - { -/* - * Not suppported , will take care in wk25 - * #ifndef RD_MULTIPLE_DRIVE - * CloseUIAppsInHotSwapL(); - * #endif // RD_MULTIPLE_DRIVE -*/ - } - - - // ---------------------------------------------------------------------------- -// CSysApAppUi::KeyLockState() const -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::KeyLockState() const - { - return iKeyLockEnabled; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DeviceLockState() const -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::DeviceLockState() const - { - return iDeviceLockEnabled; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SysApFeatureManager -// ---------------------------------------------------------------------------- - -CSysApFeatureManager& CSysApAppUi::SysApFeatureManager() - { - __ASSERT_DEBUG( iSysApFeatureManager, User::Panic( _L("iSysApFeatureManager == NULL"), KErrBadHandle ) ); - - return *iSysApFeatureManager; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ActivateKeyeventForwardingForLights() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ActivateKeyeventForwardingForLights(TBool aActivate) - { - if( iSysApNspsHandler ) - { - if ( aActivate ) - { - iSysApNspsHandler->ActivateKeyeventForwardingForLights(); - } - else - { - iSysApNspsHandler->DeActivateKeyeventForwardingForLights(); - } - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::StarterSession() -// ---------------------------------------------------------------------------- - -RStarterSession& CSysApAppUi::StarterSession() - { - if ( !iStarterSession.Handle() ) - { - // All server connections are tried to be made KTriesToConnectServer times because occasional - // fails on connections are possible at least on some servers - TRACES( RDebug::Print( _L("CSysApAppUi::StarterSession: trying RStarterSession::Connect()") ) ); - TInt thisTry = 0; - TInt err; - while ( ( err = iStarterSession.Connect() ) != KErrNone && ( thisTry++ ) <= KTriesToConnectServer ) - { - User::After( KTimeBeforeRetryingServerConnection ); - } - - if ( err != KErrNone ) - { - // What do in error case? - TRACES( RDebug::Print( _L("CSysApAppUi::StarterSession: RStarterSession::Connect() failed with %d"), err ) ); - } - } - - return iStarterSession; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SetBtPowerState() -// ---------------------------------------------------------------------------- -TInt CSysApAppUi::SetBtPowerState( TBool aBtState ) - { - if ( iSysApBtController ) - { - return iSysApBtController->SetPowerState( aBtState ); + } + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::InitializeStatusPaneAreaL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::InitializeStatusPaneAreaL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::InitializeStatusPaneAreaL(): START") ) ); + TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + + //Also Charging status will be updated with the following function. + UpdateBatteryBarsL( state ); + +#ifdef SYSAP_USE_STARTUP_UI_PHASE + if ( OfflineModeActive() ) + { + UpdateSignalBarsL( KAknSignalOffLineMode ); } else { - return KErrNotReady; - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SetStarterState() -// ---------------------------------------------------------------------------- - -TInt CSysApAppUi::SetStarterState( const RStarterSession::TGlobalState aState ) - { - if ( iSysApStartupController->GlobalStateChangeAllowed( aState ) ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::SetStarterState: aState=%d" ), aState ) ); - return StarterSession().SetState( aState ); + UpdateSignalBarsL(); + } +#else + UpdateSignalBarsL(); +#endif // SYSAP_USE_STARTUP_UI_PHASE + + SetSignalIndicatorL(); + SetIhfIndicatorL(); + SetHacIndicatorL(); + LogsObserverL().HandleUiReadyL(); + + if ( iSysApEtelConnector ) + { + iSysApEtelConnector->ReadSimSmsStoreStatusInStartup(); + } + + SetEnvelopeIndicatorL(); + + TRACES( RDebug::Print( _L("CSysApAppUi::InitializeStatusPaneAreaL(): accessories") ) ); + + TAccMode accessoryState(EAccModeHandPortable); + if ( iSysApAccessoryObserver ) + { + accessoryState = iSysApAccessoryObserver->GetAccessoryMode(); + } + + if( accessoryState == EAccModeWiredHeadset || + accessoryState == EAccModeWirelessHeadset || + accessoryState == EAccModeHeadphones ) + { + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if( accessoryState == EAccModeLoopset ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if( accessoryState == EAccModeTextDevice ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if( accessoryState == EAccModeWiredCarKit || accessoryState == EAccModeWirelessCarKit ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if( accessoryState == EAccModeTVOut ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if (accessoryState == EAccModeHDMI ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOn ); + } + else // all indicators off + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + + TRACES( RDebug::Print( _L("CSysApAppUi::InitializeStatusPaneAreaL(): msg") ) ); + state = StateOfProperty( KUidSystemCategory, KUidOutboxStatusValue ); + if( state == ESADocumentsInOutbox ) + { + SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); + } + else + { + SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); + } + + state = StateOfProperty( KAlarmServerPubSubCategory, KWakeupAlarmPubSubKey ); + + if( state == EActiveWakeupAlarmSet ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::InitializeStatusPaneAreaL called the SetIndicatorStateL with EActiveWakeupAlarmSet "))); + SetIndicatorStateL( EAknIndicatorAlarmClock, EAknIndicatorStateOn ); } else { - TRACES( RDebug::Print( _L("CSysApAppUi::SetStarterState: aState=%d - not allowed" ), aState ) ); - return KErrNone; - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SetNetworkConnectionAllowed() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::SetNetworkConnectionAllowed: status: %d" ), aNetworkConnectionAllowed ) ); - - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIs, KCoreAppUIsNetworkConnectionAllowed, (TInt) aNetworkConnectionAllowed ); - - // Also set the Symbian PS key used for the same purpose: - RProperty::Set(KUidSystemCategory, KUidPhonePwr.iUid, aNetworkConnectionAllowed ? ESAPhoneOn : ESAPhoneOff); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::BluetoothPowerMode() -// ---------------------------------------------------------------------------- -TInt CSysApAppUi::BluetoothPowerMode() const - { - return iSysApCenRepBtObserver->BluetoothPowerMode(); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SimSupported() -// ---------------------------------------------------------------------------- -TBool CSysApAppUi::SimSupported() - { - return iSysApFeatureManager->SimSupported(); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::BtSapEnabled() -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::BtSapEnabled() - { - if ( iSysApBtSapController ) - { - return iSysApBtSapController->BtSapEnabled(); - } - return EFalse; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::OfflineModeChangedL() -// ---------------------------------------------------------------------------- -void CSysApAppUi::OfflineModeChangedL() - { -#ifdef SYSAP_USE_STARTUP_UI_PHASE - // if UI is not ready, don't update indicators - if ( !UiReady() ) - { - return; - } -#endif // SYSAP_USE_STARTUP_UI_PHASE - -#if 0 // Not used as of now - SetHacIndicatorL(); -#endif //0 - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::UiReady() -// -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::UiReady() const - { -#ifdef SYSAP_USE_STARTUP_UI_PHASE - return iSysApStartupController->UiReady(); -#else // SYSAP_USE_STARTUP_UI_PHASE - // if startup UI phase information is not used, global system state normal is handled as UI idle state - return IsStateNormal(); -#endif // SYSAP_USE_STARTUP_UI_PHASE - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::CompleteShutdown() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::CompleteShutdown( const TBool aReset, const TInt aResetReason ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::CompleteShutdown(): START" ) ) ); - - iCheckLongPowerKeyEvent = ETrue; - - PrepareForShutdownImage();//SysAp's internal preparation for ShutDown with image - - FreeResources(); - - if ( aReset ) - { - __ASSERT_DEBUG( aResetReason >= RStarterSession::ELanguageSwitchReset && - aResetReason <= RStarterSession::EDataRestoreReset, - User::Invariant() ); - StarterSession().Reset( static_cast( aResetReason ) ); + TRACES( RDebug::Print(_L("CSysApAppUi::InitializeStatusPaneAreaL called the SetIndicatorStateL with EActiveNoWakeupAlarmsSet "))); + SetIndicatorStateL( EAknIndicatorAlarmClock, EAknIndicatorStateOff ); + } + + state = StateOfProperty( KIrdaPropertyCategory, KIrdaStatus ); + if( state == TIrdaStatusCodes::EIrLoaded || state == TIrdaStatusCodes::EIrDisconnected || state == TIrdaStatusCodes::EIrBlocked ) + { + SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); + } + else if( state == TIrdaStatusCodes::EIrConnected ) + { + SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); } else { - StarterSession().Shutdown(); - } - - StarterSession().Close(); - - TRACES( RDebug::Print(_L("CSysApAppUi::CompleteShutdown(): END" ) ) ); - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoShutdownL( const TBool aReset, const TSWStartupReason aSWStartupReason ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::DoShutdownL( const TBool aReset, const TInt aResetReason ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: aResetReason:%d, aReset:%d" ), - aResetReason, aReset ) ); -#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION - TBool animationenabled( EFalse ); -#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - - if( OkToInitiateShutdown() ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: Was OkToToInitiateShutdown" ) ) ); - - - if ( !aReset && iSysApFeatureManager->Supported(KSysApFeatureIdGoodbyeNote) ) - { - // show shutdown note - } - - if( !aReset ) - { - #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION - TRAPD( err, ShowAnimationL() ); - if ( err ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL ShowAnimationL() leaved: %d" ), err ) ); - CompleteShutdown(aReset, aResetReason); - } - } - else // aReset - { - CompleteShutdown(aReset, aResetReason); - } - #else // RD_STARTUP_ANIMATION_CUSTOMIZATION - TRAPD( err, animationenabled = ShowAnimationL() ); - if ( err ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL ShowAnimationL() leaved: %d" ), err ) ); - } - } - - if ( !animationenabled ) - { - CompleteShutdown(aReset, aResetReason); - } - #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); + } + + iSysApCenRepCallForwardingObserver->UpdateCallForwardingIndicatorsL(); + + iSysApCenRepMsgWaitingObserver->UpdateMessageWaitingIndicatorsL(); + + state = StateOfProperty( KPSUidNetworkInfo, KNWHomeZoneStatus ); + if( state == ENWNone || state == ENWCityZone ) + { + SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff ); + } + else if( state == ENWHomeZone ) + { + SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn ); + } + + // Initialize WLan state + state = StateOfProperty( KPSUidWlan, KPSWlanIndicator ); + HandleWlanIndicatorL(state); + + // Initialize Tarm state + state = StateOfProperty( KPSUidCoreApplicationUIs, KCoreAppUIsTarmIndicator ); + HandleTarmIndicatorL(state); + + TRACES( RDebug::Print( _L("CSysApAppUi::InitializeStatusPaneAreaL(): END") ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleWlanIndicator() +// ---------------------------------------------------------------------------- +void CSysApAppUi::HandleWlanIndicatorL( TInt aValue ) + { + if ( aValue == EPSWlanIndicatorAvailable ) + { + SetIndicatorStateL( EAknIndicatorWlanActive, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActiveSecure, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanAvailable, EAknIndicatorStateOn ); + } + else if ( aValue == EPSWlanIndicatorActive ) + { + SetIndicatorStateL( EAknIndicatorWlanAvailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActiveSecure, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActive, EAknIndicatorStateOn ); + } + else if ( aValue == EPSWlanIndicatorActiveSecure ) + { + SetIndicatorStateL( EAknIndicatorWlanAvailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActive, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActiveSecure, EAknIndicatorStateOn ); + } + else // No indication required + { + SetIndicatorStateL( EAknIndicatorWlanAvailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActive, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorWlanActiveSecure, EAknIndicatorStateOff ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleTarmIndicatorL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleTarmIndicatorL( TInt aValue ) + { + if ( aValue == ECoreAppUIsTarmTerminalSecurityOnIndicatorOn ) + { + SetIndicatorStateL( EAknIndicatorTARM, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTARMModuleOn, EAknIndicatorStateOn ); + } + else if ( aValue == ECoreAppUIsTarmMngActiveIndicatorOn ) + { + SetIndicatorStateL( EAknIndicatorTARMModuleOn, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTARM, EAknIndicatorStateOn ); } else { - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: Was not OkToToInitiateShutdown" ) ) ); - } - TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: END" ) ) ); - } - - - -/* ----------------------------------------------------------------------------- -CSysApAppUi::IsEncryptionOperationOngoingL() -Introduced the code as a part of Sub : 405-3362 - Power Management SUB for ES -recapture functionalities in platform which support multidrive as well. -------------------------------------------------------------------------------- -*/ -TBool CSysApAppUi::IsEncryptionOperationOngoingL() const - { - TBool deFeatureSupported(EFalse); - FeatureManager::InitializeLibL(); - deFeatureSupported = FeatureManager::FeatureSupported( KFeatureIdFfDeviceEncryptionFeature); - FeatureManager::UnInitializeLib(); - - if(deFeatureSupported) - { - /** - * Store the last memory status changed - * 0: Idle. It can be Encrypted or Decrypted - * 1: Encrypting - * 2: Decrypting - **/ - - RProperty deProperty; - User::LeaveIfError(deProperty.Attach(KDevEncProtectedUid, KDevEncOperationKey,EOwnerThread)); - TInt deValue = 0; - if((deProperty.Get(deValue)== KErrNone)&&( deValue == EOpEncrypting || deValue == EOpDecrypting)) + SetIndicatorStateL( EAknIndicatorTARM, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTARMModuleOn, EAknIndicatorStateOff ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleShortPowerKeyPressedL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleShortPowerKeyPressedL() + { + TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); + + TRACES ( + RDebug::Print( + _L("CSysApAppUi::HandleShortPowerKeyPressedL() callState:%d, iDeviceLockEnabled:%d" ), + callState, + iDeviceLockEnabled ); + ); + iSysApLightsController->PowerKeyPressedL(); + + RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsHideAlarm, ECoreAppUIsHideAlarm ); + + + if( UiReady() && !iDeviceLockEnabled ) + { + if ( iPowerKeyPopupMenuActive ) + { + //Do nothing here. EEventKeyUp moves selection in the list! + } + else if ( !iKeyLockEnabled + && callState != EPSCTsyCallStateAlerting + && callState != EPSCTsyCallStateRinging + && callState != EPSCTsyCallStateDialling ) + //Show power key menu + { + ShowPowerKeyPopUpMenuL(); + } + } + else + { + TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); + + if( swState == ESwStateAlarm ) + //From Alarm state even a short press causes shutdown but charger state need to be checked + { + TInt chargerState( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); + if( chargerState == EChargingStatusNotConnected ) + //shutdown { - deProperty.Close(); - return ETrue; + StartShutDownTimerOnAlarmAndChargingStates(); } else + //to charging state { - deProperty.Close(); - return EFalse; + SetStarterState( RStarterSession::ECharging ); } } - else - { - return EFalse; - } + } } // ---------------------------------------------------------------------------- @@ -1100,8 +1222,8 @@ TInt swState; RProperty::Get( KPSUidStartup, KPSGlobalSystemState, swState ); - - iSysApLightsController->PowerKeyPressedL(); //need to handle later. + + iSysApLightsController->PowerKeyPressedL(); if( swState == ESwStateStartingCriticalApps || swState == ESwStateSelfTestOK || @@ -1117,7 +1239,10 @@ { if( iPowerKeyPopupMenuActive ) { - // do nothing + if ( iGlobalListQuery ) + { + iGlobalListQuery->SelectItem(); + } } else if( !iIgnoreNextPowerKeyRepeats ) { @@ -1147,351 +1272,1166 @@ } // ---------------------------------------------------------------------------- -// CSysApAppUi::IsDeviceModeKey -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const - { - return CSysApDefaultKeyHandler::IsDeviceModeKey( aKeyEvent ); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowShutdownImage -// ---------------------------------------------------------------------------- -// -TInt CSysApAppUi::ShowShutdownImage( TInt aBitmapId ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImage") ) ); - - TRAPD( err, ShowShutdownImageL( aBitmapId ) ); - - if ( err != KErrNone ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImageL failed, err=%d"), err ) ); - } - - return err; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowShutdownImageL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::ShowShutdownImageL( TInt aBitmapId ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImageL") ) ); - // do nothing - if ( !iSysApShutdownImage ) // Shutdown image may be shown without entering normal state (e.g. charging), so construct here - { - TRACES( RDebug::Print( _L("CSysApAppUi::ShowShutdownImageL: trying CSysApShutdownImage::NewL()") ) ); - iSysApShutdownImage = CSysApShutdownImage::NewL(); - } - TRACES( RDebug::Print( _L("CSysApAppUi::ShowShutdownImageL: trying CSysApShutdownImage::ShowShutdownImageL()") ) ); - iSysApShutdownImage->ShowShutdownImageL( aBitmapId ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::PrepareForShutdownImage() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::PrepareForShutdownImage() - { - TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() START" ) ) ); - - // If RD_STARTUP_ANIMATION_CUSTOMIZATION is enabled, the following actions are always taken in PrepareForShutdownAnimation -#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION - if ( !iAnimationShowingTime ) // actions already taken in PrepareForShutdownAnimation - { - static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( EAvkonSIDPowerOffTone ); - CancelGlobalListQuery(); - - if ( iSysApPowerKeyMenuObserver ) - { - iSysApPowerKeyMenuObserver->Cancel(); - } - - // deactivate notifiers before showing the shutdown image - AknNotifierController::CancelAllNotifications(); - AknNotifierController::HideAllNotifications(ETrue); - RWindowGroup groupWin = iCoeEnv->RootWin(); - iCapturedAppskey = groupWin.CaptureKey( EKeyApplication, KModifierMask, KModifierMask ); - iCapturedAppskeyUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyApplication0, KModifierMask, KModifierMask ); - } -#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - -#ifndef __SYSAP_MODULE_TEST //to make errors during shutdown sequence being seen more easily - iEikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront ); - TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() Show Shutdown image" ) ) ); - ShowShutdownImage( 1 );//EMbmSysapQgn_startup_screen -#endif - TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() END" ) ) ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::OkToInitiateShutdown() -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::OkToInitiateShutdown() - { - TInt swState; - RProperty::Get( KPSUidStartup, KPSGlobalSystemState, swState ); - - if( !iShutdownStarted && - swState == ESwStateStartingCriticalApps || - swState == ESwStateSelfTestOK || - swState == ESwStateSecurityCheck || - swState == ESwStateCriticalPhaseOK || - swState == ESwStateEmergencyCallsOnly || - swState == ESwStateCharging || - swState == ESwStateAlarm || - swState == ESwStateNormalRfOn || - swState == ESwStateNormalRfOff || - swState == ESwStateNormalBTSap || - swState == ESwStateFatalStartupError ) - { - iShutdownStarted = ETrue; - return ETrue; - } - else - { - return EFalse; - } - } - - -void CSysApAppUi::PopupNote() - { - iIgnoreNextPowerKeyUpEvent = ETrue; - // TRACES( RDebug::Print( _L("CSysApAppUi::Key was consumed") ) ); - _LIT(KPowerPressKey,"Short power key"); - HBufC* aString = HBufC16::NewLC(50); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SetUsbAttachStatus -// ---------------------------------------------------------------------------- -#ifndef RD_MULTIPLE_DRIVE -void CSysApAppUi::SetUsbAttachStatus( const TBool aUsbAttached ) - { - // Prevent double beep when USB file transfer gets activated but - // allow MMC inserted beep when: - // a) USB file transfer is active - // b) MMC is not inserted when USB cable is attached - iHideNextBeep = ( iMMCInserted && aUsbAttached ); - } -#else // RD_MULTIPLE_DRIVE -void CSysApAppUi::SetUsbAttachStatus( const TBool aUsbAttached ) - { - TRACES( RDebug::Print( - _L( "CSysApAppUi::SetUsbAttachStatus: aUsbAttached: %d" ), - aUsbAttached ) ); - - if ( aUsbAttached ) - { - // For ignoring extra beeps caused by USB file transfer - iSysApDriveList->ResetDrivesInsertBeepIgnored(); - iSysApDriveList->MarkDrivesInsertBeepIgnored( iInsertedMemoryCards ); - } - } -#endif // RD_MULTIPLE_DRIVE - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::UsbChargerDetector -// ---------------------------------------------------------------------------- -// -TSysApUsbChargerDetector& CSysApAppUi::UsbChargerDetector() - { - return iSysApUsbChargerDetector; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleAccessoryDisconnectedL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleAccessoryDisconnectedL() - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryDisconnectedL()" ) ) ); - - - TAccMode accessoryState(EAccModeHandPortable); - if ( iSysApAccessoryObserver ) - { - accessoryState = iSysApAccessoryObserver->GetAccessoryMode(); - } - - if ( accessoryState == EAccModeHandPortable ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryDisconnectedL:Before Deactivating accessory Plugin"))); - iHbIndicatorSymbian->Deactivate(KAccesoryPlugin); - TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryDisconnectedL:After Deactivating accessory Plugin"))); - iSysApLightsController->AccessoryConnectedL( EFalse ); - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected, 0 ); - } - - SetIhfIndicatorL(); - SetHacIndicatorL(); - - // If lock disabled because of accessory, reactivate it, unless phone call or alarm is ongoing - if ( iKeyLockOnBeforeCradle ) - { - iKeyLockOnBeforeCradle = EFalse; - if ( !iKeyLockOnBeforeCall && !iKeyLockOnBeforeAlarm ) - { - if ( !iDeviceLockEnabled ) +// CSysApAppUi::FreeResources() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::FreeResources() + { + TRACES( RDebug::Print( _L("CSysApAppUi::FreeResources") ) ); + + delete iSysApBatteryInfoController; + delete iSysApPsmController; + + delete iSysApAudioRoutingObserver; + + delete iProfileNamesArray; + iProfileNamesArray = NULL; + + if ( iTimer ) + { + iTimer->Cancel(); + delete iTimer; + } + + if ( iSapTimer ) + { + iSapTimer->Cancel(); + delete iSapTimer; + } + + if ( iSysApTimer ) + { + iSysApTimer->Cancel(); + delete iSysApTimer; + } + + delete iGlobalListQuery; + + RWindowGroup groupWin = iCoeEnv->RootWin(); + groupWin.CancelCaptureKey( iCapturedEKeyPowerOff ); + groupWin.CancelCaptureKeyUpAndDowns( iCapturedEKeyPowerOffUpAndDowns ); + + delete iSysApDefaultKeyHandler; + + if ( iProfileEngine ) + { + iProfileEngine->Release(); + } + + delete iSysApSsSettingsObserver; + delete iSysApEtelConnector; + + delete iSysApProfileObserver; + delete iSysApNspsHandler; + delete iSysApKeySndHandler; + delete iSysApCenRepMsgWaitingObserver; + delete iSysApCenRepCallForwardingObserver; + delete iSysApConnectionMonitorObserver; + delete iSysApCenRepLightSettingsObserver; + delete iSysApCenRepLogsObserver; + delete iSysApCenRepBtObserver; + delete iSysApCenRepFmTxObserver; + delete iSysApCenRepHacSettingObserver; + delete iSysApCenRepController; + + delete iSysApPubSubObserver; + + delete iSysApMMCObserver; + delete iSysApMsgSimMemLowQuery; + delete iSysApWaitNote; + delete iSysApConfirmationQuery; + delete iSysApConfirmationQueryForRestart; + delete iSysApOfflineModeController; + delete iSysApUsbIndicatorController; + delete iSysApBtController; + delete iSysApBtSapController; + delete iSignalNotify; + delete iBatteryNotify; + delete iSysApSystemLock; + delete iSysApLocationPrivacyIndicator; + delete iSysApAccessoryObserver; + delete iSysApMediatorObserver; + + delete iSysApKeyManagement; + iSysApKeyManagement = NULL; + delete iSysApLightsController; + iKeyLock.Close(); + delete iSysApFeatureManager; + + // Cleanup ECom, used by key management and light control + REComSession::FinalClose(); + + iResourcesFreed = ETrue; + TRACES( RDebug::Print( _L("CSysApAppUi::FreeResources:END") ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL aNote: %d"), aNote ) ); + TInt tone( EAvkonSIDNoSound ); + TAknGlobalNoteType noteType( EAknGlobalBatteryLowNote ); + CAknGlobalNote* note = CAknGlobalNote::NewLC(); + TInt secondaryDisplayId(SecondaryDisplay::ECmdNoNote); + + switch ( aNote ) + { + case EBatteryLowNote: + noteType = EAknGlobalBatteryLowNote; + tone = EAvkonSIDBatteryLowTone; + break; + case EBatteryFullNote: + noteType = EAknGlobalBatteryFullNote; + tone = EAvkonSIDInformationTone; + break; + case ERechargeBatteryNote: + iSysApLightsController->BatteryEmptyL( ETrue ); + noteType = EAknGlobalRechargeBatteryNote; + tone = EAvkonSIDRechargeBatteryTone; + break; + case ENotChargingNote: + noteType = EAknGlobalNotChargingNote; + tone = EAvkonSIDWrongCharger; + break; + case EInsertSimNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowInsertSimNote; + break; + case EMemoryCardRemovedWithoutEjectNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowMemoryCardRemovedWithoutEjectNote; + break; + case EGprsSuspendedNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowGprsSuspendedNote; + break; + case EGprsResumedNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowGprsResumedNote; + break; + case EShutdownNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowShutdownNote; + break; + case ECannotActivateOfflineModeNote: + noteType = EAknGlobalErrorNote; + tone = EAvkonSIDErrorTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowCannotActivateOfflineModeNote; + break; + case ECannotDeactivateOfflineModeNote: + noteType = EAknGlobalErrorNote; + tone = EAvkonSIDErrorTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowCannotDeactivateOfflineModeNote; + break; + case EKeypadActiveNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowKeypadActiveNote; + break; + case EFmTxAccessoryStandbyNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowFmTxStandbyInAccessoryConnectionNote; + break; + case EFmTxAccessoryForbidsNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowFmTxCannotEnableWhileAccessoryConnectedNote; + break; + case EFmTxVolumeDisabledNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowFmTxVolumeDisabledNote; + break; + case EFmTxOnNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowFmTxTuneRadioToFrequencyNote; + break; + case EFmTxOffNote: + noteType = EAknGlobalInformationNote; + tone = EAvkonSIDInformationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowFmTxDisabledNote; + break; + case EBatteryFullUnplugChargerNote: + noteType = EAknGlobalBatteryFullUnplugNote; + tone = EAvkonSIDInformationTone; + break; + case EUnplugChargerNote: + noteType = EAknGlobalUnplugChargerNote; + tone = EAvkonSIDInformationTone; + break; + case EPowerSaveModeActivated: + noteType = EAknGlobalConfirmationNote; + tone = EAvkonSIDConfirmationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowPowerSavingActivatedNote; + break; + case EPowerSaveModeDeactivated: + noteType = EAknGlobalConfirmationNote; + tone = EAvkonSIDConfirmationTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowPowerSavingDeactivatedNote; + break; + case ECannotActivatePowerSaveMode: + noteType = EAknGlobalWarningNote; + tone = EAvkonSIDWarningTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowCannotActivatePowerSavingNote; + break; + case ECannotDeactivatePowerSaveMode: + noteType = EAknGlobalWarningNote; + tone = EAvkonSIDWarningTone; + secondaryDisplayId = SecondaryDisplay::ECmdShowCannotDeactivatePowerSavingNote; + break; + default: + break; + + } + + TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); + + if( UiReady() || swState == ESwStateSecurityCheck) + { + HBufC* noteStringBuf = NULL; + + switch ( aNote ) + { + case EInsertSimNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_SU_NOTE_INSERT_SIM, iEikonEnv ); + break; + case EMemoryCardRemovedWithoutEjectNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_MEMS_EJECT_ERROR, iEikonEnv ); + note->SetSoftkeys( R_AVKON_SOFTKEYS_OK_EMPTY ); + break; + case EGprsSuspendedNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_GPRS_CONF_GPRS_SUSPENDED, iEikonEnv ); + break; + case EGprsResumedNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_GPRS_CONF_GPRS_RESUMED, iEikonEnv ); + break; + case EShutdownNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_PWRC_INFO_GOODBYE, iEikonEnv); + break; + case ECannotActivateOfflineModeNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_ERR_OFFLINE_UNABLE, iEikonEnv ); + break; + case ECannotDeactivateOfflineModeNote: + noteStringBuf = StringLoader::LoadLC( R_QTN_ERR_OFFLINE_UNABLE_PROFILE, iEikonEnv ); + break; + case EKeypadActiveNote: + if ( iSysApFeatureManager->PenEnabled() ) + { + noteStringBuf = StringLoader::LoadLC( R_QTN_KEYG_CONF_DISPLAY_KEYS_ACTIVE, + iEikonEnv ); + } + else + { + noteStringBuf = StringLoader::LoadLC( R_QTN_KEYG_CONF_KEYPAD_ACTIVE, + iEikonEnv ); + } + note->SetAnimation( R_QGN_NOTE_KEYGUARD_OPEN_ANIM ); + break; + case EFmTxOnNote: { - iKeyguardController->EnableKeyguard(ETrue); + const TInt KFrequencyMaxLength(7); + // read frequency + TInt frequencykHz = iSysApCenRepFmTxObserver->Frequency(); + TReal frequencyMHz = static_cast( frequencykHz ) / KCoefficientKhzToMhz; // kHz to Mhz + TBuf frequencyAsString; + frequencyAsString.AppendNum( frequencyMHz, TRealFormat( KFrequencyMaxLength, KDecimalsInMhzFrequency ) ); + AknTextUtils::LanguageSpecificNumberConversion( frequencyAsString ); + noteStringBuf + = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_INFO_NOTE_CHANGE_FREQ, + frequencyAsString, + iEikonEnv ); + break; + } + case EFmTxAccessoryForbidsNote: + { + noteStringBuf = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_INFO_NOTE_ACCESSORY_FORBIDS, + iEikonEnv ); + break; + } + case EFmTxAccessoryStandbyNote: + { + noteStringBuf = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_INFO_NOTE_ACCESSORY_STANDBY, + iEikonEnv ); + break; + } + case EFmTxVolumeDisabledNote: + { + noteStringBuf = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_INFO_NOTE_VOLUME_DISABLED, + iEikonEnv ); + break; + } + case EFmTxOffNote: + { + noteStringBuf = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_INFO_NOTE_DISABLED, + iEikonEnv ); + break; + } + case EPowerSaveModeActivated: + noteStringBuf = StringLoader::LoadLC( R_QTN_POWER_SAVING_ACTIVATED_CONF_NOTE, iEikonEnv ); + break; + case EPowerSaveModeDeactivated: + noteStringBuf = StringLoader::LoadLC( R_QTN_POWER_SAVING_DEACTIVATED_CONF_NOTE, iEikonEnv ); + break; + case ECannotActivatePowerSaveMode: + noteStringBuf = StringLoader::LoadLC( R_QTN_POWER_SAVING_FAILED_WARNING_NOTE, iEikonEnv ); + break; + case ECannotDeactivatePowerSaveMode: + noteStringBuf = StringLoader::LoadLC( R_QTN_POWER_SAVING_DEACTIVATION_FAILED_WARNING_NOTE, iEikonEnv ); + break; + default: + break; + } + + note->SetTone( tone ); + + // Set secondary display data if necessary + if ( iSysApFeatureManager->CoverDisplaySupported() && secondaryDisplayId != SecondaryDisplay::ECmdNoNote) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL - Notifying secondary display") ) ); + CAknSDData* sd; + + if ( aNote == EFmTxOnNote ) // frequency information is passed to secondary display + { + SecondaryDisplay::TFmTxFrequencyInKhzPckg pckg( iSysApCenRepFmTxObserver->Frequency() ); + sd = CAknSDData::NewL( SecondaryDisplay::KCatSysAp, secondaryDisplayId, pckg ); } else { - iKeyguardController->EnableKeyguard(EFalse); + sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, secondaryDisplayId, KNullDesC8); } - } - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleAccessoryConnectedL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleAccessoryConnectedL( TAccMode aAccessoryState, TInt aPhysicalConnectionType ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryConnectedL( aAccessoryState: %d )(aPhysicalConnectionType: %d "), aAccessoryState, aPhysicalConnectionType ) ); - - CHbSymbianVariantMap* iAccVariantMap = CHbSymbianVariantMap::NewL(); - CleanupStack::PushL(iAccVariantMap); - CHbSymbianVariant* variantAccState = CHbSymbianVariant::NewL(&aAccessoryState, CHbSymbianVariant::EInt); - iAccVariantMap->Add(KAccMode,variantAccState); - CHbSymbianVariant* variantAccType = CHbSymbianVariant::NewL(&aPhysicalConnectionType, CHbSymbianVariant::EInt); - iAccVariantMap->Add(KAccPhyConType,variantAccType); - - - CHbSymbianVariant* iAccVariant = CHbSymbianVariant::NewL(iAccVariantMap, CHbSymbianVariant::EVariantMap ); - CleanupStack::PushL(iAccVariant); - iHbIndicatorSymbian->Activate(KAccesoryPlugin, iAccVariant); - + + note->SetSecondaryDisplayData(sd); // ownership to notifier client + } + + if ( noteStringBuf ) + { + TPtr textBuffer = noteStringBuf->Des(); + TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL Next:note->ShowNoteL" ) ) ); + note->ShowNoteL( noteType, textBuffer ); + CleanupStack::PopAndDestroy( ); // noteStringbuf + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL Next:note->ShowNoteL" ) ) ); + note->ShowNoteL( noteType, KNullDesC ); + } + } + else if( swState == ESwStateAlarm || swState == ESwStateCharging ) + { + if ( aNote != EUnplugChargerNote ) // don't play tone when charger is disconnected in charging state + { + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( tone ); + } + } + + CleanupStack::PopAndDestroy(); // note + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowChargingNoteL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowChargingNoteL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL") ) ); + TBool showNote( ETrue ); TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); - TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryConnectedL: swState: %d"), swState ) ); + TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL: swState: %d"), swState ) ); if( UiReady() || swState == ESwStateSecurityCheck ) { - iSysApLightsController->AccessoryConnectedL( ETrue ); - } - - if ( ( ! iSysApOfflineModeController->OfflineModeActive() )) - { - if ( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected ) < 1 ) - // accessory not connected already - { - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected, 1 ); - } + if ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) == EPSCTsyCallStateRinging ) + { + showNote = EFalse; + } + TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL KCTsyCallState=%d"), StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ) ); + if ( showNote ) // Power Mgmt UI spec defines that no Charging note is shown while the phone is ringing/alerting + { + CAknGlobalNote* chargingNote = CAknGlobalNote::NewLC(); + chargingNote->SetTone( EAvkonSIDChargingBatteryTone ); + chargingNote->ShowNoteL( EAknGlobalChargingNote, KNullDesC ); + CleanupStack::PopAndDestroy( chargingNote ); + } + } + else if( swState == ESwStateAlarm || swState == ESwStateCharging ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL - Just play tone") ) ); + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( EAvkonSIDChargingBatteryTone ); + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL - No note shown") ) ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleChargerNotesL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::HandleChargerNotesL( const TInt aValue ) + { + TBool showNote(StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateRinging); + if ( aValue == EChargingStatusCharging ) + { + iSysApLightsController->BatteryEmptyL( EFalse ); + TRACES( RDebug::Print( _L("SysAp: charger connected") ) ); + iSysApLightsController->ChargerConnectedL( ETrue ); + ShowChargingNoteL(); + } + //Display Not Charging note + else if ( aValue == EChargingStatusError ) + { + if(showNote) + { + ShowUiNoteL( ENotChargingNote ); + } + } + else if ( aValue == EChargingStatusChargingComplete ) + { + iSysApLightsController->ChargingCompleteL(); + + TSysApNoteIds note( EBatteryFullNote ); + + if ( !iSysApUsbChargerDetector.HostOnlyUsbChargingUsed() && + iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) ) + { + note = EBatteryFullUnplugChargerNote; + } + iSysApUsbChargerDetector.Reset(); + if(showNote) + { + ShowUiNoteL( note ); + } + } + else if ( aValue == EChargingStatusNotConnected ) + { + TRACES( RDebug::Print( _L("SysAp: charger removed") ) ); + iSysApLightsController->ChargerConnectedL( EFalse ); + + if ( !iSysApUsbChargerDetector.HostOnlyUsbChargingUsed() && + iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) ) + { + if(showNote) + { + ShowUiNoteL( EUnplugChargerNote ); + } + } + iSysApUsbChargerDetector.Reset(); + } + else if ( aValue == EChargingStatusNotCharging ) + { + TRACES( RDebug::Print( _L("SysAp: Not charging") ) ); + } + else if ( aValue == EChargingStatusAlmostComplete ) + { + TRACES( RDebug::Print( _L("SysAp: Charging almost complete") ) ); + } + else if ( aValue == EChargingStatusChargingContinued ) + { + //in this case we simply want to scroll the battery bars and not turn light on or show ui note + // set lights controller iBatteryEmpty to EFalse + iSysApLightsController->BatteryEmptyL( EFalse ); + TRACES( RDebug::Print( _L("SysAp: charging continues") ) ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowProfileNoteL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowProfileNoteL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowProfileNoteL") ) ); + + if ( UiReady() ) + { + + TBufC profileName; + HBufC* noteStringBuf = NULL; + ActiveProfileNameL( profileName.Des() ); + noteStringBuf = StringLoader::LoadLC( R_TEXT_MODE_SELECTED, profileName, iEikonEnv ); + TPtr textBuffer = noteStringBuf->Des(); + AknTextUtils::DisplayTextLanguageSpecificNumberConversion( textBuffer ); + + + // Set secondary display data if necessary + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowProfileNoteL - Notifying secondary display") ) ); + SecondaryDisplay::TProfileName sdProfileName; + sdProfileName.Append(profileName.Left(SecondaryDisplay::KProfileNameMaxLen)); + SecondaryDisplay::TProfileNotePckg pckg(sdProfileName); + CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, SecondaryDisplay::ECmdShowProfileNote, pckg); + + } + + + CAknDiscreetPopup::ShowGlobalPopupL(textBuffer,KNullDesC, KAknsIIDNone, KNullDesC); + + CleanupStack::PopAndDestroy(); // noteStringbuf + + iSysApLightsController->ProfileChangedL(); // All notes should always turn lights on. + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowQueryL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowQueryL( const TSysApConfirmationQueryIds aQueryId, const TDesC& aValue ) + { + CancelGlobalListQuery(); + + if ( aQueryId == ESysApRestartPhoneQuery ) + { + iDisablePowerkeyMenu = ETrue; + // Cancel any other query that might be outstanding (i.e. ESysApRemoveMmcNote), + // to avoid multiple overlapping queries causing problems + if ( iSysApConfirmationQuery ) + { + iSysApConfirmationQuery->Cancel(); + } + + if ( !iSysApConfirmationQueryForRestart ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowQueryL: trying CSysApConfirmationQuery::NewL() for restart") ) ); + iSysApConfirmationQueryForRestart = CSysApConfirmationQuery::NewL( *this ); + } + + iSysApConfirmationQueryForRestart->ShowQueryL( aQueryId, iEikonEnv ); + } + else + { + if ( !iSysApConfirmationQuery ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowQueryL: trying CSysApConfirmationQuery::NewL()") ) ); + iSysApConfirmationQuery = CSysApConfirmationQuery::NewL( *this ); + } + + iSysApConfirmationQuery->ShowQueryL( aQueryId, aValue, iEikonEnv ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UpdateBatteryBarsL( const TInt aState ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::UpdateBatteryBarsL( const TInt aState ) + { + TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL aState: %d, chargerState:%d"), aState, state ) ); + HandleUsbCharger( state ); + if( state == EChargingStatusCharging || + state == EChargingStatusChargingContinued || + state == EChargingStatusAlmostComplete ) + { + if ( !iCharging ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Starting Charging") ) ); + iBatteryNotify->StartChargingL(); + iCharging = ETrue; + } + + // When Avkon supports battery state sending while charging, + // add setting battery level here also. + } + else + { + if ( iCharging ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Stopping Charging") ) ); + iBatteryNotify->StopChargingL(); + iCharging = EFalse; + } + + if( state == KErrUnknown || aState == KErrUnknown ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: CAknBatteryNotify::SetBatteryLevelL(0)") ) ); + iBatteryNotify->SetBatteryLevelL( 0 ); + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: CAknBatteryNotify::SetBatteryLevelL(%d)"), aState - EBatteryLevelLevel0 ) ); + iBatteryNotify->SetBatteryLevelL( aState - EBatteryLevelLevel0 ); + } } - // Carkit and music stand have also light on permanently option that needs to be checked - if( aAccessoryState == EAccModeWiredCarKit || aAccessoryState == EAccModeMusicStand ) - { - // When device is placed on a handsfree cradle, keyguard must be disabled (unless device is locked) - // Note: It is assumed that if carkit/music stand is connected, the phone is in the cradle. - if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCall || iKeyLockOnBeforeAlarm ) - { - iKeyLockOnBeforeCradle = ETrue; - - if ( iKeyLockEnabled && !iDeviceLockEnabled ) - { - iKeyguardController->DisableKeyguard(EFalse); - } - } - } - SetIhfIndicatorL(); - SetHacIndicatorL(); - CleanupStack::PopAndDestroy(2); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SetHacIndicatorL() -// ---------------------------------------------------------------------------- -void CSysApAppUi::SetHacIndicatorL() - { - - if ( !iSysApCenRepHacSettingObserver ) - { - // Do nothing if HAC setting observer has not been created yet - // This occurs in case some party is trying to set HAC indicator during - // ConstructL(), e.g. when switching from offline to online during startup - TRACES( RDebug::Print( _L("CSysApAppUi::SetHacIndicatorL: do nothing, HAC observer does not exist yet") ) ); - return; - } - - if ( iSysApCenRepHacSettingObserver->HacMode() ) - { - TBool accessoryConnected ( EFalse ); - - TAccMode accMode(EAccModeHandPortable); - - if ( iSysApAccessoryObserver ) - { - accMode = iSysApAccessoryObserver->GetAccessoryMode(); - - if ( accMode != EAccModeHandPortable ) - { - accessoryConnected = ETrue; - } - } - -// TInt indicatorState = EAknIndicatorStateOn; - - if ( !accessoryConnected ) // When accessory is not connected, check offline and call state - { - if ( OfflineModeActive() ) // HAC indicator is not shown in offline mode - { - // indicatorState = EAknIndicatorStateOff; - } - else - { - // during active call with IHF activated HAC indicator is not shown - TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); - if ( callState < KErrNone ) - { - callState = EPSCTsyCallStateNone; - } - - if ( callState != EPSCTsyCallStateNone && IhfEnabledL() ) - { - // indicatorState = EAknIndicatorStateOff; - } - } - + if ( !iSysApPsmController ) // created here if first state change has not occurred yet + { + iSysApPsmController = CSysApPsmController::NewL( *this ); + } + + if ( iSysApPsmController ) + { + if ( iSysApPsmController->FullPsmEnabled() ) + { + iBatteryNotify->SetBatteryStateL( EAknBatteryIndicatorPowerSave ); + } + else + { + iBatteryNotify->SetBatteryStateL( EAknBatteryIndicatorNormal ); + } + } + + if ( iSysApBatteryInfoController ) + { + iSysApBatteryInfoController->BatteryLevelUpdatedL(); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UpdateSignalBarsL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::UpdateSignalBarsL() + { + UpdateSignalBarsL(iSysApEtelConnector->GetSignalBars()); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UpdateSignalBarsL( const TInt aState ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::UpdateSignalBarsL( const TInt aState ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::UpdateSignalBarsL aState: %d"), aState ) ); + if( iSysApGanHandler && iSysApGanHandler->IsInGanMode() ) + { + iSignalNotify->SetSignalLevelL( iSysApGanHandler->GanSignalLevel() ); + } + else if( aState == KAknSignalOffLineMode || (iSysApOfflineModeController->OfflineModeActive() && !iEmergencyCallActive) ) + { + iSignalNotify->SetSignalLevelL( KAknSignalOffLineMode ); + } + else if( aState <= 0 ) + { + // Do not update indicator show zero bars if we should be showing X over bars + // This is required for indicator to work correctly in BT SAP mode. + // Cannot use check for BT SAP enabled status, as zero bars notify comes before enabled status changes. + if ( !iIgnoreZeroNetworkBarNotifications ) + { + iSignalNotify->SetSignalLevelL( 0 ); + } + } + else + { + iSignalNotify->SetSignalLevelL( aState ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetSignalIndicatorL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetSignalIndicatorL() + { + TSysApNetworkMode networkMode( ESysApGSM ); + + TInt networkModeFromNetworkInfo( StateOfProperty( KPSUidNetworkInfo, KNWTelephonyNetworkMode ) ); + if ( networkModeFromNetworkInfo == ENWNetworkModeWcdma ) + { + networkMode = ESysApWCDMA; + } + else + { + networkMode = ESysApGSM; + } + + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorL: networkMode = %d" ), networkMode ) ); + + if( iSysApOfflineModeController->OfflineModeActive() && !iEmergencyCallActive ) + { + // The device is in Offline Mode + if ( iSysApFeatureManager->Supported( KSysApFeatureIdGprs_G_Icon ) ) + { + iSignalNotify->SetGprsStateL( EAknSignalGprsIndicatorOff ); + } + else + { + iSignalNotify->SetCommonPacketDataStateL( EAknSignalCommonPacketDataIndicatorOff ); + } + iSignalNotify->SetWcdmaStateL( EAknSignalWcdmaIndicatorOff ); + iSignalNotify->SetHsdpaStateL( EAknSignalHsdpaIndicatorOff); + TRACES( RDebug::Print(_L("CSysApAppUi::SetSignalIndicatorL: gan off" ) ) ); + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorOff ); + } + else + { + if( iSysApGanHandler && iSysApGanHandler->IsInGanMode() ) + { + // Enter GAN: set GAN signal bar + SetSignalIndicatorGanL(); + iGanEnabled = ETrue; } else { - // If an accessory is connected, HAC indicator should not be shown -// indicatorState = EAknIndicatorStateOff; - } - - // SetIndicatorStateL( EAknIndicatorHAC, indicatorState ); - + if( iGanEnabled ) + { + UpdateSignalBarsL(); + iGanEnabled = EFalse; + } + + // The device is in Online Mode + switch ( networkMode ) + { + case ESysApGSM: + SetSignalIndicatorGsmL(); + break; + + case ESysApWCDMA: + SetSignalIndicatorWcdmaL(); + break; + + default: + break; + } + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetSignalIndicatorGsmL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SetSignalIndicatorGsmL() + { + TInt signalGprsIndicatorState( 0 ); + TInt signalIndicatorState( 0 ); + TInt bearerValue = EBearerUnknown; + + if(iSysApConnectionMonitorObserver) + { + bearerValue = iSysApConnectionMonitorObserver->GetBearerValue(); + } + + if(bearerValue == EBearerEdgeGPRS) + { + TInt egprsStatus = StateOfProperty( KUidSystemCategory, KPSUidGprsStatusValue ); + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorGsmL gprsStatus: %d" ), egprsStatus ) ); + iSignalNotify->SetWcdmaStateL( EAknSignalWcdmaIndicatorOff ); + iSignalNotify->SetHsdpaStateL( EAknSignalHsdpaIndicatorOff ); + switch ( egprsStatus ) + { + case EPSGprsContextActive: + signalGprsIndicatorState = EAknSignalEdgeIndicatorContext; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorContext; + iGprsActivated = ETrue; + iGprsSuspended = EFalse; + HandleGprsNotesL(); + break; + + case EPSGprsContextActivating: + signalGprsIndicatorState = EAknSignalEdgeIndicatorEstablishingContext; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorEstablishingContext; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + break; + + case EPSGprsSuspend: + signalGprsIndicatorState = EAknSignalEdgeIndicatorSuspended; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorSuspended; + iGprsSuspended = ETrue; + HandleGprsNotesL(); + break; + + case EPSGprsAttach: + signalGprsIndicatorState = EAknSignalEdgeIndicatorAttached; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorAttached; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + break; + + case EPSGprsMultibleContextActive: + signalGprsIndicatorState = EAknSignalEdgeIndicatorMultipdp; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorMultipdp; + iGprsActivated = ETrue; + iGprsSuspended = EFalse; + HandleGprsNotesL(); + break; + + case EPSGprsUnattached: + default: + if ( iTDEnable ) + { + signalGprsIndicatorState = EAknSignalEdgeIndicatorAvailable; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorAvailable; + } + else + { + signalGprsIndicatorState = EAknSignalEdgeIndicatorOff; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorOff; + } + iGprsSuspendedNoteShown = EFalse; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + iCallActivated = EFalse; + break; + } + } + else + { + + TInt gprsStatus = StateOfProperty( KUidSystemCategory, KPSUidGprsStatusValue ); + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorGsmL gprsStatus: %d" ), gprsStatus ) ); + iSignalNotify->SetWcdmaStateL( EAknSignalWcdmaIndicatorOff ); + iSignalNotify->SetHsdpaStateL( EAknSignalHsdpaIndicatorOff ); + switch ( gprsStatus ) + { + case EPSGprsContextActive: + signalGprsIndicatorState = EAknSignalGprsIndicatorContext; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorContext; + iGprsActivated = ETrue; + iGprsSuspended = EFalse; + HandleGprsNotesL(); + break; + + case EPSGprsContextActivating: + signalGprsIndicatorState = EAknSignalGprsIndicatorEstablishingContext; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorEstablishingContext; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + break; + + case EPSGprsSuspend: + signalGprsIndicatorState = EAknSignalGprsIndicatorSuspended; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorSuspended; + iGprsSuspended = ETrue; + HandleGprsNotesL(); + break; + + case EPSGprsAttach: + signalGprsIndicatorState = EAknSignalGprsIndicatorAttached; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorAttached; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + break; + + case EPSGprsMultibleContextActive: + signalGprsIndicatorState = EAknSignalGprsIndicatorMultipdp; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorMultipdp; + iGprsActivated = ETrue; + iGprsSuspended = EFalse; + HandleGprsNotesL(); + break; + + case EPSGprsUnattached: + default: + if ( iTDEnable ) + { + signalGprsIndicatorState = EAknSignalGprsIndicatorAvailable; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorAvailable; + } + else + { + signalGprsIndicatorState = EAknSignalGprsIndicatorOff; + signalIndicatorState = EAknSignalCommonPacketDataIndicatorOff; + } + + iGprsSuspendedNoteShown = EFalse; + iGprsActivated = EFalse; + iGprsSuspended = EFalse; + iCallActivated = EFalse; + break; + } + } + + if(bearerValue == EBearerEdgeGPRS) //EdgeGPRS connection + { + if( iSysApFeatureManager->Supported( KSysApFeatureIdUseEdgeGPRSIcon ) ) + { + iSignalNotify->SetEdgeStateL( signalGprsIndicatorState ); + } + else + { + iSignalNotify->SetCommonPacketDataStateL( signalIndicatorState ); + } + } + else + { + + if ( iSysApFeatureManager->Supported( KSysApFeatureIdGprs_G_Icon ) ) + { + iSignalNotify->SetGprsStateL( signalGprsIndicatorState ); + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorGsmL SetCommonPacketDataStateL( %d )" ), signalIndicatorState ) ); + iSignalNotify->SetCommonPacketDataStateL( signalIndicatorState ); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetSignalIndicatorWcdmaL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SetSignalIndicatorWcdmaL() + { + TInt wcdmaStatus; + wcdmaStatus = StateOfProperty( KUidSystemCategory, KPSUidWcdmaStatusValue ); + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorWcdmaL: wcdmaStatus: %d" ), wcdmaStatus ) ); + + if ( iSysApFeatureManager->Supported( KSysApFeatureIdGprs_G_Icon ) ) + { + iSignalNotify->SetGprsStateL( EAknSignalGprsIndicatorOff ); } else { - // If HAC is not active, always disable indicator regardless of accessory state - // SetIndicatorStateL( EAknIndicatorHAC, EAknIndicatorStateOff ); - } - - - } - + iSignalNotify->SetCommonPacketDataStateL( EAknSignalCommonPacketDataIndicatorOff ); + } + + TInt signalWcdmaIndicatorState; + TInt signalHsdpaIndicatorState; + + switch ( wcdmaStatus ) + { + case EPSWcdmaContextActive: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorContext; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorContext; + break; + case EPSWcdmaContextActivating: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorEstablishingContext; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorEstablishingContext; + break; + case EPSWcdmaSuspend: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorSuspended; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorSuspended; + break; + case EPSWcdmaAttach: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorAttached; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorAttached; + break; + case EPSWcdmaMultipleContextActive: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorMultipdp; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorMultipdp; + break; + case EPSWcdmaUnattached: + default: + signalWcdmaIndicatorState = EAknSignalWcdmaIndicatorAvailable; + signalHsdpaIndicatorState = EAknSignalHsdpaIndicatorAvailable; + break; + } + + TBool showHsdpaAvailable = EFalse; + + if ( iSysApFeatureManager->Supported( KSysApFeatureIdUseHsdpaAvailableIcon ) ) + { + // HSDPA Resource Availability information is a configurable feature. + showHsdpaAvailable = iSysApEtelConnector->HsdpaAvailable(); + } + + TBool isHsdpaBearer = iSysApEtelConnector->IsBearerHsdpa(); + + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorWcdmaL: isHdpaBearer=%d, showHsdpaAvailable=%d" ), + isHsdpaBearer, showHsdpaAvailable ) ); + + if ( isHsdpaBearer || showHsdpaAvailable ) + { + iSignalNotify->SetWcdmaStateL( EAknSignalWcdmaIndicatorOff ); + iSignalNotify->SetHsdpaStateL( signalHsdpaIndicatorState ); + } + else + { + iSignalNotify->SetHsdpaStateL( EAknSignalHsdpaIndicatorOff ); + iSignalNotify->SetWcdmaStateL( signalWcdmaIndicatorState ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetSignalIndicatorGanL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SetSignalIndicatorGanL() + { + TRACES( RDebug::Print(_L("CSysApAppUi::SetSignalIndicatorGanL: available" ) ) ); + + TInt gprsStatus( 0 ); + gprsStatus = StateOfProperty( KUidSystemCategory, KPSUidGprsStatusValue ); + + TRACES( RDebug::Print( _L("CSysApAppUi::SetSignalIndicatorGanL gprsStatus: %d" ), gprsStatus ) ); + + switch ( gprsStatus ) + { + case EPSGprsContextActive: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorContext ); + break; + + case EPSGprsContextActivating: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorEstablishingContext ); + break; + + case EPSGprsSuspend: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorSuspended ); + break; + + case EPSGprsAttach: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorAttached ); + break; + + case EPSGprsMultibleContextActive: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorMultipdp ); + break; + + case EPSGprsUnattached: + default: + iSignalNotify->SetUmaStateL( EAknSignalUmaIndicatorAvailable ); + break; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleGprsNotesL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleGprsNotesL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleGprsNotesL" ) ) ); + if ( iSysApFeatureManager->Supported( KSysApFeatureIdGPRSNotes ) ) + { + // In WCDMA system, receiving or making calls has no effect to the possibly + // existing PDP contexts i.e. GPRS notes are not needed. + TInt networkMode = StateOfProperty( KPSUidNetworkInfo, KNWTelephonyNetworkMode ); + TRACES( RDebug::Print( _L("CSysApAppUi::HandleGprsNotesL: networkMode %d" ), networkMode ) ); + if ( networkMode != ENWNetworkModeWcdma ) + { + if ( iGprsActivated && iGprsSuspended && iCallActivated && !iGprsSuspendedNoteShown ) + { + StartGprsSuspendedTimer(); + } + else if ( iGprsSuspendedNoteShown && !iGprsSuspended ) + { + iGprsSuspendedNoteShown = EFalse; + iGprsSuspended = EFalse; + iCallActivated = EFalse; + } + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetIndicatorStateL( TInt aIndicator, TInt aState ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetIndicatorStateL( const TInt aIndicator, const TInt aState ) const + { + CAknSmallIndicator* theIndicator = CAknSmallIndicator::NewLC( TUid::Uid( aIndicator ) ); + theIndicator->SetIndicatorStateL( aState ); + CleanupStack::PopAndDestroy(); //theIndicator + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::GoOnlineL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::GoOnlineL( TBool aDoProfileChange ) + { + if ( iSysApFeatureManager->OfflineModeSupported() ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::GoOnlineL: going from off-line into on-line: aDoProfileChange=%d" ), aDoProfileChange ) ); + // in case profile change is not needed, event handling for subsequent profile changes are must be allowed + iHandleNextProfileEvent = !aDoProfileChange; + iActivateBt = iSysApOfflineModeController->MustBtBeActivated(); + + if ( aDoProfileChange ) + { + TRAPD( err, ActivateProfileL( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileBeforeOfflineMode ) ) ); + if ( err == KErrNotFound ) + { + // Activate general profile instead, if previously used profile was not found + TRACES( RDebug::Print( _L("CSysApAppUi::GoOnlineL: Previously used profile was not found, restoring to general profile" ) ) ); + ActivateProfileL(KGeneralProfileId); + } + } + + iSysApOfflineModeController->SwitchFromOfflineToOnlineModeL(); + TRACES( RDebug::Print( _L("CSysApAppUi::GoOnlineL: iActivateBt = %d" ), iActivateBt ) ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::GoOfflineL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::GoOfflineL() + { + if ( iSysApFeatureManager->OfflineModeSupported() ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::GoOfflineL" ) ) ); + iHandleNextProfileEvent = EFalse; + iDeactivateBt = ETrue; + ActivateProfileL( KOfflineModeProfileId ); + iSysApOfflineModeController->SwitchFromOnlineToOfflineModeL(); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SwitchFromOnlineToOfflineModeL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SwitchFromOnlineToOfflineModeL() + { + if ( iSysApFeatureManager->FmTxSupported() ) + { + TFmTxState state = static_cast(StateOfProperty( KPSUidHWRMFmTx, KHWRMFmTxStatus )); + switch ( state ) + { + case EFmTxStateActive: + case EFmTxStateInactive: + case EFmTxStateScanning: + ShowQueryL( ESysApUseFmTxInOfflineQuery ); // show "use fm tx in offline?" if FM TX is on + break; + + default: + // do nothing + break; + } + } + iSysApOfflineModeController->SwitchFromOnlineToOfflineModeL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::OfflineModeChangedL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::OfflineModeChangedL() + { +#ifdef SYSAP_USE_STARTUP_UI_PHASE + // if UI is not ready, don't update indicators + if ( !UiReady() ) + { + return; + } +#endif // SYSAP_USE_STARTUP_UI_PHASE + + // Update network bar indicator + if ( OfflineModeActive() ) + { + UpdateSignalBarsL( KAknSignalOffLineMode ); + } + else + { + UpdateSignalBarsL(); + } + + // Update network mode indicator + SetSignalIndicatorL(); + + // Update HAC indicator + SetHacIndicatorL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::OfflineModeActive() +// ---------------------------------------------------------------------------- +TBool CSysApAppUi::OfflineModeActive() + { + return iSysApOfflineModeController->OfflineModeActive(); + } // ---------------------------------------------------------------------------- // CSysApAppUi::DoNotActivateBt() @@ -1501,23 +2441,56 @@ iSysApOfflineModeController->DoNotActivateBt(); } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::IhfEnabledL -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::IhfEnabledL() - { - TRACES( RDebug::Print( _L("CSysApAppUi::IhfEnabledL(): iSysApAudioRoutingObserver=0x%x"), iSysApAudioRoutingObserver ) ); - - if ( !iSysApAudioRoutingObserver ) // create observer if needed - { - iSysApAudioRoutingObserver = CSysApAudioRoutingObserver::NewL( *this ); - } - - return iSysApAudioRoutingObserver->IhfEnabled(); - } - +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetBtPowerState() +// ---------------------------------------------------------------------------- +TInt CSysApAppUi::SetBtPowerState( TBool aBtState ) + { + if ( iSysApBtController ) + { + return iSysApBtController->SetPowerState( aBtState ); + } + else + { + return KErrNotReady; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::KeyLockState() const +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::KeyLockState() const + { + return iKeyLockEnabled; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DeviceLockState() const +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::DeviceLockState() const + { + return iDeviceLockEnabled; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ChangeFmTxStateL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::ChangeFmTxStateL( TBool aEnable ) + { + // disable fm transmission + CHWRMFmTx* fmtx = CHWRMFmTx::NewLC(); + if ( aEnable ) + { + fmtx->EnableL(); + } + else + { + fmtx->DisableL(); + } + CleanupStack::PopAndDestroy( fmtx ); + } // ---------------------------------------------------------------------------- // CSysApAppUi::SetIhfIndicatorL() @@ -1543,114 +2516,785 @@ if( (callState != EPSCTsyCallStateNone && IhfEnabledL() && !accessoryConnected) || accMode == EAccModeMusicStand ) // Music stand always shows IHF indicator { + SetIndicatorStateL( EAknIndicatorIHFActive, EAknIndicatorStateOn ); + if ( accMode == EAccModeMusicStand ) { - // do nothing + // hide other accessory indicators to prevent displaying of duplicate icons in some cases + // e.g. when wireless hf is connected + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); } } else { - // do nothing - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::EjectStarted() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::EjectStarted( TBool ejectStarted ) - { - TRACES( RDebug::Print( _L( "CSysApAppUi::EjectStarted" ) ) ); - iMMCEjectUsed = ejectStarted; - + SetIndicatorStateL( EAknIndicatorIHFActive, EAknIndicatorStateOff ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleSmsStorageNotificationL( TBool aSimStoreFull ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleSmsStorageNotificationL( TBool aSimStoreFull ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleSmsStorageNotificationL: aSimStoreFull: %d "), aSimStoreFull ) ); + + if ( aSimStoreFull ) + { + HBufC* noteStringBuf; + noteStringBuf = StringLoader::LoadLC( R_QTN_MEMLO_MEMORY_LOW_SIM_MES, iEikonEnv ); + TPtr textBuffer = noteStringBuf->Des(); + iSysApMsgSimMemLowQuery->StartL( textBuffer ); + CleanupStack::PopAndDestroy(); + } + + SetEnvelopeIndicatorL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleNspsRawKeyEventL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleNspsRawKeyEventL() + { +#ifdef __SYSAP_MODULE_TEST + ModuleTestShowUiNoteL( _L("Network wakeup from NSPS") ); +#endif + + if ( iSysApEtelConnector ) + { + iSysApEtelConnector->CommandNetCsWakeupOnNsps(); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleNetworkNspsNotification aNspsStatus:%d, iNsps:%d )" ), aNspsStatus, iNsps ) ); + if( iSysApNspsHandler ) + { + if( aNspsStatus == RMmCustomAPI::ENspsOn ) + { + if( !iNsps ) + { +#ifdef __SYSAP_MODULE_TEST + TRAPD( err, ModuleTestShowUiNoteL( _L("Setting NSPS on") ) ); +#endif + iSysApNspsHandler->SetNspsOn(); + iNsps = ETrue; + } + } + else if( aNspsStatus == RMmCustomAPI::ENspsOff ) + { + if( iNsps ) + { +#ifdef __SYSAP_MODULE_TEST + TRAPD( err, ModuleTestShowUiNoteL( _L("Setting NSPS off") ) ); +#endif + iSysApNspsHandler->SetNspsOff(); + iNsps = EFalse; + } + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleMessageTonePlayingQuitability( TInt aTonePlayingStatus ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleMessageTonePlayingQuitability( TInt aTonePlayingStatus ) + { + if( iSysApNspsHandler ) + { + if( aTonePlayingStatus == ECoreAppUIsStopTonePlaying ) + { + iSysApNspsHandler->SetMessageToneNotPlaying(); + } + else if( aTonePlayingStatus == ECoreAppUIsTonePlaying ) + { + iSysApNspsHandler->SetMessageTonePlaying(); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ActivateKeyeventForwardingForLights() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ActivateKeyeventForwardingForLights(TBool aActivate) + { + if( iSysApNspsHandler ) + { + if ( aActivate ) + { + iSysApNspsHandler->ActivateKeyeventForwardingForLights(); + } + else + { + iSysApNspsHandler->DeActivateKeyeventForwardingForLights(); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::StartShutDownTimerOnAlarmAndChargingStates() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::StartShutDownTimerOnAlarmAndChargingStates() + { + if( !iAlarmOrChargingStateShutdownStarted ) + { + if ( !iTimer ) + { + TRAPD( err, iTimer = CPeriodic::NewL( EPriorityNormal ) ); + + if ( err != KErrNone ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartShutDownTimerOnAlarmAndChargingStates: CPeriodic::NewL failed: %d"), err ) ); + return; + } + } + iTimer->Cancel(); + iTimer->Start( KDelayBeforeShuttingDownInAlarmAndChargingStates, + KDelayBeforeShuttingDownInAlarmAndChargingStates, + TCallBack( DoShutdownOnAlarmStateAfterCallBack, this ) ); + iAlarmOrChargingStateShutdownStarted = ETrue; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoShutdownOnAlarmStateAfterCallBack( TAny* aObject ) +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::DoShutdownOnAlarmStateAfterCallBack( TAny* aObject ) + { + CSysApAppUi* appUi = STATIC_CAST( CSysApAppUi*, aObject ); + + if ( appUi->iTimer ) + { + appUi->iTimer->Cancel(); + } + + TRAP_IGNORE( appUi->DoShutdownL( EFalse, KDummyReason ) ); + + return KErrNone; + } + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// ---------------------------------------------------------------------------- +// CSysApAppUi::StartAnimTiming() +// ---------------------------------------------------------------------------- +void CSysApAppUi::StartAnimTiming() + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartAnimTiming() Start animation timer, time %d ms" ), iAnimationShowingTime ) ); + + if ( !iAnimTimer ) + { + TRAPD( err, iAnimTimer = CPeriodic::NewL( EPriorityNormal ) ); + + if ( err != KErrNone ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartAnimTiming() CPeriodic::NewL failed %d " ), err ) ); + return; + } + } + + iAnimTimer->Start( + iAnimationShowingTime*KCoefficientToMakeMicroToMilliSeconds, + iAnimationShowingTime*KCoefficientToMakeMicroToMilliSeconds, + TCallBack( DoStopAnimTiming, this ) ); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoStopAnimTiming( TAny* aObject ) +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::DoStopAnimTiming( TAny* aObject ) + { + TInt err(KErrNone); + CSysApAppUi* appUi = STATIC_CAST( CSysApAppUi*, aObject ); + + // This method could theoretically be called by two timers (iAnimTimer and one in CSysApShutdownAnimation), + // so a check is needed to prevent multiple executions. + if ( !(appUi->iShutdownContinued) ) + { + appUi->iShutdownContinued = ETrue; + + TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() Animation timer completed or animation skipped" ) ) ); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( appUi->iAnimTimer ) + { + appUi->iAnimTimer->Cancel(); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + if ( appUi->iTimer ) + { + appUi->iTimer->Cancel(); + } + + TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() Call ContinueShutdown(...)" ) ) ); + appUi->ContinueShutdown(); + TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() end") ) ); + } + + return err; + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::StartGprsSuspendedTimer() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::StartGprsSuspendedTimer() + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartGprsSuspendedTimer()") ) ); + if( !iAlarmOrChargingStateShutdownStarted ) // not relevant if shutting down + { + if ( !iTimer ) + { + TRAPD( err, iTimer = CPeriodic::NewL( EPriorityNormal ) ); + + if ( err != KErrNone ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartGprsSuspendedTimer: CPeriodic::NewL failed: %d"), err ) ); + return; + } + } + + iTimer->Cancel(); + iTimer->Start( KDelayBeforeShowingGprsSuspendedNote, + KDelayBeforeShowingGprsSuspendedNote, + TCallBack( ShowGprsSuspendedNoteAfterCallBack, this ) ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowGprsSuspendedNoteAfterCallBack( TAny* aObject ) +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::ShowGprsSuspendedNoteAfterCallBack( TAny* aObject ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowGprsSuspendedNoteAfterCallBack") ) ); + + CSysApAppUi* appUi = STATIC_CAST( CSysApAppUi*, aObject ); + + if ( appUi->iTimer ) + { + appUi->iTimer->Cancel(); + } + + // Note is needed if call is still active and used network is not WCDMA + TInt callType = appUi->StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallType ); + TInt networkMode = appUi->StateOfProperty( KPSUidNetworkInfo, KNWTelephonyNetworkMode ); + TRACES( RDebug::Print( + _L("CSysApAppUi::ShowGprsSuspendedNoteAfterCallBack: callType %d networkMode %d"), + callType, networkMode ) ); + if ( EPSCTsyCallTypeCSVoice == callType && ENWNetworkModeWcdma != networkMode ) + { + appUi->iGprsSuspendedNoteShown = ETrue; + } + return KErrNone; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleAccessoryConnectedL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleAccessoryConnectedL( TAccMode aAccessoryState ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryConnectedL( aAccessoryState: %d ) "), aAccessoryState ) ); + + if ( aAccessoryState == EAccModeWirelessHeadset || + aAccessoryState == EAccModeWiredHeadset || + aAccessoryState == EAccModeHeadphones ) + { + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if ( aAccessoryState == EAccModeLoopset ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if ( aAccessoryState == EAccModeTextDevice ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if ( aAccessoryState == EAccModeWirelessCarKit || aAccessoryState == EAccModeWiredCarKit ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if ( aAccessoryState == EAccModeTVOut ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOn ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + } + else if (aAccessoryState == EAccModeHDMI ) + { + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOn ); + } + + TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); + TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryConnectedL: swState: %d"), swState ) ); + + if( UiReady() || swState == ESwStateSecurityCheck ) + { + iSysApLightsController->AccessoryConnectedL( ETrue ); + } + + if ( ( ! iIgnoreAccessorySpecificProfileChanges ) && ( ! iSysApOfflineModeController->OfflineModeActive() ) ) + { + TInt profileId( 0 ); + TInt currentProfile( 0 ); + currentProfile = ActiveProfileId(); + + if ( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected ) < 1 ) + // accessory not connected already + { + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected, 1 ); + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApActiveProfileBeforeAccessoryConnected, currentProfile ); + } + + if ( aAccessoryState == EAccModeWirelessCarKit ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApWirelessCarkit ); + } + else if( aAccessoryState == EAccModeWiredHeadset || + aAccessoryState == EAccModeWirelessHeadset ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApHeadset ); + } + else if( aAccessoryState == EAccModeLoopset ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApLoopset ); + } + else if( aAccessoryState == EAccModeTextDevice ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApTty ); + } + else if( aAccessoryState == EAccModeTVOut || aAccessoryState == EAccModeHDMI ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApTvOut ); + } + else if( aAccessoryState == EAccModeHeadphones ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApHeadphones ); + } + else if ( aAccessoryState == EAccModeWiredCarKit ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApCarkit ); + } + else if ( aAccessoryState == EAccModeMusicStand ) + { + profileId = iSysApCenRepController->ProfileIdForSelectedAccessory( ESysApMusicStand ); + } + + // Carkit and music stand have also light on permanently option that needs to be checked + if( aAccessoryState == EAccModeWiredCarKit || aAccessoryState == EAccModeMusicStand ) + { + // When device is placed on a handsfree cradle, keyguard must be disabled (unless device is locked) + // Note: It is assumed that if carkit/music stand is connected, the phone is in the cradle. + if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCall || iKeyLockOnBeforeAlarm ) + { + iKeyLockOnBeforeCradle = ETrue; + + if ( iKeyLockEnabled && !iDeviceLockEnabled ) + { + KeyLock().DisableWithoutNote(); + } + } + } + + if( profileId != KActiveProfile ) + { + /*-1 because the first item in Accessory default profiles shared data values + is KActiveProfile and that must be subtracted from the index of profile to be activated*/ + + profileId -= 1; + + TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryConnectedL: current profile: %d, accessory profile: %d" ), + currentProfile, profileId ) ); + + if ( profileId != currentProfile ) + { + iAccessoryJustConnected = ETrue; + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileUpdateRequired, 1 ); + ActivateProfileL( profileId ); + } + } + } + SetIhfIndicatorL(); + SetHacIndicatorL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleAccessoryDisconnectedL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleAccessoryDisconnectedL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryDisconnectedL()" ) ) ); + + + TAccMode accessoryState(EAccModeHandPortable); + if ( iSysApAccessoryObserver ) + { + accessoryState = iSysApAccessoryObserver->GetAccessoryMode(); + } + + if ( accessoryState == EAccModeHandPortable ) + { + SetIndicatorStateL( EAknIndicatorTvOut, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorLoopset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadset, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorTTY, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHeadsetUnavailable, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorCarkit, EAknIndicatorStateOff ); + SetIndicatorStateL( EAknIndicatorHDMI, EAknIndicatorStateOff ); + + iSysApLightsController->AccessoryConnectedL( EFalse ); + + if ( ! iIgnoreAccessorySpecificProfileChanges ) + { + TInt activeProfile ( ActiveProfileId() ); + + TInt activeProfileBeforeConnectingAccessory( + iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApActiveProfileBeforeAccessoryConnected ) + ); + if ( activeProfileBeforeConnectingAccessory < 0 ) // error + { + activeProfileBeforeConnectingAccessory = 0; // General Profile + } + TRACES( RDebug::Print( _L("CSysApAppUi::HandleAccessoryDisconnectedL: active profile now: %d, active profile before: %d," ), + activeProfile, activeProfileBeforeConnectingAccessory ) ); + + if ( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileUpdateRequired ) == 1 ) + { + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileUpdateRequired, 0 ); + if ( activeProfile != activeProfileBeforeConnectingAccessory && ! iSysApOfflineModeController->OfflineModeActive() ) + { + ActivateProfileL( activeProfileBeforeConnectingAccessory ); + } + } + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected, 0 ); + } + } + + SetIhfIndicatorL(); + SetHacIndicatorL(); + + // If lock disabled because of accessory, reactivate it, unless phone call or alarm is ongoing + if ( iKeyLockOnBeforeCradle ) + { + iKeyLockOnBeforeCradle = EFalse; + if ( !iKeyLockOnBeforeCall && !iKeyLockOnBeforeAlarm ) + { + if ( !iDeviceLockEnabled ) + { + KeyLock().EnableKeyLock(); + } + else + { + KeyLock().EnableAutoLockEmulation(); + } + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleAccessoryProfileInStartupL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleAccessoryProfileInStartupL() + { + TRACES( RDebug::Print( _L( "CSysApAppUi::HandleAccessoryProfileInStartupL" ) ) ); + + if ( !iSysApOfflineModeController->OfflineModeActive() ) + { + iIgnoreAccessorySpecificProfileChanges = EFalse; + TBool accessoryConnectedInShutdown( EFalse ); + TInt accessoryTemp( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected ) ); + if ( accessoryTemp == 1 ) + { + accessoryConnectedInShutdown = ETrue; + } + + TBool accessoryConnectedNow ( EFalse ); + + TAccMode accessoryState(EAccModeHandPortable); + if ( iSysApAccessoryObserver ) + { + accessoryState = iSysApAccessoryObserver->GetAccessoryMode(); + } + + if ( accessoryState != EAccModeHandPortable ) + { + accessoryConnectedNow = ETrue; + } + TRACES( RDebug::Print( _L( "CSysApAppUi::HandleAccessoryProfileInStartupL: accessoryConnectedInShutdown: %d, accessoryConnectedNow: %d" ), + accessoryConnectedInShutdown, accessoryConnectedNow ) ); + + if ( accessoryConnectedInShutdown && !accessoryConnectedNow ) + { + HandleAccessoryDisconnectedL(); + } + else if ( !accessoryConnectedInShutdown && accessoryConnectedNow ) + { + HandleAccessoryConnectedL( accessoryState ); + } + else if ( !accessoryConnectedNow ) + { + TInt activeProfile ( ActiveProfileId() ); + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApActiveProfileBeforeAccessoryConnected, activeProfile ); + } + } + } + #ifndef RD_MULTIPLE_DRIVE - iFileManagerCloseDisabled = ejectStarted; + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ResolveUidFromThread() +// ---------------------------------------------------------------------------- +TInt32 CSysApAppUi::ResolveUidFromThread( TUint aThreadId ) const + { + TInt resolvedUid = 0; + + RThread appThread; + TInt err = appThread.Open( aThreadId ); + + if ( err == KErrNone ) + { + resolvedUid = appThread.SecureId().iId; + } + + appThread.Close(); + + TRACES( RDebug::Print( _L("CSysApAppUi::ResolveUidFromThread: err=%d, aThreadId=%d, resolvedUid=0x%x"), + err, aThreadId, resolvedUid ) ); + + return resolvedUid; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CloseUIAppsInHotSwapL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::CloseUIAppsInHotSwapL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL") ) ); + + CArrayFixFlat* wgIds=new(ELeave) CArrayFixFlat(4); + CleanupStack::PushL(wgIds); + User::LeaveIfError(iCoeEnv->WsSession().WindowGroupList(0, wgIds)); + TInt lastEntry=wgIds->Count()-1; + TRACES( RDebug::Print( _L( "CSysApAppUi::CloseUIAppsInHotSwapL: Found %d UI applications running." ), lastEntry + 1 ) ); + TInt numberOfApplicationsToShutDown( 0 ); + iApplicationScanningRoundNumber++; + + for ( TInt i=lastEntry; i>=0; i--) + { + CApaWindowGroupName* doomedApp = CApaWindowGroupName::NewLC(iCoeEnv->WsSession(),wgIds->At(i)); + + TBool systemApp = doomedApp->IsSystem(); + TBool hiddenApp = doomedApp->Hidden(); + + if ( systemApp || hiddenApp ) + { + TRACES ( + TPtrC caption=doomedApp->Caption(); + RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Privileged app \"%S\" UID 0x%x will not be closed, system: %d, hidden: %d" ), + &caption, + doomedApp->AppUid().iUid, + systemApp, + hiddenApp); + ); + } + else if ( ( iFileManagerCloseDisabled && doomedApp->AppUid().iUid == KFileManagerAppUid ) || + doomedApp->AppUid().iUid == KAutolockAppUid ) + { + // An additional failure protection: Autolock must not be closed in any circumstances + TRACES ( + TPtrC caption=doomedApp->Caption(); + RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Privileged app \"%S\" will not be closed, UID 0x%x"), + &caption, + doomedApp->AppUid().iUid ); + ); + } + else if ( doomedApp->AppUid().iUid == 0 && !iTimeToKill ) + { +#ifdef _DEBUG + TApaTask task(iCoeEnv->WsSession()); + task.SetWgId(wgIds->At(i)); + TUint threadId = (TUint)(task.ThreadId()); + TInt32 uid = ResolveUidFromThread( threadId ); + // CApaWindowGroupName stores the application UID, and in early application startup state AppUid()-method returns 0 + // In order not to accidentally close application that hasn't yet its window group properly set up, decicision whether + // to close the application is postponed, in maximum to the end of the waiting period. + TRACES ( RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Unknown app will not be closed yet, threadId=%d, UID 0x%x, size=%d"), + threadId, uid, sizeof(TApaTask) ) ); +#endif // _DEBUG + numberOfApplicationsToShutDown++; // wait note must be displayed + } + else + { + numberOfApplicationsToShutDown++; + TApaTask* task = new (ELeave) TApaTask(iCoeEnv->WsSession()); + CleanupDeletePushL(task); + task->SetWgId(wgIds->At(i)); + + TRACES ( + const TDesC& caption = doomedApp->Caption(); + const TDesC& docname = doomedApp->DocName(); + const TDesC& wgname = doomedApp->WindowGroupName(); + TUid uid = doomedApp->AppUid(); + RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Closing app \"%S\" (ThreadId %d, WgId %d, UID 0x%X); Docname: %S, WGName : %S"), + &caption, + (TUint)(task->ThreadId()), + wgIds->At(i), + uid.iUid, + &docname, + &wgname); + ); + + ResolveUidFromThread( (TUint)(task->ThreadId()) ); + + if ( iApplicationScanningRoundNumber == 1 ) + { + task->EndTask(); // applications are kindly requested to close themselves on the first round + } + else if ( iTimeToKill ) + { + TBool doKill = ETrue; + + // final check, window group may still be uninitialized so use thread id for checking UID + if ( doomedApp->AppUid().iUid == 0 ) + { + if ( ResolveUidFromThread( (TUint)(task->ThreadId()) ) == KAutolockAppUid ) + { + doKill = EFalse; + } + } + + if ( doKill ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Killing app \"%S\""), &caption ) ); + task->KillTask(); // used after timeout on the last round + } + } + + CleanupStack::PopAndDestroy(); // task + } + CleanupStack::PopAndDestroy(); // doomedApp + } + CleanupStack::PopAndDestroy(); // wgIds + + if ( numberOfApplicationsToShutDown > 0 && iApplicationScanningRoundNumber <= KMaxExitTimeInHotSwap ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::CloseUIAppsInHotSwapL: Show wait note, unless already showing") ) ); + if ( !iSysApWaitNote ) + { + HBufC* noteStringBuf = StringLoader::LoadLC( R_QTN_MEMC_WAIT_EJECT, iEikonEnv ); + iSysApWaitNote = CSysApWaitNote::NewL( iSysApFeatureManager->CoverDisplaySupported() ); + iSysApWaitNote->ShowNoteL( EClosingApplicationsNote, noteStringBuf ); + CleanupStack::PopAndDestroy(); + } + + if ( iApplicationScanningRoundNumber >= KMaxExitTimeInHotSwap ) + { + iTimeToKill = ETrue; + } + + if ( !iSysApTimer ) + { + iSysApTimer = new ( ELeave ) CSysApTimer( *this ); + } + + iSysApTimer->ActivateTimerL( KApplicationScanningInterval ); + } + else + { + iFileManagerCloseDisabled = EFalse; + CompleteAppsShuttingInHotSwapL(); + } + } + #endif // RD_MULTIPLE_DRIVE -} - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoLightsTimeoutChangedL -// ---------------------------------------------------------------------------- -void CSysApAppUi::DoLightsTimeoutChangedL( const TInt aTimeout ) - { - iSysApLightsController->DoLightsTimeoutChangedL( aTimeout ); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoSwStateNormalConstructionL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::DoSwStateNormalConstructionL() - { - // Let's ensure that the lights will remain on for 15 secs after sw state normal - User::ResetInactivityTime(); - - TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL : START" ) ) ); - - // In case of unexpected reset (e.g. hidden boot) the keylock must be enabled silently. Locking is done - // prior to time-consuming initializations, because otherwise UI is in unlocked state for a few seconds. - if ( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive ) == 1 ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL: enabling keylock") ) ); - iKeyguardController->EnableKeyguard(ETrue); - } - - // Initiate bearer change observation -// iSysApConnectionMonitorObserver = CSysApConnectionMonitorObserver::NewL( *this ); - - TRACES( RDebug::Print( _L("SysAp: trying CSystemLock::NewL" ) ) ); - iSysApSystemLock = CSystemLock::NewL(); - - - if ( iSysApFeatureManager->Supported( KSysApFeatureIdBatteryInfoPopup ) ) - { - iSysApBatteryInfoController = CSysApBatteryInfoController::NewL( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsConf, - KCoreAppUIsBatteryInformationLowThreshold ) ); - } - TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL : END" ) ) ); - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoSimChangedFromPreviousBootL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::DoSimChangedFromPreviousBootL() - { - TRACES( RDebug::Print( _L("CSysApAppUi::DoSimChangedFromPreviousBootL: iSimChangedDone=%d" ), iSimChangedDone ) ); - - if ( !iSimChangedDone ) - { - iSimChangedDone = ETrue; - CSysApSimChanged* simChanged = CSysApSimChanged::NewL( *this, iEikonEnv->FsSession() ); - CleanupStack::PushL( simChanged ); - simChanged->HandleSimChangedL(); - CleanupStack::PopAndDestroy( simChanged ); - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::IgnoreZeroNetworkBarNotifications -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::IgnoreZeroNetworkBarNotifications(TBool aIgnore) - { - iIgnoreZeroNetworkBarNotifications = aIgnore; - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::SwitchFromOnlineToOfflineModeL() -// ---------------------------------------------------------------------------- -void CSysApAppUi::SwitchFromOnlineToOfflineModeL() - { - iSysApOfflineModeController->SwitchFromOnlineToOfflineModeL(); - } - + +// ---------------------------------------------------------------------------- +// CSysApAppUi::TimerExpiredL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::TimerExpiredL() + { +#ifndef RD_MULTIPLE_DRIVE + CloseUIAppsInHotSwapL(); +#endif // RD_MULTIPLE_DRIVE + } + +#ifndef RD_MULTIPLE_DRIVE +// ---------------------------------------------------------------------------- +// CSysApAppUi::CompleteAppsShuttingInHotSwapL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::CompleteAppsShuttingInHotSwapL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::CompleteAppsShuttingInHotSwapL iMMCEjectUsed=%d, iMMCInserted=%d"), iMMCEjectUsed, iMMCInserted ) ); + CancelWaitNote(); + + if ( iMMCEjectUsed ) // From Powerkey Menu + { + DismountMMC(); + TRACES( RDebug::Print( _L( "CSysApAppUi::CompleteAppsShuttingInHotSwapL: Show note: Remove MMC and press OK...." ) ) ); + ShowQueryL( ESysApRemoveMmcNote ); + } + else if ( !iMMCInserted ) // The MMC might have been already re-mounted, that's why !iMMCInserted + { + ShowMMCDismountedDialogL(); + } + } +#endif // RD_MULTIPLE_DRIVE // ---------------------------------------------------------------------------- // CSysApAppUi::InitCloseSimApplicationsL() @@ -1662,7 +3306,6 @@ CloseSimApplicationsL(); } - // ---------------------------------------------------------------------------- // CSysApAppUi::CloseSimApplicationsL() // ---------------------------------------------------------------------------- @@ -1724,7 +3367,6 @@ } } - // ---------------------------------------------------------------------------- // CSysApAppUi::DoCloseSimApplicationsAfterCallBack // ---------------------------------------------------------------------------- @@ -1742,72 +3384,6 @@ return KErrNone; } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::NotifyPowerSaveModeL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::NotifyPowerSaveModeL( TSysApPsmStatus aStatus ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::NotifyPowerSaveModeL aStatus: %d"), aStatus ) ); - - // cancel any active power saving query because user has changed the state manually - // CancelQuery( ESysApBattChargingPowerSavingQuery ); - // CancelQuery( ESysApBattLowPowerSavingQuery ); - // will take care in next sub - - switch ( aStatus ) - { - case MSysApPsmControllerNotifyCallback::EPsmActivationComplete: - UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); - iVariantAccState = CHbSymbianVariant::NewL(&KPsm, CHbSymbianVariant::EDes); - if (!iHbIndicatorSymbian->Activate(KPsmPlugin,iVariantAccState)) - { - int error = iHbIndicatorSymbian->Error(); - //use the errorcode... - } - break; - - case MSysApPsmControllerNotifyCallback::EPsmDeactivationComplete: - UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); - if (!iHbIndicatorSymbian->Deactivate(KPsmPlugin)) - { - int error = iHbIndicatorSymbian->Error(); - //use the errorcode... - } - break; - - case MSysApPsmControllerNotifyCallback::EPsmActivationFailed: - ShowUiNoteL( ECannotActivatePowerSaveMode ); - break; - - case MSysApPsmControllerNotifyCallback::EPsmDeactivationFailed: - ShowUiNoteL( ECannotDeactivatePowerSaveMode ); - break; - - default: - break; - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowAlarmIndicatorL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ShowAlarmIndicatorL( TBool aShowIndicator ) - { - if ( aShowIndicator) - { - // do nothing - } - else - { - // do nothing - } - } - - // ---------------------------------------------------------------------------- // CSysApAppUi::AlertUiAlertingL( const TBool aAlerting ) // ---------------------------------------------------------------------------- @@ -1829,55 +3405,6 @@ iSysApLightsController->AlarmOccuredL( aAlerting ); } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleForcedLightsVTRequireL( const TInt aLightParameter ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const - { - iSysApLightsController->HandleForcedLightsVTRequireL( aLightsParameter ); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleForcedLightsSSRequireL( const TInt aLightParameter ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const - { - iSysApLightsController->HandleForcedLightsSSRequireL( aLightsParameter ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleForcedLightsATCRequireL( const TInt aLightParameter ) -// ---------------------------------------------------------------------------- -void CSysApAppUi::HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const - { - iSysApLightsController->HandleForcedLightsATCRequireL( aLightsParameter ); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleLightsRequireL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleLightsRequireL() const - { - iSysApLightsController->HandleLightsRequireL(); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleRawKeyEventLightsRequireL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleRawKeyEventLightsRequireL() const - { - iSysApLightsController->HandleRawKeyEventLightsRequireL(); - } - - // ---------------------------------------------------------------------------- // CSysApAppUi::AlertUiKeyLockOff( const TBool aKeyLockOff ) // ---------------------------------------------------------------------------- @@ -1897,7 +3424,7 @@ iKeyLockOnBeforeAlarm = ETrue; } } - iKeyguardController->DisableKeyguard(EFalse); + KeyLock().DisableWithoutNote(); } else { @@ -1908,33 +3435,61 @@ TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); if ( callState == EPSCTsyCallStateNone || callState == EPSCTsyCallStateConnected ) { - iKeyguardController->EnableKeyguard(EFalse); + KeyLock().EnableAutoLockEmulation(); } } else if ( iKeyLockOnBeforeAlarm && !iKeyLockOnBeforeCradle && !iKeyLockOnBeforeCall ) { - iKeyguardController->EnableKeyguard(ETrue); + KeyLock().EnableKeyLock(); } iKeyLockOnBeforeAlarm = EFalse; } } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::DoNotEnableKeylock() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::DoNotEnableKeylock() - { - if ( !iKeyLockOnBeforeCradle ) - { - iShowkeypadActivatedNoteAfterSoftReject = iKeyLockOnBeforeCall; - } - - iKeyLockOnBeforeCall = EFalse; - } - - +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleLightsRequireL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleLightsRequireL() const + { + iSysApLightsController->HandleLightsRequireL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleRawKeyEventLightsRequireL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleRawKeyEventLightsRequireL() const + { + iSysApLightsController->HandleRawKeyEventLightsRequireL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleForcedLightsVTRequireL( const TInt aLightParameter ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleForcedLightsVTRequireL( const TInt aLightsParameter ) const + { + iSysApLightsController->HandleForcedLightsVTRequireL( aLightsParameter ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleForcedLightsSSRequireL( const TInt aLightParameter ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleForcedLightsSSRequireL( const TInt aLightsParameter ) const + { + iSysApLightsController->HandleForcedLightsSSRequireL( aLightsParameter ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleForcedLightsATCRequireL( const TInt aLightParameter ) +// ---------------------------------------------------------------------------- +void CSysApAppUi::HandleForcedLightsATCRequireL( const TInt aLightsParameter ) const + { + iSysApLightsController->HandleForcedLightsATCRequireL( aLightsParameter ); + } + // ---------------------------------------------------------------------------- // CSysApAppUi::SwitchLightsOnSoftRejectL() // ---------------------------------------------------------------------------- @@ -1943,6 +3498,638 @@ iSysApLightsController->SwitchLightsOnSoftRejectL(); } +// ---------------------------------------------------------------------------- +// CSysApAppUi::StateOfProperty() +// ---------------------------------------------------------------------------- +TInt CSysApAppUi::StateOfProperty( const TUid& aCategory, const TUint aKey ) const + { + TInt err( KErrNone ); + TInt value( 0 ); + err = RProperty::Get( aCategory, aKey, value ); + if ( err ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::StateOfProperty. RProperty::Get: err=%d"), err ) ); + return err; + } + return value; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::BluetoothPowerMode() +// ---------------------------------------------------------------------------- +TInt CSysApAppUi::BluetoothPowerMode() const + { + return iSysApCenRepBtObserver->BluetoothPowerMode(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ActivateProfileL( const TInt aProfileId ) const +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ActivateProfileL( const TInt aProfileId ) const + { + TRACES( RDebug::Print( _L("CSysApAppUi::ActivateProfile aProfileId: %d"), aProfileId ) ); + //No use of returning the Profile error code since it only tells if the activation was succesfull or not. + iProfileEngine->SetActiveProfileL( aProfileId ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ActivateOnlineProfileL() const +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ActivateOnlineProfileL() const + { + ActivateProfileL( iProfileToBeActivated ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ActiveProfileNameL( TPtr aProfileName ) const +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ActiveProfileNameL( TPtr aProfileName ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::ActiveProfileNameL START") ) ); + MProfile* profile = iProfileEngine->ActiveProfileL(); + const MProfileName& mProfileName = profile->ProfileName(); + aProfileName = mProfileName.Name(); + profile->Release(); + TRACES( RDebug::Print( _L("CSysApAppUi::ActiveProfileNameL END") ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CheckSilentModeL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::CheckSilentModeL() + { + TBool isSilent( EFalse ); + MProfile* profile = iProfileEngine->ActiveProfileL(); + isSilent = profile->IsSilent(); + profile->Release(); + if ( isSilent ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::CheckSilentModeL: active profile is SILENT") ) ); + iSysApLightsController->SetSilentModeOn( ETrue ); + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::CheckSilentModeL: active profile is NOT SILENT") ) ); + iSysApLightsController->SetSilentModeOn( EFalse ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleProfileChangedL( const TInt aValue ) +// ---------------------------------------------------------------------------- +void CSysApAppUi::HandleProfileChangedL( const TInt aNewProfileId ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleProfileChangedL: aNewProfileId=%d"), aNewProfileId ) ); + CheckSilentModeL(); + if ( iHandleNextProfileEvent ) + { + if ( iAccessoryJustConnected ) + { + iAccessoryJustConnected = EFalse; + } + else + { + // if the user delibarately changes profiles, the selected profile will + // remain active after disconnecting an accessory. + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileUpdateRequired, 0 ); + } + + // Added as a part of REQ 415-6750 : Conditional UI-note for "Activated profile" + TInt noNeedToShowTheNote = 0; // if True, then note should not be shown + TInt err = KErrNone; + + err = RProperty::Get( KPSUidCoreApplicationUIs, KCoreAppUIsProfileActivatedNote, + noNeedToShowTheNote ); + /* + If there occured an error, it is likely caused by the non-existing property. + So trying to set it only if no error occured for maintaining the default behavior. + */ + if( KErrNone == err ) + { + TInt error = RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsProfileActivatedNote, + ECoreAppUIsProfileActivatedNoteNotShown ); + } + + if(!noNeedToShowTheNote) // The value doesn't deny the showing, then... + { + ShowProfileNoteL(); + } + } + + if ( aNewProfileId != KOfflineModeProfileId ) + { + iActiveProfileBeforeOfflineMode = aNewProfileId; + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApProfileBeforeOfflineMode, aNewProfileId ); + } + + if ( aNewProfileId == KOfflineModeProfileId && ! iSysApOfflineModeController->OfflineModeActive() ) + { + if ( BtSapEnabled() ) + { + // Choosing "Offline Mode" will disconnect BT SAP + // SwitchFromOnlineToOfflineModeL() will be called from CSysApBtSapController + iSysApBtSapController->SwitchingToOffline(); + iSysApBtSapController->Disconnect(); + } + else + { + SwitchFromOnlineToOfflineModeL(); + } + } + else if ( aNewProfileId != KOfflineModeProfileId && iSysApOfflineModeController->OfflineModeActive() ) + { + if ( BtSapEnabled() ) + { + iSysApOfflineModeController->DoNotActivateRF(); // Will be activated after BT SAP disconnection + } + iSysApOfflineModeController->SwitchFromOfflineToOnlineModeL(); + } + iHandleNextProfileEvent = ETrue; + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::RestoreProfileL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::RestoreProfileL( const TBool aOffline ) + { + iHandleNextProfileEvent = EFalse; + if ( aOffline ) + { + ActivateProfileL( KOfflineModeProfileId ); + } + else + { + ActivateProfileL( iActiveProfileBeforeOfflineMode ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ActiveProfileId() +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::ActiveProfileId() + { + return iProfileEngine->ActiveProfileId(); + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::AddMmcMenuItemsL() +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::AddMmcMenuItemsL( CDesCArray*& aProfileNameCDesCArray, RArray& aItemIdArray, + TInt& aPowerMenuItemIndex ) + { + TInt propertyValue( StateOfProperty( KPSUidUsbWatcher, + KUsbWatcherSelectedPersonality ) ); + + HBufC* itemStringBuf; +#ifndef RD_MULTIPLE_DRIVE + iPowerkeyMenuEjectSelection = KErrAccessDenied; + if ( !IsEncryptionOperationOngoingL() ) + { + if ( iSysApFeatureManager->MmcHotSwapSupported() && + iMMCInserted && + iSysApFeatureManager->EjectRequiredInPowerMenu() && + propertyValue != KUsbPersonalityIdMS ) + { + iPowerkeyMenuEjectShown = ETrue; + TRACES( RDebug::Print(_L("CSysApAppUi::AddMmcMenuItemsL: adding \"Eject\"" ) ) ); + itemStringBuf = StringLoader::LoadLC( R_QTN_PWRC_EJECT_MMC, iEikonEnv ); + aProfileNameCDesCArray->AppendL( itemStringBuf->Des() ); + CleanupStack::PopAndDestroy(); // itemStringBuf + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + aItemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemEjectMMC); + } + iPowerkeyMenuEjectShown = ETrue; + iPowerkeyMenuEjectSelection = aPowerMenuItemIndex; + aPowerMenuItemIndex++; + } + } + +#else // RD_MULTIPLE_DRIVE + iPowerkeyMenuEjectSelectionBase = KErrAccessDenied; + if ( !IsEncryptionOperationOngoingL() ) + { + if ( iSysApFeatureManager->MmcHotSwapSupported() + && iSysApFeatureManager->EjectRequiredInPowerMenu() + && propertyValue != KUsbPersonalityIdMS ) + { + // Reset old eject status and dialog + iSysApDriveList->ResetDrivesToEject(); + if ( iSysApConfirmationQuery ) + { + if ( iSysApConfirmationQuery->CurrentQuery() == ESysApEjectMmcQuery ) + { + iSysApConfirmationQuery->Cancel(); + } + } + + // Append memory cards for eject selection + TInt count( iInsertedMemoryCards.Count() ); + TInt corruptedMedia = 0; + for ( TInt i( 0 ); i < count; ++i ) + { + TVolumeInfo info; + TInt err = iEikonEnv->FsSession().Volume(info, iInsertedMemoryCards[ i ].iDrive); + TRACES( RDebug::Print(_L("CSysApAppUi::AddMmcMenuItemsL: corrupted media, iDrive (%d) Error: %d" ),iInsertedMemoryCards[ i ].iDrive, err ) ); + if(err != KErrNone) + { + corruptedMedia++; + continue; + } + itemStringBuf = iSysApDriveList->GetFormattedDriveNameLC( + iInsertedMemoryCards[ i ].iDrive, + R_QTN_PWRC_EJECT_MEMORY_STORAGE ); + aProfileNameCDesCArray->AppendL( *itemStringBuf ); + CleanupStack::PopAndDestroy( itemStringBuf ); + + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + aItemIdArray.AppendL( + SecondaryDisplay::EPwrMenuItemEjectItemBase + i ); + } + } + if ( (count-corruptedMedia) > 0 ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::AddMmcMenuItemsL: added \"Eject\"" ) ) ); + iPowerkeyMenuEjectShown = ETrue; + iPowerkeyMenuEjectSelectionBase = aPowerMenuItemIndex; + aPowerMenuItemIndex += (count-corruptedMedia); + } + } + } +#endif // RD_MULTIPLE_DRIVE + } + + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowPowerKeyPopUpMenuL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowPowerKeyPopUpMenuL() + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL iPowerKeyPopupMenuActive: %d" ), + iPowerKeyPopupMenuActive ) ); + + if ( !iPowerKeyPopupMenuActive && !iDisablePowerkeyMenu + && iSysApPowerKeyMenuObserver ) // normal state construction has been executed + { + iPowerKeyPopupMenuDismissed = EFalse; + iPowerkeyMenuPowerOffShown = EFalse; + CancelGlobalListQuery(); + + iGlobalListQuery = CAknGlobalListQuery::NewL(); + + iSysApPowerKeyMenuObserver->Cancel(); + + CDesCArray* profileNameCDesCArray; // Array for Powerkey Menu items + + RArray itemIdArray; // needed for cover UI + CleanupClosePushL(itemIdArray); + + // make sure old profile names array is clean + delete iProfileNamesArray; + iProfileNamesArray = NULL; + + // Must pop iProfileNamesArray here as cannot leave trap harness with uneven push/pop count. + // This is because profileEngine doesn't provide non-LC version of ProfilesNamesArrayLC + TRAPD( err, + iProfileNamesArray = iProfileEngine->ProfilesNamesArrayLC(); + CleanupStack::Pop(); + ); + + if ( err != KErrNone ) + { + // creating menu failed, return (i.e. just don't show the menu) + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL iProfileEngine->ProfilesNamesArrayLC() ERROR: %d" ), err ) ); + iNumberOfProfileNamesInPowerKeyMenu = 0; + } + else + { + iNumberOfProfileNamesInPowerKeyMenu = iProfileNamesArray->MdcaCount(); + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL iNumberOfProfileNamesInPowerKeyMenu: %d" ), + iNumberOfProfileNamesInPowerKeyMenu ) ); + } + + if ( BtSapEnabled() ) + { + profileNameCDesCArray = new( ELeave ) CDesCArrayFlat( iNumberOfProfileNamesInPowerKeyMenu + 4 ); + } + else + { + profileNameCDesCArray = new( ELeave ) CDesCArrayFlat( iNumberOfProfileNamesInPowerKeyMenu + 3 ); + } + + CleanupStack::PushL( profileNameCDesCArray ); + profileNameCDesCArray->Reset(); + HBufC* itemStringBuf; + + TInt powerMenuItemIndex = 0; + + // "Switch off" menu item + if ( !IsEncryptionOperationOngoingL() ) + { + itemStringBuf = StringLoader::LoadLC( R_QTN_PWRC_SWITCH_OFF, iEikonEnv ); + profileNameCDesCArray->InsertL( 0, itemStringBuf->Des() ); + CleanupStack::PopAndDestroy(); // itemStringBuf + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + itemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemSwitchOff); + } + iPowerkeyMenuPowerOffShown = ETrue; + powerMenuItemIndex++; + } + + iPowerkeyMenuLockKeypadShown = EFalse; + iPowerkeyMenuExitSapShown = EFalse; + iPowerkeyMenuLockSystemShown = EFalse; + iPowerkeyMenuEjectShown = EFalse; + + iPowerkeyMenuLockKeypadSelection = KErrAccessDenied; + iPowerkeyMenuExitSapSelection = KErrAccessDenied; + iPowerkeyMenuLockSystemSelection = KErrAccessDenied; + +#ifndef RD_MULTIPLE_DRIVE + iPowerkeyMenuEjectSelection = KErrAccessDenied; +#else // RD_MULTIPLE_DRIVE + iPowerkeyMenuEjectSelectionBase = KErrAccessDenied; +#endif // RD_MULTIPLE_DRIVE + + // "Lock keypad" menu item + + TInt callState ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); + TInt callType ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallType ) ); + if ( !( callState == EPSCTsyCallStateConnected && callType == EPSCTsyCallTypeH324Multimedia ) ) + { + if ( ( iSysApFeatureManager->GripNotSupported() && !iSysApFeatureManager->SlideSupported() ) || + ( (!iSysApFeatureManager->GripNotSupported() || iSysApFeatureManager->SlideSupported() ) && + ( StateOfProperty( KPSUidHWRM, KHWRMGripStatus ) == EPSHWRMGripClosed ) ) ) + // "Lock keypad" command is shown always when there is no grip, and if there + // there is no grip, only when the grip is closed. + { + if ( CKeyLockPolicyApi::KeyguardAllowed() ) + { + if ( iSysApFeatureManager->PenEnabled() ) + { + itemStringBuf = StringLoader::LoadLC( R_QTN_PWRC_LOCK_DISPLAY, iEikonEnv ); + } + else + { + itemStringBuf = StringLoader::LoadLC( R_QTN_PWRC_LOCK_KEYS, iEikonEnv ); + } + profileNameCDesCArray->AppendL( itemStringBuf->Des() ); + CleanupStack::PopAndDestroy(); // itemStringBuf + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + itemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemLockKeypad); + } + iPowerkeyMenuLockKeypadShown = ETrue; + iPowerkeyMenuLockKeypadSelection = powerMenuItemIndex; + powerMenuItemIndex++; + } + } + } + if ( iSysApFeatureManager->PowerKeyIsLockKey() ) + { + AddMmcMenuItemsL( profileNameCDesCArray, + itemIdArray, powerMenuItemIndex ); + } + // "Exit SIM access profile" menu item + if ( BtSapEnabled() ) + { + TRACES( RDebug::Print(_L( "CSysApAppUi::ShowPowerKeyPopUpMenuL: show \"Exit SIM access profile\" item" ) ) ); + itemStringBuf = StringLoader::LoadLC( R_QTN_PWRC_EXIT_SIM_ACCESS, iEikonEnv ); + profileNameCDesCArray->AppendL( itemStringBuf->Des() ); + CleanupStack::PopAndDestroy(); // itemStringBuf + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + itemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemExitBtSap); + } + iPowerkeyMenuExitSapShown = ETrue; + iPowerkeyMenuExitSapSelection = powerMenuItemIndex; + powerMenuItemIndex++; + } + + // Profile menu items + iProfileItemsOffset = powerMenuItemIndex; + TInt arrayIndex( 0 ); + TBufC profileName; + + for ( arrayIndex = 0; arrayIndex < iNumberOfProfileNamesInPowerKeyMenu; arrayIndex++ ) + { + profileName = iProfileNamesArray->MdcaPoint( arrayIndex ); + TPtr profileNamePtr = profileName.Des(); + AknTextUtils::DisplayTextLanguageSpecificNumberConversion( profileNamePtr ); + profileNameCDesCArray->AppendL( profileNamePtr ); + + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + TInt profileId = ( iProfileNamesArray->ProfileName( arrayIndex ) )->Id(); + itemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemProfileItemBase+profileId); + } + powerMenuItemIndex++; + } + + // "Lock device" menu item + + callState = StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ); + + TInt devLockStatus( EAutolockStatusUninitialized ); + devLockStatus = StateOfProperty( KPSUidCoreApplicationUIs, KCoreAppUIsAutolockStatus ); // check whether Autolock has been started + + + if ( callState == EPSCTsyCallStateNone && devLockStatus != EAutolockStatusUninitialized ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL: adding \"Lock device\", devLockStatus=%d" ), devLockStatus ) ); + iPowerkeyMenuLockSystemShown = ETrue; + itemStringBuf = StringLoader::LoadLC( R_QTN_SET_SEC_LOCK_SYSTEM, iEikonEnv ); + profileNameCDesCArray->AppendL( itemStringBuf->Des() ); + CleanupStack::PopAndDestroy(); // itemStringBuf + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + itemIdArray.AppendL(SecondaryDisplay::EPwrMenuItemLockDevice); + } + iPowerkeyMenuLockSystemShown = ETrue; + iPowerkeyMenuLockSystemSelection = powerMenuItemIndex; + powerMenuItemIndex++; + } + if ( !iSysApFeatureManager->PowerKeyIsLockKey() ) + { + AddMmcMenuItemsL( profileNameCDesCArray, itemIdArray, powerMenuItemIndex ); + } + + // Activate/deactive power save mode + if ( iSysApPsmController ) // variable feature, not create if power save is not used + { + TBool showActivate = !(iSysApPsmController->FullPsmEnabled()); + + TInt textId = ( showActivate ? R_QTN_PWRC_ACTIVATE_POWER_SAVING : R_QTN_PWRC_DEACTIVATE_POWER_SAVING ); + + itemStringBuf = StringLoader::LoadLC( textId, iEikonEnv ); + iSysApPsmController->SetNextUiOperation( showActivate ); + + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + itemIdArray.AppendL( showActivate ? + SecondaryDisplay::EPwrMenuItemActivatePowerSaving : + SecondaryDisplay::EPwrMenuItemDeactivatePowerSaving ); + } + + profileNameCDesCArray->AppendL( itemStringBuf->Des() ); + CleanupStack::PopAndDestroy( itemStringBuf ); + + iSysApPsmController->SetUiItemId( powerMenuItemIndex ); + powerMenuItemIndex++; + } + + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL NumberOfAllItemsInPowerKeyMenu: %d" ), + profileNameCDesCArray->Count() ) ); + + iSysApPowerKeyMenuObserver->Start(); + + // Set secondary display data if necessary + if ( iSysApFeatureManager->CoverDisplaySupported() ) + { + CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatSysAp, SecondaryDisplay::ECmdShowPowerKeyListQuery, KNullDesC8); + sd->InsertGlobalListQueryItemIdsL(itemIdArray); + iGlobalListQuery->SetSecondaryDisplayData(sd); // ownership to notifier client + } + + iGlobalListQuery->ShowListQueryL( (MDesCArray*) profileNameCDesCArray, + iSysApPowerKeyMenuObserver->iStatus, + KProfileListInitialIndex ); + + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL: list query shown" ) ) ); + + CleanupStack::PopAndDestroy( profileNameCDesCArray ); // profileNameCDesCArray + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL: profileNameCDesCArray popped" ) ) ); + + CleanupStack::Pop(&itemIdArray); + itemIdArray.Close(); + + // Without following variable set ETrue powerkey up event would change the hightlighted item to be + // the second one instead of the wanted first one. + iIgnoreNextPowerKeyUpEvent = ETrue; + + if ( iSysApBatteryInfoController ) + { + iSysApBatteryInfoController->PowerMenuShownL(); + } + + TRACES( RDebug::Print(_L("CSysApAppUi::ShowPowerKeyPopUpMenuL:end" ) ) ); + } +} + +// ---------------------------------------------------------------------------- +// CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL( TInt aSelection ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL( TInt aSelection ) + { + iPowerKeyPopupMenuDismissed = ETrue; + iPowerKeyPopupMenuActive = EFalse; + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: START aSelection:%d" ), aSelection ) ); + if ( aSelection == KPowerKeyMenuSelectionCancelled ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: Powerkey menu cancelled" ) ) ); + } + else if( aSelection < KPowerKeyMenuSelectionCancelled ) + { + iIgnoreNextPowerKeyUpEvent = EFalse; + } + else + { + // first menu item <=> Switch off + if ( aSelection == KPowerKeyMenuSelectionSwitchOff ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Switch off\" selected" ) ) ); + DoShutdownL( EFalse, KDummyReason ); + } + // 2nd menu item: lock display & keys + else if ( iPowerkeyMenuLockKeypadShown && aSelection == iPowerkeyMenuLockKeypadSelection ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Lock keypad\" selected" ) ) ); + KeyLock().EnableKeyLock(); + } + // BT + else if ( iPowerkeyMenuExitSapShown && aSelection == iPowerkeyMenuExitSapSelection ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Exit SAP\" selected" ) ) ); + ShowQueryL( ESysApBtSapDisconnectQuery ); + } + // Profile Items + else if ( ( aSelection >= iProfileItemsOffset ) && ( aSelection < iProfileItemsOffset + iNumberOfProfileNamesInPowerKeyMenu ) ) + { + __ASSERT_DEBUG( iProfileNamesArray, User::Invariant() ); + + if ( iProfileNamesArray ) + { + iProfileToBeActivated = ( iProfileNamesArray->ProfileName( aSelection - iProfileItemsOffset ) )->Id(); + + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: profile id: %d selected" ), iProfileToBeActivated ) ); + if ( ! iSysApOfflineModeController->OfflineModeActive() || + ( iProfileToBeActivated ) == KOfflineModeProfileId ) + { + ActivateProfileL( iProfileToBeActivated ); + } + else + { + // iProfileToBeActivated profile will be activated from iSysApOfflineModeController if ok + iSysApOfflineModeController->GoOnlineIfOkL(); + } + } + } + // device lock + else if ( iPowerkeyMenuLockSystemShown && aSelection == iPowerkeyMenuLockSystemSelection ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Lock system\" selected" ) ) ); + iSysApSystemLock->SetLockedL(); + } +#ifndef RD_MULTIPLE_DRIVE + //eject single MMC + else if ( iPowerkeyMenuEjectShown && aSelection == iPowerkeyMenuEjectSelection ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Eject\" selected" ) ) ); + ShowQueryL( ESysApEjectMmcQuery ); + } +#else // RD_MULTIPLE_DRIVE + //eject nth MMC + else if ( iPowerkeyMenuEjectShown && + aSelection >= iPowerkeyMenuEjectSelectionBase && + aSelection < iPowerkeyMenuEjectSelectionBase + iInsertedMemoryCards.Count() ) + { + iDriveToEject = + iInsertedMemoryCards[ aSelection - iPowerkeyMenuEjectSelectionBase ].iDrive; + TRACES( RDebug::Print( + _L( "CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Eject\" selected, drive=%d" ), + iDriveToEject ) ); + iSysApDriveList->ResetDrivesToEject(); + RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); + EjectMMCL(); + } +#endif // RD_MULTIPLE_DRIVE + else if ( iSysApPsmController && aSelection == iSysApPsmController->UiItemId() ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: \"Activate|Deactivate power save\" selected" ) ) ); + iSysApPsmController->DoEnableFullPsm( iSysApPsmController->NextUiOperation() ); + } + + } + + delete iProfileNamesArray; + iProfileNamesArray = NULL; + delete iGlobalListQuery; + iGlobalListQuery = NULL; + + TRACES( RDebug::Print(_L("CSysApAppUi::PowerKeyPopUpMenuSelectionDoneL: END" ) ) ); + } // ---------------------------------------------------------------------------- // CSysApAppUi::SetDeviceLockEnabledL( const TBool aLockEnabled ) @@ -1960,14 +4147,14 @@ iSysApLightsController->DeviceLockStateChangedL( iDeviceLockEnabled ); } - if( iDeviceLockEnabled ) + /* if( iDeviceLockEnabled ) { if( iKeyLockEnabled ) { - iKeyguardController->DisableKeyguard(EFalse); - } - } - else + KeyLock().DisableWithoutNote(); + } + }*/ + if(! iDeviceLockEnabled ) { // let's not activate keylock in case device lock was disabled during call or in cradle iKeyLockOnBeforeCall = EFalse; @@ -1976,964 +4163,92 @@ // Memory card needs to be unlocked when device is unlocked if ( iSysApFeatureManager->MmcHotSwapSupported() ) { - RunUnlockNotifierL(); - // Need to handle feature for unlocking the MMC card - } - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleBatteryStatusL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::HandleBatteryStatusL( const TInt aValue ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleBatteryStatusL aValue: %d"), aValue ) ); - - TBool enableAutoPsm(EFalse); - CRepository* repository( NULL ); - TRAPD( err, repository = CRepository::NewL( KCRUidDeviceManagementSettings ) ); - - if ( err == KErrNone ) - { - TInt value( 0 ); - err = repository->Get( KSettingsPowerSavingQuery, value ); - - if ( err == KErrNone ) - { - enableAutoPsm = value ? EFalse: ETrue; - } - } - - _LIT(Klowbattery, "txt_power_management_dpopinfo_low_battery"); - // returns the string "low battery" - HBufC* lowBattery = HbTextResolverSymbian::LoadL(Klowbattery); - - - if ( aValue == EBatteryStatusEmpty ) - { - //Display Recharge Battery note - ShowUiNoteL( ERechargeBatteryNote ); - BatteryEmptyL(); - } - else if ( aValue == EBatteryStatusLow ) - { - if ( iSysApPsmController && UiReady() ) - { - iSysApPsmController->BatteryLow( ETrue ); - - - if ( enableAutoPsm) - { - iSysApPsmController->DoEnableFullPsm( ETrue ); - - _LIT(KPsmOn, "txt_power_management_dpopinfo_psm_activated_automa"); - // returns the string "power saving mode on" - HBufC* psmOn = HbTextResolverSymbian::LoadL(KPsmOn); - - _LIT(Kicon, "qgn_indi_battery_ps_activate"); - // returns the power save mode icon - HBufC* psmIcon = HbTextResolverSymbian::LoadL(Kicon); - - CHbDeviceNotificationDialogSymbian::NotificationL(*psmIcon,*psmOn,*lowBattery); - } - else // default low warning note must be shown + RunUnlockNotifierL(); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoNotEnableKeylock() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoNotEnableKeylock() + { + if ( !iKeyLockOnBeforeCradle ) + { + iShowkeypadActivatedNoteAfterSoftReject = iKeyLockOnBeforeCall; + } + + iKeyLockOnBeforeCall = EFalse; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoShutdownL( const TBool aReset, const TSWStartupReason aSWStartupReason ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoShutdownL( const TBool aReset, const TInt aResetReason ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: aResetReason:%d, aReset:%d" ), + aResetReason, aReset ) ); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + TBool animationenabled( EFalse ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + if( OkToInitiateShutdown() ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: Was OkToToInitiateShutdown" ) ) ); + + + if ( !aReset && iSysApFeatureManager->Supported(KSysApFeatureIdGoodbyeNote) ) + { + TRAPD( ignore, ShowShutdownNoteL() ); + if ( ignore ) ignore = 0; // hide compiler warning about not using variable + } + + if( !aReset ) + { + #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + TRAPD( err, ShowAnimationL() ); + if ( err ) { - //Display Battery Low note. - CHbDeviceNotificationDialogSymbian::NotificationL(KlowbatteryIcon,KNullDesC,*lowBattery); - } - } - else - { - //Display Battery Low note. - CHbDeviceNotificationDialogSymbian::NotificationL(KlowbatteryIcon,KNullDesC,*lowBattery); - } - } - - if ( iSysApBatteryInfoController ) - { - iSysApBatteryInfoController->BatteryStatusUpdated( aValue ); - } - - delete repository; - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ShowUiNoteL( const TSysApNoteIds aNote ) const - { - TRACES( RDebug::Print( _L("CSysApAppUi::ShowUiNoteL aNote: %d"), aNote ) ); - - TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); - - if( UiReady() || swState == ESwStateSecurityCheck) - { - switch ( aNote ) - { - case EBatteryLowNote: - { - _LIT(KPowerPressKey,"Battery low"); - HBufC* aString = HBufC16::NewLC(100); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - } - break; - case EBatteryFullNote: - { - _LIT(KPowerPressKey,"Battery full"); - HBufC* aString = HBufC16::NewLC(100); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - } - break; - case ERechargeBatteryNote: - { - iSysApLightsController->BatteryEmptyL( ETrue ); - _LIT(KPowerPressKey,"Battery empty. Recharge"); - HBufC* aString = HBufC16::NewLC(100); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - } - break; - case ENotChargingNote: - { - _LIT(KPowerPressKey,"Not charging"); - HBufC* aString = HBufC16::NewLC(100); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - } - break; - case EBatteryFullUnplugChargerNote: - { - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - iSysApLightsController->BatteryEmptyL( ETrue ); - _LIT(KunplugCharger,"txt_power_dpopinfo_unplug_charger_to_save_energy"); - HBufC* unplugCharger = HbTextResolverSymbian::LoadL(KunplugCharger); - _LIT(KbatteryFull,"txt_power_management_dpophead_100_full"); - HBufC* batteryFull = HbTextResolverSymbian::LoadL(KbatteryFull); - CHbDeviceNotificationDialogSymbian::NotificationL(KbatteryFullIcon,*unplugCharger,*batteryFull); - } - break; - case EUnplugChargerNote: - { - _LIT(KPowerPressKey,"Unplug charger from power supply to save energy"); - HBufC* aString = HBufC16::NewLC(250); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KPowerPressKey); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL ShowAnimationL() leaved: %d" ), err ) ); + CompleteShutdown(aReset, aResetReason); } - break; - default: - break; - } - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::BatteryEmptyL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::BatteryEmptyL() - { - iSysApLightsController->BatteryEmptyL( ETrue ); - // Do not reactivate keyguard in the next startup - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 0 ); - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowQueryL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ShowQueryL( const TSysApConfirmationQueryIds /* aQueryId */, const TDesC& /* aValue */) - { - // do nothing - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleChargingStatusL -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::HandleChargingStatusL( const TInt aValue ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleChargingStatusL aValue: %d"), aValue ) ); - - TBool showNote( ETrue ); - - UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); - - if ( iSysApPsmController && UiReady() ) - { - if ( iCharging && !iSysApPsmController->ChargerConnected() ) // first time after charger connection - { - iSysApPsmController->ConnectCharger( ETrue ); - iSysApPsmController->DoEnableFullPsm(EFalse); - iVariantAccState = CHbSymbianVariant::NewL(&KCharging, CHbSymbianVariant::EDes); - - if (!iHbIndicatorSymbian->Activate(KPsmPlugin,iVariantAccState)) - { - int error = iHbIndicatorSymbian->Error(); - //use the errorcode... - } - - - } - else if ( aValue == EChargingStatusNotConnected ) - { - iSysApPsmController->ConnectCharger( EFalse ); - if (!iHbIndicatorSymbian->Deactivate(KPsmPlugin)) - { - int error = iHbIndicatorSymbian->Error(); - //use the errorcode... - } - } - } - if( showNote ) - { - HandleChargerNotesL( aValue ); - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleChargerNotesL() -// ---------------------------------------------------------------------------- -void CSysApAppUi::HandleChargerNotesL( const TInt aValue ) - { - TBool showNote(StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateRinging); - if ( aValue == EChargingStatusCharging ) - { - iSysApLightsController->BatteryEmptyL( EFalse ); - TRACES( RDebug::Print( _L("SysAp: charger connected") ) ); - iSysApLightsController->ChargerConnectedL( ETrue ); - ShowChargingNoteL(); - } - //Display Not Charging note - else if ( aValue == EChargingStatusError ) - { - if(showNote) - { - ShowUiNoteL( ENotChargingNote ); - } - } - else if ( aValue == EChargingStatusChargingComplete ) - { - iSysApLightsController->ChargingCompleteL(); - - TSysApNoteIds note( EBatteryFullNote ); - - if ( !iSysApUsbChargerDetector.HostOnlyUsbChargingUsed() && - iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) ) - { - note = EBatteryFullUnplugChargerNote; - } - iSysApUsbChargerDetector.Reset(); - if(showNote) - { - ShowUiNoteL( note ); - } - } - else if ( aValue == EChargingStatusNotConnected ) - { - TRACES( RDebug::Print( _L("SysAp: charger removed") ) ); - iSysApLightsController->ChargerConnectedL( EFalse ); - - if ( !iSysApUsbChargerDetector.HostOnlyUsbChargingUsed() && - iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) ) - { - if(showNote) + } + else // aReset + { + CompleteShutdown(aReset, aResetReason); + } + #else // RD_STARTUP_ANIMATION_CUSTOMIZATION + TRAPD( err, animationenabled = ShowAnimationL() ); + if ( err ) { - ShowUiNoteL( EUnplugChargerNote ); + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL ShowAnimationL() leaved: %d" ), err ) ); } } - iSysApUsbChargerDetector.Reset(); - } - else if ( aValue == EChargingStatusNotCharging ) - { - TRACES( RDebug::Print( _L("SysAp: Not charging") ) ); - } - else if ( aValue == EChargingStatusAlmostComplete ) - { - TRACES( RDebug::Print( _L("SysAp: Charging almost complete") ) ); - } - else if ( aValue == EChargingStatusChargingContinued ) - { - //in this case we simply want to scroll the battery bars and not turn light on or show ui note - // set lights controller iBatteryEmpty to EFalse - iSysApLightsController->BatteryEmptyL( EFalse ); - TRACES( RDebug::Print( _L("SysAp: charging continues") ) ); - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::UpdateBatteryBarsL( const TInt aState ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::UpdateBatteryBarsL( const TInt /* aState */) - { - TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); -// TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL aState: %d, chargerState:%d"), aState, state ) ); - HandleUsbCharger( state ); - if( state == EChargingStatusCharging || - state == EChargingStatusChargingContinued || - state == EChargingStatusAlmostComplete ) - { - if ( !iCharging ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Starting Charging") ) ); - iCharging = ETrue; - } + + if ( !animationenabled ) + { + CompleteShutdown(aReset, aResetReason); + } + #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } else { - if ( iCharging ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::UpdateBatteryBarsL: Stopping Charging") ) ); - iCharging = EFalse; - } - } - - if ( !iSysApPsmController ) // created here if first state change has not occurred yet - { - iSysApPsmController = CSysApPsmController::NewL( *this ); - } - - if ( iSysApPsmController ) - { - if ( iSysApPsmController->FullPsmEnabled() ) - { - // activate psm indicator - } - else - { - // deactivate psm indicator - } - } - - if ( iSysApBatteryInfoController ) - { - iSysApBatteryInfoController->BatteryLevelUpdatedL(); - } - - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowChargingNoteL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ShowChargingNoteL() - { - TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL") ) ); - TBool showNote( ETrue ); - - TInt swState( StateOfProperty( KPSUidStartup, KPSGlobalSystemState ) ); - TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL: swState: %d"), swState ) ); - - if( UiReady() || swState == ESwStateSecurityCheck ) - { - if ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) == EPSCTsyCallStateRinging ) - { - showNote = EFalse; - } - TRACES( RDebug::Print( _L("CSysApAppUi::ShowChargingNoteL KCTsyCallState=%d"), StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ) ); - if ( showNote ) // Power Mgmt UI spec defines that no Charging note is shown while the phone is ringing/alerting - { - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - _LIT(KChargingNote,"txt_power_management_dblist_charging"); - HBufC* chargingNote = HbTextResolverSymbian::LoadL(KChargingNote); - CHbDeviceNotificationDialogSymbian::NotificationL(KNullDesC,*chargingNote); - - } - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleUsbCharger -// ---------------------------------------------------------------------------- -// -void CSysApAppUi::HandleUsbCharger( const TInt aValue ) - { - if ( aValue == EChargingStatusCharging || - aValue == EChargingStatusChargingContinued || - aValue == EChargingStatusAlmostComplete ) - { - iSysApUsbChargerDetector.SetChargingUsed( ETrue ); - if ( !iSysApUsbIndicatorController && - iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) && - iSysApFeatureManager->Supported( KSysApFeatureIdUsbChargingWithoutReminderNotes ) ) - { - // Start observing USB state for the reminder note - TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) ); - if ( usbErr ) - { - TRACES( RDebug::Print( - _L("CSysApAppUi::HandleUsbCharger: error in constructing USB ind. controller %d" ), - usbErr ) ); - } - } - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleCurrentCallStateChangeL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleCurrentCallStateChangeL( TInt aCurrentCallState ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: KUidCurrentCall: %d" ), aCurrentCallState ) ); - - switch ( aCurrentCallState ) - { - case EPSCTsyCallStateRinging: - { - iSysApLightsController->CallComingInL( ETrue ); - // Disable keylock when a call is coming in - if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCradle || iKeyLockOnBeforeAlarm ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateRinging: disable keylock") ) ); - iKeyLockOnBeforeCall = ETrue; - - if ( iKeyLockEnabled || iDeviceLockEnabled ) - { - if ( !iSysApFeatureManager->TouchUnlockStrokeSupported() ) - { - iKeyguardController->DisableKeyguard(EFalse); - } - } - } - break; - } - - case EPSCTsyCallStateDialling: - { - // Disable keypad lock during an emergency call - // no need to disable the key lock when a call is made using the wireless car-kit - // but if the call is an emergency one then we will disable the keypad lock - if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCradle ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateDialling: disable keylock") ) ); - iKeyLockOnBeforeCall = ETrue; - - if ( IsEmergencyCall() && (iKeyLockEnabled || iDeviceLockEnabled )) - { - iKeyguardController->DisableKeyguard(EFalse); - } - } - - // Enable signal & network indicators when an emergency call is made in Offline Mode - if( iSysApOfflineModeController->OfflineModeActive() ) - { - // Signal indicators not updated with VoIP call - if ( StateOfProperty(KPSUidCtsyCallInformation, KCTsyCallType) != EPSCTsyCallTypeVoIP) - { - iEmergencyCallActive = ETrue; - // not supporting this - // UpdateSignalBarsL(); - // SetSignalIndicatorL(); - } - } - break; - } - - case EPSCTsyCallStateConnected: - { - if (StateOfProperty(KPSUidCtsyCallInformation, KCTsyCallType) == EPSCTsyCallTypeCSVoice) - { - // Check if GPRS suspended note is required - iCallActivated = ETrue; - // not supporting this - // HandleGprsNotesL(); - } - if ( iDeviceLockEnabled ) - { - // Enable keylock via autolock emulation if device lock enabled. - // Otherwise e.g. messages can be read using softkeys during ongoing call. - iKeyguardController->EnableKeyguard(EFalse); - } - break; - } - - case EPSCTsyCallStateNone: - { - // Reset timers in ScreenSaver and Autolock - User::ResetInactivityTime(); - - if ( iEmergencyCallActive ) - { - iEmergencyCallActive = EFalse; - // not supporting this - // UpdateSignalBarsL( 0 ); - // SetSignalIndicatorL(); - } - if ( iKeyLockOnBeforeCall ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateNone: enable keylock") ) ); - iKeyLockOnBeforeCall = EFalse; - if ( !iDeviceLockEnabled ) - { - if ( !iKeyLockOnBeforeCradle && !iKeyLockOnBeforeAlarm && - !iSysApFeatureManager->TouchUnlockStrokeSupported() ) - { - if ( iSysApCenRepController->GetInt( KCRUidCommonTelephonySettings, KSettingsSummaryAfterCall ) == 1 ) - { - // Let's not hide "Summary After Call" dialog - iKeyguardController->EnableKeyguard(EFalse); - } - else - { - iKeyguardController->EnableKeyguard(ETrue); - } - } - } - else - { - iKeyguardController->EnableKeyguard(EFalse); - } - } - if ( iShowkeypadActivatedNoteAfterSoftReject ) - { - ShowUiNoteL( EKeypadActiveNote ); - iShowkeypadActivatedNoteAfterSoftReject = EFalse; - } - iCallActivated = EFalse; - break; - } - - default: - break; - } - - if ( aCurrentCallState != EPSCTsyCallStateRinging ) - { - iSysApLightsController->CallComingInL( EFalse ); - } - - SetIhfIndicatorL(); - SetHacIndicatorL(); - } - - - -/** - * To check the for an emergency call. - * - * @return ETrue if there is an emergency call active otherwise, EFalse. - */ -TBool CSysApAppUi::IsEmergencyCall() - { - TBool retVal( EFalse ); - TInt err( KErrNone ); - TInt state( 0 ); - - err = RProperty::Get(KPSUidCtsyEmergencyCallInfo, KCTSYEmergencyCallInfo, state ); - if ( err == KErrNone && state ) - { - retVal = ETrue; - } - return retVal; - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::IsStateNormal() -// -// ---------------------------------------------------------------------------- -TBool CSysApAppUi::IsStateNormal() const - { - TInt state; - TInt errorCode = - RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); - if ( errorCode == KErrNone ) - { - return state == ESwStateNormalRfOn || - state == ESwStateNormalRfOff || - state == ESwStateNormalBTSap; - } - else - { - TRACES( RDebug::Print( _L( "CSysApAppUi::IsStateNormal: Failed to read global system state, error code %d." ), errorCode ) ); - return EFalse; - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleAccessoryProfileInStartupL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleAccessoryProfileInStartupL() - { - TRACES( RDebug::Print( _L( "CSysApAppUi::HandleAccessoryProfileInStartupL" ) ) ); - - if ( !iSysApOfflineModeController->OfflineModeActive() ) - { - iIgnoreAccessorySpecificProfileChanges = EFalse; - TBool accessoryConnectedInShutdown( EFalse ); - TInt accessoryTemp( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApAccessoryConnected ) ); - if ( accessoryTemp == 1 ) - { - accessoryConnectedInShutdown = ETrue; - } - - TBool accessoryConnectedNow ( EFalse ); - - TAccMode accessoryState(EAccModeHandPortable); - TInt physicalConnectionType = 0; - if ( iSysApAccessoryObserver ) - { - accessoryState = iSysApAccessoryObserver->GetAccessoryMode(); - physicalConnectionType = iSysApAccessoryObserver->GetAccessoryConnectionType(); - } - - if ( accessoryState != EAccModeHandPortable ) - { - accessoryConnectedNow = ETrue; - } - TRACES( RDebug::Print( _L( "CSysApAppUi::HandleAccessoryProfileInStartupL: accessoryConnectedInShutdown: %d, accessoryConnectedNow: %d" ), - accessoryConnectedInShutdown, accessoryConnectedNow ) ); - - if ( accessoryConnectedInShutdown && !accessoryConnectedNow ) - { - HandleAccessoryDisconnectedL(); - } - else if ( !accessoryConnectedInShutdown && accessoryConnectedNow ) - { - HandleAccessoryConnectedL( accessoryState, physicalConnectionType ); - } - else if ( !accessoryConnectedNow ) - { - // not supporting this - // TInt activeProfile ( ActiveProfileId() ); - // SysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApActiveProfileBeforeAccessoryConnected, activeProfile ); - } - } - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::CenRepController() -// ---------------------------------------------------------------------------- - -CSysApCenRepController& CSysApAppUi::CenRepController() - { - __ASSERT_ALWAYS( iSysApCenRepController, User::Panic( _L("CSysApAppUi::CenRepController"), KErrBadHandle ) ); - - return *iSysApCenRepController; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::LogsObserverL -// ---------------------------------------------------------------------------- -// -CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL() - { - TRACES( RDebug::Print( _L("CSysApAppUi::LogsObserverL()") ) ); - - // Create Logs observer when it is needed for the first time - if ( !iSysApCenRepLogsObserver ) - { - iSysApCenRepLogsObserver = CSysApCenRepLogsObserver::NewL( *this ); - } - - return *iSysApCenRepLogsObserver; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleWlanIndicator() -// ---------------------------------------------------------------------------- -void CSysApAppUi::HandleWlanIndicatorL( TInt aValue ) - { - if ( aValue == EPSWlanIndicatorAvailable ) - { - // do nothing - } - else if ( aValue == EPSWlanIndicatorActive ) - { - // do nothing - } - else if ( aValue == EPSWlanIndicatorActiveSecure ) - { - // do nothing - } - else // No indication required - { - // do nothing - } - } - -void CSysApAppUi::ShowNotificationDialog(const TDesC& noteText)const -{ - //Todo:4.Notification--Just Popup message - //Todo: #include - CHbDeviceNotificationDialogSymbian *notificationDialog = CHbDeviceNotificationDialogSymbian::NewL(); - CleanupStack::PushL(notificationDialog); - notificationDialog->SetTextL(noteText);//noteText with Qm file input - notificationDialog->SetTimeout(100); - notificationDialog->ShowL(); - CleanupStack::PopAndDestroy(notificationDialog); -} - -void CSysApAppUi::SetKeyLockEnabledL() - { - iKeyLockEnabled = ETrue; - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 1 ); - // not supporting indicator -// SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOn ); - iSysApLightsController->KeylockStateChangedL( ETrue ); - } - -void CSysApAppUi::SetKeyLockDisabledL() - { - iKeyLockEnabled = EFalse; - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 0 ); - // SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOff ); - if (! iDeviceLockEnabled ) - { - iSysApLightsController->KeylockStateChangedL( EFalse ); - if ( iSysApFeatureManager->MmcHotSwapSupported() ) - { - if ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateRinging && StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateAlerting ) - { - RunUnlockNotifierL(); - // need to handle MMC unlock query in next sub - } - } - } - } - -void CSysApAppUi::SetLightsOnUnlockNoteL() - { - iSysApLightsController->SetLightsOnUnlockNoteL(); - } - -void CSysApAppUi::SetLightsOnEcsQueryL() - { - iSysApLightsController->SetLightsOnEcsQueryL(); - } - -void CSysApAppUi::SetLightsOnSecurityQueryL() - { - iSysApLightsController->SetLightsOnSecurityQueryL(); - } - -TBool CSysApAppUi::CheckLongPowerKeyPressed() - { - return iCheckLongPowerKeyEvent; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType ) -// ---------------------------------------------------------------------------- - -TKeyResponse CSysApAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType ) - { - if ( ! iShutdownStarted ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d, iIgnoreNextPowerKeyUpEvent:%d, iPowerKeyPopupMenuActive:%d, iLastPowerKeyWasShort:%d, iPowerKeyPopupMenuDismissed:%d"), - aKeyEvent.iCode, aKeyEvent.iScanCode, aType, iIgnoreNextPowerKeyUpEvent, iPowerKeyPopupMenuActive, iLastPowerKeyWasShort, iPowerKeyPopupMenuDismissed ) ); - -#ifdef _DEBUG - // camery latency measurement environment instrumentation, don't remove - if ( aType == EEventKey && aKeyEvent.iCode == EKeyCamera ) - { - TRACES( RDebug::Print( _L("e_KEY_EVENT_SENDING 0") ) ); - } -#endif // _DEBUG - - TKeyResponse response(EKeyWasNotConsumed); - if (response) - { - //Do nothing:: To supress warning - } - if (iSysApKeyManagement && aKeyEvent.iCode != EKeyPowerOff && aKeyEvent.iCode != 'E') - { - response = iSysApKeyManagement->HandleKeyEventL(aKeyEvent, aType ); - } - - if( aType == EEventKey ) - { - switch ( aKeyEvent.iCode ) - { -#ifdef _DEBUG - case 'E': //For testing - Exit(); - break; -#endif - case EKeyPowerOff: - //Short power key press - iKeyBoardRepeatCount++; - if( aKeyEvent.iRepeats == 0 ) - { - TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Short powerkey") ) ); - iLastPowerKeyWasShort = ETrue; - TRACES( RDebug::Print( _L("CSysApAppUi::Key was consumed by pressing short power") ) ); - //Powermenu - if (iPowerMenuDialog!=NULL) - { - //PowerMenu already exist - delete iPowerMenuDialog; - iPowerMenuDialog = NULL; - } - iPowerMenuDialog = CHbDevicePowerMenuSymbian::NewL(*this); - iPowerMenuDialog->ShowL(); - - iIgnoreNextPowerKeyRepeats = EFalse; - } - //Long power key press - else if( aKeyEvent.iRepeats > 0 && iKeyBoardRepeatCount >= iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApPowerkeyRepeatcount )) - { - iKeyBoardRepeatCount = -1; - TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, Long powerkey") ) ); - iLastPowerKeyWasShort = EFalse; - HandleLongPowerKeyPressedL(); - } - break; - - default: - { - TKeyResponse response = EKeyWasNotConsumed; - if (iSysApKeyManagement) - { - response = iSysApKeyManagement->HandleKeyEventL(aKeyEvent, aType ); - } - - if ( response == EKeyWasNotConsumed ) // none of the plugins consumed the key, offer it to default handling - { - iSysApDefaultKeyHandler->HandleKeyEventL( aKeyEvent, aType ); - } - } - break; - } - } - else if( aType == EEventKeyUp ) - { - if( aKeyEvent.iScanCode == EStdKeyDevice2 ) - { - if ( iIgnoreNextPowerKeyUpEvent ) - { - if ( !iPowerKeyPopupMenuDismissed ) // If the popup menu has been dismissed, do nothing - { - iPowerKeyPopupMenuActive = ETrue; - iIgnoreNextPowerKeyUpEvent = EFalse; - } - } - else if( iLastPowerKeyWasShort ) - { - if ( iPowerKeyPopupMenuActive ) - { - } - } - - } - } - - TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL:ended, aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d, iIgnoreNextPowerKeyUpEvent:%d, iPowerKeyPopupMenuActive:%d, iLastPowerKeyWasShort:%d, iPowerKeyPopupMenuDismissed:%d"), - aKeyEvent.iCode, aKeyEvent.iScanCode, aType, iIgnoreNextPowerKeyUpEvent, iPowerKeyPopupMenuActive, iLastPowerKeyWasShort, iPowerKeyPopupMenuDismissed ) ); - } - else // shutdown started - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: aKeyEvent.iCode:%d, aKeyEvent.iScanCode:%d, aType:%d"), - aKeyEvent.iCode, aKeyEvent.iScanCode, aType ) ); - - // When shutdown has been started, only device mode key events are passed to plug-in framework - // This for enabling plug-in activities during shutdown animation - if ( IsDeviceModeKey( aKeyEvent ) ) // Other key events are not passed, because they must cancel the shutdown animation as stated in UI spefication - { - if ( aType == EEventKey && iSysApKeyManagement ) - { - iSysApKeyManagement->HandleKeyEventL( aKeyEvent, aType ); - } - } - TRACES( RDebug::Print( _L("CSysApAppUi::HandleKeyEventL: ended") ) ); - } - return EKeyWasConsumed; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleCommandL( TInt aCommand) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleCommandL( TInt aCommand ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleCommandL aCommend: %d"), aCommand ) ); - switch ( aCommand ) - { - case EEikCmdExit: // EAknCmdExit - Exit(); - break; - default: - break; - } - } - -TBool CSysApAppUi::ReleasePowerMenuCustomDialogMemory() - { - if (iPowerMenuDialog!=NULL) - { - //PowerMenu already exist - delete iPowerMenuDialog; - iPowerMenuDialog = NULL; - TRACES( RDebug::Print(_L("CSysApAppUi::ReleasePowerMenuCustomDialogMemory True") ) ); - return ETrue; - } - TRACES( RDebug::Print(_L("CSysApAppUi::ReleasePowerMenuCustomDialogMemory false") ) ); - return EFalse; - } - -TBool CSysApAppUi::NotifiedDialogIfRequiredAndReleaseMemory() - { - TRACES( RDebug::Print(_L("CSysApAppUi::NotifiedDialogIfRequiredAndReleaseMemory(): Begin") ) ); - TRACES( RDebug::Print(_L("CSysApAppUi::NotifiedDialogIfRequiredAndReleaseMemory(): Enter for popping another dialog") ) ); - TInt popUpError = iSysApDriveUnlockHandler->CheckMemoryDialogIfNeeded(); - - //Deside if dialog required again !! - if(popUpError) - { - iSysApDriveUnlockHandler->ReleaseMemoryForInputCardDialog(); // check memory has released. - iSysApDriveUnlockHandler->UnlockComplete(KErrNone); - } - else - { - iSysApDriveUnlockHandler->StartUnlock();// pop up the dialog again !! - } - - TRACES( RDebug::Print(_L("CSysApAppUi::NotifiedDialogIfRequiredAndReleaseMemory(): End")) ); - return popUpError; - } - -void CSysApAppUi::ReleaseMemoryForMemoryCardDialog() - { - TRACES( RDebug::Print(_L("CSysApAppUi::CSysApAppUi::ReleaseMemoryForMemoryCardDialog()")) ); - iSysApDriveUnlockHandler->ReleaseMemoryForInputCardDialog(); + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: Was not OkToToInitiateShutdown" ) ) ); + } + TRACES( RDebug::Print(_L("CSysApAppUi::DoShutdownL: END" ) ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ContinueShutdown() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ContinueShutdown() + { + TRACES( RDebug::Print(_L("CSysApAppUi::ContinueShutdown() started" ) ) ); + CompleteShutdown(); + TRACES( RDebug::Print(_L("CSysApAppUi::ContinueShutdown() completed" ) ) ); } // ---------------------------------------------------------------------------- @@ -2998,7 +4313,417 @@ #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShutdownAnimationSyncOK() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShutdownAnimationSyncOK() + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShutdownAnimationSyncOK(): Call PrepareForShutdownAnimation()" ) ) ); + PrepareForShutdownAnimation();//SysAp's internal preparation for ShutDown with animation + TRACES( RDebug::Print(_L("CSysApAppUi::ShutdownAnimationSyncOK(): Called PrepareForShutdownAnimation()" ) ) ); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SkipShutdownAnimation() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SkipShutdownAnimation() + { + TRACES( RDebug::Print(_L("CSysApAppUi::SkipShutdownAnimation() " ) ) ); + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( iSysApShutdownAnimation ) + { + iSysApShutdownAnimation->Cancel(); + } +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( iAnimationShowingTime ) + { + iSysApShutdownAnimation->EndAnimation(); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::NotifyShutdownAnimationSkip() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::NotifyShutdownAnimationSkip() + { + TRACES( RDebug::Print(_L("CSysApAppUi::NotifyShutdownAnimationSkip() " ) ) ); + + if ( iSysApMediatorObserver ) + { + iSysApMediatorObserver->ShutdownAnimationSkipped(); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CompleteShutdown() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::CompleteShutdown( const TBool aReset, const TInt aResetReason ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::CompleteShutdown(): START" ) ) ); + + PrepareForShutdownImage();//SysAp's internal preparation for ShutDown with image + + FreeResources(); + + if ( aReset ) + { + __ASSERT_DEBUG( aResetReason >= RStarterSession::ELanguageSwitchReset && + aResetReason <= RStarterSession::EDataRestoreReset, + User::Invariant() ); + StarterSession().Reset( static_cast( aResetReason ) ); + } + else + { + StarterSession().Shutdown(); + } + + StarterSession().Close(); + + TRACES( RDebug::Print(_L("CSysApAppUi::CompleteShutdown(): END" ) ) ); + } + +#ifndef SYSAP_USE_STARTUP_UI_PHASE +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) +// This method is not called after boot has finished. +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: %d" ), aSwState ) ); + + switch ( aSwState ) + { + case RStarterSession::ENormal: + SetStatusPaneLayoutL( ESysApNormal ); + break; + case RStarterSession::ECharging: + SetStatusPaneLayoutL( ESysApCharging ); + break; + case RStarterSession::EAlarm: + SetStatusPaneLayoutL( ESysApAlarm ); + break; + default: + break; + }; + + TRAPD( simChangedErr, DoSimChangedFromPreviousBootL() ); + TRACES( RDebug::Print( _L("CSysApAppUi::DoStateChangedL: simChangedErr = %d" ), simChangedErr ) ); + simChangedErr = simChangedErr; // suppress 'variable not used' warning + LogsObserverL().HandleSimChangedCheckDoneL(); + + if ( iSysApFeatureManager->PowerSaveSupported() ) + { + // create controller before checking battery state, so that power saving can be enabled during boot if needed + if ( !iSysApPsmController ) // created only in first state change + { + iSysApPsmController = CSysApPsmController::NewL( *this ); + } + + // in charger boot explicitly disable partial power save mode + if ( aSwState == RStarterSession::ECharging && !iCharging ) + { + iSysApPsmController->ChargerConnected(); + iSysApPsmController->DoEnablePartialPsm( EFalse ); // disable partial power save now + } + } + + TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + //Also Charging status will be updated with the following function. + UpdateBatteryBarsL( state ); + + if( IsStateNormal() ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL to normal state.") ) ); + + DoSwStateNormalConstructionL(); + + InitializeStatusPaneAreaL(); + CheckSilentModeL(); + HandleAccessoryProfileInStartupL(); + + if ( iSysApFeatureManager->MmcSupported() ) + { +#ifndef RD_MULTIPLE_DRIVE + MountMMC(); + MMCStatusChangedL(); + iHideFirstBeep = EFalse; +#else // RD_MULTIPLE_DRIVE + iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); + UpdateInsertedMemoryCardsL(); +#endif // RD_MULTIPLE_DRIVE + } + if ( iSysApFeatureManager->MmcHotSwapSupported() ) + { + iSysApMMCObserver->StartMountObserver(); + } + + + if ( iSysApPsmController ) + { + if ( iCharging ) // if charger is connected on boot PSM queries may need to be shown + { + HandleChargingStatusL( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); + } + } + + TInt batteryStatus = StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryStatus ); + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: batteryStatus %d" ), batteryStatus ) ); + if( batteryStatus == EBatteryStatusLow || batteryStatus == EBatteryStatusEmpty ) + { + // low and empty battery states are informed to the user in device startup + HandleBatteryStatusL( batteryStatus ); + } + else if ( iSysApPsmController && !iCharging ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: batteryStatus %d, iCharging %d -> disable partial psm" ), batteryStatus, iCharging ) ); + + iSysApPsmController->BatteryLow( EFalse ); + iSysApPsmController->DoEnablePartialPsm( EFalse ); + } + + iSysApBtController = CreateSysApBtControllerL( *this ); + iSysApBtSapController = CreateSysApBtSapControllerL( *this ); + + if ( iActivateBt ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Activating BT" ) ) ); + SetBtPowerState( ETrue ); + } + + if ( iDeactivateBt ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Deactivating BT" ) ) ); + SetBtPowerState( EFalse ); + } + iSysApLocationPrivacyIndicator = CreateSysApLocationPrivacyIndicatorL( *this ); + iSysApLocationPrivacyIndicator->InitL(); + + if ( ! iSysApUsbIndicatorController ) + { + TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) ); + if ( usbErr ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: error in constructing USB ind. controller %d" ), usbErr ) ); + } + } + + // Other late initializations. + // In order to prevent unexpected behaviour e.g. in OOM situations, these calls are made to ensure + // that the services are connected when they are needed for the first time. + if ( !StarterSession().Handle() ) + { + User::Leave( KErrBadHandle ); + } + + if ( !KeyLock().Handle() ) + { + User::Leave( KErrBadHandle ); + } + +#ifdef __SYSAP_MODULE_TEST + ModuleTestShowUiNoteL( _L("SysAp: SW state normal!") ); +#endif + } + + // Allow lights + iSysApLightsController->AllowLightsOn(); + } + +#else // SYSAP_USE_STARTUP_UI_PHASE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleUiReadyAfterBootL() +// Called when startup UI activities has been finished +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleUiReadyAfterBootL() + { + TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL" ) ) ); + + SetStatusPaneLayoutL( ESysApNormal ); + + TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + //Also Charging status will be updated with the following function. + UpdateBatteryBarsL( state ); + + DoSwStateNormalConstructionL(); + + InitializeStatusPaneAreaL(); + CheckSilentModeL(); + HandleAccessoryProfileInStartupL(); + + if ( iSysApFeatureManager->MmcSupported() ) + { +#ifndef RD_MULTIPLE_DRIVE + MountMMC(); + MMCStatusChangedL(); + iHideFirstBeep = EFalse; +#else // RD_MULTIPLE_DRIVE + iSysApDriveList->MountDrive( iSysApDriveList->DefaultMemoryCard() ); + UpdateInsertedMemoryCardsL(); +#endif // RD_MULTIPLE_DRIVE + } + + if ( iSysApFeatureManager->MmcHotSwapSupported() ) + { + iSysApMMCObserver->StartMountObserver(); + } + + if ( iSysApPsmController ) + { + if ( iCharging ) // if charger is connected on boot PSM queries may need to be shown + { + HandleChargingStatusL( StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ) ); + } + } + + TInt batteryStatus = StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryStatus ); + TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: batteryStatus %d" ), batteryStatus ) ); + if( batteryStatus == EBatteryStatusLow || batteryStatus == EBatteryStatusEmpty ) + { + // low and empty battery states are informed to the user in device startup + HandleBatteryStatusL( batteryStatus ); + } + else if ( iSysApPsmController && !iCharging ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: batteryStatus %d, iCharging %d -> disable partial psm" ), batteryStatus, iCharging ) ); + + iSysApPsmController->BatteryLow( EFalse ); + iSysApPsmController->DoEnablePartialPsm( EFalse ); + } + + iSysApLocationPrivacyIndicator = CreateSysApLocationPrivacyIndicatorL( *this ); + iSysApLocationPrivacyIndicator->InitL(); + + if ( ! iSysApUsbIndicatorController ) + { + TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) ); + if ( usbErr ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::HandleUiReadyAfterBootL: error in constructing USB ind. controller %d" ), usbErr ) ); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) +// This method is not called after boot has finished. +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoStateChangedL(const RStarterSession::TGlobalState aSwState) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL: %d" ), aSwState ) ); + + switch ( aSwState ) + { + case RStarterSession::ENormal: + // status pane layout will updated when UI is ready + break; + case RStarterSession::ECharging: + SetStatusPaneLayoutL( ESysApCharging ); + break; + case RStarterSession::EAlarm: + SetStatusPaneLayoutL( ESysApAlarm ); + break; + default: + break; + }; + + TRAPD( simChangedErr, DoSimChangedFromPreviousBootL() ); + TRACES( RDebug::Print( _L("CSysApAppUi::DoStateChangedL: simChangedErr = %d" ), simChangedErr ) ); + simChangedErr = simChangedErr; // suppress 'variable not used' warning + LogsObserverL().HandleSimChangedCheckDoneL(); + + if ( iSysApFeatureManager->PowerSaveSupported() ) + { + // create controller before checking battery state, so that power saving can be enabled during boot if needed + if ( !iSysApPsmController ) // created only in first state change + { + iSysApPsmController = CSysApPsmController::NewL( *this ); + } + + // in charger boot explicitly disable partial power save mode + if ( aSwState == RStarterSession::ECharging ) + { + iSysApPsmController->ChargerConnected(); + iSysApPsmController->DoEnablePartialPsm( EFalse ); // disable partial power save now + } + } + + if ( aSwState == RStarterSession::ECharging || aSwState == RStarterSession::EAlarm ) + { + TInt state( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + //Also Charging status will be updated with the following function. + UpdateBatteryBarsL( state ); + } + + if( IsStateNormal() ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL to normal state.") ) ); + + iSysApBtController = CreateSysApBtControllerL( *this ); + iSysApBtSapController = CreateSysApBtSapControllerL( *this ); + + if ( iActivateBt ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Activating BT" ) ) ); + SetBtPowerState( ETrue ); + } + + if ( iDeactivateBt ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::DoStateChangedL Deactivating BT" ) ) ); + SetBtPowerState( EFalse ); + } + + // Other late initializations. + // In order to prevent unexpected behaviour e.g. in OOM situations, these calls are made to ensure + // that the services are connected when they are needed for the first time. + if ( !StarterSession().Handle() ) + { + User::Leave( KErrBadHandle ); + } + + if ( !KeyLock().Handle() ) + { + User::Leave( KErrBadHandle ); + } + +#ifdef __SYSAP_MODULE_TEST + ModuleTestShowUiNoteL( _L("SysAp: SW state normal!") ); +#endif + } + + // Allow lights + iSysApLightsController->AllowLightsOn(); + } + + +#endif // SYSAP_USE_STARTUP_UI_PHASE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UiReady() +// +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::UiReady() const + { +#ifdef SYSAP_USE_STARTUP_UI_PHASE + return iSysApStartupController->UiReady(); +#else // SYSAP_USE_STARTUP_UI_PHASE + // if startup UI phase information is not used, global system state normal is handled as UI idle state + return IsStateNormal(); +#endif // SYSAP_USE_STARTUP_UI_PHASE + } // ---------------------------------------------------------------------------- // CSysApAppUi::PrepareForShutdownAnimation() @@ -3012,14 +4737,17 @@ if ( iAnimationShowingTime ) { #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - - if (iPowerMenuDialog!=NULL) - { - //PowerMenu already exist - delete iPowerMenuDialog; - iPowerMenuDialog = NULL; - } - + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( EAvkonSIDPowerOffTone ); + CancelGlobalListQuery(); + + if ( iSysApPowerKeyMenuObserver ) + { + iSysApPowerKeyMenuObserver->Cancel(); + } + + // deactivate notifiers before showing the shutdown image + AknNotifierController::CancelAllNotifications(); + AknNotifierController::HideAllNotifications(ETrue); RWindowGroup groupWin = iCoeEnv->RootWin(); iCapturedAppskey = groupWin.CaptureKey( EKeyApplication, KModifierMask, KModifierMask ); iCapturedAppskeyUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyApplication0, KModifierMask, KModifierMask ); @@ -3048,163 +4776,370 @@ // ---------------------------------------------------------------------------- -// CSysApAppUi::DoStopAnimTiming( TAny* aObject ) -// ---------------------------------------------------------------------------- - -TInt CSysApAppUi::DoStopAnimTiming( TAny* aObject ) - { - TInt err(KErrNone); - CSysApAppUi* appUi = STATIC_CAST( CSysApAppUi*, aObject ); - - // This method could theoretically be called by two timers (iAnimTimer and one in CSysApShutdownAnimation), - // so a check is needed to prevent multiple executions. - if ( !(appUi->iShutdownContinued) ) - { - appUi->iShutdownContinued = ETrue; - - TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() Animation timer completed or animation skipped" ) ) ); - +// CSysApAppUi::PrepareForShutdownImage() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::PrepareForShutdownImage() + { + TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() START" ) ) ); + + // If RD_STARTUP_ANIMATION_CUSTOMIZATION is enabled, the following actions are always taken in PrepareForShutdownAnimation #ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION - if ( appUi->iAnimTimer ) - { - appUi->iAnimTimer->Cancel(); - } + if ( !iAnimationShowingTime ) // actions already taken in PrepareForShutdownAnimation + { + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( EAvkonSIDPowerOffTone ); + CancelGlobalListQuery(); + + if ( iSysApPowerKeyMenuObserver ) + { + iSysApPowerKeyMenuObserver->Cancel(); + } + + // deactivate notifiers before showing the shutdown image + AknNotifierController::CancelAllNotifications(); + AknNotifierController::HideAllNotifications(ETrue); + RWindowGroup groupWin = iCoeEnv->RootWin(); + iCapturedAppskey = groupWin.CaptureKey( EKeyApplication, KModifierMask, KModifierMask ); + iCapturedAppskeyUpAndDowns = groupWin.CaptureKeyUpAndDowns( EStdKeyApplication0, KModifierMask, KModifierMask ); + } #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION - TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() Call ContinueShutdown(...)" ) ) ); - appUi->ContinueShutdown(); - TRACES( RDebug::Print( _L("CSysApAppUi::DoStopAnimTiming() end") ) ); - } - - return err; - } - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ContinueShutdown() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ContinueShutdown() - { - TRACES( RDebug::Print(_L("CSysApAppUi::ContinueShutdown() started" ) ) ); - CompleteShutdown(); - TRACES( RDebug::Print(_L("CSysApAppUi::ContinueShutdown() completed" ) ) ); - } - -CEikStatusPane* CSysApAppUi::StatusPane() -{ -return iEikonEnv->AppUiFactory()->StatusPane(); -} - - -#ifndef RD_MULTIPLE_DRIVE - -// ---------------------------------------------------------------------------- -// CSysApAppUi::EjectUsed -// ---------------------------------------------------------------------------- - -void CSysApAppUi::EjectUsed( TInt /*aDrive*/ ) - { - } - -#else // RD_MULTIPLE_DRIVE - -// ---------------------------------------------------------------------------- -// CSysApAppUi::ShowEjectWaitNoteL -// ---------------------------------------------------------------------------- - -void CSysApAppUi::ShowEjectWaitNoteL( TInt /* aDriveToEject */ ) - { - /* if ( iSysApWaitNote ) - { - return; - } - HBufC* text = iSysApDriveList->GetFormattedDriveNameLC( - aDriveToEject, - 0, // Not used - R_QTN_EJECTING_MEMORY_NAME_WAIT ); - iSysApWaitNote = CSysApWaitNote::NewL( - iSysApFeatureManager->CoverDisplaySupported() ); - iSysApWaitNote->ShowNoteL( EClosingApplicationsNote, text ); - CleanupStack::PopAndDestroy( text ); - */ } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::IsEjectQueryVisible -// ---------------------------------------------------------------------------- - -TBool CSysApAppUi::IsEjectQueryVisible() - { -// if ( !iSysApConfirmationQuery ) +#ifndef __SYSAP_MODULE_TEST //to make errors during shutdown sequence being seen more easily + iEikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront ); + TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() Show Shutdown image" ) ) ); + ShowShutdownImage( EMbmSysapQgn_startup_screen ); +#endif + TRACES( RDebug::Print( _L("CSysApAppUi::PrepareForShutdownImage() END" ) ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetStatusPaneLauoutL( const TSysApPhoneState aState ) +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetStatusPaneLayoutL( const TSysApPhoneState aState ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::SetStatusPaneLayoutL aState: %d"), aState ) ); + if( aState == ESysApNormal ) + //Status pane cannot be even visible on Normal mode + { + StatusPane()->MakeVisible( EFalse ); + StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_EMPTY ); + } + else if( aState == ESysApCharging ) + //SysAp's statuspane is visible on Charging mode + { + StatusPane()->MakeVisible( ETrue ); + StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE ); + } + else if( aState == ESysApAlarm ) + { + if ( !Layout_Meta_Data::IsLandscapeOrientation() ) + { + // Portrait mode + StatusPane()->MakeVisible( ETrue ); + StatusPane()->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE ); + } + else + { + // Landscape mode + TInt layout = R_AVKON_STATUS_PANE_LAYOUT_POWER_OFF_RECHARGE; + // For side softkey devices, use different layout + if (AVKONENV->StatusPaneResIdForCurrentLayout(R_AVKON_STATUS_PANE_LAYOUT_USUAL) == R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_RIGHT) + layout = R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_RIGHT; + else if (AVKONENV->StatusPaneResIdForCurrentLayout(R_AVKON_STATUS_PANE_LAYOUT_USUAL) == R_AVKON_STACON_PANE_LAYOUT_USUAL_SOFTKEYS_LEFT) + layout = R_AVKON_STACON_PANE_LAYOUT_EMPTY_SOFTKEYS_LEFT; + + StatusPane()->MakeVisible( ETrue ); + StatusPane()->SwitchLayoutL( layout ); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::OkToInitiateShutdown() +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::OkToInitiateShutdown() + { + TInt swState; + RProperty::Get( KPSUidStartup, KPSGlobalSystemState, swState ); + + if( !iShutdownStarted && + swState == ESwStateStartingCriticalApps || + swState == ESwStateSelfTestOK || + swState == ESwStateSecurityCheck || + swState == ESwStateCriticalPhaseOK || + swState == ESwStateEmergencyCallsOnly || + swState == ESwStateCharging || + swState == ESwStateAlarm || + swState == ESwStateNormalRfOn || + swState == ESwStateNormalRfOff || + swState == ESwStateNormalBTSap || + swState == ESwStateFatalStartupError ) + { + iShutdownStarted = ETrue; + return ETrue; + } + else { return EFalse; } -// TInt queryId( iSysApConfirmationQuery->CurrentQuery() ); -// return ( queryId == ESysApEjectMmcQuery || queryId == ESysApRemoveMmcNote ); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::UpdateInsertedMemoryCardsL -// ---------------------------------------------------------------------------- - -void CSysApAppUi::UpdateInsertedMemoryCardsL() - { - // Update inserted memory cards - iSysApDriveList->GetMemoryCardsL( - iInsertedMemoryCards, CSysApDriveList::EIncludeInserted ); - - // Update memory card indicator status -// SetMemoryCardIndicatorL(); - - // Handle unlock - RunUnlockNotifierL(); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::EjectUsed -// ---------------------------------------------------------------------------- - -void CSysApAppUi::EjectUsed( TInt aDrive ) - { - // Check drive inserted before starting eject confirm query - TInt insertedIndex( CSysApDriveList::Find( iInsertedMemoryCards, aDrive ) ); - - TRACES( RDebug::Print( - _L( "CSysApAppUi::EjectUsed: drive: %d, index: %d" ), - aDrive, insertedIndex ) ); - - if ( insertedIndex == KErrNotFound ) - { - return; - } - - iMMCEjectUsed = ETrue; - iDriveToEject = aDrive; - iSysApDriveList->ResetDrivesToEject(); - TRAPD( err, EjectMMCL() ); - if ( err != KErrNone ) - { - TRACES( RDebug::Print( - _L( "CSysApAppUi::EjectUsed: err: %d" ), err ) ); - iMMCEjectUsed = EFalse; - } - } -#endif // RD_MULTIPLE_DRIVE - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::EjectMMCCanceled -// ---------------------------------------------------------------------------- - -void CSysApAppUi::EjectMMCCanceled() - { - // Called from eject confirm query, reset eject status -#ifdef RD_MULTIPLE_DRIVE - iMMCEjectUsed = EFalse; -#endif // RD_MULTIPLE_DRIVE - } - - + } + +/** + * To check the for an emergency call. + * + * @return ETrue if there is an emergency call active otherwise, EFalse. + */ +TBool IsEmergencyCall() + { + TBool retVal( EFalse ); + TInt err( KErrNone ); + TInt state( 0 ); + + err = RProperty::Get(KPSUidCtsyEmergencyCallInfo, KCTSYEmergencyCallInfo, state ); + if ( err == KErrNone && state ) + { + retVal = ETrue; + } + return retVal; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleCurrentCallStateChangeL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleCurrentCallStateChangeL( TInt aCurrentCallState ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: KUidCurrentCall: %d" ), aCurrentCallState ) ); + + if( iPowerKeyPopupMenuActive ) + { + CancelGlobalListQuery(); + } + + switch ( aCurrentCallState ) + { + case EPSCTsyCallStateRinging: + { + iSysApLightsController->CallComingInL( ETrue ); + // Disable keylock when a call is coming in + if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCradle || iKeyLockOnBeforeAlarm ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateRinging: disable keylock") ) ); + iKeyLockOnBeforeCall = ETrue; + + if ( iKeyLockEnabled || iDeviceLockEnabled ) + { + if ( !iSysApFeatureManager->TouchUnlockStrokeSupported() ) + { + KeyLock().DisableWithoutNote(); + } + } + } + break; + } + + case EPSCTsyCallStateDialling: + { + // Disable keypad lock during an emergency call + // no need to disable the key lock when a call is made using the wireless car-kit + // but if the call is an emergency one then we will disable the keypad lock + if ( iKeyLockEnabled || iDeviceLockEnabled || iKeyLockOnBeforeCradle ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateDialling: disable keylock") ) ); + iKeyLockOnBeforeCall = ETrue; + + if ( IsEmergencyCall() && (iKeyLockEnabled || iDeviceLockEnabled )) + { + KeyLock().DisableWithoutNote(); + } + } + + // Enable signal & network indicators when an emergency call is made in Offline Mode + if( iSysApOfflineModeController->OfflineModeActive() ) + { + // Signal indicators not updated with VoIP call + if ( StateOfProperty(KPSUidCtsyCallInformation, KCTsyCallType) != EPSCTsyCallTypeVoIP) + { + iEmergencyCallActive = ETrue; + UpdateSignalBarsL(); + SetSignalIndicatorL(); + } + } + break; + } + + case EPSCTsyCallStateConnected: + { + if (StateOfProperty(KPSUidCtsyCallInformation, KCTsyCallType) == EPSCTsyCallTypeCSVoice) + { + // Check if GPRS suspended note is required + iCallActivated = ETrue; + HandleGprsNotesL(); + } + if ( iDeviceLockEnabled ) + { + // Enable keylock via autolock emulation if device lock enabled. + // Otherwise e.g. messages can be read using softkeys during ongoing call. + KeyLock().EnableAutoLockEmulation(); + } + break; + } + + case EPSCTsyCallStateNone: + { + // reset timers in ScreenSaver and Autolock + User::ResetInactivityTime(); + + if ( iEmergencyCallActive ) + { + iEmergencyCallActive = EFalse; + UpdateSignalBarsL( 0 ); + SetSignalIndicatorL(); + } + if ( iKeyLockOnBeforeCall ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleCurrentCallStateChangeL: EPSCTsyCallStateNone: enable keylock") ) ); + iKeyLockOnBeforeCall = EFalse; + if ( !iDeviceLockEnabled ) + { + if ( !iKeyLockOnBeforeCradle && !iKeyLockOnBeforeAlarm && + !iSysApFeatureManager->TouchUnlockStrokeSupported() ) + { + if ( iSysApCenRepController->GetInt( KCRUidCommonTelephonySettings, KSettingsSummaryAfterCall ) == 1 ) + { + KeyLock().EnableWithoutNote(); // Let's not hide "Summary After Call" dialog + } + else + { + KeyLock().EnableKeyLock(); + } + } + } + else + { + KeyLock().EnableAutoLockEmulation(); + } + } + if ( iShowkeypadActivatedNoteAfterSoftReject ) + { + ShowUiNoteL( EKeypadActiveNote ); + iShowkeypadActivatedNoteAfterSoftReject = EFalse; + } + iCallActivated = EFalse; + break; + } + + default: + break; + } + + if ( aCurrentCallState != EPSCTsyCallStateRinging ) + { + iSysApLightsController->CallComingInL( EFalse ); + } + + SetIhfIndicatorL(); + SetHacIndicatorL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoSwStateNormalConstructionL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoSwStateNormalConstructionL() + { + // Let's ensure that the lights will remain on for 15 secs after sw state normal + User::ResetInactivityTime(); + + TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL : START" ) ) ); + + // In case of unexpected reset (e.g. hidden boot) the keylock must be enabled silently. Locking is done + // prior to time-consuming initializations, because otherwise UI is in unlocked state for a few seconds. + if ( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive ) == 1 ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL: enabling keylock") ) ); + KeyLock().EnableWithoutNote(); + } + + // Initiate bearer change observation + iSysApConnectionMonitorObserver = CSysApConnectionMonitorObserver::NewL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL: trying CSysApSsSettingsObserver::NewL()") ) ); + iSysApSsSettingsObserver = CSysApSsSettingsObserver::NewL( *this ); + + TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL: trying new ( ELeave ) CSysApPowerKeyMenuObserver") ) ); + iSysApPowerKeyMenuObserver = new( ELeave ) CSysApPowerKeyMenuObserver( *this ); + + TRACES( RDebug::Print( _L("SysAp: trying CSystemLock::NewL" ) ) ); + iSysApSystemLock = CSystemLock::NewL(); + + iSysApCenRepCallForwardingObserver = CSysApCenRepCallForwardingObserver::NewL( *this ); + + iSysApCenRepMsgWaitingObserver = CSysApCenRepMsgWaitingObserver::NewL( *this ); + + + if ( iSysApFeatureManager->Supported( KSysApFeatureIdBatteryInfoPopup ) ) + { + if( iSysApBatteryInfoController == NULL) + { + iSysApBatteryInfoController = CSysApBatteryInfoController::NewL( iSysApCenRepController->GetInt( KCRUidCoreApplicationUIsConf, + KCoreAppUIsBatteryInformationLowThreshold ) ); + } + } + + + TRACES( RDebug::Print( _L("CSysApAppUi::DoSwStateNormalConstructionL : END" ) ) ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoSimChangedFromPreviousBootL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DoSimChangedFromPreviousBootL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::DoSimChangedFromPreviousBootL: iSimChangedDone=%d" ), iSimChangedDone ) ); + + if ( !iSimChangedDone ) + { + iSimChangedDone = ETrue; + CSysApSimChanged* simChanged = CSysApSimChanged::NewL( *this, iEikonEnv->FsSession() ); + CleanupStack::PushL( simChanged ); + simChanged->HandleSimChangedL(); + CleanupStack::PopAndDestroy( simChanged ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CancelWaitNote() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::CancelWaitNote() + { + TRACES( RDebug::Print( _L("CSysApAppUi::CancelWaitNote" ) ) ); + if ( iSysApWaitNote ) + { + iSysApWaitNote->Cancel(); + delete iSysApWaitNote; + iSysApWaitNote = NULL; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CancelGlobalListQuery() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::CancelGlobalListQuery() + { + TRACES( RDebug::Print( _L("CSysApAppUi::CancelGlobalListQuery" ) ) ); + if ( iGlobalListQuery ) + { + iGlobalListQuery->CancelListQuery(); + delete iGlobalListQuery; + iGlobalListQuery = NULL; + } + } #ifndef RD_MULTIPLE_DRIVE // ---------------------------------------------------------------------------- @@ -3293,6 +5228,16 @@ #endif // RD_MULTIPLE_DRIVE +// ---------------------------------------------------------------------------- +// CSysApAppUi::DisconnectBtSap() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::DisconnectBtSap() + { + TRACES( RDebug::Print( _L("CSysApAppUi::DisconnectBtSap") ) ); + iSysApBtSapController->Disconnect(); + } + #ifndef RD_MULTIPLE_DRIVE // ---------------------------------------------------------------------------- // CSysApAppUi::RunUnlockNotifierL() @@ -3547,70 +5492,70 @@ TRACES( RDebug::Print( _L( "CSysApAppUi::MMCInsertedL") ) ); if ( iSysApFeatureManager->MmcSupported() && !iShutdownStarted ) - { - TBool normalState( UiReady() ); - - if ( normalState ) - { - TInt defaultMemoryCard( iSysApDriveList->DefaultMemoryCard() ); - TSysApMemoryCardStatus memoryCardStatus( iSysApDriveList->MemoryCardStatus( defaultMemoryCard ) ); - - TRACES( RDebug::Print( - _L( "CSysApAppUi::MMCInsertedL: drive: %d, memoryCardStatus: %d" ), defaultMemoryCard, memoryCardStatus ) ); - - switch ( memoryCardStatus ) - { - case ESysApMemoryCardInserted: // Fall through - case ESysApMemoryCardLocked: - { - // Reset eject and unlock of inserted memory card - iSysApDriveList->ResetDriveToEject( defaultMemoryCard ); - iSysApDriveList->ResetDriveUnlockQueryShown( defaultMemoryCard ); - -// CancelWaitNote(); - - if ( memoryCardStatus == ESysApMemoryCardInserted ) - { - TRACES( RDebug::Print( - _L( "CSysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardInserted: %d" ), memoryCardStatus ) ); - RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); - } - else - { - TRACES( RDebug::Print( - _L( "CSysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardLocked: %d" ), memoryCardStatus ) ); - RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); - } - break; - } - case ESysApMemoryCardNotInserted: - { - // Always reset eject and unlock of removed memory card - TBool isEject( iSysApDriveList->IsDriveToEject( defaultMemoryCard ) ); - - TRACES( RDebug::Print( - _L( "CSysApAppUi::MMCInsertedL: isEject: %d, drive: %d" ), - isEject, defaultMemoryCard ) ); - - iSysApDriveList->ResetDriveToEject( defaultMemoryCard ); - iSysApDriveList->ResetDriveUnlockQueryShown( defaultMemoryCard ); - - TRACES( RDebug::Print( - _L( "SysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardNotInserted: %d" ), memoryCardStatus ) ); - - RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); - break; - } - case ESysApMemoryCardStatusNotKnown: // Fall through - default: - { - break; - } - } - RunUnlockNotifierL(); - } - } - } + { + TBool normalState( UiReady() ); + + if ( normalState ) + { + TInt defaultMemoryCard( iSysApDriveList->DefaultMemoryCard() ); + TSysApMemoryCardStatus memoryCardStatus( iSysApDriveList->MemoryCardStatus( defaultMemoryCard ) ); + + TRACES( RDebug::Print( + _L( "CSysApAppUi::MMCInsertedL: drive: %d, memoryCardStatus: %d" ), defaultMemoryCard, memoryCardStatus ) ); + + switch ( memoryCardStatus ) + { + case ESysApMemoryCardInserted: // Fall through + case ESysApMemoryCardLocked: + { + // Reset eject and unlock of inserted memory card + iSysApDriveList->ResetDriveToEject( defaultMemoryCard ); + iSysApDriveList->ResetDriveUnlockQueryShown( defaultMemoryCard ); + + CancelWaitNote(); + + if ( memoryCardStatus == ESysApMemoryCardInserted ) + { + TRACES( RDebug::Print( + _L( "CSysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardInserted: %d" ), memoryCardStatus ) ); + RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); + } + else + { + TRACES( RDebug::Print( + _L( "CSysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardLocked: %d" ), memoryCardStatus ) ); + RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); + } + break; + } + case ESysApMemoryCardNotInserted: + { + // Always reset eject and unlock of removed memory card + TBool isEject( iSysApDriveList->IsDriveToEject( defaultMemoryCard ) ); + + TRACES( RDebug::Print( + _L( "CSysApAppUi::MMCInsertedL: isEject: %d, drive: %d" ), + isEject, defaultMemoryCard ) ); + + iSysApDriveList->ResetDriveToEject( defaultMemoryCard ); + iSysApDriveList->ResetDriveUnlockQueryShown( defaultMemoryCard ); + + TRACES( RDebug::Print( + _L( "SysApAppUi::MMCInsertedL: memoryCardStatus ESysApMemoryCardNotInserted: %d" ), memoryCardStatus ) ); + + RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); + break; + } + case ESysApMemoryCardStatusNotKnown: // Fall through + default: + { + break; + } + } + RunUnlockNotifierL(); + } + } + } // ---------------------------------------------------------------------------- @@ -3638,12 +5583,7 @@ if ( callState != EPSCTsyCallStateRinging && callState != EPSCTsyCallStateAlerting ) { - TInt defaultMemoryCard( iSysApDriveList->DefaultMemoryCard() ); - TSysApMemoryCardStatus memoryCardStatus( iSysApDriveList->MemoryCardStatus( defaultMemoryCard ) ); - if ( memoryCardStatus == ESysApMemoryCardLocked) - { - iSysApDriveUnlockHandler->StartUnlock(); - } + iSysApDriveUnlockHandler->StartUnlock(); } TRACES( RDebug::Print( @@ -3689,13 +5629,13 @@ iSysApDriveList->ResetDriveToEject( aDrive ); iSysApDriveList->ResetDriveUnlockQueryShown( aDrive ); -// CancelWaitNote(); + CancelWaitNote(); if ( aDrive == defaultMemoryCard ) { if ( memoryCardStatus == ESysApMemoryCardInserted ) { - RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); + RProperty::Set( KPSUidUikon, KUikMMCInserted, 1 ); } else { @@ -3715,7 +5655,7 @@ if ( !ignoreBeep ) { -// Beep(); + Beep(); iSysApLightsController->MemoryCardInsertedL(); } @@ -3733,12 +5673,12 @@ } } -// if ( iDriveToDismount == aDrive && iSysApConfirmationQuery ) + if ( iDriveToDismount == aDrive && iSysApConfirmationQuery ) { -// if ( iSysApConfirmationQuery->CurrentQuery() == ESysApRemoveMmcNote ) + if ( iSysApConfirmationQuery->CurrentQuery() == ESysApRemoveMmcNote ) { // User put back ejected memory card or did not remove it -// iSysApConfirmationQuery->Cancel(); + iSysApConfirmationQuery->Cancel(); } } RunUnlockNotifierL(); @@ -3765,19 +5705,19 @@ iSysApDriveList->ResetDriveInsertBeepIgnored( aDrive ); } -// CancelGlobalListQuery(); // Cancel power menu + CancelGlobalListQuery(); // Cancel power menu if ( aDrive == defaultMemoryCard ) { RProperty::Set( KPSUidUikon, KUikMMCInserted, 0 ); } -// if ( iSysApConfirmationQuery ) + if ( iSysApConfirmationQuery ) { -// if ( iSysApConfirmationQuery->CurrentQuery() == ESysApEjectMmcQuery ) + if ( iSysApConfirmationQuery->CurrentQuery() == ESysApEjectMmcQuery ) { // User removed memory card too early -// iSysApConfirmationQuery->Cancel(); + iSysApConfirmationQuery->Cancel(); // Allow application closing to execute. // Also FileManager is closed in this case, regardless where the eject was initiated from. iMMCEjectUsed = EFalse; @@ -3826,7 +5766,7 @@ iInsertedMemoryCards, CSysApDriveList::EIncludeInserted ); // Update memory card indicator status -// SetMemoryCardIndicatorL(); + SetMemoryCardIndicatorL(); TRACES( RDebug::Print( _L( "CSysApAppUi::MMCStatusChangedL END: MMCCount: %d, iMMCEjectUsed: %d" ), @@ -3916,156 +5856,1179 @@ if ( !iSysApDriveEjectHandler->CompleteDismount( iDriveToDismount ) ) { // When ready, check for locked memory cards and update indicators - // TRAP_IGNORE( SetMemoryCardIndicatorL() ); + TRAP_IGNORE( SetMemoryCardIndicatorL() ); TRAP_IGNORE( RunUnlockNotifierL() ); } } #endif // RD_MULTIPLE_DRIVE - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleApplicationSpecificEventL: aType:%d"), aType ) ); - - CEikAppUi::HandleApplicationSpecificEventL(aType, aEvent); - - if ( ResourcesFreed() ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleApplicationSpecificEventL: discarded, shutting down") ) ); - return; - } +// ---------------------------------------------------------------------------- +// CSysApAppUi::EjectStarted() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::EjectStarted( TBool ejectStarted ) + { + TRACES( RDebug::Print( _L( "CSysApAppUi::EjectStarted" ) ) ); + iMMCEjectUsed = ejectStarted; - switch( aType ) - { - case EEikKeyLockEnabled: - iKeyLockEnabled = ETrue; - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 1 ); -// SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOn ); - iSysApLightsController->KeylockStateChangedL( ETrue ); +#ifndef RD_MULTIPLE_DRIVE + iFileManagerCloseDisabled = ejectStarted; +#endif // RD_MULTIPLE_DRIVE +} + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DoLightsTimeoutChangedL +// ---------------------------------------------------------------------------- +void CSysApAppUi::DoLightsTimeoutChangedL( const TInt aTimeout ) + { + iSysApLightsController->DoLightsTimeoutChangedL( aTimeout ); + } + +#ifdef __SYSAP_MODULE_TEST + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ModuleTestShowUiNoteL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ModuleTestShowUiNoteL( const TDesC& noteText ) const + { + CAknGlobalNote* note = CAknGlobalNote::NewLC(); + note->SetTone( EAvkonSIDNoSound ); + note->ShowNoteL( EAknGlobalInformationNote, noteText ); + CleanupStack::PopAndDestroy(); // note + } + +#endif + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowShutdownNoteL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::ShowShutdownNoteL() + { + TRACES( RDebug::Print( _L( "CSysApAppUi::ShowShutdownNoteL") ) ); + ShowUiNoteL( EShutdownNote ); + User::After( KTimeToShowShutdownNote ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::Beep() +// ---------------------------------------------------------------------------- +void CSysApAppUi::Beep() + { + static_cast(iEikonEnv->EikAppUi())->KeySounds()->PlaySound( EAvkonSIDInformationTone ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SimSupported() +// ---------------------------------------------------------------------------- +TBool CSysApAppUi::SimSupported() + { + return iSysApFeatureManager->SimSupported(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::IsStateNormal() +// +// ---------------------------------------------------------------------------- +TBool CSysApAppUi::IsStateNormal() const + { + TInt state; + TInt errorCode = + RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); + if ( errorCode == KErrNone ) + { + return state == ESwStateNormalRfOn || + state == ESwStateNormalRfOff || + state == ESwStateNormalBTSap; + } + else + { + TRACES( RDebug::Print( _L( "CSysApAppUi::IsStateNormal: Failed to read global system state, error code %d." ), errorCode ) ); + return EFalse; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::BatteryEmptyL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::BatteryEmptyL() + { + iSysApLightsController->BatteryEmptyL( ETrue ); + // Do not reactivate keyguard in the next startup + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 0 ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::Max() +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::Max( const TInt aA, const TInt aB, const TInt aC ) + { + TInt max( aA ); + if ( aB > max ) + { + max = aB; + } + if ( aC > max ) + { + max = aC; + } + return max; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetStarterState() +// ---------------------------------------------------------------------------- + +TInt CSysApAppUi::SetStarterState( const RStarterSession::TGlobalState aState ) + { + if ( iSysApStartupController->GlobalStateChangeAllowed( aState ) ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::SetStarterState: aState=%d" ), aState ) ); + return StarterSession().SetState( aState ); + } + else + { + TRACES( RDebug::Print( _L("CSysApAppUi::SetStarterState: aState=%d - not allowed" ), aState ) ); + return KErrNone; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::GetBtSapDeviceNameL() +// ---------------------------------------------------------------------------- + +HBufC* CSysApAppUi::GetBtSapDeviceNameL() + { + return iSysApBtSapController->GetBtSapDeviceNameL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowAlarmIndicatorL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowAlarmIndicatorL( TBool aShowIndicator ) + { + if ( aShowIndicator) + { + SetIndicatorStateL( EAknIndicatorAlarmClock, EAknIndicatorStateOn ); + } + else + { + SetIndicatorStateL( EAknIndicatorAlarmClock, EAknIndicatorStateOff ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SimulateFlipKeyEventL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SimulateFlipKeyEventL( TBool aFlipOpen ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::SimulateFlipKeyEventL: aFlipOpen: %d" ), aFlipOpen ) ); + + /* + Flip key is constructed when a flip notification via Pub&Sub is received. The reason behind + providing this as a key event is to enable unified handling of keys also with flip, and because + flip is captured&consumed by Avkon it is not possible to capture flip key events directly + from default handler/plugins. + */ + + TKeyEvent flipEvent; + flipEvent.iCode = aFlipOpen ? EKeyFlipOpen : EKeyFlipClose; + flipEvent.iScanCode = 0; + flipEvent.iModifiers = 0; + flipEvent.iRepeats = 0; + + HandleKeyEventL( flipEvent, EEventKey ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetFlipOpenL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetFlipOpenL( TBool aFlipOpen ) + { + iSysApLightsController->SetFlipOpenL( aFlipOpen ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetGripOpenL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SetGripOpenL( TBool aGripOpen ) + { + iSysApLightsController->SetGripOpenL( aGripOpen ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetNetworkConnectionAllowed() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetNetworkConnectionAllowed( TCoreAppUIsNetworkConnectionAllowed aNetworkConnectionAllowed ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::SetNetworkConnectionAllowed: status: %d" ), aNetworkConnectionAllowed ) ); + + iSysApCenRepController->SetInt( KCRUidCoreApplicationUIs, KCoreAppUIsNetworkConnectionAllowed, (TInt) aNetworkConnectionAllowed ); + + // Also set the Symbian PS key used for the same purpose: + RProperty::Set(KUidSystemCategory, KUidPhonePwr.iUid, aNetworkConnectionAllowed ? ESAPhoneOn : ESAPhoneOff); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::GetTelServerL() +// ---------------------------------------------------------------------------- + +RTelServer* CSysApAppUi::GetTelServer() + { + if ( iSysApEtelConnector ) + { + return iSysApEtelConnector->GetTelServer(); + } + else + { + return NULL; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CoverDisplaySupported() +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::CoverDisplaySupported() + { + return iSysApFeatureManager->CoverDisplaySupported(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::StarterSession() +// ---------------------------------------------------------------------------- + +RStarterSession& CSysApAppUi::StarterSession() + { + if ( !iStarterSession.Handle() ) + { + // All server connections are tried to be made KTriesToConnectServer times because occasional + // fails on connections are possible at least on some servers + TRACES( RDebug::Print( _L("CSysApAppUi::StarterSession: trying RStarterSession::Connect()") ) ); + TInt thisTry = 0; + TInt err; + while ( ( err = iStarterSession.Connect() ) != KErrNone && ( thisTry++ ) <= KTriesToConnectServer ) + { + User::After( KTimeBeforeRetryingServerConnection ); + } + + if ( err != KErrNone ) + { + // What do in error case? + TRACES( RDebug::Print( _L("CSysApAppUi::StarterSession: RStarterSession::Connect() failed with %d"), err ) ); + } + } + + return iStarterSession; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::KeyLock() +// ---------------------------------------------------------------------------- + +RAknKeylock2& CSysApAppUi::KeyLock() + { + if ( !iKeyLock.Handle() ) + { + // All server connections are tried to be made KTriesToConnectServer times because occasional + // fails on connections are possible at least on some servers + TInt thisTry = 0; + TInt err; + + TRACES( RDebug::Print( _L("CSysApAppUi::KeyLock: trying RAknKeylock2::Connect()") ) ); + thisTry = 0; + while ( ( err = iKeyLock.Connect() ) != KErrNone && ( thisTry++ ) <= KTriesToConnectServer ) + { + User::After( KTimeBeforeRetryingServerConnection ); + } + + if ( err != KErrNone ) + { + // What do in error case? + TRACES( RDebug::Print( _L("CSysApAppUi::KeyLock: RAknKeylock2::Connect() failed with %d"), err ) ); + } + } + + return iKeyLock; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CenRepController() +// ---------------------------------------------------------------------------- + +CSysApCenRepController& CSysApAppUi::CenRepController() + { + __ASSERT_ALWAYS( iSysApCenRepController, User::Panic( _L("CSysApAppUi::CenRepController"), KErrBadHandle ) ); + + return *iSysApCenRepController; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ExecCommandL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::ExecCommandL( TSysapCommand aCommand ) + { + ExecCommandL( aCommand, KNullDesC8 ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ExecCommandL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::ExecCommandL( TSysapCommand aCommand, const TDesC8& aParam ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ExecCommandL: aCommand=%d"), aCommand ) ); + + switch ( aCommand ) + { + case EResetKeyguardState: // reset the internal keyguard flags of the SysAp, except for iKeyLockOnBeforeCradle + iKeyLockOnBeforeCall = EFalse; + iKeyLockOnBeforeAlarm = EFalse; break; - case EEikKeyLockDisabled: - iKeyLockEnabled = EFalse; - iSysApCenRepController->SetInt( KCRUidCoreApplicationUIsSysAp, KSysApKeyguardActive, 0 ); -// SetIndicatorStateL( EAknIndicatorKeyguard, EAknIndicatorStateOff ); - if (! iDeviceLockEnabled ) + + case ECancelPowermenu: // hide power menu if it is visible + if( iPowerKeyPopupMenuActive ) { - iSysApLightsController->KeylockStateChangedL( EFalse ); - if ( iSysApFeatureManager->MmcHotSwapSupported() ) - { - if ( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateRinging && StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) != EPSCTsyCallStateAlerting ) - { - RunUnlockNotifierL(); - } - } + CancelGlobalListQuery(); } break; - case EEikKeyLockPowerKeyPressed: //sent when power key is captured by keylockserver -// HandleShortPowerKeyPressedL(); + + case EUpdateLights: // apply key specific light handling + { + TUpdateLightsBuf lightBuf; + lightBuf.Copy( aParam ); + + switch ( lightBuf() ) + { + case EKeyGripClose: + SetGripOpenL( EFalse ); + break; + + case EKeyGripOpen: + SetGripOpenL( ETrue ); + break; + + case EKeyFlipClose: + SetFlipOpenL( EFalse ); + break; + + case EKeyFlipOpen: + SetFlipOpenL( ETrue ); + break; + + default: + // No specific light handling for other keys. + break; + } + } break; - case EEikKeyLockLightsOnRequest: - iSysApLightsController->SetLightsOnUnlockNoteL(); + default: + // do nothing in release builds since no harm is done + __ASSERT_DEBUG( EFalse, User::Panic( _L("CSysApAppUi::ExecCommandL: Invalid command"), KErrArgument ) ); break; - - case EEikEcsQueryLights: // emergency note is shown - iSysApLightsController->SetLightsOnEcsQueryL(); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ExecQueryL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::ExecQueryL( TSysapQuery aQuery, TDes8& aReturn ) + { + ExecQueryL( aQuery, aReturn, KNullDesC8 ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ExecQueryL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::ExecQueryL( TSysapQuery aQuery, TDes8& aReturn, const TDesC8& /*aParam*/ ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ExecQueryL: aQuery=%d"), aQuery ) ); + + switch ( aQuery ) + { + case EGetHwrmLight: // get handle to HWRM client session. Returns CHWRMLight*. + { + THwrmLightBuf retBuf( iSysApLightsController->GetHwrmLight() ); + aReturn.Copy( retBuf ); + } break; - case EEikSecurityQueryLights: // for device lock security query - iSysApLightsController->SetLightsOnSecurityQueryL(); + case EGetKeylock: // get handle to keylock client session. Returns RAknKeylock2*. + { + TKeyLockBuf retBuf( &(KeyLock()) ); + aReturn.Copy( retBuf ); + } break; default: + __ASSERT_DEBUG( EFalse, User::Panic( _L("CSysApAppUi::ExecQueryL: Invalid query"), KErrArgument ) ); + User::Leave( KErrArgument ); break; - } - } - - - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleNspsRawKeyEventL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleNspsRawKeyEventL() - { -#ifdef __SYSAP_MODULE_TEST - ModuleTestShowUiNoteL( _L("Network wakeup from NSPS") ); -#endif - - if ( iSysApEtelConnector ) - { - iSysApEtelConnector->CommandNetCsWakeupOnNsps(); - } - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::UpdateSignalBarsL() -// ---------------------------------------------------------------------------- - -void CSysApAppUi::UpdateSignalBarsL() - { -// UpdateSignalBarsL(iSysApEtelConnector->GetSignalBars()); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleSmsStorageNotificationL( TBool aSimStoreFull ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleSmsStorageNotificationL( TBool aSimStoreFull ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleSmsStorageNotificationL: aSimStoreFull: %d "), aSimStoreFull ) ); - - if ( aSimStoreFull ) - { -/* HBufC* noteStringBuf; - noteStringBuf = StringLoader::LoadLC( R_QTN_MEMLO_MEMORY_LOW_SIM_MES, iEikonEnv ); - TPtr textBuffer = noteStringBuf->Des(); - iSysApMsgSimMemLowQuery->StartL( textBuffer ); - CleanupStack::PopAndDestroy(); -*/ } - -// SetEnvelopeIndicatorL(); - } - -// ---------------------------------------------------------------------------- -// CSysApAppUi::HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ) -// ---------------------------------------------------------------------------- - -void CSysApAppUi::HandleNetworkNspsNotification( RMmCustomAPI::TNspsStatus aNspsStatus ) - { - TRACES( RDebug::Print( _L("CSysApAppUi::HandleNetworkNspsNotification aNspsStatus:%d, iNsps:%d )" ), aNspsStatus, iNsps ) ); - if( iSysApNspsHandler ) - { - if( aNspsStatus == RMmCustomAPI::ENspsOn ) - { - if( !iNsps ) + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowShutdownImage +// ---------------------------------------------------------------------------- +// +TInt CSysApAppUi::ShowShutdownImage( TInt aBitmapId ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImage") ) ); + + TRAPD( err, ShowShutdownImageL( aBitmapId ) ); + + if ( err != KErrNone ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImageL failed, err=%d"), err ) ); + } + + return err; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowShutdownImageL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::ShowShutdownImageL( TInt aBitmapId ) + { + TRACES( RDebug::Print(_L("CSysApAppUi::ShowShutdownImageL") ) ); + + if ( !iSysApShutdownImage ) // Shutdown image may be shown without entering normal state (e.g. charging), so construct here + { + TRACES( RDebug::Print( _L("CSysApAppUi::ShowShutdownImageL: trying CSysApShutdownImage::NewL()") ) ); + iSysApShutdownImage = CSysApShutdownImage::NewL(); + } + + TRACES( RDebug::Print( _L("CSysApAppUi::ShowShutdownImageL: trying CSysApShutdownImage::ShowShutdownImageL()") ) ); + iSysApShutdownImage->ShowShutdownImageL( aBitmapId ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::IgnoreZeroNetworkBarNotifications +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::IgnoreZeroNetworkBarNotifications(TBool aIgnore) + { + iIgnoreZeroNetworkBarNotifications = aIgnore; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::BtSapEnabled() +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::BtSapEnabled() + { + if ( iSysApBtSapController ) + { + return iSysApBtSapController->BtSapEnabled(); + } + + return EFalse; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::DeactivateBT +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::DeactivateBT() + { + // Will deactivate BT when changing to normal mode + iDeactivateBt = ETrue; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetHacIndicatorL() +// ---------------------------------------------------------------------------- +void CSysApAppUi::SetHacIndicatorL() + { + + if ( !iSysApCenRepHacSettingObserver ) + { + // Do nothing if HAC setting observer has not been created yet + // This occurs in case some party is trying to set HAC indicator during + // ConstructL(), e.g. when switching from offline to online during startup + TRACES( RDebug::Print( _L("CSysApAppUi::SetHacIndicatorL: do nothing, HAC observer does not exist yet") ) ); + return; + } + + if ( iSysApCenRepHacSettingObserver->HacMode() ) + { + TBool accessoryConnected ( EFalse ); + + TAccMode accMode(EAccModeHandPortable); + + if ( iSysApAccessoryObserver ) + { + accMode = iSysApAccessoryObserver->GetAccessoryMode(); + + if ( accMode != EAccModeHandPortable ) + { + accessoryConnected = ETrue; + } + } + + TInt indicatorState = EAknIndicatorStateOn; + + if ( !accessoryConnected ) // When accessory is not connected, check offline and call state + { + if ( OfflineModeActive() ) // HAC indicator is not shown in offline mode + { + indicatorState = EAknIndicatorStateOff; + } + else { -#ifdef __SYSAP_MODULE_TEST - TRAPD( err, ModuleTestShowUiNoteL( _L("Setting NSPS on") ) ); -#endif - iSysApNspsHandler->SetNspsOn(); - iNsps = ETrue; + // during active call with IHF activated HAC indicator is not shown + TInt callState( StateOfProperty( KPSUidCtsyCallInformation, KCTsyCallState ) ); + if ( callState < KErrNone ) + { + callState = EPSCTsyCallStateNone; + } + + if ( callState != EPSCTsyCallStateNone && IhfEnabledL() ) + { + indicatorState = EAknIndicatorStateOff; + } } - } - else if( aNspsStatus == RMmCustomAPI::ENspsOff ) - { - if( iNsps ) + + } + else + { + // If an accessory is connected, HAC indicator should not be shown + indicatorState = EAknIndicatorStateOff; + } + + SetIndicatorStateL( EAknIndicatorHAC, indicatorState ); + + } + else + { + // If HAC is not active, always disable indicator regardless of accessory state + SetIndicatorStateL( EAknIndicatorHAC, EAknIndicatorStateOff ); + } + + + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleResourceChangeL() +// ---------------------------------------------------------------------------- + +void CSysApAppUi::HandleResourceChangeL( TInt aType ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleResourceChangeL aType: %d"), aType ) ); + CAknAppUi::HandleResourceChangeL(aType); + + if ( aType == KEikDynamicLayoutVariantSwitch ) + { +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + iSysApShutdownImage->SetRect( ApplicationRect() ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + TInt mode; + User::LeaveIfError( RProperty::Get( KPSUidStartup, KPSGlobalStartupMode, mode ) ); + + if ( mode == EStartupModeAlarm ) + { + SetStatusPaneLayoutL( ESysApAlarm ); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetMemoryCardIndicatorL +// ---------------------------------------------------------------------------- + +void CSysApAppUi::SetMemoryCardIndicatorL() + { + if ( iSysApFeatureManager->Supported( KSysApFeatureIdMemoryCardIcon ) ) + { +#ifndef RD_MULTIPLE_DRIVE + TSysApMemoryCardStatus memoryCardStatus = iSysApMMCObserver->MemoryCardStatus(); + + TRACES( RDebug::Print( _L("CSysApAppUi::SetMemoryCardIndicatorL: memoryCardStatus=%d"), memoryCardStatus ) ); + + if ( memoryCardStatus == ESysApMemoryCardInserted || memoryCardStatus == ESysApMemoryCardLocked ) +#else // RD_MULTIPLE_DRIVE + TInt insertedCount( CSysApDriveList::NonUsbDriveCount( iInsertedMemoryCards ) ); + + TRACES( RDebug::Print( _L("CSysApAppUi::SetMemoryCardIndicatorL: insertedCount=%d"), insertedCount ) ); + + if ( insertedCount > 0 ) +#endif // RD_MULTIPLE_DRIVE + { + SetIndicatorStateL( EAknIndicatorMemoryCard, EAknIndicatorStateOn ); + } + else + { + SetIndicatorStateL( EAknIndicatorMemoryCard, EAknIndicatorStateOff ); + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SysApFeatureManager +// ---------------------------------------------------------------------------- + +CSysApFeatureManager& CSysApAppUi::SysApFeatureManager() + { + __ASSERT_DEBUG( iSysApFeatureManager, User::Panic( _L("iSysApFeatureManager == NULL"), KErrBadHandle ) ); + + return *iSysApFeatureManager; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetUsbAttachStatus +// ---------------------------------------------------------------------------- +#ifndef RD_MULTIPLE_DRIVE +void CSysApAppUi::SetUsbAttachStatus( const TBool aUsbAttached ) + { + // Prevent double beep when USB file transfer gets activated but + // allow MMC inserted beep when: + // a) USB file transfer is active + // b) MMC is not inserted when USB cable is attached + iHideNextBeep = ( iMMCInserted && aUsbAttached ); + } +#else // RD_MULTIPLE_DRIVE +void CSysApAppUi::SetUsbAttachStatus( const TBool aUsbAttached ) + { + TRACES( RDebug::Print( + _L( "CSysApAppUi::SetUsbAttachStatus: aUsbAttached: %d" ), + aUsbAttached ) ); + + if ( aUsbAttached ) + { + // For ignoring extra beeps caused by USB file transfer + iSysApDriveList->ResetDrivesInsertBeepIgnored(); + iSysApDriveList->MarkDrivesInsertBeepIgnored( iInsertedMemoryCards ); + } + } +#endif // RD_MULTIPLE_DRIVE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::IhfEnabledL +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::IhfEnabledL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::IhfEnabledL(): iSysApAudioRoutingObserver=0x%x"), iSysApAudioRoutingObserver ) ); + + if ( !iSysApAudioRoutingObserver ) // create observer if needed + { + iSysApAudioRoutingObserver = CSysApAudioRoutingObserver::NewL( *this ); + } + + return iSysApAudioRoutingObserver->IhfEnabled(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::IsDeviceModeKey +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::IsDeviceModeKey( const TKeyEvent& aKeyEvent ) const + { + return CSysApDefaultKeyHandler::IsDeviceModeKey( aKeyEvent ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ResourcesFreed +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::ResourcesFreed() const + { + return iResourcesFreed; + } + +/* +---------------------------------------------------------------------------- +CSysApAppUi::IsEncryptionOperationOngoingL() +Introduced the code as a part of Sub : 405-3362 - Power Management SUB for ES +recapture functionalities in platform which support multidrive as well. +------------------------------------------------------------------------------- +*/ +TBool CSysApAppUi::IsEncryptionOperationOngoingL() const + { + TBool deFeatureSupported(EFalse); + FeatureManager::InitializeLibL(); + deFeatureSupported = FeatureManager::FeatureSupported( KFeatureIdFfDeviceEncryptionFeature); + FeatureManager::UnInitializeLib(); + + if(deFeatureSupported) + { + /** + * Store the last memory status changed + * 0: Idle. It can be Encrypted or Decrypted + * 1: Encrypting + * 2: Decrypting + **/ + + RProperty deProperty; + User::LeaveIfError(deProperty.Attach(KDevEncProtectedUid, KDevEncOperationKey,EOwnerThread)); + TInt deValue = 0; + if((deProperty.Get(deValue)== KErrNone)&&( deValue == EOpEncrypting || deValue == EOpDecrypting)) + { + deProperty.Close(); + return ETrue; + } + else + { + deProperty.Close(); + return EFalse; + } + } + else + { + return EFalse; + } + } +// ---------------------------------------------------------------------------- +// CSysApAppUi::EtelConnector +// ---------------------------------------------------------------------------- + +CSysApEtelConnector* CSysApAppUi::EtelConnector() const + { + return iSysApEtelConnector; + } + +#ifndef RD_MULTIPLE_DRIVE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::EjectUsed +// ---------------------------------------------------------------------------- + +void CSysApAppUi::EjectUsed( TInt /*aDrive*/ ) + { + } + +#else // RD_MULTIPLE_DRIVE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::ShowEjectWaitNoteL +// ---------------------------------------------------------------------------- + +void CSysApAppUi::ShowEjectWaitNoteL( TInt aDriveToEject ) + { + if ( iSysApWaitNote ) + { + return; + } + HBufC* text = iSysApDriveList->GetFormattedDriveNameLC( + aDriveToEject, + 0, // Not used + R_QTN_EJECTING_MEMORY_NAME_WAIT ); + iSysApWaitNote = CSysApWaitNote::NewL( + iSysApFeatureManager->CoverDisplaySupported() ); + iSysApWaitNote->ShowNoteL( EClosingApplicationsNote, text ); + CleanupStack::PopAndDestroy( text ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::IsEjectQueryVisible +// ---------------------------------------------------------------------------- + +TBool CSysApAppUi::IsEjectQueryVisible() + { + if ( !iSysApConfirmationQuery ) + { + return EFalse; + } + TInt queryId( iSysApConfirmationQuery->CurrentQuery() ); + return ( queryId == ESysApEjectMmcQuery || queryId == ESysApRemoveMmcNote ); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UpdateInsertedMemoryCardsL +// ---------------------------------------------------------------------------- + +void CSysApAppUi::UpdateInsertedMemoryCardsL() + { + // Update inserted memory cards + iSysApDriveList->GetMemoryCardsL( + iInsertedMemoryCards, CSysApDriveList::EIncludeInserted ); + + // Update memory card indicator status + SetMemoryCardIndicatorL(); + + // Handle unlock + RunUnlockNotifierL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::EjectUsed +// ---------------------------------------------------------------------------- + +void CSysApAppUi::EjectUsed( TInt aDrive ) + { + // Check drive inserted before starting eject confirm query + TInt insertedIndex( CSysApDriveList::Find( iInsertedMemoryCards, aDrive ) ); + + TRACES( RDebug::Print( + _L( "CSysApAppUi::EjectUsed: drive: %d, index: %d" ), + aDrive, insertedIndex ) ); + + if ( insertedIndex == KErrNotFound ) + { + return; + } + + iMMCEjectUsed = ETrue; + iDriveToEject = aDrive; + iSysApDriveList->ResetDrivesToEject(); + TRAPD( err, EjectMMCL() ); + if ( err != KErrNone ) + { + TRACES( RDebug::Print( + _L( "CSysApAppUi::EjectUsed: err: %d" ), err ) ); + iMMCEjectUsed = EFalse; + } + } + +#endif // RD_MULTIPLE_DRIVE + +// ---------------------------------------------------------------------------- +// CSysApAppUi::EjectMMCCanceled +// ---------------------------------------------------------------------------- + +void CSysApAppUi::EjectMMCCanceled() + { + // Called from eject confirm query, reset eject status +#ifdef RD_MULTIPLE_DRIVE + iMMCEjectUsed = EFalse; +#endif // RD_MULTIPLE_DRIVE + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::UsbChargerDetector +// ---------------------------------------------------------------------------- +// +TSysApUsbChargerDetector& CSysApAppUi::UsbChargerDetector() + { + return iSysApUsbChargerDetector; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleUsbCharger +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::HandleUsbCharger( const TInt aValue ) + { + if ( aValue == EChargingStatusCharging || + aValue == EChargingStatusChargingContinued || + aValue == EChargingStatusAlmostComplete ) + { + iSysApUsbChargerDetector.SetChargingUsed( ETrue ); + if ( !iSysApUsbIndicatorController && + iSysApFeatureManager->Supported( KSysApFeatureIdChargerReminderNotes ) && + iSysApFeatureManager->Supported( KSysApFeatureIdUsbChargingWithoutReminderNotes ) ) + { + // Start observing USB state for the reminder note + TRAPD ( usbErr, iSysApUsbIndicatorController = CreateSysApUsbIndicatorL( *this ) ); + if ( usbErr ) { -#ifdef __SYSAP_MODULE_TEST - TRAPD( err, ModuleTestShowUiNoteL( _L("Setting NSPS off") ) ); -#endif - iSysApNspsHandler->SetNspsOff(); - iNsps = EFalse; + TRACES( RDebug::Print( + _L("CSysApAppUi::HandleUsbCharger: error in constructing USB ind. controller %d" ), + usbErr ) ); + } + } + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::SetEnvelopeIndicatorL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::SetEnvelopeIndicatorL() + { + TInt phoneStoreStatus( StateOfProperty( KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ) ); + TInt inboxStatus( StateOfProperty( KUidSystemCategory, KUidInboxStatusValue ) ); + TBool simStoreFull( iSysApEtelConnector && iSysApEtelConnector->IsSimSmsStoreFull() ); + + TRACES( RDebug::Print( + _L("CSysApAppUi::SetEnvelopeIndicatorL() phoneStoreStatus %d, simStoreFull %d, inboxStatus %d"), + phoneStoreStatus, simStoreFull, inboxStatus ) ); + + if ( phoneStoreStatus == ESmsDiskSpaceFull || simStoreFull ) + { + // Blink the Envelope indicator + SetIndicatorStateL( EAknIndicatorEnvelope, EAknIndicatorStateAnimate ); + } + else if ( inboxStatus == ESADocumentsInInbox ) + { + // Show the Envelope indicator. + SetIndicatorStateL( EAknIndicatorEnvelope, EAknIndicatorStateOn ); + } + else + { + // Hide the Envelope indicator. + SetIndicatorStateL( EAknIndicatorEnvelope, EAknIndicatorStateOff ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::LogsObserverL +// ---------------------------------------------------------------------------- +// +CSysApCenRepLogsObserver& CSysApAppUi::LogsObserverL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::LogsObserverL()") ) ); + + // Create Logs observer when it is needed for the first time + if ( !iSysApCenRepLogsObserver ) + { + iSysApCenRepLogsObserver = CSysApCenRepLogsObserver::NewL( *this ); + } + + return *iSysApCenRepLogsObserver; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::NotifyPowerSaveModeL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::NotifyPowerSaveModeL( TSysApPsmStatus aStatus ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::NotifyPowerSaveModeL aStatus: %d"), aStatus ) ); + + // cancel any active power saving query because user has changed the state manually + CancelQuery( ESysApBattChargingPowerSavingQuery ); + CancelQuery( ESysApBattLowPowerSavingQuery ); + + switch ( aStatus ) + { + case MSysApPsmControllerNotifyCallback::EPsmActivationComplete: + UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + ShowUiNoteL( EPowerSaveModeActivated ); + break; + + case MSysApPsmControllerNotifyCallback::EPsmDeactivationComplete: + UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + ShowUiNoteL( EPowerSaveModeDeactivated ); + break; + + case MSysApPsmControllerNotifyCallback::EPsmActivationFailed: + ShowUiNoteL( ECannotActivatePowerSaveMode ); + break; + + case MSysApPsmControllerNotifyCallback::EPsmDeactivationFailed: + ShowUiNoteL( ECannotDeactivatePowerSaveMode ); + break; + + default: + break; + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleBatteryStatusL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::HandleBatteryStatusL( const TInt aValue ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleBatteryStatusL aValue: %d"), aValue ) ); + + if ( aValue == EBatteryStatusEmpty ) + { + //Display Recharge Battery note + ShowUiNoteL( ERechargeBatteryNote ); + BatteryEmptyL(); + } + else if ( aValue == EBatteryStatusLow ) + { + if ( iSysApPsmController && UiReady() ) + { + iSysApPsmController->BatteryLow( ETrue ); + + if ( iSysApPsmController->ShowActivateQuery()) + { + // show activation query, replaces the first battery low query + ShowQueryL( ESysApBattLowPowerSavingQuery ); } - } - } - } - - - -//end of file + else // default low warning note must be shown + { + // activate partial power save mode on first low warning + iSysApPsmController->DoEnablePartialPsm( ETrue ); // activated on first warning note + //Display Battery Low note. + ShowUiNoteL( EBatteryLowNote ); + } + } + else + { + //Display Battery Low note. + ShowUiNoteL( EBatteryLowNote ); + } + } + + if ( iSysApBatteryInfoController ) + { + iSysApBatteryInfoController->BatteryStatusUpdated( aValue ); + } + + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleChargingStatusL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::HandleChargingStatusL( const TInt aValue ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleChargingStatusL aValue: %d"), aValue ) ); + + TBool showNote( ETrue ); + + UpdateBatteryBarsL( StateOfProperty( KPSUidHWRMPowerState, KHWRMBatteryLevel ) ); + + if ( iSysApPsmController && UiReady() ) + { + if ( iCharging ) // iCharging updated in UpdateBatteryBarsL + { + // cancel activation query if charger is connected while query is on display + CancelQuery( ESysApBattLowPowerSavingQuery ); + } + + if ( iCharging && !iSysApPsmController->ChargerConnected() ) // first time after charger connection + { + iSysApPsmController->ConnectCharger( ETrue ); + + if ( iSysApPsmController->ShowDeactivateQuery() ) + { + ShowQueryL( ESysApBattChargingPowerSavingQuery ); + // Query is on the display. Don't show the note. + showNote = EFalse; + } + else + { + iSysApPsmController->DoEnablePartialPsm( EFalse ); + } + } + else if ( aValue == EChargingStatusNotConnected ) + { + iSysApPsmController->ConnectCharger( EFalse ); + + // cancel deactivation query if charger is disconnected while query is on display + CancelQuery( ESysApBattChargingPowerSavingQuery ); + } + } + if( showNote ) + { + HandleChargerNotesL( aValue ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleActivatePsmQueryResponse +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::HandleActivatePsmQueryResponse( TBool aEnable ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleActivatePsmQueryResponse aEnable: %d"), + aEnable ) ); + + __ASSERT_DEBUG( iSysApPsmController, User::Invariant() ); + + if ( aEnable ) + { + iSysApPsmController->DoEnableFullPsm( ETrue ); + } + else + { + iSysApPsmController->DoEnablePartialPsm( ETrue ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::HandleDeactivatePsmQueryResponse +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::HandleDeactivatePsmQueryResponse( TBool aDisable ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::HandleDeactivatePsmQueryResponse aDisable: %d"), + aDisable ) ); + + __ASSERT_DEBUG( iSysApPsmController, User::Invariant() ); + + if ( aDisable ) + { + iSysApPsmController->DoEnableFullPsm( EFalse ); + } + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::CancelQuery +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::CancelQuery( TSysApConfirmationQueryIds aQueryId ) + { + TRACES( RDebug::Print( _L("CSysApAppUi::CancelQuery aQueryId: %d"), aQueryId ) ); + + if ( iSysApConfirmationQuery ) + { + if ( aQueryId == iSysApConfirmationQuery->CurrentQuery() || aQueryId == ESysApNoQuery ) + { + iSysApConfirmationQuery->Cancel(); + } + } + } + +TBool CSysApAppUi::IsDefaultPowerKeyBehavior() + { + TRACES( RDebug::Print( _L("CSysApAppUi::IsDefaultPowerKeyBehavior" ) ) ); + TBool powerKeyIsLockKey = iSysApFeatureManager->PowerKeyIsLockKey(); + if ( !powerKeyIsLockKey ) + return ETrue; //no need for further processing + TInt securityDialogStatus = StateOfProperty( KPSUidStartup, KStartupSecurityCodeQueryStatus ); + TRACES( RDebug::Printf( "CSysApAppUi::IsDefaultPowerKeyBehavior: securityDialogStatus = %d", securityDialogStatus ) ); + if ( securityDialogStatus == ESecurityQueryActive ) + { + // handle the exception from the exception. Currently used only when a long power key press is detected + return ETrue; + } + //make sure we can turn off device when 'sim invalid' dlg is displayed + TInt simStatus = StateOfProperty( KPSUidStartup, KStartupSimSecurityStatus ); + TBool simBogus = ( simStatus == ESimRejected ) || ( simStatus == ESimUnaccepted ) || (simStatus == ESimInvalid ); + + // check if the phone has fully booted into idle + TInt startupPhase = StateOfProperty ( KPSUidStartup, KPSStartupUiPhase ); + TBool bootCompleted = (EStartupUiPhaseAllDone == startupPhase); + + // Another exception from the exception: + // check if we're in charging or alert mode (only then we have a status pane instance) + TBool haveStatusPane = ( StatusPane()== NULL ) ? EFalse : StatusPane()->IsVisible(); + TBool defaultPowerKeyBehaviour = !bootCompleted || simBogus || haveStatusPane || iPowerKeyPopupMenuActive || !powerKeyIsLockKey; + + TRACES( RDebug::Printf( "CSysApAppUi::IsDefaultPowerKeyBehavior: Sim Status = %d, haveStatusPane = %d, power key menu active? %d" , simStatus, haveStatusPane, iPowerKeyPopupMenuActive ) ); + TRACES( RDebug::Printf( "CSysApAppUi::IsDefaultPowerKeyBehavior returns %d", defaultPowerKeyBehaviour ) ); + TRACES( RDebug::Printf( "CSysApAppUi::IsDefaultPowerKeyBehavior: startupPhase = %d", startupPhase ) ); + return defaultPowerKeyBehaviour; + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::StartChargingBatteryL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::StartChargingBatteryL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::StartChargingBatteryL") ) ); + iBatteryNotify->StartChargingL(); + } + +// ---------------------------------------------------------------------------- +// CSysApAppUi::StopChargingBatteryL +// ---------------------------------------------------------------------------- +// +void CSysApAppUi::StopChargingBatteryL() + { + TRACES( RDebug::Print( _L("CSysApAppUi::StopChargingBatteryL") ) ); + iBatteryNotify->StopChargingL(); + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApCenRepController.cpp --- a/coreapplicationuis/SysAp/Src/SysApCenRepController.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApCenRepController.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #include "SysApCenRepController.h" #include "SysApAppUi.h" #include "SysAp.hrh" -#include "coreapplicationuisprivatecrkeys.h" +#include "CoreApplicationUIsPrivateCRKeys.h" #include "accessoriescrkeys.h" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApConfirmationQuery.cpp --- a/coreapplicationuis/SysAp/Src/SysApConfirmationQuery.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApConfirmationQuery.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include // Constants @@ -181,14 +181,14 @@ anim = R_QGN_NOTE_INFO_ANIM; secondaryDisplayCmdId = SecondaryDisplay::ECmdShowMemoryCardLockedQuery; break; -/* case ESysApUseFmTxInOfflineQuery: + case ESysApUseFmTxInOfflineQuery: queryStringBuf = StringLoader::LoadLC( R_QTN_FMTX_SYSAP_NOTE_ACTIVATE_IN_OFFLINE, aLoaderEnv ); keys = R_AVKON_SOFTKEYS_YES_NO; secondaryDisplayCmdId = SecondaryDisplay::ECmdShowFmTxKeepOnInOfflineQuery; break; -*/ case ESysApBattChargingPowerSavingQuery: + case ESysApBattChargingPowerSavingQuery: queryStringBuf = StringLoader::LoadLC( R_QTN_BATTERY_CHARGING_POWER_SAVING_QUERY, aLoaderEnv ); keys = R_AVKON_SOFTKEYS_YES_NO; secondaryDisplayCmdId = SecondaryDisplay::ECmdShowChargingDeactivatePowerSavingQuery; @@ -325,14 +325,14 @@ ShowQueryL( iPendingQuery, CCoeEnv::Static() ); } break; -/* case ESysApUseFmTxInOfflineQuery: + case ESysApUseFmTxInOfflineQuery: if ( iStatus.Int() == EAknSoftkeyNo ) { TRACES( RDebug::Print( _L( "CSysApConfirmationQuery::RunL: calling CSysApAppUi::ChangeFmTxStateL( EFalse )" ) ) ); iSysApAppUi.ChangeFmTxStateL( EFalse ); // disable FM TX } break; -*/ case ESysApBattChargingPowerSavingQuery: + case ESysApBattChargingPowerSavingQuery: iSysApAppUi.HandleDeactivatePsmQueryResponse( iStatus.Int() == EAknSoftkeyYes ); break; diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApDocument.cpp --- a/coreapplicationuis/SysAp/Src/SysApDocument.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApDocument.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -31,26 +31,7 @@ CSysApDocument::~CSysApDocument() { } -/* -// --------------------------------------------------------- -// CSysApDocument::ConstructL() -// --------------------------------------------------------- -void CSysApDocument::ConstructL() - { - } -// --------------------------------------------------------- -// CSysApDocument::NewL() -// --------------------------------------------------------- -CSysApDocument* CSysApDocument::NewL(CEikApplication& aApp) // CSysApp reference - { - CSysApDocument* self = new (ELeave) CSysApDocument(aApp); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(); // self - return self; - } -*/ // ---------------------------------------------------------------------------- // CSysApDocument::CreateAppUiL() // constructs CSysApUi @@ -65,7 +46,7 @@ // ---------------------------------------------------------------------------- void CSysApDocument::UpdateTaskNameL( CApaWindowGroupName* aWgName ) { - CEikDocument::UpdateTaskNameL( aWgName ); + CAknDocument::UpdateTaskNameL( aWgName ); aWgName->SetHidden( ETrue ); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApEtelSmsStoreObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApEtelSmsStoreObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApEtelSmsStoreObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -211,10 +211,10 @@ if ( info.iTotalEntries > 0 && info.iUsedEntries >= info.iTotalEntries ) { // Blink the Envelope indicator -/* iObserver.iSysApAppUi.SetIndicatorStateL( + iObserver.iSysApAppUi.SetIndicatorStateL( EAknIndicatorEnvelope, EAknIndicatorStateAnimate ); iObserver.iStoreFull = ETrue; -*/ } + } } TRACES( RDebug::Print( diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApFeatureManager.cpp --- a/coreapplicationuis/SysAp/Src/SysApFeatureManager.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApFeatureManager.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2010 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" @@ -23,7 +23,7 @@ #include "SysApFeatureManager.h" #include "SysAp.hrh" #include -#include "coreapplicationuisprivatecrkeys.h" +#include "CoreApplicationUIsPrivateCRKeys.h" #include #include @@ -63,6 +63,10 @@ iGripNotSupported = FeatureManager::FeatureSupported( KFeatureIdKeypadNoSlider ); TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: iGripNotSupported=%d"), iGripNotSupported ) ); +// iSlideSupported = FeatureManager::FeatureSupported( KFeatureIdFfCommonSlide ); + iSlideSupported = EFalse; + TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: iSlideSupported=%d"), iSlideSupported ) ); + iLocationPrivacySupported = FeatureManager::FeatureSupported( KFeatureIdPrivacyFramework ); TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Location Privacy supported=%d"), iLocationPrivacySupported ) ); @@ -93,10 +97,10 @@ iNoPowerKeySupported = FeatureManager::FeatureSupported( KFeatureIdNoPowerkey ); TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: No power key supported=%d"), iNoPowerKeySupported ) ); -// iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); -// TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); + iFmTxSupported = FeatureManager::FeatureSupported( KFeatureIdFmtx ); + TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX supported=%d"), iFmTxSupported ) ); -// iPenEnabled = AknLayoutUtils::PenEnabled(); + iPenEnabled = AknLayoutUtils::PenEnabled(); TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Pen enabled=%d"), iPenEnabled ) ); iVmbxCallDivertIconSupported = FeatureManager::FeatureSupported( KFeatureIdVmbxCallDivertIcon ); @@ -105,8 +109,14 @@ iTouchUnlockStrokeSupported = FeatureManager::FeatureSupported( KFeatureIdFfTouchUnlockStroke ); TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Touch unlock stroke supported=%d"), iTouchUnlockStrokeSupported ) ); -// iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); -// TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX RDS-TEXT supported=%d"), iFmTxRdsTextSupported ) ); + iFmTxRdsTextSupported = FeatureManager::FeatureSupported( KFeatureIdFfFmtxRdsText ); + TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: FM TX RDS-TEXT supported=%d"), iFmTxRdsTextSupported ) ); + + iPowerKeyIsLockKey = FeatureManager::FeatureSupported( KFeatureIdFfPowerKeyAsKeyguard ); + TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: Power Key as keyguard supported=%d"), iPowerKeyIsLockKey ) ); + + iGanSupported = FeatureManager::FeatureSupported( KFeatureIdFfGenericAccessNetwork ); + TRACES( RDebug::Print( _L("CSysApFeatureManager::ConstructL: GAN supported=%d"), iGanSupported ) ); CRepository* repository = NULL; @@ -180,12 +190,13 @@ iGripNotSupported( ETrue ), iPowerSaveSupported( EFalse ), iNoPowerKeySupported( EFalse ), - //iFmTxSupported( EFalse ), + iFmTxSupported( EFalse ), iPenEnabled( EFalse ), iVmbxCallDivertIconSupported( EFalse ), - iTouchUnlockStrokeSupported( EFalse ) - //iFmTxRdsTextSupported( EFalse ) - + iTouchUnlockStrokeSupported( EFalse ), + iFmTxRdsTextSupported( EFalse ), + iPowerKeyIsLockKey ( EFalse ), + iGanSupported( EFalse ) { } @@ -342,6 +353,15 @@ { return iGripNotSupported; } + +// ---------------------------------------------------------------------------- +// CSysApFeatureManager::SlideSupported() +// ---------------------------------------------------------------------------- +// +TBool CSysApFeatureManager::SlideSupported() const + { + return iSlideSupported; + } // ---------------------------------------------------------------------------- // CSysApFeatureManager::CoverDisplaySupported() @@ -369,7 +389,7 @@ { return iNoPowerKeySupported; } -/* + // ---------------------------------------------------------------------------- // CSysApFeatureManager::FmTxSupported() // ---------------------------------------------------------------------------- @@ -378,7 +398,6 @@ { return iFmTxSupported; } -*/ // ---------------------------------------------------------------------------- // CSysApFeatureManager::PenEnabled() @@ -406,7 +425,7 @@ { return iTouchUnlockStrokeSupported; } -/* + // ---------------------------------------------------------------------------- // CSysApFeatureManager::FmTxRdsTextSupported() // ---------------------------------------------------------------------------- @@ -415,7 +434,25 @@ { return iFmTxRdsTextSupported; } -*/ + +//----------------------------------------------------------------------------- +// CSysApFeatureManager::PowerKeyIsLockKey() +//----------------------------------------------------------------------------- +// +TBool CSysApFeatureManager::PowerKeyIsLockKey() const + { + return iPowerKeyIsLockKey; + } + +// ---------------------------------------------------------------------------- +// CSysApFeatureManager::GanSupported() +// ---------------------------------------------------------------------------- +// +TBool CSysApFeatureManager::GanSupported() const + { + return iGanSupported; + } + // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApLightsController.cpp --- a/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -20,7 +20,7 @@ #include #include "SysApLightsController.h" #include "SysApAppUi.h" -#include "coreapplicationuisinternalpskeys.h" +#include "CoreApplicationUIsInternalPSKeys.h" #include #include #include "SysApFeatureManager.h" @@ -29,6 +29,9 @@ #endif // RD_LIGHT_CONTROL_CHANGE #include "SysApFeatureManager.h" +#include "startupdomainpskeys.h" +#include +#include // CONSTANTS @@ -150,7 +153,7 @@ TBool blinkEnabled = ETrue; - if( iSysApFeatureManager->Supported( KSysApFeatureIdNoFlasUiInSilentMode )) + if( iSysApFeatureManager->Supported( KSysApFeatureIdNoFlasUiInSilentMode ) ) { blinkEnabled = EFalse; } @@ -216,7 +219,13 @@ { iLightPluginHandler->HandleEventNoAction( SysApLightExtension::EChargerConnection, TPckgBuf(aConnected) ); } -#endif // RD_LIGHT_CONTROL_CHANGE +#endif // RD_LIGHT_CONTROL_CHANGE + TInt state( 0 ); + TInt error = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); + if ( error == KErrNone && state == ESwStateCharging ) + { + EnableActivityManagerL(); + } } // ---------------------------------------------------------------------------- @@ -969,16 +978,28 @@ return; } - TInt err(KErrNone); + TInt err(KErrNone); + TInt state( 0 ); + TInt error = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); -#ifdef RD_LIGHT_CONTROL_CHANGE - if ( !iLightPluginHandler->HandleCommand( SysApLightExtension::ELightCommandOff ) ) + if ( error == KErrNone && state != ESwStateCharging ) { - TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget)); - } +#ifdef RD_LIGHT_CONTROL_CHANGE + if ( !iLightPluginHandler->HandleCommand( SysApLightExtension::ELightCommandOff ) ) + { + TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget)); + } #else // RD_LIGHT_CONTROL_CHANGE - TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget)); -#endif // RD_LIGHT_CONTROL_CHANGE + TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget)); +#endif // RD_LIGHT_CONTROL_CHANGE + } + else + { + TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget)); + iSysApAppUi.StopChargingBatteryL(); + //To switch off the display + TInt result = HAL::Set( HALData::EDisplayState, 0 ); + } // Ignore unreserved in use warnings. if ( err != KErrNone && err != KErrInUse ) { @@ -1078,6 +1099,23 @@ iLightsCurrentlyOn = ETrue; iLastLightsOnTime.HomeTime(); } + + TInt state( 0 ); + TInt error = RProperty::Get( KPSUidStartup, KPSGlobalSystemState, state ); + if ( error == KErrNone && state == ESwStateCharging ) + { + TInt value = iSysApAppUi.StateOfProperty( KPSUidHWRMPowerState, KHWRMChargingStatus ); + if (value == EChargingStatusChargingComplete ) + { + iSysApAppUi.StopChargingBatteryL(); + } + else + { + iSysApAppUi.StartChargingBatteryL(); + //To switch on the display + TInt result = HAL::Set( HALData::EDisplayState, 1 ); + } + } } else { diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApMsgSimMemLowQuery.cpp --- a/coreapplicationuis/SysAp/Src/SysApMsgSimMemLowQuery.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApMsgSimMemLowQuery.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #include #include "SysApMsgSimMemLowQuery.h" #include "SysAp.hrh" -#include +#include #include // ============================ MEMBER FUNCTIONS ============================== diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApNspsAnim.cpp --- a/coreapplicationuis/SysAp/Src/SysApNspsAnim.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApNspsAnim.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ // INCLUDE FILES #include "SysApNspsAnim.h" // This #include // CCoeControl -#include "nspswsplugindllstd.h" // Command +#include "NspsWsPluginDllStd.h" // Command // ============================ MEMBER FUNCTIONS ============================== diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApPubSubObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -20,7 +20,7 @@ #include #include #include -#include "coreapplicationuisprivatepskeys.h" +#include "CoreApplicationUIsPrivatePSKeys.h" #include #include #include @@ -30,15 +30,14 @@ #include "SysApAppUi.h" #include "SysApFeatureManager.h" #include -#include +#include #include #include -//#include -//#include +#include +#include #include "sysapremconobserver.h" #include #include -#include #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS #include @@ -48,14 +47,11 @@ #include #endif //SYMBIAN_ENABLE_SPLIT_HEADERS + // CONSTANTS const TUint KCoreAppUIsMmcRemovedWithoutEjectCmdMask = 0xFFFF; const TUint KCoreAppUIsMmcRemovedWithoutEjectValShift = 16; -_LIT(KGpsIndicatorPlugin, "com.nokia.positioning.indicatorplugin/1.0"); -const TUid KPSUidSecurityUIs = { 0x100059b5 }; -const TUint32 KSecurityUIsLights = 0x00000308; - // ============================ MEMBER FUNCTIONS ============================== // ---------------------------------------------------------------------------- @@ -97,10 +93,10 @@ iOutboxStatusSubscriber->Subscribe(); iIrdaStatusSubscriber = CSysApSubscriber::NewL( *this, KIrdaPropertyCategory, KIrdaStatus ); iIrdaStatusSubscriber->Subscribe(); -// iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); -// iGprsStatusSubscriber->Subscribe(); -// iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); -// iWcdmaStatusSubscriber->Subscribe(); + iGprsStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidGprsStatusValue ); + iGprsStatusSubscriber->Subscribe(); + iWcdmaStatusSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidWcdmaStatusValue ); + iWcdmaStatusSubscriber->Subscribe(); iLocationGlobalPrivacySubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, KPSUidLocationGlobalPrivacyValue ); iLocationGlobalPrivacySubscriber->Subscribe(); iRestoreBackupSubscriber = CSysApSubscriber::NewL( *this, KUidSystemCategory, conn::KUidBackupRestoreKey ); @@ -170,14 +166,14 @@ iFlipStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRM, KHWRMFlipStatus ); iFlipStatusSubscriber->Subscribe(); -/* if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() ) + if ( iSysApAppUi.SysApFeatureManager().FmTxSupported() ) { // Category KHWRMFmTxStatus iFmTxStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidHWRMFmTx, KHWRMFmTxStatus ); iFmTxStatusSubscriber->Subscribe(); iPreviousFmTxPSValue = EFmTxStateUnknown; } -*/ + iSyncStatusSubscriber = CSysApSubscriber::NewL( *this, KPSUidDataSynchronizationInternalKeys, KDataSyncStatus ); iSyncStatusSubscriber->Subscribe(); @@ -189,15 +185,6 @@ iSmsPhoneStoreSubscriber = CSysApSubscriber::NewL( *this, KUidPSSMSStackCategory, KUidPSSMSStackDiskSpaceMonitorKey ); iSmsPhoneStoreSubscriber->Subscribe(); - - iKeylockEventSubscriber = CSysApSubscriber::NewL( *this, KPSUidAvkonDomain, KAknKeyguardStatus ); - iKeylockEventSubscriber->Subscribe(); - - iLightsOnRequestSubscriber = CSysApSubscriber::NewL( *this, KPSUidSecurityUIs, KSecurityUIsLights ); - iLightsOnRequestSubscriber->Subscribe(); - - iPowerMenuCustomDialogSubscriber = CSysApSubscriber::NewL( *this, KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus ); - iPowerMenuCustomDialogSubscriber->Subscribe(); } // ---------------------------------------------------------------------------- @@ -215,8 +202,8 @@ delete iInboxStatusSubscriber; delete iOutboxStatusSubscriber; delete iIrdaStatusSubscriber; -// delete iGprsStatusSubscriber; -// delete iWcdmaStatusSubscriber; + delete iGprsStatusSubscriber; + delete iWcdmaStatusSubscriber; delete iHomeZoneStatusSubscriber; delete iNewEmailStatusSubscriber; delete iLocationGlobalPrivacySubscriber; @@ -243,15 +230,12 @@ delete iNetworkModeSubscriber; delete iWlanIndicatorSubscriber; delete iFlipStatusSubscriber; -// delete iFmTxStatusSubscriber; -// delete iFmTxRemConObserver; + delete iFmTxStatusSubscriber; + delete iFmTxRemConObserver; delete iSyncStatusSubscriber; delete iVideoSharingIndicatorSubscriber; delete iGpsIndicatorSubscriber; delete iSmsPhoneStoreSubscriber; - delete iKeylockEventSubscriber; - delete iLightsOnRequestSubscriber; - delete iPowerMenuCustomDialogSubscriber; } @@ -318,11 +302,10 @@ { HandleHwrmCategoryL( aKey, value ); } -/* else if ( aCategory == KPSUidHWRMFmTx ) + else if ( aCategory == KPSUidHWRMFmTx ) { HandleHwrmFmTxCategoryL( aKey, value ); } -*/ else if ( aCategory == KPSUidDataSynchronizationInternalKeys ) { HandleDataSyncCategoryL( aKey, value ); @@ -335,14 +318,6 @@ { HandleSmsStackCategoryL( aKey, value ); } - else if ( aCategory == KPSUidAvkonDomain) - { - HandleLKeylockEventL( aKey, value ); - } - else if ( aCategory == KPSUidSecurityUIs) - { - HandleLightsOnRequestL( aKey, value ); - } } // ---------------------------------------------------------------------------- // CSysApPubSubObserver::HandleCoreAppUIsCategoryL() @@ -386,15 +361,15 @@ case KCoreAppUIsUipInd: if ( aValue == ECoreAppUIsDoNotShow ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOff ); } else if ( aValue == ECoreAppUIsShow ) { -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorInstantMessage, EAknIndicatorStateOn ); } break; case KCoreAppUIsMessageToneQuit: - // iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); + iSysApAppUi.HandleMessageTonePlayingQuitability( aValue ); break; case KCoreAppUIsNspsRawKeyEvent: iSysApAppUi.HandleNspsRawKeyEventL(); @@ -426,11 +401,11 @@ case KCoreAppUIsNewEmailStatus: if ( aValue == ECoreAppUIsNewEmail ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOn ); } else if ( aValue == ECoreAppUIsNoNewEmail ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorEmailMessage, EAknIndicatorStateOff ); } break; @@ -448,104 +423,68 @@ case KCoreAppUIsPoCIndicator: if ( aValue == ECoreAppUIsPocIndicatorOff || aValue == ECoreAppUIsPocIndicatorUninitialized ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); } else if ( aValue == ECoreAppUIsPocIndicatorDoNotDisturb ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOn ); } else if ( aValue == ECoreAppUIsPocIndicatorConnectionOn ) { -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoC, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCDnD, EAknIndicatorStateOff ); } break; case KCoreAppUIsPoCMissedIndicator: if ( aValue == ECoreAppUIsPocMissedIndicatorOff || aValue == ECoreAppUIsPocMissedIndicatorUninitialized ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOff ); } else if ( aValue == ECoreAppUIsPocMissedIndicatorOn ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorPoCMissed, EAknIndicatorStateOn ); } break; case KCoreAppUIsTarmIndicator: - // iSysApAppUi.HandleTarmIndicatorL( aValue ); + iSysApAppUi.HandleTarmIndicatorL( aValue ); break; case KCoreAppUIsMtvRecStatus: if ( aValue == ECoreAppUIsMtvRecStatusOn ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOn ); } else if ( aValue == ECoreAppUIsMtvRecStatusOff || aValue == ECoreAppUIsMtvRecStatusUninitialized ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTVRec, EAknIndicatorStateOff ); } break; case KCoreAppUIsMtvDvbhStatus: if ( aValue == ECoreAppUIsMtvDvbhStatusOn ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOn ); } else if ( aValue == ECoreAppUIsMtvDvbhStatusOff || aValue == ECoreAppUIsMtvDvbhStatusUninitialized ) { -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorMobileTV, EAknIndicatorStateOff ); } break; case KCoreAppUIsVideoSharingIndicator: if ( aValue == ECoreAppUIsVideoSharingIndicatorOn ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOn ); } else if ( aValue == ECoreAppUIsVideoSharingIndicatorOff || aValue == ECoreAppUIsVideoSharingIndicatorUninitialized ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorVideoSharing, EAknIndicatorStateOff ); } break; - - case KCoreAppUIsPowerMenuCustomDialogStatus: - if ( aValue == ECoreAppUIsPowerMenuCustomDialogOn ) - { - TBool powerMenuMemoryStatus = EFalse; - powerMenuMemoryStatus = iSysApAppUi.ReleasePowerMenuCustomDialogMemory(); - if(powerMenuMemoryStatus) - { - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); - } - } - else if(aValue == ECoreAppUIsMemoryCardCustomDialogOk) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOk") ) ); - TBool memoryCardStatus = EFalse; - memoryCardStatus = iSysApAppUi.NotifiedDialogIfRequiredAndReleaseMemory(); - if(memoryCardStatus) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus Begin") ) ); - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); - TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus end") ) ); - } - TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogOn: memoryCardStatus final end") ) ); - - } - else if(aValue == ECoreAppUIsMemoryCardCustomDialogCancel) - { - TRACES( RDebug::Print(_L("CSysApAppUi::ECoreAppUIsMemoryCardCustomDialogCancel") ) ); - iSysApAppUi.ReleaseMemoryForMemoryCardDialog(); - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOff ); - } - else if ( aValue == ECoreAppUIsPowerMenuCustomDialogOff || aValue == ECoreAppUIsPowerMenuCustomDialogUninitialized ) - { - // do nothing - } - break; - + default: break; } @@ -586,43 +525,43 @@ switch ( aKey ) { case KUidInboxStatusValue: -// iSysApAppUi.SetEnvelopeIndicatorL(); + iSysApAppUi.SetEnvelopeIndicatorL(); break; case KUidOutboxStatusValue: if ( aValue == ESADocumentsInOutbox ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOn ); } //Hide the Outbox indicator else if ( aValue == ESAOutboxEmpty ) { -// iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorOutbox, EAknIndicatorStateOff ); } break; case KIrdaStatus: if ( aValue == TIrdaStatusCodes::EIrLoaded || aValue == TIrdaStatusCodes::EIrBlocked || aValue == TIrdaStatusCodes::EIrDisconnected ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateAnimate ); } else if ( aValue == TIrdaStatusCodes::EIrConnected ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOn ); } else if ( aValue == TIrdaStatusCodes::EIrUnloaded ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorIrActive, EAknIndicatorStateOff ); } break; -// case KPSUidGprsStatusValue: - // case KPSUidWcdmaStatusValue: - // iSysApAppUi.SetSignalIndicatorL(); -// break; + case KPSUidGprsStatusValue: + case KPSUidWcdmaStatusValue: + iSysApAppUi.SetSignalIndicatorL(); + break; case KPSUidLocationGlobalPrivacyValue: -// iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); + iSysApAppUi.HandleLocationPrivacyIndicatorL( aValue ); break; case conn::KUidBackupRestoreKey: @@ -655,7 +594,7 @@ switch ( aKey ) { case KHWRMBatteryLevel: - // iSysApAppUi.UpdateBatteryBarsL( aValue ); + iSysApAppUi.UpdateBatteryBarsL( aValue ); break; case KHWRMBatteryStatus: @@ -670,7 +609,7 @@ break; } } -/* + // ---------------------------------------------------------------------------- // CSysApPubSubObserver::HandleHwrmFmTxCategoryL() // ---------------------------------------------------------------------------- @@ -703,17 +642,17 @@ TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active/Inactive -> Off transition"))); // turn any FM TX indicators off -// iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); -// iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); // give notification if ( aValue == EFmTxStatePowerSaveAccessory ) { -// iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); + iSysApAppUi.ShowUiNoteL( EFmTxAccessoryStandbyNote ); } else { - // iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); + iSysApAppUi.ShowUiNoteL( EFmTxOffNote ); } isFmTxTurnedOff = ETrue; } @@ -723,8 +662,8 @@ TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Active -> Inactive transition"))); // enable not sending indicator -// iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); -// iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); } else if ( aValue == EFmTxStateActive ) { @@ -732,8 +671,8 @@ TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Inactive -> Active transition"))); // enable active indicator -// iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); -// iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); } break; @@ -750,11 +689,11 @@ TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Active transition"))); // enable active indicator - // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); - // iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOn ); // give notification - // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); + iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); isFmTxTurnedOn = ETrue; } else if ( aValue == EFmTxStateInactive || aValue == EFmTxStateScanning ) @@ -763,17 +702,34 @@ TRACES(RDebug::Print(_L("CSysApPubSubObserver::HandleHwrmFmTxCategoryL Off -> Inactive transition"))); // enable not sending indicator -// iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); - // iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( KFmTxActiveIndicator, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( KFmTxNotSendingIndicator, EAknIndicatorStateOn ); // give notification - // iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); + iSysApAppUi.ShowUiNoteL( EFmTxOnNote ); isFmTxTurnedOn = ETrue; } break; } - + + if ( aValue == EFmTxStateActive ) + { + if(iFmTxRemConObserver) + { + //Open Remcon and reserve the volume keys + iFmTxRemConObserver->StartRemconInterfaceL(); + } + } + else + { + if(iFmTxRemConObserver) + { + //Disconnect from Remcon and release keys for other apps like phone app during call + iFmTxRemConObserver->StopRemconInterface(); + } + } + if ( isFmTxTurnedOn ) { if ( !iFmTxRemConObserver ) @@ -811,7 +767,6 @@ iPreviousFmTxPSValue = aValue; } } -*/ // ---------------------------------------------------------------------------- // CSysApPubSubObserver::HandleWlanCategoryL() @@ -855,16 +810,16 @@ case KNWHomeZoneStatus: if ( aValue == ENWHomeZone ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOn ); } else if ( aValue == ENWNone || aValue == ENWCityZone ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorHomeZone, EAknIndicatorStateOff ); } break; case KNWTelephonyNetworkMode: - // iSysApAppUi.SetSignalIndicatorL(); + iSysApAppUi.SetSignalIndicatorL(); break; default: @@ -882,11 +837,11 @@ case KHWRMFlipStatus: if ( aValue == EPSHWRMFlipClosed ) { - // iSysApAppUi.SimulateFlipKeyEventL( EFalse ); + iSysApAppUi.SimulateFlipKeyEventL( EFalse ); } else if ( aValue == EPSHWRMFlipOpen ) { - // iSysApAppUi.SimulateFlipKeyEventL( ETrue ); + iSysApAppUi.SimulateFlipKeyEventL( ETrue ); } break; @@ -905,11 +860,11 @@ case KDataSyncStatus: if ( aValue > EDataSyncNotRunning ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization , EAknIndicatorStateOn ); } else { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorSynchronization, EAknIndicatorStateOff ); } break; @@ -929,17 +884,15 @@ case KPosIntGpsHwStatus: if ( aValue == EPosIntGpsHwOff ) { - iSysApAppUi.iHbIndicatorSymbian->Deactivate(KGpsIndicatorPlugin); - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOff ); } else if ( aValue == EPosIntGpsHwOn ) { - iSysApAppUi.iHbIndicatorSymbian->Activate(KGpsIndicatorPlugin); - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateOn ); } else if ( aValue == EPosIntGpsHwIntermediate ) { - // iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate ); + iSysApAppUi.SetIndicatorStateL( EAknIndicatorGPS, EAknIndicatorStateAnimate ); } break; @@ -956,8 +909,8 @@ { switch ( aKey ) { - case KAknKeyguardStatus: - // iSysApAppUi.SetEnvelopeIndicatorL(); + case KUidPSSMSStackDiskSpaceMonitorKey: + iSysApAppUi.SetEnvelopeIndicatorL(); break; default: @@ -965,39 +918,7 @@ } } -void CSysApPubSubObserver::HandleLKeylockEventL( const TUint /* aKey */, const TInt aValue ) - { - switch( aValue ) - { - case EEikKeyLockEnabled: - iSysApAppUi.SetKeyLockEnabledL(); - break; - case EEikKeyLockDisabled: - iSysApAppUi.SetKeyLockDisabledL(); - break; - default: - break; - } - } +// End of File -void CSysApPubSubObserver::HandleLightsOnRequestL( const TUint /* aKey */, const TInt aValue ) - { - switch ( aValue ) - { - case EEikKeyLockLightsOnRequest: - iSysApAppUi.SetLightsOnUnlockNoteL(); - break; - case EEikEcsQueryLights: // emergency note is shown - iSysApAppUi.SetLightsOnEcsQueryL(); - break; - case EEikSecurityQueryLights: // for device lock security query - iSysApAppUi.SetLightsOnSecurityQueryL(); - break; - default: - break; - } - } - -// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApSatObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApSatObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApSatObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApShutdownAnimation.cpp --- a/coreapplicationuis/SysAp/Src/SysApShutdownAnimation.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApShutdownAnimation.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -21,21 +21,13 @@ #ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION -//#include -#include -#include +#include +#include #include #include "SysApShutdownAnimation.h" #include "SysApShutdownImage.h" #include "SysAp.hrh" -#include -#include -#include -#include -#include - -#define iSysApUiHandle ((CSysApAppUi*)CEikonEnv::Static()->EikAppUi()) // ======== MEMBER FUNCTIONS ======== @@ -107,11 +99,8 @@ iCtrl = NULL; } -// iAvkonAppUi->StatusPane()->MakeVisible( EFalse ); -// iView.SetRect( iAvkonAppUi->ApplicationRect() ); -// iAvkonAppUi->StatusPane()->MakeVisible( EFalse ); -// iSysApUiHandle->StatusPane()->MakeVisible( EFalse ); - iView.SetRectForAnimation(); + iAvkonAppUi->StatusPane()->MakeVisible( EFalse ); + iView.SetRect( iAvkonAppUi->ApplicationRect() ); iState = ELoading; TRAPD( errorCode, iCtrl = CSAnimStartupCtrl::NewL( iView.Rect(), iView ) ); diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp --- a/coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApShutdownImage.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -17,20 +17,15 @@ // INCLUDE FILES -//#include -//#include -//#include -#include +#include +#include +#include #include #include //use of TResourceReader -//#include +#include #include "SysApShutdownImage.h" #include "SysAp.hrh" #include -#include -#include - -//_LIT(KDC_APP_BITMAP_DIR,"\\resource\\apps\\"); // ============================ MEMBER FUNCTIONS ============================== @@ -74,18 +69,14 @@ void CSysApShutdownImage::ShowShutdownImageL(TInt aBitmapId) { TRACES( RDebug::Print(_L("CSysApShutdownImage::ShowShutdownImageL:start" ) ) ); - TInt err ( 0 ); - TRect rect(iCoeEnv->ScreenDevice()->SizeInPixels()); - SetRect(rect); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:SetRect --Minus one" ) ) ); + + SetRect(iAvkonAppUi->ApplicationRect()); ActivateL(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:ActivateL --Zero" ) ) ); - if ( aBitmapId ) { - _LIT( KDirAndFile, "z:qgn_sysap_screen.svg" ); + _LIT( KDirAndFile, "z:sysap.mif" ); TParse* fp = new (ELeave) TParse(); CleanupStack::PushL(fp); fp->Set( KDirAndFile, &KDC_APP_BITMAP_DIR, NULL ); @@ -108,35 +99,27 @@ delete iBitmap; iBitmap = NULL; // Ownership of bitmap is transferred to CSysApShutdownImage in CreateIconL - iBitmap = ReadSVGL(fp->FullName()); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:ReadSVGL --First" ) ) ); + iBitmap = AknIconUtils::CreateIconL( fp->FullName(), aBitmapId ); + TAknLayoutRect bitmapRect; + bitmapRect.LayoutRect( Rect(), AKN_LAYOUT_WINDOW_screen ); + AknIconUtils::SetSize( iBitmap, bitmapRect.Rect().Size(), EAspectRatioPreservedAndUnusedSpaceRemoved ); TInt xDelta=0; // for x coordinates TInt yDelta=0; // for y coordinates TSize bmpSizeInPixels = iBitmap->SizeInPixels(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:SizeInPixels --Second" ) ) ); //center image to the center of the screen TRect rect = Rect(); xDelta=( rect.Width() - bmpSizeInPixels.iWidth ) / 2; yDelta=( rect.Height() - bmpSizeInPixels.iHeight ) / 2; TPoint pos = TPoint( xDelta , yDelta ); // displacement vector //pos += rect.iTl; // bitmap top left corner position - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:TPoint --Three" ) ) ); CWindowGc& gc = SystemGc(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:SystemGc --Four" ) ) ); ActivateGc(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:ActivateGc --Five" ) ) ); Window().Invalidate( rect ); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:Invalidate --Six" ) ) ); Window().BeginRedraw( rect ); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:BeginRedraw --Seven" ) ) ); gc.Clear(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:gc.Clear --Eight" ) ) ); gc.BitBlt( pos, iBitmap ); // CWindowGc member function - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:gc.BitBlt --Nine" ) ) ); Window().EndRedraw(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:gc.EndRedraw --Ten" ) ) ); DeactivateGc(); - TRACES( RDebug::Print(_L("CSysApShutdownImage::After:gc.DeactivateGc --Eleven" ) ) ); ControlEnv()->WsSession().Flush(); // force draw of the context TRACES( RDebug::Print(_L("CSysApShutdownImage::ShowShutdownImageL:end" ) ) ); } @@ -161,60 +144,7 @@ ControlEnv()->WsSession().Flush(); // force draw of the context #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } - } -// ---------------------------------------------------------------------------- -// CSysApShutdownImage::ShowShutdownImage() -// ---------------------------------------------------------------------------- -CFbsBitmap* CSysApShutdownImage::ReadSVGL (TFileName aFileName) - { - TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL:start" ) ) ); - TFontSpec fontspec; - TDisplayMode mode = EColor16MA; - TInt SIZE_X(360), SIZE_Y(360); - TSize size(SIZE_X, SIZE_Y); - - //if ( mode >= (TDisplayMode)13 ) { mode = EColor16MA; } - - CFbsBitmap* frameBuffer = new ( ELeave ) CFbsBitmap; - CleanupStack::PushL( frameBuffer ); - frameBuffer->Create( size, mode ); - - CSvgEngineInterfaceImpl* svgEngine = NULL; - svgEngine = CSvgEngineInterfaceImpl::NewL(frameBuffer, NULL, fontspec ); - - if (svgEngine == NULL) - { - TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL:SVG engine creation failed" ) ) ); - } - - CleanupStack::PushL( svgEngine ); - TInt domHandle = 0; - svgEngine->PrepareDom( aFileName, domHandle ) ; - if (domHandle == 0) - { - TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL():DOM handle creation failed" ) ) ); - } - - CFbsBitmap* bitmap = new(ELeave) CFbsBitmap; - CleanupStack::PushL( bitmap ); - User::LeaveIfError( bitmap->Create( size, EColor64K ) ); - - svgEngine->UseDom( domHandle, bitmap, NULL ) ; - - MSvgError* err; - svgEngine->Start( err ); - if (err->HasError()) - { - TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL(): SVG Engine Start failed" ) ) ); - } - - svgEngine->DeleteDom( domHandle ); - CleanupStack::Pop( bitmap ); - CleanupStack::PopAndDestroy( svgEngine ); - CleanupStack::PopAndDestroy( frameBuffer ); - TRACES( RDebug::Print(_L("CSysApShutdownImage::ReadSVGL:End" ) ) ); - return bitmap; } // ---------------------------------------------------------------------------- @@ -353,10 +283,4 @@ return EKeyWasNotConsumed; } -void CSysApShutdownImage::SetRectForAnimation() - { - TRect rect(iCoeEnv->ScreenDevice()->SizeInPixels()); - SetRect(rect); - } - // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApSimChanged.cpp --- a/coreapplicationuis/SysAp/Src/SysApSimChanged.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApSimChanged.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,11 +20,11 @@ #include "SysApSimChanged.h" #include "SysApAppUi.h" #include -//#include +#include #include #include const TInt KPSetDefaultCFTimer = 30; -#include +#include #include #include #include "SysAp.hrh" @@ -71,12 +71,6 @@ void CSysApSimChanged::ClearRepositoriesL() { - const TUid KCRUidLogs = {0x101F874E}; - /** - * Informs the Logs application about the amount of new missed calls. - * Integer type - **/ - const TUint32 KLogsNewMissedCalls = 0x00000006; TRACES( RDebug::Print( _L("CSysApSimChanged::ClearRepositoriesL(): opening KCRUidCallForwarding") ) ); CRepository* repository = CRepository::NewL( KCRUidCallForwarding ); @@ -117,13 +111,13 @@ dateTime.Set( 2100, EJanuary, 1, 0, 0, 0, 0 ); TTime date(dateTime); -/* TRACES( RDebug::Print( _L("CSysApSimChanged::ClearLogsL(): trying CLogClient::NewL") ) ); + TRACES( RDebug::Print( _L("CSysApSimChanged::ClearLogsL(): trying CLogClient::NewL") ) ); CLogClient* logClient = CLogClient::NewL( iFs ); logClient->ClearLog( date, active->iStatus ); -*/ + CActiveScheduler::Start(); -// delete logClient; + delete logClient; CleanupStack::PopAndDestroy( active ); } @@ -136,7 +130,7 @@ TRACES( RDebug::Print( _L("CSysApSimChanged::ClearSsSettingsL()") ) ); // Reset SSSettings values -/* RSSSettings ssSettings; + RSSSettings ssSettings; User::LeaveIfError( ssSettings.Open( iSysApAppUi.GetTelServer() ) ); TRACES( RDebug::Print( _L("CSysApSimChanged::ClearSsSettingsL(): trying RSSSettings::HandleSIMChanged") ) ); @@ -144,7 +138,6 @@ ssSettings.Close(); User::LeaveIfError( err ); -*/ } // ----------------------------------------------------------------------------- @@ -171,7 +164,7 @@ if ( simNotOwned ) { ClearRepositoriesL(); -// ClearLogsL(); + ClearLogsL(); } } // =============== CShareActive MEMBER FUNCTIONS =============================== diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApSsSettingsObserver.cpp --- a/coreapplicationuis/SysAp/Src/SysApSsSettingsObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApSsSettingsObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #include "SysApSsSettingsObserver.h" #include "SysApAppUi.h" #include -#include +#include //CONSTANTS diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApStartupController.cpp --- a/coreapplicationuis/SysAp/Src/SysApStartupController.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApStartupController.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,7 @@ #include #include -#include "coreapplicationuisprivatecrkeys.h" +#include "CoreApplicationUIsPrivateCRKeys.h" #include #include "SysApStartupController.h" #include "SysApAppUi.h" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApTaskList.cpp --- a/coreapplicationuis/SysAp/Src/SysApTaskList.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /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: -* -*/ -#include "SysApTaskList.h" -#include - -CSysApTaskList* CSysApTaskList::NewL(RWsSession& aWsSession) - { - CSysApTaskList* self = NewLC(aWsSession); - CleanupStack::Pop(self); - return self; - } - - CSysApTaskList* CSysApTaskList::NewLC(RWsSession& aWsSession) - { - CSysApTaskList* self = new(ELeave) CSysApTaskList(aWsSession); - CleanupStack::PushL(self); - self->ConstructL(); - return self; - } - -CSysApTaskList::CSysApTaskList(RWsSession& aWsSession) -: iWs(aWsSession) - { - } - -void CSysApTaskList::ConstructL() - { - UpdateListL(); - } - - CSysApTaskList::~CSysApTaskList() - { - iWgs.Close(); - } - - void CSysApTaskList::UpdateListL() - { - User::LeaveIfError(iWs.WindowGroupList(0, &iWgs)); - } - - const RArray& CSysApTaskList::WgArray() const - { - return iWgs; - } - - TApaTask CSysApTaskList::FindRootApp(TUid aAppUid) const - { - TApaTask task(iWs); - task.SetWgId(0); // initialise task to non-existant task - // wgId = 0 tells FindAppByUid to start looking for apps - TInt wgId=0; - FOREVER - { - CApaWindowGroupName::FindByAppUid(aAppUid, iWs, wgId); - // KErrNotFound means that no more apps can be found - if (wgId == KErrNotFound) - break; - if (IsRootWindowGroup(wgId)) - { - // Found a root wg with the right app UID, return it. - task.SetWgId(wgId); - break; - } - } - return task; - } - - TBool CSysApTaskList::IsRootWindowGroup(TInt aWgId) const - { - TInt count = iWgs.Count(); - for (TInt ii=0; ii 0 && info.iParentId != info.iId) - return info.iParentId; - } - return 0; - } - - TInt CSysApTaskList::FindChildWgId(TInt aWgId) const - { - TInt count = iWgs.Count(); - for (TInt ii=0; ii 0 && info.iParentId != info.iId) - return info.iId; - } - return 0; - } - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApTimer.cpp --- a/coreapplicationuis/SysAp/Src/SysApTimer.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApTimer.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -18,8 +18,8 @@ // INCLUDES -//#include -//#include +#include +#include #include "SysAp.hrh" #include "SysApTimer.h" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/SysApWaitNote.cpp --- a/coreapplicationuis/SysAp/Src/SysApWaitNote.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/SysApWaitNote.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -22,7 +22,7 @@ #include #include "SysAp.hrh" #include "SysApWaitNote.h" -#include +#include #include diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/gan/msysapganpropertyobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/gan/msysapganpropertyobserver.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2010 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: MSysApGanPropertyObserver class definition. This is a callback +* interface from RProperty listener to client application. +* +*/ + +#ifndef MSYSAPGANPROPERTYOBSERVER_H_ +#define MSYSAPGANPROPERTYOBSERVER_H_ + +class CSysApGanPropertyListener; + +NONSHARABLE_CLASS( MSysApGanPropertyObserver ) + { +public: + /** + * Method is called when property value changes. + * @param aPropertyListener Listener of the changed property. + * @param aStatus Status of the event. + */ + virtual void PropertyEvent( + CSysApGanPropertyListener& aPropertyListener, + TInt aStatus ) = 0; + }; + +#endif /* MSYSAPGANPROPERTYOBSERVER_H_ */ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/gan/sysapganhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/gan/sysapganhandler.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,142 @@ +/* +* Copyright (c) 2010 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: Handle GAN server events +* +*/ + +#include +#include "coreapplicationuisdomainpskeys.h" +#include "sysapganhandler.h" +#include "SysApAppUi.h" +#include "SysAp.hrh" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CSysApGanHandler::CSysApGanHandler( CSysApAppUi& aSysApAppUi ) : + iSysApAppUi( aSysApAppUi ), + iGanMode( EGanModeUnspecified ) + { + } + +// --------------------------------------------------------------------------- +// Symbian 2nd phase constructor +// --------------------------------------------------------------------------- +// +void CSysApGanHandler::ConstructL() + { + TRACES( RDebug::Print( _L("CSysApGanHandler::ConstructL IN") ) ); + TInt err( KErrNone ); + + // Start listening for GAN mode + err = iPropertyGanMode.Attach( KPSUidCoreApplicationUIs, KCoreAppUIsGanPropertyGanMode ); + User::LeaveIfError( err ); + iGanModeListener = CSysApGanPropertyListener::NewL( iPropertyGanMode, *this ); + iGanModeListener->Subscribe(); + + // Start listening for signal strength + err = iPropertySignalLevel.Attach( KPSUidCoreApplicationUIs, KCoreAppUIsGanPropertySignalLevel ); + User::LeaveIfError( err ); + iSignalLevelListener = CSysApGanPropertyListener::NewL( iPropertySignalLevel, *this ); + iSignalLevelListener->Subscribe(); + + // Get current GAN mode + TInt mode; + err = iPropertyGanMode.Get( mode ); + if( KErrNone == err ) + { + iGanMode = (TCoreAppUIsGanMode)mode; + } + + // Get current GAN signal level + iPropertySignalLevel.Get( iGanSignalLevel ); + + TRACES( RDebug::Print( _L("CSysApGanHandler::ConstructL OUT") ) ); + } + +// --------------------------------------------------------------------------- +// Static constructor. +// --------------------------------------------------------------------------- +// +CSysApGanHandler* CSysApGanHandler::NewL( CSysApAppUi& aSysApAppUi ) + { + CSysApGanHandler* self = new (ELeave) CSysApGanHandler( aSysApAppUi ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// Destructor. +// --------------------------------------------------------------------------- +// +CSysApGanHandler::~CSysApGanHandler() + { + delete iGanModeListener; + delete iSignalLevelListener; + iPropertyGanMode.Close(); + iPropertySignalLevel.Close(); + } + +TBool CSysApGanHandler::IsInGanMode() + { + return iGanMode == EGanModeGAN; + } + +TInt CSysApGanHandler::GanSignalLevel() + { + return iGanSignalLevel; + } + +// --------------------------------------------------------------------------- +// Handle UI Status RProperty change event. Read the new RProperty value +// and publish the content on idle screen. +// --------------------------------------------------------------------------- +// +void CSysApGanHandler::PropertyEvent( + CSysApGanPropertyListener& aPropertyListener, + TInt aStatus ) + { + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent IN") ) ); + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent status %d"), aStatus ) ); + + if( KErrNone == aStatus ) + { + if( iGanModeListener == &aPropertyListener ) + { + // GAN mode event + TInt mode; + TInt err = iPropertyGanMode.Get( mode ); + iGanMode = (TCoreAppUIsGanMode)mode; + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent RProp err %d"), err ) ); + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent GAN mode %d"), iGanMode ) ); + iSysApAppUi.SetSignalIndicatorL(); + } + else if( iSignalLevelListener == &aPropertyListener ) + { + // Signal level event + TInt err = iPropertySignalLevel.Get( iGanSignalLevel ); + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent RProp err %d"), err ) ); + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent signal level %d"), iGanSignalLevel ) ); + iSysApAppUi.UpdateSignalBarsL(); + } + } + aPropertyListener.Subscribe(); + TRACES( RDebug::Print( _L("CSysApGanHandler::PropertyEvent OUT") ) ); + } + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/gan/sysapganhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/gan/sysapganhandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,121 @@ +/* +* Copyright (c) 2010 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: CSysApGanHandler class definition. +* +*/ + +#ifndef SYSAPGANHANDLER_H_ +#define SYSAPGANHANDLER_H_ + +#include +#include +#include "sysapganpropertylistener.h" + +class CSysApAppUi; + +/** + * Listen RProperty events from GAN server. + */ +NONSHARABLE_CLASS( CSysApGanHandler ) : + public CBase, + private MSysApGanPropertyObserver + { +public: + /** + * Static constructor. + * @param aSysApUi Application UI. + */ + static CSysApGanHandler* NewL( CSysApAppUi& aSysApAppUi ); + + /** + * Destructor. + */ + ~CSysApGanHandler(); + + /** + * Tells if phone is in GAN mode. + * @return ETrue if in GAN mode (not in GERAN) + */ + TBool IsInGanMode(); + + /** + * Tells the signal bar level in GAN mode. + * @return The number of signal bar blocks. + */ + TInt GanSignalLevel(); + +private: // from MSysApGanPropertyObserver + + /** + * Receive RProperty notification. This same interface can receive + * notifications from multiple listeners. + * @param aPropertyListener Property lister that received the notification. + * @param aStatus Status of the notification. + */ + void PropertyEvent( + CSysApGanPropertyListener& aPropertyListener, TInt aStatus ); + +private: + /** + * C++ constructor. + * @param aSysApUi Application UI. + */ + CSysApGanHandler( CSysApAppUi& aSysApAppUi ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + + +protected: // Data + + /** + * Application UI. + */ + CSysApAppUi& iSysApAppUi; + + /** + * Current GAN mode. + */ + TCoreAppUIsGanMode iGanMode; + + /** + * Current GAN signal level. + */ + TInt iGanSignalLevel; + + /** + * GAN mode property. + */ + RProperty iPropertyGanMode; + + /** + * Signal level property. + */ + RProperty iPropertySignalLevel; + + /** + * Listener for GAN mode property. + */ + CSysApGanPropertyListener* iGanModeListener; + + /** + * Listener for signal level property. + */ + CSysApGanPropertyListener* iSignalLevelListener; + + }; + +#endif /* SYSAPGANHANDLER_H_ */ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/gan/sysapganpropertylistener.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/gan/sysapganpropertylistener.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2010 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: Listens to given P&S key and notifies +* observer whenever the value changes. +*/ + + +#include "sysapganpropertylistener.h" + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor +// --------------------------------------------------------------------------- +// +CSysApGanPropertyListener::CSysApGanPropertyListener( + RProperty& aProperty, + MSysApGanPropertyObserver& aObserver ) : + CActive( CActive::EPriorityStandard ), + iObserver( aObserver ), + iProperty( aProperty ) + { + CActiveScheduler::Add( this ); + } + +// --------------------------------------------------------------------------- +// Static constructor. +// --------------------------------------------------------------------------- +// +CSysApGanPropertyListener* CSysApGanPropertyListener::NewL( + RProperty& aProperty, + MSysApGanPropertyObserver& aObserver ) + { + CSysApGanPropertyListener* self = + new ( ELeave ) CSysApGanPropertyListener( aProperty, aObserver ); + return self; + } + +// --------------------------------------------------------------------------- +// Destructor. +// --------------------------------------------------------------------------- +// +CSysApGanPropertyListener::~CSysApGanPropertyListener() + { + Cancel(); // Cancel any request, if outstanding + } + +// --------------------------------------------------------------------------- +// Subscribe for property value changes. +// --------------------------------------------------------------------------- +// +void CSysApGanPropertyListener::Subscribe() + { + // Cancel any outstanding request + Cancel(); + + iProperty.Subscribe( iStatus ); + SetActive(); + } + +// --------------------------------------------------------------------------- +// Property value changed. +// --------------------------------------------------------------------------- +// +void CSysApGanPropertyListener::RunL() + { + // Notify the observer. + iObserver.PropertyEvent( *this, iStatus.Int() ); + } + +// --------------------------------------------------------------------------- +// Subscription cancelled. +// --------------------------------------------------------------------------- +// +void CSysApGanPropertyListener::DoCancel() + { + iProperty.Cancel(); + } + +// --------------------------------------------------------------------------- +// Error in RunL. +// --------------------------------------------------------------------------- +// +TInt CSysApGanPropertyListener::RunError( TInt /*aError*/ ) + { + // ignore error + return KErrNone; + } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/gan/sysapganpropertylistener.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/SysAp/Src/gan/sysapganpropertylistener.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,100 @@ +/* +* Copyright (c) 2010 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: CSysApGanPropertyListener class definition. Class for +* RProperty changes from GAN server. +*/ + + +#ifndef C_SYSAPGANPROPERTYLISTENER_H +#define C_SYSAPGANPROPERTYLISTENER_H + +#include +#include +#include "msysapganpropertyobserver.h" + +/** + * Listen RProperty events. + */ +NONSHARABLE_CLASS( CSysApGanPropertyListener ) : + public CActive + { +public: + /** + * Static constructor. + * @param aProperty Property to listen to. + * @param aObserver Object that is informed about about new IAP usage. + */ + static CSysApGanPropertyListener* NewL( + RProperty& aProperty, + MSysApGanPropertyObserver& aObserver ); + + /** + * Destructor. + */ + ~CSysApGanPropertyListener(); + +protected: + /** + * C++ constructor. + * @param aProperty Property to listen to. + * @param aObserver Object that is informed about about new IAP usage. + */ + CSysApGanPropertyListener( + RProperty& aProperty, + MSysApGanPropertyObserver& aObserver ); + + /** + * Symbian 2nd phase constructor. + */ + void ConstructL(); + +public: + /** + * Subscribes to a property. + */ + void Subscribe(); + +protected: // From CActive + + /** + * Handles an active object's request completion event. + */ + void RunL(); + + /** + * Cancels asynchronous request. + */ + void DoCancel(); + + /** + * Handles a leave occurring in RunL(). + * @param aError Error that caused RunL to leave. + */ + TInt RunError( TInt aError ); + +protected: // Data + + /** + * Observer to notifiy about property changes. + */ + MSysApGanPropertyObserver& iObserver; + + /** + * Property to listen to. + */ + RProperty& iProperty; + + }; + +#endif // C_SYSAPGANPROPERTYLISTENER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/hbdeviceinputdialogsymbian.cpp --- a/coreapplicationuis/SysAp/Src/hbdeviceinputdialogsymbian.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,250 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (developer.feedback@nokia.com) -** -** This file is part of the HbWidgets module of the UI Extensions for Mobile. -** -** GNU Lesser General Public License Usage -** This file may be used under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation and -** appearing in the file LICENSE.LGPL included in the packaging of this file. -** Please review the following information to ensure the GNU Lesser General -** Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at developer.feedback@nokia.com. -** -****************************************************************************/ - -#include "hbdeviceinputdialogsymbian.h" - -#include -#include -#include - -#define ARG_UNUSED(x) (void)x; - -//_LIT(KDialogText, "text"); - -enum TInputDialogPanic { - ELineEditPanic, - EPropertyPanic, - EButtonIdPanic -}; - -NONSHARABLE_CLASS(CHbDeviceInputDialogPrivate) : public CBase, public MHbDeviceDialogObserver -{ -public: - - void ConstructL(MHbDeviceInputDialogObserver *aObserver); - ~CHbDeviceInputDialogPrivate(); - - void SetButtonNull(CHbDeviceInputDialogSymbian::TButtonId aButtonId, bool aValue); - void SetButtonTextL(CHbDeviceInputDialogSymbian::TButtonId aButtonId, const TDesC &aValue); - void SendToServerL(bool aShow = false); - void Close(); - bool WaitForClosed(); - void AddVariantL(const TDesC& aKey, const TAny* aData,CHbSymbianVariant::TType aDataType, CHbSymbianVariantMap* map); - -public: // MHbDeviceDialogObserver - void DataReceived(CHbSymbianVariantMap& aData); - void DeviceDialogClosed(TInt aCompletionCode); - -public: // data - - CHbDeviceInputDialogSymbian *q; - CHbDeviceDialogSymbian *mDeviceDialog; - bool mShowCalled; - CHbDeviceInputDialogSymbian::TButtonId mReceivedButton; - MHbDeviceInputDialogObserver *mObserver; - CHbSymbianVariantMap* iVariantMap; - - bool *mDeleted; - CActiveSchedulerWait mActiveSchedulerWait; -}; - - -void CHbDeviceInputDialogPrivate::ConstructL(MHbDeviceInputDialogObserver *aObserver) -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::ConstructL::Begin") ) ); - mDeviceDialog = CHbDeviceDialogSymbian::NewL(); - iVariantMap = CHbSymbianVariantMap::NewL(); - - - - mReceivedButton = CHbDeviceInputDialogSymbian::ERejectButton; - mObserver = aObserver; - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::ConstructL::End") ) ); -} - -// Destructor -CHbDeviceInputDialogPrivate::~CHbDeviceInputDialogPrivate() -{ - // If no observer, remove observer from device dialog. This leaves the - // dialog widget executing at server when client closes connection. - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::Destructor::Begin") ) ); - if (!mObserver) { - mDeviceDialog->SetObserver(0); - } - - delete mDeviceDialog; - delete iVariantMap; - - // Set object deleted flag - if (mDeleted) { - // Mark the object as deleted. - *mDeleted = true; - mDeleted = 0; - } - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::Destructor::End") ) ); -} - -void CHbDeviceInputDialogPrivate::AddVariantL(const TDesC& aKey,const TAny* aData,CHbSymbianVariant::TType aDataType,CHbSymbianVariantMap* map ) - { - CHbSymbianVariant *variant = CHbSymbianVariant::NewL(aData, aDataType); - CleanupStack::PushL(variant); - User::LeaveIfError(map->Add(aKey, variant)); - CleanupStack::Pop(variant); - } - -// Send properties to server. Show or update. -void CHbDeviceInputDialogPrivate::SendToServerL(bool /* aShow */) -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::SendToServerL::Begin") ) ); - _LIT(KDeviceDialogType, "com.nokia.hb.deviceinputdialog/1.0"); - TInt error; - mReceivedButton = CHbDeviceInputDialogSymbian::ERejectButton; - error = mDeviceDialog->Show(KDeviceDialogType, *iVariantMap, this); - User::LeaveIfError(error); - mShowCalled = true; - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::SendToServerL::End") ) ); -} - - -// Close input dialog -void CHbDeviceInputDialogPrivate::Close() -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::Close::Begin") ) ); - mDeviceDialog->Cancel(); - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::Close::End") ) ); -} - -// Wait for input dialog to close -bool CHbDeviceInputDialogPrivate::WaitForClosed() -{ - // Returns true if object was not deleted during wait - if (!mShowCalled) { - return true; - } - return true; -} - -// Observer, data received from device input dialog -void CHbDeviceInputDialogPrivate::DataReceived(CHbSymbianVariantMap& aData) -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::DataReceived::Begin") ) ); - mReceivedButton = CHbDeviceInputDialogSymbian::ERejectButton; - _LIT(KKeyOk, "ok"); - _LIT(KKeyCancel, "cancel"); - const CHbSymbianVariant* variantOk = aData.Get(KKeyOk); - const CHbSymbianVariant* variantCancel = aData.Get(KKeyCancel); - if (variantOk) - { - const TDesC *value = variantOk->Value(); - q->iPassword = *value; - mReceivedButton = CHbDeviceInputDialogSymbian::EAcceptButton; - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsMemoryCardCustomDialogOk ); - } - else if(variantCancel) - { - const TDesC *value = variantCancel->Value(); - q->iPassword = *value; - mReceivedButton = CHbDeviceInputDialogSymbian::EAcceptButton; - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsMemoryCardCustomDialogCancel); - } - - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::DataReceived::End") ) ); -} - -// Observer, device input dialog closed -void CHbDeviceInputDialogPrivate::DeviceDialogClosed(TInt aCompletionCode) -{ - ARG_UNUSED(aCompletionCode) - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::DeviceDialogClosed::Begin") ) ); - - mShowCalled = false; - - - if (mObserver) { - mObserver->InputDialogClosed(q, mReceivedButton); - return; // observer callback deleted this object. Do not touch it anymore. - } - TRACES( RDebug::Print( _L("CHbDeviceInputDialogPrivate::DeviceDialogClosed::End") ) ); -} - -// Constructor -CHbDeviceInputDialogSymbian::CHbDeviceInputDialogSymbian() -{ -} - -// Destructor -CHbDeviceInputDialogSymbian::~CHbDeviceInputDialogSymbian() -{ - delete d; -} - -CHbDeviceInputDialogSymbian* CHbDeviceInputDialogSymbian::NewL(MHbDeviceInputDialogObserver *aObserver) -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::NewL::Begin") ) ); - ARG_UNUSED(aObserver) - CHbDeviceInputDialogSymbian *inputDialog = new (ELeave) CHbDeviceInputDialogSymbian; - CleanupStack::PushL(inputDialog); - CHbDeviceInputDialogPrivate *idialogPrivate = new (ELeave) CHbDeviceInputDialogPrivate; - idialogPrivate->q = inputDialog; - CleanupStack::PushL(idialogPrivate); - idialogPrivate->ConstructL( aObserver); - inputDialog->d = idialogPrivate; - CleanupStack::Pop(2); // inputDialog, idialogPrivate - inputDialog->SetObserver(aObserver); - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::NewL::End") ) ); - return inputDialog; -} - - -void CHbDeviceInputDialogSymbian::ShowL() -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::ShowL::Begin") ) ); - d->SendToServerL(true); - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::ShowL::End") ) ); -} - - -TPtrC CHbDeviceInputDialogSymbian::getTextL() -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::getTextL::Begin") ) ); - TRACES( RDebug::Print(_L( "CHbDeviceInputDialogSymbian::getTextL::Begin %S" ),&iPassword)); - HBufC* sample1 = HBufC::NewLC(iPassword.Length()); - TPtrC aStringPointer = sample1->Des(); - aStringPointer.Set(iPassword); - CleanupStack::PopAndDestroy(); - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::getTextL::End") ) ); - return aStringPointer; -} - -void CHbDeviceInputDialogSymbian::Close() -{ - TRACES( RDebug::Print( _L("CHbDeviceInputDialogSymbian::Close::Begin") ) ); - d->Close(); -} - -void CHbDeviceInputDialogSymbian::SetObserver(MHbDeviceInputDialogObserver *aObserver) -{ - d->mObserver = aObserver; -} diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/hbdevicepowermenusymbian.cpp --- a/coreapplicationuis/SysAp/Src/hbdevicepowermenusymbian.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,443 +0,0 @@ -/* - * Copyright (c) 2010 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 "hbdevicepowermenusymbian.h" - - -//These Keys will be used in CHbSymbianVariantMap -//Donot Change these strings -_LIT(KVolumeLevel, "VolumeLevel"); -_LIT(KSilenceLatchOn, "SilenceLatchOn"); //Used to latch silencebutton -_LIT(KCypherOff, "CypherOff"); //used to poweroffButtonEnabled/Disabled -_LIT(KVibrationEnable, "VibrationEnable"); -_LIT(KOfflineEnable, "OfflineEnable"); -_LIT(KShutDown, "ShutDown"); - -//used to load plugin -_LIT(KPluginIdentifier, "com.nokia.hb.devicepowermenu/1.0"); - - -NONSHARABLE_CLASS(CHbDevicePowerMenuPrivate) : public CBase, public MHbDeviceDialogObserver -{ -public: - static CHbDevicePowerMenuPrivate* NewL(CHbDevicePowerMenuSymbian* aDialog); - virtual ~CHbDevicePowerMenuPrivate(); - - void ShowL(); - void AddVariantL(const TDesC& aKey, const TAny* aData, CHbSymbianVariant::TType aDataType); - - //Set Methods - void SetVolume(TInt aVolume); - void SetSilenceMode(TBool aEnable); - void SetOfflineMode(TBool aChecked); - void SetVibrationEnabled(TBool aEnable); - void SetPowerOffEnabled(TBool aEnable); - -public: - // MHbDeviceDialogObserver - void DataReceived(CHbSymbianVariantMap& aData); - void DeviceDialogClosed(TInt aCompletionCode); - -private: - CHbDevicePowerMenuPrivate(); - void ConstructL(CHbDevicePowerMenuSymbian* aDialog); - -private: - //symbian FW client intreface to load Qt.plugin - CHbDeviceDialogSymbian* iDeviceDialog; - //Parameter for loading qt.plugin - CHbSymbianVariantMap* iVariantMap; - //Symbian client interface for Powermenu - CHbDevicePowerMenuSymbian* iPowerMenuManager; - - //Variants used in VariantMap - TInt iVolumeLevel; //Volume level ranges 1 to 10 - TBool iSilenceLatchOn; //Silence Enabled or Disbaled - TBool iVibrationEnable; //Master Vibarate enabled/Disabled - TBool iOfflineEnable; //Oflline Mode enabled or Disabled - TBool iCypherOff; //Encryption/Decryption ON/OFF -}; - -/** - * Create an object of CHbDevicePowerMenuPrivate - */ -CHbDevicePowerMenuPrivate* CHbDevicePowerMenuPrivate::NewL(CHbDevicePowerMenuSymbian* aDialog) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::NewL: START") ) ); - CHbDevicePowerMenuPrivate* self = new (ELeave) CHbDevicePowerMenuPrivate(); - CleanupStack::PushL(self); - self->ConstructL(aDialog); - CleanupStack::Pop(self); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::NewL: END") ) ); - return self; - } - -/** - * Constructor - */ -CHbDevicePowerMenuPrivate::CHbDevicePowerMenuPrivate() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::Constructor") ) ); - //Do nothing - } - -/** - * Destructor - */ -CHbDevicePowerMenuPrivate::~CHbDevicePowerMenuPrivate() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::Destructor: START") ) ); - delete iDeviceDialog; - delete iVariantMap; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::Destructor: END") ) ); - } - -/** - * Constrcuts all its member variables - */ -void CHbDevicePowerMenuPrivate::ConstructL(CHbDevicePowerMenuSymbian* aDialog) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::ConstructL: START") ) ); - iPowerMenuManager = aDialog; - iDeviceDialog = CHbDeviceDialogSymbian::NewL(); - iVariantMap = CHbSymbianVariantMap::NewL(); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::ConstructL: END") ) ); - } - -/** - * Builds all parameters required for showing the PowerMenu Dialog. - * Loads the required powermenu plugin and calls show on DeviceDialog. - * This Displays the Customized PowerMenu Widget. - */ -void CHbDevicePowerMenuPrivate::ShowL() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::ShowL: START") ) ); - AddVariantL(KVolumeLevel, &iVolumeLevel, CHbSymbianVariant::EInt); - AddVariantL(KSilenceLatchOn, &iSilenceLatchOn, CHbSymbianVariant::EBool); - AddVariantL(KVibrationEnable, &iVibrationEnable, CHbSymbianVariant::EBool); - AddVariantL(KOfflineEnable, &iOfflineEnable, CHbSymbianVariant::EBool); - AddVariantL(KCypherOff, &iCypherOff, CHbSymbianVariant::EBool); - //No shutdown varinat will be added to showL - User::LeaveIfError(iDeviceDialog->Show(KPluginIdentifier, *iVariantMap, this)); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::ShowL: END") ) ); - } - -/** - * Sets Volume to aVolume - */ -void CHbDevicePowerMenuPrivate::SetVolume(TInt aVolume) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetVolume: START") ) ); - iVolumeLevel = aVolume; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetVolume: END") ) ); - } - -/** - * Sets SilenceMode to Enable/Disable - */ -void CHbDevicePowerMenuPrivate::SetSilenceMode(TBool aEnable) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetSilenceMode: START") ) ); - iSilenceLatchOn = aEnable; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetSilenceMode: END") ) ); - } - -/** - * Sets OfflineMode to Checked/UnChecked - */ -void CHbDevicePowerMenuPrivate::SetOfflineMode(TBool aChecked) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetOfflineMode: START") ) ); - iOfflineEnable = aChecked; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetOfflineMode: END") ) ); - } - -/** - * Sets VibrationEnabled to Checked/UnChecked - */ -void CHbDevicePowerMenuPrivate::SetVibrationEnabled(TBool aChecked) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetVibrationEnabled: START") ) ); - iVibrationEnable = aChecked; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetVibrationEnabled: END") ) ); - } - -/** - * Sets PowerOffEnabled to Enable/Disable - */ -void CHbDevicePowerMenuPrivate::SetPowerOffEnabled(TBool aEnable) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetPowerOffEnabled: START") ) ); - iCypherOff = aEnable; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::SetPowerOffEnabled: END") ) ); - } - -/** - * Data received from HBDeviceDialog will hit by emit deviceDialogData in plugin - * The values received from UI will set to ControlPanel. - */ -void CHbDevicePowerMenuPrivate::DataReceived(CHbSymbianVariantMap& aData) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: START") ) ); - // Updates received from the plugin. - //1. Volume - const CHbSymbianVariant* volumeVariant = aData.Get(KVolumeLevel); - if(volumeVariant) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: volumeVariant::Start") ) ); - TInt* volumeValue = volumeVariant->Value(); - if(volumeValue) - { - iVolumeLevel = *volumeValue; - iPowerMenuManager->iProfileEngine->SetMasterVolumeL( iVolumeLevel ); - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived:volumeVariant::End") ) ); - } - - //2. Silence - const CHbSymbianVariant* SilenceVariant = aData.Get(KSilenceLatchOn); - if(SilenceVariant) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: SilenceVariant::Start") ) ); - TBool* LatchValue = SilenceVariant->Value(); - if(LatchValue) - { - iSilenceLatchOn = *LatchValue; - iPowerMenuManager->iProfileEngine->SetSilenceModeL( iSilenceLatchOn );//member in CHbDevicePowerMenuSymbian - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: SilenceVariant::End") ) ); - } - - //3. Vibration - const CHbSymbianVariant* VibrationVariant = aData.Get(KVibrationEnable); - if(VibrationVariant) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: VibrationVariant::Start") ) ); - TBool* VibrationValue = VibrationVariant->Value(); - if(VibrationValue) - { - iVibrationEnable = *VibrationValue; - iPowerMenuManager->iProfileEngine->SetMasterVibraL( iVibrationEnable );//member in CHbDevicePowerMenuSymbian - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: VibrationVariant::End") ) ); - } - - //4.Offline - const CHbSymbianVariant* OfflineVariant = aData.Get(KOfflineEnable); - if(OfflineVariant) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: OfflineVariant::Start") ) ); - TBool* OfflineValue = OfflineVariant->Value(); - if(OfflineValue) - { - iOfflineEnable = *OfflineValue; - // negate the value before storing in cen rep as the n/w conn allowed key is complement of offline mode - User::LeaveIfError( iPowerMenuManager->iCenrepOffline->Set(KCoreAppUIsNetworkConnectionAllowed, !iOfflineEnable ) ); - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: OfflineVariant::End") ) ); - } - - //5.shutdown - const CHbSymbianVariant* ShutDownVariant = aData.Get(KShutDown); - if(ShutDownVariant) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: ShutDownVariant::Start") ) ); - TBool* ShutDownValue = ShutDownVariant->Value(); - if(ShutDownValue) - { - TBool shutDown = *ShutDownValue; - if (shutDown) - { - iPowerMenuManager->iSysApServer.HandleLongPowerKeyPressedL(); - } - - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: ShutDownVariant::End") ) ); - } - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DataReceived: END") ) ); - return; - } - -/** - * DeviceDialogClosed will be executed by the event emit deviceDialogClosed in plugin. - * This will be executed when 1. Tap out side the Dialog to Close - * 2. When Power Off Button is clicked. - */ -void CHbDevicePowerMenuPrivate::DeviceDialogClosed(TInt /*aCompletionCode*/) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::DeviceDialogClosed") ) ); - // Inform sysap to release the memory of power menu custom dialog. - RProperty::Set( KPSUidCoreApplicationUIs, KCoreAppUIsPowerMenuCustomDialogStatus, ECoreAppUIsPowerMenuCustomDialogOn ); - } - -/** - * Contrcuts VariantMap - */ -void CHbDevicePowerMenuPrivate::AddVariantL(const TDesC& aKey, const TAny* aData, CHbSymbianVariant::TType aDataType) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::AddVariantL: START") ) ); - CHbSymbianVariant *variant = CHbSymbianVariant::NewL(aData, aDataType); - CleanupStack::PushL(variant); - //iVariantMap takes the ownerhip of variant - User::LeaveIfError(iVariantMap->Add(aKey, variant)); - CleanupStack::Pop(variant); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuPrivate::AddVariantL: End") ) ); - } - -/* - * Creates an object of CHbDevicePowerMenuSymbian -*/ -CHbDevicePowerMenuSymbian* CHbDevicePowerMenuSymbian::NewL(CSysApAppUi& aSysApServer) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::NewL: START") ) ); - CHbDevicePowerMenuSymbian* self = new (ELeave) CHbDevicePowerMenuSymbian(aSysApServer); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::NewL: END") ) ); - return self; - } - -/* - * Destructs the class. -*/ -CHbDevicePowerMenuSymbian::~CHbDevicePowerMenuSymbian() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::Destructor: START") ) ); - delete iCenrepProfile; - delete iCenrepOffline; - iProfileEngine->Release(); - delete iPowerMenuPrivate; - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::Destructor: End") ) ); - } - -/* - * Executes the dialog asynchronously. -*/ -void CHbDevicePowerMenuSymbian::ShowL() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::ShowL: START") ) ); - iPowerMenuPrivate->ShowL(); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::ShowL: End") ) ); - } - -/** - * Sets Volume to aVolume - */ -void CHbDevicePowerMenuSymbian::SetVolume(TInt aVolume) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetVolume: START") ) ); - iPowerMenuPrivate->SetVolume(aVolume); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetVolume: End") ) ); - } - -/** - * Sets SilenceMode to Enable/Disable - */ -void CHbDevicePowerMenuSymbian::SetSilenceMode(TBool aEnable) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetSilenceMode: START") ) ); - iPowerMenuPrivate->SetSilenceMode(aEnable); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetSilenceMode: END") ) ); - } - -/** - * Sets OfflineMode to Checked/UnChecked - */ -void CHbDevicePowerMenuSymbian::SetOfflineMode(TBool aChecked) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetOfflineMode: START") ) ); - iPowerMenuPrivate->SetOfflineMode(aChecked); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetOfflineMode: End") ) ); - } - -/** - * Sets VibrationEnabled to Checked/UnChecked - */ -void CHbDevicePowerMenuSymbian::SetVibrationEnabled(TBool aEnable) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetVibrationEnabled: START") ) ); - iPowerMenuPrivate->SetVibrationEnabled(aEnable); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetVibrationEnabled: End") ) ); - } - -/** - * Sets PowerOffEnabled to Enable/Disable - */ -void CHbDevicePowerMenuSymbian::SetPowerOffEnabled(TBool aEnable) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetPowerOffEnabled: START") ) ); - iPowerMenuPrivate->SetPowerOffEnabled(aEnable); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::SetPowerOffEnabled: END") ) ); - } - -/* - * Constructor. -*/ -CHbDevicePowerMenuSymbian::CHbDevicePowerMenuSymbian(CSysApAppUi& aSysApServer) - :iSysApServer(aSysApServer) - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::Constructor") ) ); - //Do Nothing - } - -/* - * 2nd Constructor. - * Constructs and initializes all its meber variables -*/ -void CHbDevicePowerMenuSymbian::ConstructL() - { - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::ConstructL: START") ) ); - iProfileEngine = ::CreateProfileEngineExtended2L(); - iCenrepOffline = CRepository::NewL( KCRUidCoreApplicationUIs ); - iCenrepProfile = CRepository::NewL( KCRUidProfileEngine ); - iPowerMenuPrivate = CHbDevicePowerMenuPrivate::NewL(this); - - //To Sync with Contro panel - TBool networkConnectionAllowed(EFalse); - TInt error = iCenrepOffline->Get( KCoreAppUIsNetworkConnectionAllowed, networkConnectionAllowed ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: KCoreAppUIsNetworkConnectionAllowed = %d"), error ) ); - - // The value of KCoreAppUIsNetworkConnectionAllowed is Inverted status of Offline mode - // Hence negate the value and use as Offline mode - SetOfflineMode(!networkConnectionAllowed); - - TInt masterVolume(0); - error = iCenrepProfile->Get( KProEngMasterVolume, masterVolume ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: KProEngMasterVolume = %d"), error ) ); - SetVolume(masterVolume); - - TBool masterVibrate(0); - error = iCenrepProfile->Get( KProEngMasterVibra, masterVibrate ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: KProEngMasterVibra = %d"), error ) ); - SetVibrationEnabled(masterVibrate); - - TBool silenceMode(EFalse); - error = iCenrepProfile->Get( KProEngSilenceMode, silenceMode ); - TRACES( RDebug::Print( _L("CSysApAppUi::ConstructL: KProEngSilenceMode = %d"), error ) ); - SetSilenceMode(silenceMode); - - //Cypheroff is True when No encryption/Decryption is happening - TBool cypherOff(!(iSysApServer.IsEncryptionOperationOngoingL())); - SetPowerOffEnabled(cypherOff); - TRACES( RDebug::Print( _L("CHbDevicePowerMenuSymbian::ConstructL: END") ) ); - } - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/memorycard/sysapdriveejecthandler.cpp --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveejecthandler.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveejecthandler.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -163,6 +163,7 @@ aError ) ); } // Ensure that the wait note without softkeys gets closed + iSysApAppUi.CancelWaitNote(); iSysApDriveList.ResetDrivesToEject(); iDriveToEject = KErrNotFound; iDiskNotifyHandler->CancelStartedDismount(); @@ -184,6 +185,7 @@ aError, aEvent.iDrive, aEvent.iForcedDismount ) ); iDriveToEject = KErrNotFound; + iSysApAppUi.CancelWaitNote(); // Show dismount ready note TBool dialogShown( EFalse ); diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdrivelist.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -55,8 +55,6 @@ { // Get the default memory card. If memory card is unavailable, // then get the next best suitable drive. - iDefaultMemoryCard = 0; - TInt err( DriveInfo::GetDefaultDrive( DriveInfo::EDefaultRemovableMassStorage, iDefaultMemoryCard ) ); if ( err != KErrNone ) diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -53,8 +53,7 @@ const TBool aMemoryCardLockSupported ) : iSysApDriveList( aSysApDriveList ), iSysApAppUi( aSysApAppUi ), - iMemoryCardLockSupported( aMemoryCardLockSupported ), - iMemCardPwdDialog(NULL) + iMemoryCardLockSupported( aMemoryCardLockSupported ) { } @@ -68,12 +67,8 @@ _L( "CSysApDriveUnlockHandler::~CSysApDriveUnlockHandler" ) ) ); iIgnoreQueryResult = ETrue; - if (iMemCardPwdDialog!=NULL) - { - //MemoryCardDialog already exist - delete iMemCardPwdDialog; - iMemCardPwdDialog = NULL; - } + delete iQueryShowCB; + delete iMemoryCardDialog; } // --------------------------------------------------------------------------- @@ -82,6 +77,16 @@ // void CSysApDriveUnlockHandler::StartUnlock() { + TBool isOngoing( IsQueryOngoing() ); + + TRACES( RDebug::Print( + _L( "CSysApMCSysApMMCUnlockObserver::StartUnlock: ongoing: %d" ), + isOngoing ) ); + + if ( isOngoing ) + { + return; + } TRAPD( err, DoStartQueryIfNeededL() ); if ( err != KErrNone ) { @@ -145,6 +150,7 @@ // Mark handled and start next query iSysApDriveList.MarkDriveUnlockQueryShown( iDriveToUnlock ); + DoStartQueryAsyncIfNeeded(); } // --------------------------------------------------------------------------- @@ -169,23 +175,19 @@ // void CSysApDriveUnlockHandler::ShowUnlockQueryL() { - iDriveToUnlock = iSysApDriveList.DriveToUnlock(); TRACES( RDebug::Print( _L( "CSysApMCSysApMMCUnlockObserver::ShowUnlockQueryL: drive: %d" ), iDriveToUnlock ) ); - if (iMemCardPwdDialog!=NULL) + if ( !iMemoryCardDialog ) { - //PowerMenu already exist - delete iMemCardPwdDialog; - iMemCardPwdDialog = NULL; - } - TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, JEELani 01") ) ); - iMemCardPwdDialog = CHbDeviceInputDialogSymbian::NewL(); - TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, JEELani 02") ) ); - iMemCardPwdDialog->ShowL(); - TRACES( RDebug::Print(_L("CSysApAppUi::HandleKeyEventL, JEELani 03") ) ); -} + CAknMemoryCardDialog* mmcDialog = CAknMemoryCardDialog::NewLC( this ); + iMemoryCardDialog = mmcDialog; // temporary variable used for hiding codescanner error + iMemoryCardDialog->SetSelfPointer( &iMemoryCardDialog ); + TDriveNumber drive( static_cast< TDriveNumber >( iDriveToUnlock ) ); + iMemoryCardDialog->UnlockCardLD( drive, ETrue ); + } + } // --------------------------------------------------------------------------- // CSysApDriveUnlockHandler::IsQueryOngoing @@ -193,7 +195,7 @@ // TBool CSysApDriveUnlockHandler::IsQueryOngoing() const { - return 0; + return ( iMemoryCardDialog || iQueryShowCB ); } // --------------------------------------------------------------------------- @@ -203,19 +205,10 @@ void CSysApDriveUnlockHandler::DoStartQueryIfNeededL() { iDriveToUnlock = iSysApDriveList.DriveToUnlock(); - if ( iDriveToUnlock == KErrNotFound ) { - _LIT(KChargingNote,"Phone does not found drive to unlock"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KChargingNote); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString return; } - if ( iMemoryCardLockSupported ) { ShowUnlockQueryL(); @@ -223,13 +216,6 @@ else { iSysApAppUi.ShowQueryL( ESysApMemoryCardLockedNote ); - _LIT(KChargingNote,"Phone does not support locked memory cards"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KChargingNote); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString iSysApDriveList.MarkDriveUnlockQueryShown( iDriveToUnlock ); } } @@ -246,6 +232,18 @@ DoStopUnlock( KErrNone ); return; } + delete iQueryShowCB; + iQueryShowCB = NULL; + iQueryShowCB = new CAsyncCallBack( + TCallBack( QueryShowCB, this ), CActive::EPriorityStandard ); + if ( iQueryShowCB ) + { + iQueryShowCB->CallBack(); + } + else + { + DoStopUnlock( KErrNoMemory ); + } } // --------------------------------------------------------------------------- @@ -260,117 +258,12 @@ _L( "CSysApMCSysApMMCUnlockObserver::DoStopUnlock: error: %d" ), aError ) ); } - ReleaseMemoryForInputCardDialog(); iIgnoreQueryResult = ETrue; + delete iMemoryCardDialog; + iMemoryCardDialog = NULL; + delete iQueryShowCB; + iQueryShowCB = NULL; iIgnoreQueryResult = EFalse; } -void CSysApDriveUnlockHandler::ReleaseMemoryForInputCardDialog() - { - if (iMemCardPwdDialog!=NULL) - { - //MemoryCardDialog already exist - delete iMemCardPwdDialog; - iMemCardPwdDialog = NULL; - } - } - -TInt CSysApDriveUnlockHandler::CheckMemoryDialogIfNeeded() - { - TRACES( RDebug::Print(_L( "CSysApDriveUnlockHandler::CheckMemoryDialogIfNeeded(): Begin" ))); - TDriveNumber drive( static_cast< TDriveNumber >( iDriveToUnlock ) ); - TRACES( RDebug::Print(_L( "CSysApDriveUnlockHandler::CheckMemoryDialogIfNeeded()" ))); - TPtrC aStringPointer11 = iMemCardPwdDialog->getTextL(); - ConvertCharactersToPwd(aStringPointer11,iPassword); - - if(!aStringPointer11.Length()) - { - return EFalse; // It meant user has pressed OK without password - } - - TRACES( RDebug::Print(_L( "CSysApMCSysApMMCUnlockObserver::RunL; iPassword %S" ),&iPassword)); - CEikonEnv* eikEnv = CEikonEnv:: Static(); - TInt err = eikEnv->FsSession().UnlockDrive(drive,iPassword,ETrue); - ReleaseMemoryForInputCardDialog(); - - if ( err == KErrNone) - { - TRACES( RDebug::Print(_L( "CSysApAppUi::ReleaseMemoryCardCustomDialogMemory(), Drive Unlocked Succesfully" ))); - _LIT(KUnlockNote,"The memory is unlocked!"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KUnlockNote); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - return ETrue; - } - else if( err == KErrAccessDenied ) - { - TRACES( RDebug::Print(_L( "CSysApAppUi::ReleaseMemoryCardCustomDialogMemory(), Password InCorrect" ))); - _LIT(KUnlockDeniedNote,"The password is incorrect, try again!"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KUnlockDeniedNote); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - return EFalse; - } - else if( err == KErrAlreadyExists ) - { - TRACES( RDebug::Print(_L( "CSysApAppUi::ReleaseMemoryCardCustomDialogMemory(), Already been Drive Unlocked" ))); - _LIT(KUnlockAlreadyExistNote,"The disk has already been unlocked!"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KUnlockAlreadyExistNote); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - return ETrue; - } - else if( err == KErrNotSupported ) - { - TRACES( RDebug::Print(_L( "CSysApAppUi::ReleaseMemoryCardCustomDialogMemory(), Media does not support password locking." ))); - _LIT(KUnlockNotSupporrtedNote,"The media does not support password locking!"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KUnlockNotSupporrtedNote); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - return ETrue; - } - else - { - // check for error -18 what it is . - _LIT(KUnlockOperationCancelNote,"Error occurred, operation cancelled!"); - HBufC* aString = HBufC16::NewLC(150); - TPtrC aStringPointer = aString->Des(); - aStringPointer.Set(KUnlockOperationCancelNote); - TRACES( RDebug::Print( _L("CSysApWsClient::RunL(): Key EEventKeyUp 01") ) ); - iSysApAppUi.ShowExampleUiNoteL( aStringPointer ); - CleanupStack::PopAndDestroy(); // aString - return ETrue; - } -} - -HBufC8* CSysApDriveUnlockHandler::Convert16to8L(TDesC16& aStr)//const - { - - HBufC8* newFrom1 = HBufC8::NewL(aStr.Length()); - - newFrom1->Des().Copy(aStr); - - return newFrom1; - } - -void CSysApDriveUnlockHandler::ConvertCharactersToPwd(TDesC& aWord, TDes8& aConverted) -{ - aConverted.FillZ(aConverted.MaxLength()); - aConverted.Zero(); - - if (aWord.Length()) - { - aConverted.Copy( (TUint8*)(&aWord[0]), aWord.Size() ); - } -} - // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -22,14 +22,14 @@ // INCLUDES #include #include -#include "hbdeviceinputdialogsymbian.h" // FORWARD DECLARATIONS class CSysApDriveList; class CSysApAppUi; // CLASS DECLARATION -class CSysApDriveUnlockHandler : public CBase +class CSysApDriveUnlockHandler : public CBase, + public MAknMemoryCardDialogObserver { public: /** @@ -57,17 +57,6 @@ * @param aDrive Drive to stop unlock notifier if ongoing */ void StopUnlock( TInt aDrive ); - - void ReleaseMemoryForInputCardDialog(); - TInt CheckMemoryDialogIfNeeded(); - void ConvertCharactersToPwd(TDesC& aWord, TDes8& aConverted); - - /** - * Shows unlock query. - */ - void ShowUnlockQueryL(); - HBufC8* Convert16to8L(TDesC16& aStr); - void UnlockComplete( TInt aResult ); private: /** @@ -77,13 +66,18 @@ CSysApDriveList& aSysApDriveList, CSysApAppUi& aSysApAppUi, const TBool aMemoryCardLockSupported ); - + /** * Handles query show from CAsyncCallBack. */ static TInt QueryShowCB( TAny* aPtr ); /** + * Shows unlock query. + */ + void ShowUnlockQueryL(); + + /** * Checks is unlock query ongoing. */ TBool IsQueryOngoing() const; @@ -103,6 +97,9 @@ */ void DoStopUnlock( TInt aError ); +private: // From MAknMemoryCardDialogObserver + void UnlockComplete( TInt aResult ); + private: // Data // Reference to the drive list CSysApDriveList& iSysApDriveList; @@ -112,16 +109,19 @@ // Indicates if memory card locking is supported TBool iMemoryCardLockSupported; - - CHbDeviceInputDialogSymbian* iMemCardPwdDialog; - - // Current drive to be unlocked + + // Pointer to unlock query. Own, + CAknMemoryCardDialog* iMemoryCardDialog; + + // Current drive to be unlocked TInt iDriveToUnlock; + // Pointer to the callback. Own. + CAsyncCallBack* iQueryShowCB; + // Indicates if the query result can be ignored i.e. query was canceled TBool iIgnoreQueryResult; - - TMediaPassword iPassword; + }; #endif // SYSAPDRIVEUNLOCKHANDLER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapbatteryinfocontroller.cpp --- a/coreapplicationuis/SysAp/Src/sysapbatteryinfocontroller.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapbatteryinfocontroller.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -19,8 +19,13 @@ #include #include #include +#include #include "bsutil.h" #include +#include +#include +#include +#include "batterypopupcontrol.h" #include "sysapbatteryinfocontroller.h" #include "SysAp.hrh" @@ -38,8 +43,8 @@ : iBsUtil( NULL ), iCurrentCapacity( KNotInitialized ), iThresholdCapacity( aThreshold ), - iBatteryInfoState( EBatteryInfoAboveThreshold ) - // iBatteryPopup( NULL ) + iBatteryInfoState( EBatteryInfoAboveThreshold ), + iBatteryPopup( NULL ) { // sanity check, fall back to hard coded default value const TInt min(0); @@ -87,7 +92,7 @@ { TRACES( RDebug::Print( _L("CSysApBatteryInfoController::~CSysApBatteryInfoController") ) ); delete iBsUtil; - // delete iBatteryPopup; + delete iBatteryPopup; } // --------------------------------------------------------------------------- @@ -178,12 +183,48 @@ // CSysApBatteryInfoController::ShowBatteryPreviewPopupL // --------------------------------------------------------------------------- // -void CSysApBatteryInfoController::ShowBatteryPreviewPopupL( TInt /* aCapacity */ ) +void CSysApBatteryInfoController::ShowBatteryPreviewPopupL( TInt aCapacity ) { - // TRACES( RDebug::Print( _L("CSysApBatteryInfoController::ShowBatteryPreviewPopupL: aCapacity=%d"), aCapacity ) ); + TRACES( RDebug::Print( _L("CSysApBatteryInfoController::ShowBatteryPreviewPopupL: aCapacity=%d"), aCapacity ) ); + + delete iBatteryPopup; + iBatteryPopup = NULL; + HBufC* popupTextBuf = StringLoader::LoadLC( R_QTN_BATTERY_STATUS_POPUP, aCapacity ); + iBatteryPopup = CBatteryPopupControl::NewL( *popupTextBuf, KNullDesC ); + CleanupStack::PopAndDestroy( popupTextBuf ); + + // switch layout for showing the battery popup + CAknAppUi* appUi = static_cast(CCoeEnv::Static()->AppUi()); + CEikStatusPane* statusPane = appUi->StatusPane(); - // delete iBatteryPopup; - // iBatteryPopup = NULL; - // preview battery capacity + TInt currLayout = statusPane->CurrentLayoutResId(); + + RAknUiServer* aknSrv = CAknSgcClient::AknSrv(); + if ( aknSrv ) + { + statusPane->SwitchLayoutL( aknSrv->StatusPaneResourceId() ); + } + // Trap for switching layout back to current. + TRAPD( err, iBatteryPopup->ShowPopUpL() ); + + if( err ) + { + TRACES( RDebug::Print( _L("CSysApBatteryInfoController::ShowBatteryPreviewPopupL ShowPopUpL() leaved: %d"), err ) ); + } + + // restore layout + statusPane->SwitchLayoutL( currLayout ); + + User::LeaveIfError( err ); } + +// --------------------------------------------------------------------------- +// CSysApBatteryInfoController::IsBatteryInfoAboveThreshold +// --------------------------------------------------------------------------- +// +TBool CSysApBatteryInfoController::IsBatteryInfoAboveThreshold() const + { + TInt capacity = iBsUtil->GetBatteryCapacity(); + return ((capacity <= iThresholdCapacity ? EBatteryInfoBelowThreshold : EBatteryInfoAboveThreshold) == EBatteryInfoAboveThreshold); + } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp --- a/coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapdefaultkeyhandler.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-2010 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" @@ -19,9 +19,8 @@ #include #include #include -//#include -//#include -#include "SysApTaskList.h" +#include +#include #include #include #include @@ -34,13 +33,16 @@ #include #include #include -//#include +#include +#include //for CRepository +#include +#include +#include +#include #include "sysapdefaultkeyhandler.h" #include "sysapcallback.h" #include "SysAp.hrh" -#include -//#include "sysapappui.h" -#include +#include "AknSgcc.h" const TInt KModifierMask( 0 ); @@ -51,18 +53,18 @@ // CSysApDefaultKeyHandler::CSysApDefaultKeyHandler // --------------------------------------------------------------------------- // -CSysApDefaultKeyHandler::CSysApDefaultKeyHandler( MSysapCallback& aCallback ): +CSysApDefaultKeyHandler::CSysApDefaultKeyHandler( MSysapCallback& aCallback ) : iCallback(aCallback), iCameraSupported(EFalse), iCoverDisplaySupported(EFalse), -// iKeylock(NULL), + iKeylock(NULL), iCapturedEKeyCamera(0), iCapturedEKeyTwistOpen(0), iCapturedEKeyTwistClose(0), iCapturedEKeyGripOpen(0), iCapturedEKeyGripClose(0), - iCapturedEKeyPoC(0) -// iAknUiServerConnected(EFalse) + iCapturedEKeyPoC(0), + iAknUiServerConnected(EFalse) { } @@ -76,23 +78,72 @@ RWindowGroup groupWin = CCoeEnv::Static()->RootWin(); User::LeaveIfError ( iCapturedEKeyCamera = groupWin.CaptureKey( EKeyCamera, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyTwistOpen = groupWin.CaptureKey( EKeyTwistOpen, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyTwistClose = groupWin.CaptureKey( EKeyTwistClose, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyGripOpen = groupWin.CaptureKey( EKeyGripOpen, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyGripClose = groupWin.CaptureKey( EKeyGripClose, KModifierMask, KModifierMask ) ); + User::LeaveIfError ( iCapturedEKeyPoC = groupWin.CaptureKey( EKeyPoC, KModifierMask, KModifierMask ) ); + + // flip key events don't need to be captured, because in current setup they are not real events but simulated by SysAp + // according to notifications received from P&S key that stores flip information FeatureManager::InitializeLibL(); iCameraSupported = FeatureManager::FeatureSupported( KFeatureIdCamera ); iCoverDisplaySupported = FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ); FeatureManager::UnInitializeLib(); - + + TKeyLockBuf lockBuf; + iCallback.ExecQueryL( MSysapCallback::EGetKeylock, lockBuf ); + iKeylock = lockBuf(); + + iKeypadWasLocked = iKeylock->IsKeyLockEnabled(); + + __ASSERT_DEBUG( iKeylock, User::Panic( _L("CSysApDefaultKeyHandler::ConstructL: iKeylock not initialized"), KErrBadHandle ) ); + + if ( iCoverDisplaySupported ) // if flip status is monitored, set the initial flip status now + { + TInt flipValue; + TInt err = RProperty::Get( KPSUidHWRM, KHWRMFlipStatus, flipValue ); + + TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::ConstructL: flipValue=%d, err=%d"), flipValue, err ) ); + + if ( err == KErrNone ) + { + switch ( flipValue ) + { + case EPSHWRMFlipOpen: + SetDisplayState( ETrue ); + break; + + case EPSHWRMFlipClosed: + SetDisplayState( EFalse ); + break; + + case EPSHWRMFlipStatusUninitialized: + default: + // set display state only if the current flip position is known + break; + } + } + } + + //Load keylock slide handling CR + TRAP_IGNORE( iSlideRepository = CRepository::NewL( KCRUidSlideSettings ) ); + iKeylockPolicy = CKeyLockPolicyApi::NewL( EPolicyActivateKeyguard ); + + //Load PhoneCallStatus P&S + TInt err = iCallStateProperty.Attach(KPSUidCtsyCallInformation, KCTsyCallState); } // --------------------------------------------------------------------------- // CSysApDefaultKeyHandler::NewL // --------------------------------------------------------------------------- // -CSysApDefaultKeyHandler* CSysApDefaultKeyHandler::NewL(MSysapCallback& aCallback ) +CSysApDefaultKeyHandler* CSysApDefaultKeyHandler::NewL( MSysapCallback& aCallback ) { TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::NewL()") ) ); - CSysApDefaultKeyHandler* self = new( ELeave ) CSysApDefaultKeyHandler(aCallback) ; + CSysApDefaultKeyHandler* self = new( ELeave ) CSysApDefaultKeyHandler( aCallback) ; CleanupStack::PushL( self ); self->ConstructL(); CleanupStack::Pop( self ); @@ -107,8 +158,18 @@ CSysApDefaultKeyHandler::~CSysApDefaultKeyHandler() { TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::~CSysApDefaultKeyHandler()") ) ); + + iAknUiServer.Close(); + RWindowGroup groupWin = CCoeEnv::Static()->RootWin(); - groupWin.CancelCaptureKey( iCapturedEKeyCamera ); + groupWin.CancelCaptureKey( iCapturedEKeyCamera ); + groupWin.CancelCaptureKey( iCapturedEKeyTwistOpen ); + groupWin.CancelCaptureKey( iCapturedEKeyTwistClose ); + groupWin.CancelCaptureKey( iCapturedEKeyGripOpen ); + groupWin.CancelCaptureKey( iCapturedEKeyGripClose ); + groupWin.CancelCaptureKey( iCapturedEKeyPoC ); + delete iSlideRepository; + delete iKeylockPolicy; } @@ -130,18 +191,127 @@ response = EKeyWasConsumed; // set again in default case if not consumed switch ( aKeyEvent.iCode ) - { + { + case EKeyGripOpen: + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyGripOpen") ) ); + RProperty::Set( KPSUidHWRM, KHWRMGripStatus, EPSHWRMGripOpen ); + iKeypadWasLocked = iKeylock->IsKeyLockEnabled(); + iKeylockPolicy->DisableKeyguardFeature(); + if (!IsDeviceLocked()) + { + iCallback.ExecCommandL( MSysapCallback::EResetKeyguardState ); + iKeylock->DisableKeyLock(); + iCallback.ExecCommandL( MSysapCallback::ECancelPowermenu ); + } + // apply default light control + iCallback.ExecCommandL( MSysapCallback::EUpdateLights, TUpdateLightsBuf(EKeyGripOpen) ); + break; + + case EKeyGripClose: + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyGripClosed") ) ); + RProperty::Set( KPSUidHWRM, KHWRMGripStatus, EPSHWRMGripClosed ); + iKeylockPolicy->EnableKeyguardFeature(); + iCallback.ExecCommandL( MSysapCallback::ECancelPowermenu ); + if( !iSlideRepository ) + { // default behavior is to always ask for keylock + if ( !IsDeviceLocked() && UiReady() ) + { + iKeylock->OfferKeyLock(); + } + } + else + { // keylock action is defined by user setting + TInt value = 0; + RProperty::Get(KPSUidStartup, KPSStartupUiPhase, value); + TBool startupOver = (value == EStartupUiPhaseAllDone); + if(startupOver) + { + TInt status(0); + TInt err = iCallStateProperty.Get( status ); + if (err == KErrNone) + { + switch ( status ) + { + case EPSCTsyCallStateUninitialized: + case EPSCTsyCallStateNone: + { + + TInt keyGuardSetting; + User::LeaveIfError(iSlideRepository->Get( KSlideKeyguard, keyGuardSetting )); + switch( ( TSlideSettingKeyguard ) keyGuardSetting ) + { + case ESlideSettingsKeyguardActivatingOn: + iKeylock->EnableKeyLock(); + break; + case ESlideSettingsKeyguardActivatingAskMe: + iKeylock->OfferKeyLock(); + break; + case ESlideSettingsKeyguardActivatingOff: + //do nothing + break; + case ESlideSettingsKeyguardActivatingAutomatic: + if( iKeypadWasLocked ) + { + iKeylock->EnableKeyLock(); + } + break; + } + } + default: // any other state + break; + } + } + } + } + // apply default light control + iCallback.ExecCommandL( MSysapCallback::EUpdateLights, TUpdateLightsBuf(EKeyGripClose) ); + break; + + case EKeyFlipOpen: // simulated key event + { + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyFlipOpen") ) ); + SetDisplayState( ETrue ); + // apply default light control + iCallback.ExecCommandL( MSysapCallback::EUpdateLights, TUpdateLightsBuf(EKeyFlipOpen) ); + } + break; + + case EKeyFlipClose: // simulated key event + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyFlipClose") ) ); + SetDisplayState( EFalse ); + // apply default light control + iCallback.ExecCommandL( MSysapCallback::EUpdateLights, TUpdateLightsBuf(EKeyFlipClose) ); + break; + + case EKeyTwistOpen: + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyTwistOpen") ) ); + RProperty::Set( KPSUidHWRM, KHWRMTwistStatus, EPSHWRMTwistOpen ); + break; + + case EKeyTwistClose: + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyTwistClose") ) ); + RProperty::Set( KPSUidHWRM, KHWRMTwistStatus, EPSHWRMTwistClose ); + break; + case EKeyCamera: TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyCamera") ) ); if ( iCameraSupported && !IsDeviceLocked() && !DoShowKeysLockedNote() ) { + iCallback.ExecCommandL( MSysapCallback::ECancelPowermenu ); ActivateApplicationL( KSysApCamcorderUid ); } break; + + case EKeyPoC: + TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::HandleKeyEventL: EKeyPoC") ) ); + LaunchPocL(); + break; + default: response = EKeyWasNotConsumed; TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::CSysApDefaultKeyHandler: key was not consumed.") ) ); - break; + break; + } } @@ -214,16 +384,15 @@ // void CSysApDefaultKeyHandler::ActivateApplicationL( const TUid aUid ) const { - TRACES( RDebug::Print( _L( "CSysApDefaultKeyHandler::ActivateApplicationL") ) ); // Applications must not be activated before reaching normal system operation state if ( UiReady() ) { - CSysApTaskList* apaTaskList = CSysApTaskList::NewLC( CCoeEnv::Static()->WsSession() ); + CAknTaskList* apaTaskList = CAknTaskList::NewL( CCoeEnv::Static()->WsSession() ); TApaTask apaTask = apaTaskList->FindRootApp( aUid ); // only root application should not be activated - CleanupStack::PopAndDestroy( apaTaskList ); - + delete apaTaskList; + if ( apaTask.Exists() ) { TRACES( RDebug::Print( _L( "CSysApDefaultKeyHandler::ActivateApplicationL: application brought to foreground") ) ); @@ -233,8 +402,8 @@ { TRACES( RDebug::Print( _L("e_CAM_PRI_OFF_TO_ON 1") ) ); } -#endif // _DEBUG - apaTask.BringToForeground(); +#endif // _DEBUG + CAknSgcClient::MoveApp ( apaTask.WgId(), ESgcMoveAppToForeground ); } else { @@ -277,8 +446,20 @@ void CSysApDefaultKeyHandler::LaunchPocL() { TRACES( RDebug::Print(_L("CSysApDefaultKeyHandler::LaunchPocL") ) ); - // not supported - } + + if ( UiReady() && !IsDeviceLocked() && !DoShowKeysLockedNote() ) + { + CAiwServiceHandler* serviceHandler = CAiwServiceHandler::NewLC(); + serviceHandler->AttachL( R_POC_AIW_INTEREST ); + + CAiwGenericParamList* inParams = CAiwGenericParamList::NewLC(); + inParams->AppendL(TAiwGenericParam( EGenericParamPoCLaunchView, TAiwVariant(EAiwPoCMainView))); + serviceHandler->ExecuteServiceCmdL( KAiwCmdPoC, *inParams, serviceHandler->OutParamListL()); + + CleanupStack::PopAndDestroy( inParams ); + CleanupStack::PopAndDestroy( serviceHandler); + } + } // ---------------------------------------------------------------------------- // CSysApDefaultKeyHandler::IsDeviceLocked() @@ -332,29 +513,29 @@ { TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::DoShowKeysLockedNote: iAknUiServerConnected=%d"), iAknUiServerConnected ) ); -// TInt err(KErrNone); + TInt err(KErrNone); if ( !iAknUiServerConnected ) { -/* err = iAknUiServer.Connect(); + err = iAknUiServer.Connect(); if ( err != KErrNone ) { - // TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::DoShowKeysLockedNote: RAknUiServer::Connect failed, err=%d"), err ) ); + TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::DoShowKeysLockedNote: RAknUiServer::Connect failed, err=%d"), err ) ); return ETrue; // assume that keypad/device is locked } iAknUiServerConnected = ETrue; - */ } + } - TBool keysLocked = EFalse; -/* err = iAknUiServer.ShowKeysLockedNote( keysLocked ); + TBool keysLocked; + err = iAknUiServer.ShowKeysLockedNote( keysLocked ); if ( err != KErrNone ) { TRACES( RDebug::Print( _L("CSysApDefaultKeyHandler::DoShowKeysLockedNote: RAknUiServer::ShowKeysLockedNote failed, err=%d"), err ) ); keysLocked = ETrue; // assume that keypad/device is locked } - */ + return keysLocked; } @@ -385,6 +566,3 @@ return response; } - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapeteldatabearerobserver.cpp --- a/coreapplicationuis/SysAp/Src/sysapeteldatabearerobserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapeteldatabearerobserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -110,11 +110,11 @@ if ( newHsdpaState != iHsdpaActive ) { iHsdpaActive = newHsdpaState; -// TRAPD( err, iSysApAppUi.SetSignalIndicatorL() ); + TRAPD( err, iSysApAppUi.SetSignalIndicatorL() ); -// if ( err != KErrNone ) + if ( err != KErrNone ) { -// TRACES( RDebug::Print( _L("CSysApEtelDataBearerObserver::RunL: err=%d"), err ) ); + TRACES( RDebug::Print( _L("CSysApEtelDataBearerObserver::RunL: err=%d"), err ) ); } } } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapetelnetworkinfoobserver.cpp --- a/coreapplicationuis/SysAp/Src/sysapetelnetworkinfoobserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapetelnetworkinfoobserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -111,13 +111,13 @@ if ( hsdpaAvailable != iHsdpaAvailable ) { iHsdpaAvailable = hsdpaAvailable; -/* TRAPD( err, iSysApAppUi.SetSignalIndicatorL() ); + TRAPD( err, iSysApAppUi.SetSignalIndicatorL() ); if ( err != KErrNone ) { TRACES( RDebug::Print( _L("CSysApEtelNetworkInfoObserver::RunL: err=%d"), err ) ); } -*/ } + } } OrderNotification(); diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapkeymanagement.cpp --- a/coreapplicationuis/SysAp/Src/sysapkeymanagement.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapkeymanagement.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -134,10 +134,6 @@ { iRootWindowGroup.CancelCaptureKeyUpAndDowns( info->iUpAndDownKeyHandles[upAndDownKeyHandleCounter] ); } - for ( TInt keyHandleCounter = info->iLongKeyPressHandle.Count()-1; keyHandleCounter >= 0; keyHandleCounter-- ) - { - iRootWindowGroup.CancelCaptureLongKey( info->iLongKeyPressHandle[keyHandleCounter] ); - } } } @@ -170,10 +166,8 @@ captureKey, info->iPluginUid ) ); if (info->iIsKeyProvider) { - TUint repeatValue = 0; TInt captureUpDownKey = info->iKeys[keyCounter].iScanCode; TUint modifiers = info->iKeys[keyCounter].iModifiers; - repeatValue = info->iKeys[keyCounter].iRepeats; TInt32 keyHandle = iRootWindowGroup.CaptureKey( captureKey, modifiers, modifiers ); @@ -202,19 +196,6 @@ //error of Append ignored, key will not be cancelled. We can live with that. TRACES( RDebug::Print( _L("CSysApKeyManagement::CaptureKeys UpAndDowns: Append failed, error %d"), upAndDownKeyHandle ) ); } - if( repeatValue == 1 ) - { - TInt32 longKeyPressHandle = iRootWindowGroup.CaptureLongKey( captureKey, captureKey,0, modifiers,0, ELongCaptureWaitShort); - if ( longKeyPressHandle < KErrNone ) - { - TRACES( RDebug::Print( _L("CSysApKeyManagement::CaptureLongKey : error %d"), longKeyPressHandle ) ); - continue; // other keys may be possible to capture, so continue - } - if ( ( longKeyPressHandle = info->iLongKeyPressHandle.Append( longKeyPressHandle ) ) != KErrNone ) //store handle for CancelCaptureKeyUpAndDowns - { - TRACES( RDebug::Print( _L("CSysApKeyManagement::CaptureLongKey : Append failed, error %d"), longKeyPressHandle ) ); - } - } } else { diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/sysapremconobserver.cpp --- a/coreapplicationuis/SysAp/Src/sysapremconobserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/sysapremconobserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 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" @@ -19,7 +19,7 @@ // INCLUDE FILES #include #include -//#include +#include #include "sysapremconobserver.h" #include "SysApAppUi.h" @@ -47,12 +47,6 @@ void CSysApRemConObserver::ConstructL() { TRACES( RDebug::Print( _L("CSysApRemConObserver::ConstructL") ) ); - - iInterfaceSelector = CRemConInterfaceSelector::NewL(); - - iCoreTarget = CRemConCoreApiTarget::NewL( *iInterfaceSelector, *this ); - - iInterfaceSelector->OpenTargetL(); } // ----------------------------------------------------------------------------- @@ -81,7 +75,6 @@ CSysApRemConObserver::~CSysApRemConObserver() { TRACES( RDebug::Print( _L("CSysApRemConObserver::~CSysApRemConObserver") ) ); - delete iInterfaceSelector; // Internally deletes iCoreTarget } // ----------------------------------------------------------------------------- @@ -112,4 +105,31 @@ } } +/** + * Reserve the volume keys + */ +void CSysApRemConObserver::StartRemconInterfaceL() + { + TRACES( RDebug::Print( _L("CSysApRemConObserver::BlockKeys"))); + if(!iInterfaceSelector) + { + iInterfaceSelector = CRemConInterfaceSelector::NewL(); + iCoreTarget = CRemConCoreApiTarget::NewL( *iInterfaceSelector, *this ); + iInterfaceSelector->OpenTargetL(); + } + } + +/** + * Release the volume keys for other application like phone app during call + */ +void CSysApRemConObserver::StopRemconInterface() + { + TRACES( RDebug::Print( _L("CSysApRemConObserver::UnBlockKeys"))); + if(iInterfaceSelector) + { + delete iInterfaceSelector; + iInterfaceSelector = NULL; + } + } + // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/conf/coreapplicationuis_101F876C.crml Binary file coreapplicationuis/SysAp/conf/coreapplicationuis_101F876C.crml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/rom/SysAp.iby --- a/coreapplicationuis/SysAp/rom/SysAp.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/rom/SysAp.iby Wed Sep 01 12:24:48 2010 +0100 @@ -20,7 +20,6 @@ #define __SysAp_IBY__ file=ABI_DIR\BUILD_DIR\NspsWsPlugin.dll SHARED_LIB_DIR\NspsWsPlugin.dll -data=DATAZ_\resource\apps\qgn_sysap_screen.svg resource\apps\qgn_sysap_screen.svg S60_APP_EXE(SysAp) S60_APP_AIF_RSC(SysAp) diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/VariatedSettings/group/bld.inf --- a/coreapplicationuis/VariatedSettings/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/VariatedSettings/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -26,33 +26,33 @@ ../rom/VariatedSettings_variant.iby CUSTOMER_MW_LAYER_IBY_EXPORT_PATH(VariatedSettings_variant.iby) // Normal RFS script -../scripts/script0.txt /epoc32/release/winscw/udeb/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/winscw/urel/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/thumb/udeb/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/thumb/urel/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/arm4/udeb/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/arm4/urel/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/armv5/udeb/z/private/100059c9/script0.txt -../scripts/script0.txt /epoc32/release/armv5/urel/z/private/100059c9/script0.txt +../scripts/script0.txt /epoc32/release/winscw/udeb/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/winscw/urel/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/thumb/udeb/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/thumb/urel/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/arm4/udeb/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/arm4/urel/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/armv5/udeb/z/private/100059C9/script0.txt +../scripts/script0.txt /epoc32/release/armv5/urel/z/private/100059C9/script0.txt // Deep RFS script -../scripts/script1.txt /epoc32/release/winscw/udeb/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/winscw/urel/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/thumb/udeb/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/thumb/urel/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/arm4/udeb/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/arm4/urel/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/armv5/udeb/z/private/100059c9/script1.txt -../scripts/script1.txt /epoc32/release/armv5/urel/z/private/100059c9/script1.txt +../scripts/script1.txt /epoc32/release/winscw/udeb/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/winscw/urel/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/thumb/udeb/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/thumb/urel/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/arm4/udeb/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/arm4/urel/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/armv5/udeb/z/private/100059C9/script1.txt +../scripts/script1.txt /epoc32/release/armv5/urel/z/private/100059C9/script1.txt // Init RFS script -../scripts/ScriptInit.txt /epoc32/release/winscw/udeb/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/winscw/urel/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/thumb/udeb/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/thumb/urel/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/arm4/udeb/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/arm4/urel/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/armv5/udeb/z/private/100059c9/scriptinit.txt -../scripts/ScriptInit.txt /epoc32/release/armv5/urel/z/private/100059c9/scriptinit.txt +../scripts/ScriptInit.txt /epoc32/release/winscw/udeb/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/winscw/urel/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/thumb/udeb/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/thumb/urel/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/arm4/udeb/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/arm4/urel/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/armv5/udeb/z/private/100059C9/ScriptInit.txt +../scripts/ScriptInit.txt /epoc32/release/armv5/urel/z/private/100059C9/ScriptInit.txt PRJ_MMPFILES diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/data/accfwnoteuinotifier.rss --- a/coreapplicationuis/accfwuinotifier/data/accfwnoteuinotifier.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/data/accfwnoteuinotifier.rss Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2004 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" @@ -25,11 +25,140 @@ #include #include +#include + + // RESOURCE DEFINITIONS RESOURCE RSS_SIGNATURE { } RESOURCE TBUF r_text_unsupp_accessory_connected { buf = text_unsupp_accessory_connected; } +RESOURCE TBUF r_text_default_enhanc { buf = qtn_acc_default_enhanc; } +RESOURCE TBUF r_text_headphones_mic { buf = qtn_acc_headphones_mic; } + +//------------------------------------------------------------------------------ +// SELECTION_DATA structure. +//------------------------------------------------------------------------------ + +STRUCT SELECTION_DATA + { + LONG index; //selection index + LTEXT nameliteral; //name literal + } + +//------------------------------------------------------------------------------ +// SELECTION_LITERALS_ARRAY structure. +//------------------------------------------------------------------------------ + +STRUCT SELECTION_LITERALS_ARRAY + { + STRUCT literals[]; + } + +//------------------------------------------------------------------------------ +// r_selection_dialog_list_query. +//------------------------------------------------------------------------------ + +RESOURCE DIALOG r_selection_dialog_list_query +{ + flags = EGeneralQueryFlags; + buttons = R_AVKON_SOFTKEYS_OK_CANCEL; + items = + { + DLG_LINE + { + type = EAknCtListQueryControl; + id = EListQueryControl; + + control = AVKON_LIST_QUERY_CONTROL + { + listtype = EAknCtSinglePopupMenuListBox; + listbox = LISTBOX + { + flags = EAknListBoxMenuList; + + }; + heading = qtn_acc_select_acc; + }; + + } + }; +} + +//------------------------------------------------------------------------------ +// r_accfwuinotifier_information_note +//------------------------------------------------------------------------------ + +RESOURCE DIALOG r_accfwuinotifier_information_note + { + flags = EEikDialogFlagNoDrag | + EEikDialogFlagNoTitleBar | + EEikDialogFlagCbaButtons; + + buttons = R_AVKON_SOFTKEYS_EMPTY; + items = + { + DLG_LINE + { + type = EAknCtNote; + id = EGeneralNote; + control = AVKON_NOTE + { + layout = EGeneralLayout; + singular_label = " "; + animation = R_QGN_NOTE_INFO_ANIM; + }; + } + }; + + } + +//------------------------------------------------------------------------------ +// r_selection_dialog_literals. +//------------------------------------------------------------------------------ + +RESOURCE SELECTION_LITERALS_ARRAY r_selection_dialog_literals +{ + literals = + { + SELECTION_DATA + { + index = 0x1; + nameliteral = qtn_tty_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x2; + nameliteral = qtn_loopset_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x4; + nameliteral = qtn_headset_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x8; + nameliteral = qtn_headphones_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x10; + nameliteral = qtn_lineout_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x20; + nameliteral = qtn_tvout_acc_selection_dialog; + }, + SELECTION_DATA + { + index = 0x40; + nameliteral = qtn_musicstand_acc_selection_dialog; + } + }; +} + // End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/group/accfwuinotifier.mmp --- a/coreapplicationuis/accfwuinotifier/group/accfwuinotifier.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/group/accfwuinotifier.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -28,17 +28,11 @@ CAPABILITY CAP_ECOM_PLUGIN - - - - -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets - SOURCEPATH ../src SOURCE AccFwUiNotifierProxy.cpp SOURCE AccFwUiNoteNotifier.cpp - +SOURCE AccFwUiDialogNotifier.cpp USERINCLUDE ../inc @@ -58,15 +52,14 @@ LIBRARY euser.lib LIBRARY eiksrv.lib LIBRARY efsrv.lib -LIBRARY featmgr.lib +LIBRARY FeatMgr.lib LIBRARY eikdlg.lib -LIBRARY bafl.lib -LIBRARY cone.lib -//hb -LIBRARY HbWidgets.lib +LIBRARY Avkon.lib +LIBRARY bafl.lib +LIBRARY cone.lib + MACRO API_TRACE_FLAG MACRO COMPONENT_TRACE_FLAG // End of file - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/group/bld.inf --- a/coreapplicationuis/accfwuinotifier/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2004 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" @@ -22,6 +22,7 @@ DEFAULT PRJ_EXPORTS +../loc/accfwnotifier.loc MW_LAYER_LOC_EXPORT_PATH(accfwnotifier.loc) ../rom/accfwuinotifier.iby CORE_MW_LAYER_IBY_EXPORT_PATH(accfwuinotifier.iby) ../rom/accfwuinotifierresources.iby LANGUAGE_MW_LAYER_IBY_EXPORT_PATH(accfwuinotifierresources.iby) diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/inc/AccFwUiDialogNotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/accfwuinotifier/inc/AccFwUiDialogNotifier.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,145 @@ +/* +* Copyright (c) 2002-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 accessory selection dialog. +* +*/ + +#ifndef __CACCFWUIDIALOGNOTIFIER_H +#define __CACCFWUIDIALOGNOTIFIER_H + +// INCLUDES +#include +#include +#include +#include +#include + +// CONSTANTS +const TUid KAccFwUiDialogNotifierUid={0x10205062}; +// MACROS + +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS + +class CCoeEnv; +class CAknListQueryDialog; + +// CLASS DECLARATION +/** +* Implementation of accessory selection dialog. +* @lib - +* @since S60 3.1 +*/ +class CAccFwUiDialogNotifier : public CActive, public MEikSrvNotifierBase2 + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + * @return The created object. + */ + static CAccFwUiDialogNotifier* NewL(); + + ~CAccFwUiDialogNotifier(); + + public: // From MEikSrvNotifierBase2 + + void Release(); + + TNotifierInfo RegisterL(); + + TNotifierInfo Info() const; + + TPtrC8 StartL(const TDesC8& aBuffer); + + void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); + + void Cancel(); + + TPtrC8 UpdateL(const TDesC8& aBuffer); + + //from CActive + + void RunL(); + TInt RunError(TInt aError); + + protected: + //from CActive + void DoCancel(); + + + private: // Functions + + /** + * C++ default constructor. + */ + CAccFwUiDialogNotifier(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Data + + //Notifier info + TNotifierInfo iInfo; + + //resource file offset + TInt iResourceFileOffset; + + //item list... + CDesCArray *iItemList; + + //selection dialog + CAknListQueryDialog * iDialog; + + //selections list + RArray iSelections; + + //for coverui + CArrayFixFlat* iCoverUIITems; + + //message to complete + RMessagePtr2 iMessage; + + //rmessage reply slot + TInt iReplySlot; + + //is notifier cancelled + TBool iIsCancelled; + + CCoeEnv* iCoeEnv; // not owned + + RAknKeylock2 iServer; + + // Check if keys should be locked + TBool iLockKeys; + + // Check if keys were locked + TBool iWasLocked; + + // Error in connection to keylock server + TInt iErr; + + }; + +#endif // __CACCFWUIDIALOGNOTIFIER_H + +// End of File + + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/inc/AccFwUiNoteNotifier.h --- a/coreapplicationuis/accfwuinotifier/inc/AccFwUiNoteNotifier.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/inc/AccFwUiNoteNotifier.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -23,8 +23,6 @@ #include #include #include -#include - // CONSTANTS const TUid KAccFwUiNoteNotifierUid = { 0x10205061 }; @@ -34,7 +32,7 @@ // FORWARD DECLARATIONS class CCoeEnv; - +class CAknNoteDialog; // CLASS DECLARATION /** @@ -99,11 +97,13 @@ RMessagePtr2 iMessage; // Indication whether notifier cancelled TBool iIsCancelled; - + // Note + CAknNoteDialog* iNote; + // Indication whether to show not supported note in cover display + TBool iPublishNote; // Text to show in note HBufC* iNoteText; - - + }; #endif // __CACCFWUINOTENOTIFIER_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/loc/accfwnotifier.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/accfwuinotifier/loc/accfwnotifier.loc Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,92 @@ +/* +* Copyright (c) 2005-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". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Localization strings for AccFWNotifier +* +*/ + + +// LOCALISATION STRINGS + +//d:Text of a default accessory in use note +//d:Shown when accessory connected and default accessory is used +//l:popup_note_window +//w: +//r: 3.1 +#define qtn_acc_default_enhanc "Default enhancement:" + +//d:Text of a accessory use phone microphone information note +//d:Shown when headphones are connected +//l:popup_note_window +//w: +//r: 3.1 +#define qtn_acc_headphones_mic "Use phone microphone." + +//d:Text of a accessory selection dialog header +//d:Accessory selection dialog +//l:heading_pane_t1 +//w: +//r: 3.1 +#define qtn_acc_select_acc "Select accessory:" + + +//d:Text for TTY selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_tty_acc_selection_dialog "TTY" + +//d:Text for loopset selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_loopset_acc_selection_dialog "Loopset" + +//d:Text for headset selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_headset_acc_selection_dialog "Headset" + +//d:Text for headphones selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_headphones_acc_selection_dialog "Headphones" + +//d:Text for lineout selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_lineout_acc_selection_dialog "Lineout" + +//d:Text for tv-out selection +//d:Accessory selection dialog +//l:list_single_pane_t1_cp2 +//w: +//r: 3.1 +#define qtn_tvout_acc_selection_dialog "TV-out" + +//d:Text for Music Stand selection +//d:Accessory selection dialog +//l: heading_pane_t1 +//w: +//r: 3.1 +#define qtn_musicstand_acc_selection_dialog "Music Stand" + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/src/AccFwUiDialogNotifier.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/accfwuinotifier/src/AccFwUiDialogNotifier.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,458 @@ +/* +* Copyright (c) 2002-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 Accessory selection dialog. +* +*/ + + +// INCLUDE FILES +#include "AccFwUiDialogNotifier.h" +#include "acc_debug.h" + +#include +#include +#include +#include +#include +#include +#include + +// EXTERNAL DATA STRUCTURES + +// EXTERNAL FUNCTION PROTOTYPES + +// CONSTANTS + +const TUid KScreenOutputChannel = { 0x10282E0A }; +_LIT(KAccFwUiNotifierResource, "accfwnoteuinotifier.rsc"); + + +// MACROS + +// LOCAL CONSTANTS AND MACROS + +// MODULE DATA STRUCTURES + +// LOCAL FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS + +// ============================= LOCAL FUNCTIONS =============================== + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::CAccFwUiDialogNotifier() +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CAccFwUiDialogNotifier::CAccFwUiDialogNotifier() + : CActive( EPriorityStandard) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::CAccFwUiDialogNotifier() - enter" ); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::CAccFwUiDialogNotifier() - return void" ); + } + +// Destructor +CAccFwUiDialogNotifier::~CAccFwUiDialogNotifier() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::~CAccFwUiDialogNotifier() - enter" ); + + delete iDialog; + delete iCoverUIITems; + iSelections.Close(); + CActive::Cancel(); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccPolAccessoryPolicy::~CAccFwUiDialogNotifier() - return void" ); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::ConstructL() +// Symbian 2nd phase constructor can leave. +// ----------------------------------------------------------------------------- +// +void CAccFwUiDialogNotifier::ConstructL() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::ConstructL() - enter" ); + + iErr = KErrNone; + + //get pointer to CEikonEnv + iCoeEnv = CEikonEnv::Static(); + + if ( !iCoeEnv ) + { + User::Leave( KErrGeneral ); + } + + iLockKeys = ETrue; + + //Open resource file + TFileName fileName; + fileName.Zero(); + + TFileName drivePath; + Dll::FileName( drivePath ); + + fileName.Append( TParsePtrC( drivePath ).Drive() ); + fileName.Append( KDC_RESOURCE_FILES_DIR ); + fileName.Append( KAccFwUiNotifierResource ); + + BaflUtils::NearestLanguageFile( iCoeEnv->FsSession(), fileName ); + + //handle to resource file + iResourceFileOffset = iCoeEnv->AddResourceFileL( fileName ); + + //add to scheduler + CActiveScheduler::Add( this ); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::ConstructL() - return void" ); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::NewL() +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CAccFwUiDialogNotifier* CAccFwUiDialogNotifier::NewL() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::NewL() - enter" ); + + CAccFwUiDialogNotifier* self = new( ELeave ) CAccFwUiDialogNotifier; + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::CAccFwUiDialogNotifier::NewL() - return" ); + return self; + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::Release() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +void CAccFwUiDialogNotifier::Release() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Release() - enter" ); + + if( iResourceFileOffset ) + { + iCoeEnv->DeleteResourceFile( iResourceFileOffset ); + } + + delete this; + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Release() - return void" ); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::RegisterL() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +CAccFwUiDialogNotifier::TNotifierInfo CAccFwUiDialogNotifier::RegisterL() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RegisterL() - enter" ); + + iInfo.iUid=KAccFwUiDialogNotifierUid; + iInfo.iChannel=KScreenOutputChannel; + iInfo.iPriority=ENotifierPriorityHigh; + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::CAccFwUiDialogNotifier::RegisterL() - return" ); + return iInfo; + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::Info() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +CAccFwUiDialogNotifier::TNotifierInfo CAccFwUiDialogNotifier::Info() const + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Info() - enter" ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Info() - return void" ); + return iInfo; + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::StartL() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +TPtrC8 CAccFwUiDialogNotifier::StartL( const TDesC8& /*aBuffer*/ ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::StartL() - enter" ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::StartL() - return void" ); + return KNullDesC8(); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::StartL() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +void CAccFwUiDialogNotifier::StartL( + const TDesC8& aBuffer, + TInt aReplySlot, + const RMessagePtr2& aMessage ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::StartL() - enter" ); + + // Connect to AknKeylock2 server; + iErr = iServer.Connect(); + + //get selection bit mask + TUint32 selectionBitmask( 0 ); + TPckg selectioPckg( selectionBitmask ); + selectioPckg.Copy( aBuffer ); + + //prepare selection array + iSelections.Close(); + + + // construct listbox item array + iItemList = new ( ELeave ) CDesCArrayFlat( 10 ); + + //if cover UI exist + if( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) + { + delete iCoverUIITems; + iCoverUIITems = 0; + iCoverUIITems = new ( ELeave ) CArrayFixFlat( 10 ); + } + TResourceReader reader; + HBufC8* literals = iCoeEnv->AllocReadResourceAsDes8LC( R_SELECTION_DIALOG_LITERALS ); + reader.SetBuffer( literals ); + + TInt count( reader.ReadInt16() ); + TInt coverUIItemCounter( 0 ); + + //add items to dialog + for ( TInt i(0); i < count; i++ ) + { + //read from resource + TUint32 index( reader.ReadUint32() ); + HBufC * buf( reader.ReadHBufCL() ); + CleanupStack::PushL( buf ); + + if ( index & selectionBitmask ) + { + iItemList->AppendL( *buf ); + iSelections.Append( index ); + + //append cover UI items + if ( iCoverUIITems ) + { + iCoverUIITems->AppendL( coverUIItemCounter++ ); + } + } + + CleanupStack::PopAndDestroy( buf ); + + if ( ( index << 1 ) > selectionBitmask ) + { + //stop for-loop, selectionbitmask can't match anymore + break; + } + } + CleanupStack::PopAndDestroy( literals ); + iMessage = aMessage; + iReplySlot = aReplySlot; + iIsCancelled = EFalse; + + //prepare active object + SetActive(); + TRequestStatus* status = &iStatus; + User::RequestComplete( status, KErrNone );//RunL() function will get called + + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::StartL() - return void" ); + } + + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::RunL() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- + +void CAccFwUiDialogNotifier::RunL() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - enter" ); + + if ( iIsCancelled ) + { + return; + } + + if( iErr == KErrNone ) + { + iWasLocked = iServer.IsKeyLockEnabled(); + // Change the bit on and off. SysAp will detect that + // the lights should be switched on for the specified time. + iServer.DisableKeyLock(); + } + + TInt replyValue; + + //create and prepare dialog + iDialog = new ( ELeave ) CAknListQueryDialog ( &replyValue ); + iDialog->PrepareLC( R_SELECTION_DIALOG_LIST_QUERY ); + + //add items to popup list + iDialog->SetItemTextArray( iItemList ); + + if( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Publish cover UI "); + iDialog->PublishDialogL( ECmdShowAccessorySelectionDialog, + KCatAccFw, + iCoverUIITems ); + //iDialog take ownership + iCoverUIITems = 0; + } + + //show dialog... + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Show dialog -> RunLD()" ); + TBool result = iDialog->RunLD(); + iDialog = 0; + + //create package + TInt returnValue( 0 ); + TPckg valuePck( returnValue ); + + if ( !iIsCancelled ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Check dialog result" ); + + if ( result ) + { + //write selected item to reply slot + if ( returnValue >= 0 && iSelections.Count() ) + { + returnValue = iSelections[ replyValue ]; + API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Set selection: %d", returnValue ); + } + // Don't lock keys if something was selected + iLockKeys = EFalse; + } + else + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Cancel pressed" ); + returnValue = 0; + iLockKeys = ETrue; + } + + //complete client requests + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Write response value to message" ); + iMessage.Write( iReplySlot, valuePck, 0 ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Complete message" ); + iMessage.Complete( KErrNone ); + } + else + { + // Message is being completed with KErrCancel in Cancel-method + } + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - Release resources" ); + delete iCoverUIITems; + iCoverUIITems = 0; + iSelections.Close(); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunL() - return void" ); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::RunError() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +TInt CAccFwUiDialogNotifier::RunError(TInt aError) + { + API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunError() - %d", aError ); + if( !iMessage.IsNull() ) + { + iMessage.Complete( aError ); + } + aError = KErrNone; + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::RunError() - return" ); + return aError; + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::DoCancel() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +void CAccFwUiDialogNotifier::DoCancel() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::DoCancel() - enter" ); + if( !iMessage.IsNull() ) + { + iMessage.Complete( KErrCancel ); + } + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::DoCancel() - return" ); + } + + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::Cancel() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +void CAccFwUiDialogNotifier::Cancel() + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Cancel() - enter" ); + + iIsCancelled = ETrue; + + if( iLockKeys && iWasLocked && ( iErr == KErrNone ) ) + { + iServer.EnableKeyLock(); + } + + iLockKeys = ETrue; + + if ( iDialog ) + { + //cancel active object, delete dialog and release resources + if ( IsActive() ) + { + CActive::Cancel(); + } + delete iDialog; + iDialog = 0; + delete iCoverUIITems; + iCoverUIITems = 0; + iSelections.Close(); + + TInt returnValue( 0 ); + TPckg valuePck( returnValue ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Cancel() - Write response value to message" ); + iMessage.Write( iReplySlot, valuePck, 0 ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Cancel() - Complete message with Cancel" ); + iMessage.Complete( KErrCancel ); + } + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::Cancel() - return void" ); + } + +// ----------------------------------------------------------------------------- +// CAccFwUiDialogNotifier::UpdateL() +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +TPtrC8 CAccFwUiDialogNotifier::UpdateL( + const TDesC8& /*aBuffer*/ ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::UpdateL() - enter" ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiDialogNotifier::UpdateL() - return void" ); + return KNullDesC8(); + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/src/AccFwUiNoteNotifier.cpp --- a/coreapplicationuis/accfwuinotifier/src/AccFwUiNoteNotifier.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/src/AccFwUiNoteNotifier.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -20,9 +20,10 @@ #include #include #include -#include +#include +#include #include -#include + #include "AccFwUiNoteNotifier.h" #include "acc_debug.h" @@ -67,6 +68,7 @@ { API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier()" ); + delete iNote; delete iNoteText; CActive::Cancel(); @@ -209,7 +211,144 @@ if ( aBuffer.Length() ) { - //Do nothing as accessory is rightly detected by accessory server and adaptation. + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default accessory selection or headphones information" ); + + TInt value( 0 ); + TPckg pckg( value ); + pckg.Copy( aBuffer ); + + //get "default enhancement" string resource + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read default enhancement string" ); + defaultText = iCoeEnv->AllocReadResourceLC( R_TEXT_DEFAULT_ENHANC ); + + TPtrC enhancement; + TBool enhancementOk( ETrue ); + + if ( value != 0 ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default selection" ); + + enhancementOk = EFalse; + HBufC8* literals = iCoeEnv->AllocReadResourceAsDes8L( R_SELECTION_DIALOG_LITERALS ); + TResourceReader reader; + reader.SetBuffer( literals ); + + TInt count( reader.ReadInt16() ); + API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read literals, count %d", count ); + + // Find correct accessory literal + for ( TInt i = 0; i < count; i++ ) + { + //read from resource + TUint32 index( reader.ReadUint32() ); + API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read literal, index %d", index ); + + if ( index == value ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Literal found!" ); + // Literal found + enhancement.Set( reader.ReadTPtrC() ); + enhancementOk = ETrue; + break; + } + else + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Not found!" ); + reader.ReadTPtrC(); + } + } + + delete literals; + } + + if ( enhancementOk ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Enhancement OK!" ); + HBufC* noteStr = NULL; + + // Headphones... + if ( value == 0x08 || value == 0x40 || value == 0 ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Show headphones information!" ); + + // Default enhancement string if needed + if ( value != 0 ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Show also default information!" ); + noteStr = HBufC::NewL( defaultText->Length() + enhancement.Length() + 3 ); + + TPtr ptr( noteStr->Des() ); + ptr.Append( defaultText->Des() ); + ptr.Append( ' ' ); + ptr.Append( enhancement ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default string ready!" ); + } + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read use phone mic string!" ); + // Read resource use phone mic and default enhancement text... + HBufC* usePhoneMicTextHolder = iCoeEnv->AllocReadResourceLC( R_TEXT_HEADPHONES_MIC ); + + TBool chekcNoteStr( EFalse ); + if ( noteStr ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Add phone mic string to default accessory string!" ); + CleanupStack::PushL( noteStr ); + HBufC* temp = noteStr->ReAllocL( noteStr->Length() + 2 + usePhoneMicTextHolder->Length() + 1 ); + CleanupStack::Pop( noteStr ); + noteStr = temp; + chekcNoteStr = ETrue; + } + else + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Only use phone mic string!" ); + noteStr = HBufC::NewL( usePhoneMicTextHolder->Length() + 1 ); + } + + TPtr ptr( noteStr->Des() ); + + + if( chekcNoteStr ) + { + ptr.Append( _L( ". " ) ); + ptr.Append( usePhoneMicTextHolder->Des() ); + } + else + { + ptr.Append( usePhoneMicTextHolder->Des() ); + } + // Cleanup + CleanupStack::PopAndDestroy( usePhoneMicTextHolder ); + + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - String ready!" ); + } + else + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Create default accessory text!" ); + //only default accessory text + noteStr = HBufC::NewL( defaultText->Length() + enhancement.Length() + 1 ); + TPtr ptr( noteStr->Des() ); + + ptr.Append( defaultText->Des() ); + ptr.Append( ' ' ); + ptr.Append( enhancement ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default accessory text ready!" ); + } + + // Pass string to member string and free local copies + CleanupStack::PopAndDestroy( defaultText ); + CleanupStack::PushL( noteStr ); + iNoteText = HBufC::NewL( noteStr->Length() ); + TPtr ptr( iNoteText->Des() ); + ptr.Append( noteStr->Des() ); + CleanupStack::PopAndDestroy( noteStr ); + showNote = ETrue; + } + else + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - No note" ); + // No need to check this one, always set into cleanup stack + CleanupStack::PopAndDestroy( defaultText ); + } } else { @@ -226,7 +365,13 @@ iMessage = aMessage; if( showNote ) { - iIsCancelled = EFalse; + if ( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) + { + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Cover UI supported" ); + iPublishNote = ETrue; + } + + iIsCancelled = EFalse; SetActive(); TRequestStatus* status = &iStatus; User::RequestComplete( status, KErrNone ); // RunL() function will get called @@ -253,13 +398,25 @@ return; } - CHbDeviceMessageBoxSymbian *messageBox = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EInformation); - CleanupStack::PushL(messageBox); - messageBox->SetTextL(*iNoteText); - messageBox->ShowL(); - CleanupStack::PopAndDestroy(messageBox); // messageBox - delete iNoteText; - iNoteText = NULL; + // Create note + iNote = new ( ELeave ) CAknNoteDialog( + CAknNoteDialog::ENoTone, + CAknNoteDialog::ELongTimeout ); + + iNote->PrepareLC( R_ACCFWUINOTIFIER_INFORMATION_NOTE ); // Adds to CleanupStack + + if ( iPublishNote ) + { + iNote->PublishDialogL( ECmdShowAccessoryNotSupportedNote, KCatAccFw ); + iPublishNote = EFalse; + } + + iNote->SetTextL( *iNoteText ); + API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - iNote->RunLD()!" ); + iNote->RunLD(); + iNote = NULL; + delete iNoteText; + iNoteText = NULL; API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunL() - Complete message" ); iMessage.Complete( KErrNone ); @@ -308,17 +465,21 @@ iIsCancelled = ETrue; - // Cancel active object and free resources + if ( iNote ) + { + // Cancel active object, delete dialog and free resources if ( IsActive() ) { CActive::Cancel(); } - delete iNoteText; + delete iNote; + iNote = NULL; + delete iNoteText; iNoteText = NULL; API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - Complete message with Cancel" ); iMessage.Complete( KErrCancel ); - + } API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - return" ); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/accfwuinotifier/src/AccFwUiNotifierProxy.cpp --- a/coreapplicationuis/accfwuinotifier/src/AccFwUiNotifierProxy.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/accfwuinotifier/src/AccFwUiNotifierProxy.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-2004 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" @@ -19,7 +19,9 @@ // INCLUDE FILES #include #include + #include "AccFwUiNoteNotifier.h" +#include "AccFwUiDialogNotifier.h" #include "acc_debug.h" // EXTERNAL DATA STRUCTURES @@ -28,7 +30,7 @@ // CONSTANTS -const TInt KNumberOfImplementations(1); +const TInt KNumberOfImplementations(2); // MACROS @@ -49,10 +51,15 @@ API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CreateNotifiersL() - enter" ); MEikSrvNotifierBase2* note = CAccFwUiNoteNotifier::NewL(); CleanupStack::PushL( note ); - + + MEikSrvNotifierBase2* dialog = CAccFwUiDialogNotifier::NewL(); + CleanupStack::PushL( dialog ); + aSubjects->AppendL( note ); - - CleanupStack::Pop( note ); + aSubjects->AppendL( dialog ); + + CleanupStack::Pop( dialog ); + CleanupStack::Pop( note ); API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CreateNotifiersL() - return void" ); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/advancedtspcontroller/group/RemConTspController.mmp --- a/coreapplicationuis/advancedtspcontroller/group/RemConTspController.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/advancedtspcontroller/group/RemConTspController.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include // RemCon has defined capabilities #include -TARGET advancedtspcontroller.dll +TARGET AdvancedTspController.dll TARGETTYPE PLUGIN UID 0x10009d8d 0x10282CD5 @@ -33,7 +33,7 @@ SOURCE tsptriggerevents.cpp START RESOURCE ../data/10282CD5.rss -target advancedtspcontroller.rsc +target AdvancedTspController.rsc END USERINCLUDE ../inc @@ -47,8 +47,8 @@ LIBRARY apparc.lib LIBRARY remcontargetselectorplugin.lib LIBRARY remcontypes.lib -LIBRARY cfclient.lib -LIBRARY cfservices.lib +LIBRARY CFClient.lib +LIBRARY CFServices.lib LIBRARY ws32.lib LIBRARY apgrfx.lib LIBRARY tspclientmapper.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envrecall.cmd --- a/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envrecall.cmd Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envrecall.cmd Wed Sep 01 12:24:48 2010 +0100 @@ -25,16 +25,7 @@ @echo Cleaning advanced tsp test stub... Finished @echo Restoring remcon... -pushd \sf\os\devicesrv\accessoryservices\remotecontrolfw\server\group -call bldmake bldfiles -call abld cleanexport -call abld export -popd -pushd \sf\os\devicesrv\accessoryservices\remotecontrolfw\targetselectorplugin\group -call bldmake bldfiles -call abld reallyclean -call abld build -popd +move remconservercaps_orig.mmh \epoc32\include\remcon\remconservercaps.mmh @echo Restoring remcon... Finished @echo Restoring advanced tsp diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envsetup.cmd --- a/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envsetup.cmd Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/envsetup.cmd Wed Sep 01 12:24:48 2010 +0100 @@ -16,6 +16,8 @@ REM @echo on +@echo Copying remconservercaps.mmh to safe place for envrecall +copy \epoc32\include\remcon\remconservercaps.mmh remconservercaps_orig.mmh @echo Setting up advanced tsp test stub... pushd ..\..\stub\group @@ -23,9 +25,4 @@ call abld test reallyclean call abld test build popd -pushd \sf\os\devicesrv\accessoryservices\remotecontrolfw\targetselectorplugin\group -call bldmake bldfiles -call abld reallyclean -call abld build -popd @echo Setting up advanced tsp test stub... Finished diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/mt_atspc.mmp --- a/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/mt_atspc.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/group/mt_atspc.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -32,7 +32,7 @@ USERINCLUDE ../inc -SYSTEMINCLUDE /epoc32/include/Digia/EUnit +SYSTEMINCLUDE /epoc32/include/platform/Digia/EUnit MW_LAYER_SYSTEMINCLUDE LIBRARY EUnit.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/inc/mt_atspc.h --- a/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/inc/mt_atspc.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/advancedtspcontroller/tsrc/mt_atspc/inc/mt_atspc.h Wed Sep 01 12:24:48 2010 +0100 @@ -82,6 +82,16 @@ virtual void MrctspoDoOutgoingResponsePermitted(TBool /*aIsPermitted*/) {} virtual void MrctspoDoIncomingNotifyAddressed(TClientInfo* /*aClientInfo*/, TInt aError ) { iObserverResponse = aError; } virtual void MrctspoDoReAddressNotifies() {} + + + virtual TInt MrctspoSetLocalAddressedClient(const TUid& aBearerUid, const TClientInfo& aClientInfo){ return 0; } + virtual void MrctspoDoIncomingNotifyPermitted(TBool aIsPermitted){ } + + virtual void MrctspoDoIncomingCommandPermitted(TBool aIsPermitted) { } + + virtual void MrctspoDoOutgoingNotifyCommandPermitted(TBool aIsPermitted){ } + + virtual void MrctspoDoOutgoingNotifyCommandAddressed(TRemConAddress* aConnection, TInt aError) { } public: // from MCFListener void ContextIndicationL( const CCFContextIndication& aChangedContext ) {} diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/devicepowermenuplugin.pro --- a/coreapplicationuis/devicepowermenuplugin/devicepowermenuplugin.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -# -############################################################################# -## -## Copyright (c) 2010 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 = DevicePowerMenuPlugin -CONFIG += hb plugin - -INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - -# Input -HEADERS += .\inc\hbdevicepowermenuplugin_p.h \ - .\inc\hbdevicepowermenupluginerrors_p.h \ - .\inc\hbdevicepowermenuwidegt_p.h - - -SOURCES += .\src\hbdevicepowermenuplugin.cpp \ - .\src\hbdevicepowermenuwidegt.cpp - -RESOURCES += hbdevicepowermenu.qrc - -MOC_DIR = ./tmp - -TRANSLATIONS += power_menu.ts - -symbian: -{ -TARGET.UID3 = 0x2002F375 -TARGET.CAPABILITY = ALL -TCB -TARGET.EPOCALLOWDLLDATA = 1 - -pluginstub.sources = DevicePowerMenuPlugin.dll -pluginstub.path = /resource/plugins/devicedialogs -DEPLOYMENT += pluginstub -} - -symbian: -{ -BLD_INF_RULES.prj_exports += \ - "$${LITERAL_HASH}include " \ - "qmakepluginstubs/DevicePowerMenuPlugin.qtplugin /epoc32/data/z/pluginstub/DevicePowerMenuPlugin.qtplugin" \ - ".\rom\devicepowermenuplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(devicepowermenuplugin.iby)" \ - ".\rom\devicepowermenu_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(devicepowermenu_resources.iby)" -} - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/docml/powermenu.docml --- a/coreapplicationuis/devicepowermenuplugin/docml/powermenu.docml Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/hbdevicepowermenu.qrc --- a/coreapplicationuis/devicepowermenuplugin/hbdevicepowermenu.qrc Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - - - docml/powermenu.docml - - - images/decrement.svg - images/increment.svg - images/muted.svg - images/unmuted.svg - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/images/decrement.svg --- a/coreapplicationuis/devicepowermenuplugin/images/decrement.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/images/increment.svg --- a/coreapplicationuis/devicepowermenuplugin/images/increment.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/images/muted.svg --- a/coreapplicationuis/devicepowermenuplugin/images/muted.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/images/unmuted.svg --- a/coreapplicationuis/devicepowermenuplugin/images/unmuted.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenuplugin_p.h --- a/coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenuplugin_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2010 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 HBDEVICEPOWERMENUPLUGIN_P_H -#define HBDEVICEPOWERMENUPLUGIN_P_H - -#include -#include - -#include - -//fwd Declaration -class HbDevicePowerMenuPluginPrivate; - -class HbDevicePowerMenuPlugin : public HbDeviceDialogPlugin -{ - Q_OBJECT - -public: - friend class HbDevicePowerMenuPluginPrivate; - - HbDevicePowerMenuPlugin(); - ~HbDevicePowerMenuPlugin(); - - //Pure Virtual method of class HbDeviceDialogPluginInterface - HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType, const QVariantMap ¶meters); - //Pure Virtual Mehods of class HbDeviceDialogPlugin - bool accessAllowed(const QString &deviceDialogType, const QVariantMap ¶meters, const QVariantMap &securityInfo) const; - bool deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const; - QStringList deviceDialogTypes() const; - PluginFlags pluginFlags() const; - int error() const; - -private: - Q_DISABLE_COPY(HbDevicePowerMenuPlugin) - HbDevicePowerMenuPluginPrivate *d; -}; - -#endif // HBDEVICEPOWERMENUPLUGIN_P_H - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenupluginerrors_p.h --- a/coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenupluginerrors_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2010 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 HBDEVICEPOWERMENUPLUGINERRORS_P_H -#define HBDEVICEPOWERMENUPLUGINERRORS_P_H - -#include -#include -#ifdef _DEBUG - - #define TRACES( x ) x - -#else - - #define TRACES( x ) - -#endif - - -// No error -const int NoError = 0; -// Illegal parameter error -const int ParameterError = HbDeviceDialog::PluginErrors + 1; -// Unknown device dialog error -const int UnknownDeviceDialogError = HbDeviceDialog::PluginErrors + 2; - -#endif // HBDEVICEPOWERMENUPLUGINERRORS_P_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenuwidegt_p.h --- a/coreapplicationuis/devicepowermenuplugin/inc/hbdevicepowermenuwidegt_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2010 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 HBDEVICEPOWERMENUWIDEGT_P_H -#define HBDEVICEPOWERMENUWIDEGT_P_H - - -#include -#include -#include -#include -#include -#include -#include -//For widgets used -#include -#include -#include -#include - -class HbDevicePowerMenuWidget : public QObject, public HbDeviceDialogInterface -{ - Q_OBJECT - -public: - HbDevicePowerMenuWidget(const QVariantMap ¶meters); - ~HbDevicePowerMenuWidget(); - -public: - //HbDeviceDialogInterface methods to be implemented - bool setDeviceDialogParameters(const QVariantMap ¶meters); - int deviceDialogError() const; - void closeDeviceDialog(bool byClient); - HbPopup *deviceDialogWidget() const; - virtual QObject *signalSender() const; - - -private: - bool preConstructDialog(); - void constructDialog(const QVariantMap ¶meters); - void cleanupMemory(); - -private: - void customizeVolumeSlider(); - void setSpeakerIcon(); - bool IsValidHandles(); - -private slots: - void handleVolumeChanged(int aVolume); - void handleSilenceMode(bool aState); - void handleVibrationToggled(int aVibrationToggel); - void handleOfflineToggled(int aOfflineToggel); - void handlePowerOff(bool aState); - void closedialog(); - -signals: - void deviceDialogClosed(); - void deviceDialogData(QVariantMap data); - -private: - Q_DISABLE_COPY(HbDevicePowerMenuWidget) - - int mDeviceDialogError; //DeviceDialogError - int mVolumeLevel; //shows current Volume Level - bool mShowVolume; //used to Enable or Disbale Volume - bool mVibrationChecked; //Vibration enabled or Disabled - bool mOfflineChecked; //offline enabled or Disabled - bool mSilencelatched; //SilenceMode Enabled or Disabled - bool mCypherOff; //Shows Encryption/Decryption ON/OFF - - HbDialog* mDialogWidget; //Handle for Powermenu Dialog - HbPushButton* mSilenceButton; //Handle for Silence button - HbSlider* mVolumeSlider; //Handle for Slider - HbCheckBox* mVibarte; //Handle for Vibration check Box - HbCheckBox* mOffline; //Handle for Offline CheckBox - HbPushButton * mPowerOffButton; //Handle for PowerOff Button - HbDocumentLoader* mLoader; //Hnadle for Documnet Loader to load docml - HbTranslator* mHbTranslator; //Translator used for localization; loads translation files -}; - -#endif // HBDEVICEPOWERMENUWIDEGT_P_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/rom/devicepowermenu_resources.iby --- a/coreapplicationuis/devicepowermenuplugin/rom/devicepowermenu_resources.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2010 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 __DEVICEPOWERMENU_RESOURCES_IBY__ -#define __DEVICEPOWERMENU_RESOURCES_IBY__ - -//this iby is required for language specific things to be exported to Language iby layer -#include - -data=DATAZ_\QT_TRANSLATIONS_DIR\power_menu.qm QT_TRANSLATIONS_DIR\power_menu.qm - - -#endif //__DEVICEPOWERMENU_RESOURCES_IBY__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/rom/devicepowermenuplugin.iby --- a/coreapplicationuis/devicepowermenuplugin/rom/devicepowermenuplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2010 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 __DEVICEPOWERMENUPLUGIN_IBY__ -#define __DEVICEPOWERMENUPLUGIN_IBY__ - -file = \epoc32\release\armv5\urel\DevicePowerMenuPlugin.dll \sys\bin\DevicePowerMenuPlugin.dll UNPAGED -data=\epoc32\data\z\pluginstub\DevicePowerMenuPlugin.qtplugin \resource\plugins\devicedialogs\DevicePowerMenuPlugin.qtplugin - -#endif //__DEVICEPOWERMENUPLUGIN_IBY__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/src/hbdevicepowermenuplugin.cpp --- a/coreapplicationuis/devicepowermenuplugin/src/hbdevicepowermenuplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,166 +0,0 @@ -/* - * Copyright (c) 2010 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: - * - */ - -//System includes -#include -#include - -//user includes -#include "hbdevicepowermenuplugin_p.h" -#include "hbdevicepowermenuwidegt_p.h" -#include "hbdevicepowermenupluginerrors_p.h" - -//SysAp's Secure UID -const quint32 KSecureUid = 0x100058F3; - -Q_EXPORT_PLUGIN2(devicepowermenuplugin, HbDevicePowerMenuPlugin) - -// This plugin implements a device dialog type -static const struct - { - const char *mTypeString; - } dialogInfos[] = {{"com.nokia.hb.devicepowermenu/1.0"}}; - -class HbDevicePowerMenuPluginPrivate - { -public: - HbDevicePowerMenuPluginPrivate() {mError = NoError;} - int mError; - }; - -/** - * Constructor - */ -HbDevicePowerMenuPlugin::HbDevicePowerMenuPlugin() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::Constructor:Begin") ) ); - d = new HbDevicePowerMenuPluginPrivate; - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::Constructor:End") ) ); - } - -/** - * Destructor - */ -HbDevicePowerMenuPlugin::~HbDevicePowerMenuPlugin() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::Destructor:Begin") ) ); - delete d; - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::Destructor:End") ) ); - } - -/** - * This method is Pure Virtual in HbDeviceDialogPlugin - * Checks if client is allowed to use device dialog widget - * Its a customized widget for Sysap, and allows only Sysap to use this plugin - */ -bool HbDevicePowerMenuPlugin::accessAllowed(const QString &deviceDialogType, const QVariantMap ¶meters, const QVariantMap &securityInfo) const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::accessAllowed:Begin") ) ); - Q_UNUSED(deviceDialogType) - Q_UNUSED(parameters) - TBool secured(false); - quint32 secUid = static_cast(securityInfo.value("sym-secureId").toInt()); - if (secUid == KSecureUid ) - { - secured = true; - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::accessAllowed:End") ) ); - return secured; - } - -/** - * Creates device dialog widget - */ -HbDeviceDialogInterface *HbDevicePowerMenuPlugin::createDeviceDialog(const QString &deviceDialogType, const QVariantMap ¶meters) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::createDeviceDialog:Begin") ) ); - d->mError = NoError; - - HbDeviceDialogInterface *ret(NULL); - if (dialogInfos[0].mTypeString == deviceDialogType) - { - QVariantMap params = parameters; - HbDevicePowerMenuWidget *powMenu = new HbDevicePowerMenuWidget(params); - d->mError = powMenu->deviceDialogError(); - if (d->mError != NoError) - { - delete powMenu; - powMenu = NULL; - } - ret = powMenu; - } - else - { - d->mError = UnknownDeviceDialogError; - ret = NULL; - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::createDeviceDialog:End") ) ); - return ret; - } - -/** - * Return information of device dialog the plugin creates - */ -bool HbDevicePowerMenuPlugin::deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::deviceDialogInfo:Begin") ) ); - Q_UNUSED(parameters) - Q_UNUSED(deviceDialogType) - - info->group = GenericDeviceDialogGroup; - info->flags = SecurityCheck; - info->priority = DefaultPriority; - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::deviceDialogInfo:End") ) ); - return true; - } - -/** - * Return device dialog types this plugin implements - */ -QStringList HbDevicePowerMenuPlugin::deviceDialogTypes() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::deviceDialogTypes:Begin") ) ); - QStringList types; - const int numTypes = sizeof(dialogInfos) / sizeof(dialogInfos[0]); - for(int i = 0; i < numTypes; i++) - { - types.append(dialogInfos[i].mTypeString); - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::deviceDialogTypes:End") ) ); - return types; - } - -/** - * Return plugin flags - */ -HbDeviceDialogPlugin::PluginFlags HbDevicePowerMenuPlugin::pluginFlags() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::pluginFlags:Begin") ) ); - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::pluginFlags:End") ) ); - return NoPluginFlags; - } - -/** - * Return last error - */ -int HbDevicePowerMenuPlugin::error() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::error:Begin") ) ); - TRACES( RDebug::Print( _L("HbDevicePowerMenuPlugin::error:End") ) ); - return d->mError; - } - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/devicepowermenuplugin/src/hbdevicepowermenuwidegt.cpp --- a/coreapplicationuis/devicepowermenuplugin/src/hbdevicepowermenuwidegt.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,438 +0,0 @@ -/* - * Copyright (c) 2010 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 "hbdevicepowermenuwidegt_p.h" -#include "hbdevicepowermenupluginerrors_p.h" -#include - -//resuorces -QString POWER_MENU_DOCML(":/xml/powermenu.docml"); -QString VOLUME_DECREASE_ICON(":/images/decrement.svg"); -QString VOLUME_INCREASE_ICON(":/images/increment.svg"); -QString VOLUME_UNMUTE_ICON(":/images/unmuted.svg"); -QString VOLUME_MUTE_ICON(":/images/muted.svg"); -//For Localization -QString LOCALE_PATH("/resource/qt/translations/"); -QString TS_FILE("power_menu"); - -//Widget names -QString MAIN_DLG("maindialog"); -QString PWR_SILENCE("Silence"); -QString PWR_VOLUME("Volume"); -QString PWR_VIBARTE("Vibrate"); -QString PWR_OFFLINE("Offline"); -QString PWR_POWEROFF("PowerOff"); -QString PWR_CONTAINER("container_1"); - -//DO not modify these strings -QString KVolumeLevel("VolumeLevel"); -QString KSilenceLatchOn("SilenceLatchOn"); //Used to latch silencebutton -QString KVibrationEnable("VibrationEnable"); -QString KOfflineEnable("OfflineEnable"); -QString KCypherOff("CypherOff"); //used to poweroffButtonEnabled/Disabled -QString KShutDown("ShutDown"); - -//Used for Orientation of PowerMenu -qreal KVerticalX = 175; -//width of PowerMenu -qreal KPMWidth = 360; - -/** - * Constructor - */ -HbDevicePowerMenuWidget::HbDevicePowerMenuWidget(const QVariantMap ¶meters) - :mDeviceDialogError(NoError), - mVolumeLevel(0), - mShowVolume(false), - mVibrationChecked(true), - mOfflineChecked(true), - mSilencelatched(true), - mCypherOff(true), - mDialogWidget(NULL), - mSilenceButton(NULL), - mVolumeSlider(NULL), - mVibarte(NULL), - mOffline(NULL), - mPowerOffButton(NULL), - mLoader(NULL), - mHbTranslator(NULL) - { - // mMainWindow(NULL), - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::Constructor:Begin") ) ); - if (preConstructDialog()) - { - //Translator loaded succesfully then olny construct widgets - constructDialog(parameters); - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::Constructor:End") ) ); - } - -/** - * Destructor - */ -HbDevicePowerMenuWidget::~HbDevicePowerMenuWidget() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::Destructor()") ) ); - cleanupMemory(); - } - -/** - * Implementation of HbDeviceDialogInterface method - * sets parameters of custom widget - */ -bool HbDevicePowerMenuWidget::setDeviceDialogParameters(const QVariantMap ¶meters) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::setDeviceDialogParameters:Begin") ) ); - if(parameters.contains(KVolumeLevel)) - { - mVolumeLevel = parameters.value(KVolumeLevel).toInt(); - } - if(parameters.contains(KSilenceLatchOn)) - { - mSilencelatched = parameters.value(KSilenceLatchOn).toBool(); - //If SilenceMode is Enabled then MasterVolume control is Disabled - mShowVolume = mSilencelatched? false:true; - } - if(parameters.contains(KVibrationEnable)) - { - mVibrationChecked = parameters.value(KVibrationEnable).toBool(); - } - if(parameters.contains(KOfflineEnable)) - { - mOfflineChecked = parameters.value(KOfflineEnable).toBool(); - } - if(parameters.contains(KCypherOff)) - { - mCypherOff = parameters.value(KCypherOff).toBool(); - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::setDeviceDialogParameters:End") ) ); - return true; - } - -/** - * Returns error code - */ -int HbDevicePowerMenuWidget::deviceDialogError() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::deviceDialogError") ) ); - return mDeviceDialogError; - } - -/** - * Close DeviceDialog - */ -void HbDevicePowerMenuWidget::closeDeviceDialog(bool byClient) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::closeDeviceDialog:Begin") ) ); - Q_UNUSED(byClient); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::closeDeviceDialog:End") ) ); - mDialogWidget->close(); - } - -/** - * Implementation of HbDeviceDialogInterface method - */ -HbPopup* HbDevicePowerMenuWidget::deviceDialogWidget() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::deviceDialogWidget") ) ); - return mDialogWidget; - } - -/** - * Implementation of HbDeviceDialogInterface method - * to get signals from action events - */ -QObject* HbDevicePowerMenuWidget::signalSender() const - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::signalSender") ) ); - return const_cast(this); - } - -/** - * Before loading docml and widgets Translator must be loaded - */ -bool HbDevicePowerMenuWidget::preConstructDialog() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::preConstructDialog:Begin") ) ); - //Translator - mHbTranslator = new HbTranslator(LOCALE_PATH,TS_FILE); - if(!mHbTranslator) - { - //Translator is failed to create - mDeviceDialogError = UnknownDeviceDialogError; - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::preConstructDialog:MemoryAllocation Failed") ) ); - return false; - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::preConstructDialog:End") ) ); - return true; - } - -/** - * Constrcuts customized widget dialog by loading the UI from docml and - * initializes all parameters and attributes. - * Throws bad-memory on Un-succesful memory allocations - */ -void HbDevicePowerMenuWidget::constructDialog(const QVariantMap ¶meters) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:Begin") ) ); - bool dialogLoaded(false); - //Docml loader - mLoader = new HbDocumentLoader(); - if(!mLoader) - { - //Document Loader failed to create - mDeviceDialogError = UnknownDeviceDialogError; - cleanupMemory(); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:mLoader::MemoryAllocation Failed") ) ); - return; - } - mLoader->load(POWER_MENU_DOCML, &dialogLoaded); - Q_ASSERT_X(dialogLoaded, "HbDevicePowerMenuWidget", "Invalid xml file"); - //Widgets - if (dialogLoaded) - { - //Dialog loaded succesfully from docml - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:dialogLoaded:Begin") ) ); - - //Initialize Parameters received - setDeviceDialogParameters(parameters); - mDialogWidget = qobject_cast (mLoader->findWidget(MAIN_DLG)); - //Find the handles for all widget items - mSilenceButton = qobject_cast (mLoader->findWidget(PWR_SILENCE)); - mVolumeSlider = qobject_cast (mLoader->findWidget(PWR_VOLUME)); - mVibarte = qobject_cast (mLoader->findWidget(PWR_VIBARTE)); - mOffline = qobject_cast (mLoader->findWidget(PWR_OFFLINE)); - mPowerOffButton = qobject_cast (mLoader->findWidget(PWR_POWEROFF)); - QGraphicsWidget *widget(NULL); - widget = mLoader->findWidget(PWR_CONTAINER); - if (!(IsValidHandles()&&(widget))) - { - //Atleast, One of the Handles are not allocated memory - mDeviceDialogError = UnknownDeviceDialogError; - cleanupMemory(); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:Widgets::MemoryAllocation Failed") ) ); - return; - } - //Sets Speaker icon - setSpeakerIcon(); - //Customize slider to VolumeSlider - customizeVolumeSlider(); - mDialogWidget->setContentWidget(widget); - //SetWidget Attributes - //1. Volume - mVolumeSlider->setSliderPosition(mVolumeLevel); - mVolumeSlider->setEnabled(mShowVolume); - //This will avoid IPC calls while dragging the Slider - mVolumeSlider->setTracking(false); - bool ok = connect(mVolumeSlider,SIGNAL(valueChanged(int)) , this , SLOT(handleVolumeChanged(int))); - Q_ASSERT_X(ok, "VolumeSlider", "Invalid IncrementDecrement Change"); - - //2.Silence Mode - mSilenceButton->setDown(mSilencelatched); - ok = connect(mSilenceButton,SIGNAL(clicked(bool)) , this , SLOT(handleSilenceMode(bool))); - Q_ASSERT_X(ok, "SilenceButton", "Invalid Clicked"); - - //3.Master Vibration - mVibarte->setChecked(mVibrationChecked); - ok = connect(mVibarte,SIGNAL(stateChanged(int)) , this , SLOT(handleVibrationToggled(int))); - Q_ASSERT_X(ok, "Vibrator", "Invalid Vibrator Toggeld"); - - //4.Offline - mOffline->setChecked(mOfflineChecked); - ok = connect(mOffline,SIGNAL(stateChanged(int)) , this , SLOT(handleOfflineToggled(int))); - Q_ASSERT_X(ok, "Vibrator", "Invalid Offline Toggeld"); - - //5.Power off - mPowerOffButton->setEnabled(mCypherOff); - ok = connect(mPowerOffButton,SIGNAL(clicked(bool)) , this , SLOT(handlePowerOff(bool))); - Q_ASSERT_X(ok, "PowerOffButton", "Invalid Clicked"); - - //Dialog dismiss only with Tap outside - mDialogWidget->setTimeout(HbPopup::NoTimeout); - mDialogWidget->setDismissPolicy(HbPopup::TapOutside); - mDialogWidget->setPreferredWidth(KPMWidth); - - connect(mDialogWidget,SIGNAL(aboutToClose()),this, SLOT(closedialog())); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:dialogLoaded:End") ) ); - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::constructDialog:End") ) ); - } - -/** - * Checks whether all Hadles for widgets DialogWidget, - * SilenceButton, Vibrate, Offline and Poweroff Button allocated memory. - * Returns True, if all Handles allocated memory. - * Flase, atleast one of them NOT allocated memory. - */ -bool HbDevicePowerMenuWidget::IsValidHandles() - { - if((!mDialogWidget) || (!mSilenceButton) || (!mVolumeSlider)||(!mVibarte) || (!mOffline) || (!mPowerOffButton)) - { - return false; - } - else{ - //All handles are allocated memory - return true; - } - } - -/** - * Sets Mute/Unmute icon for Volume slider - * Mute/Unmute icon to display the current status of Silence Mode. - * Mute icon dispalyed when Device in Silence mode. - * Unmute icon dispalyed when Device Non-Silence mode. - */ -void HbDevicePowerMenuWidget::setSpeakerIcon() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::setSpeakerIcon:Begin") ) ); - QString speakerIcon= ( mSilencelatched )? VOLUME_MUTE_ICON : VOLUME_UNMUTE_ICON ; - mVolumeSlider->setElementIcon(HbSlider:: IconElement,HbIcon(speakerIcon)); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::setSpeakerIcon:End") ) ); - } - - -/** - * Customizes the slider to Vloume Slider - */ -void HbDevicePowerMenuWidget::customizeVolumeSlider() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::customizeVolumeSlider:Begin") ) ); - //Construct Volume Slider from the HbSlider - mVolumeSlider->setSliderElements(QList() - << HbSlider::DecreaseElement - << HbSlider::TrackElement - << HbSlider::IncreaseElement - << HbSlider::IconElement ); - - // To set DecreaseIcon and IncreseIcon - mVolumeSlider->setElementIcon(HbSlider::DecreaseElement, HbIcon(VOLUME_DECREASE_ICON)); - mVolumeSlider->setElementIcon(HbSlider:: IncreaseElement, HbIcon(VOLUME_INCREASE_ICON)); - //set Range of volume - mVolumeSlider->setRange(1,10); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::customizeVolumeSlider:End") ) ); - } - -/** - * Slot - * Widget is about to Close. - */ -void HbDevicePowerMenuWidget::closedialog() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::closedialog:Begin") ) ); - emit deviceDialogClosed(); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::closedialog:Begin") ) ); - } - -/** - * Slot - */ -void HbDevicePowerMenuWidget::handleVolumeChanged(int aVolume) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleVolumeChanged:Begin") ) ); - mVolumeLevel = aVolume; - //inform the client may be through data changed etc. - QVariantMap mDataToSend; - QVariant volume(mVolumeLevel); - mDataToSend.insert(KVolumeLevel, volume); - emit deviceDialogData(mDataToSend); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleVolumeChanged:Begin") ) ); - } - -/** - * Slot - * Switch between the states to latch down and latch up. - * In case of Silence mode, The Silence button id latched down and Disables Volume control. - * In case of Non-Silence mode, The Silence button id latched Up and enables Volume control. - */ -void HbDevicePowerMenuWidget::handleSilenceMode(bool aState) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleSilenceMode:Begin") ) ); - Q_UNUSED(aState); - mShowVolume = !(mShowVolume); - mSilencelatched = !(mSilencelatched); - mSilenceButton->setDown(mSilencelatched); - mVolumeSlider->setEnabled(mShowVolume); - setSpeakerIcon(); - //inform the client may be through data changed etc. - QVariantMap mDataToSend; - QVariant silence(mSilencelatched); - mDataToSend.insert(KSilenceLatchOn, silence); - emit deviceDialogData(mDataToSend); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleSilenceMode:End") ) ); - } - -/** - * Slot - */ -void HbDevicePowerMenuWidget::handlePowerOff(bool aState) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handlePowerOff:Begin") ) ); - Q_UNUSED(aState); - QVariantMap mDataToSend; - QVariant shutdown(true); - mDataToSend.insert(KShutDown, shutdown); - emit deviceDialogData(mDataToSend); - emit deviceDialogClosed(); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handlePowerOff:End") ) ); - } - -/** - * Slot - */ -void HbDevicePowerMenuWidget::handleOfflineToggled(int aOfflineToggel) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleOfflineToggled:Begin") ) ); - mOfflineChecked = aOfflineToggel; - QVariantMap mDataToSend; - QVariant offline(mOfflineChecked); - mDataToSend.insert(KOfflineEnable, offline); - emit deviceDialogData(mDataToSend); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleOfflineToggled:End") ) ); - } - -/** - * Slot - */ -void HbDevicePowerMenuWidget::handleVibrationToggled(int aVibrationToggel) - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleVibrationToggled:Begin") ) ); - mVibrationChecked = aVibrationToggel; - QVariantMap mDataToSend; - QVariant vibration(mVibrationChecked); - mDataToSend.insert(KVibrationEnable, vibration); - emit deviceDialogData(mDataToSend); - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::handleVibrationToggled:End") ) ); - } - -/** - * Cleans up memory allocations - */ -void HbDevicePowerMenuWidget::cleanupMemory() - { - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::cleanupMemory:Begin") ) ); - if(mLoader) - { - delete mLoader; - } - if(mHbTranslator) - { - delete mHbTranslator; - } - TRACES( RDebug::Print( _L("HbDevicePowerMenuWidget::cleanupMemory:End") ) ); - } - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/group/bld.inf --- a/coreapplicationuis/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -32,6 +32,7 @@ #include "../accfwuinotifier/group/bld.inf" #include "../kefmapper/group/bld.inf" #include "../advancedtspcontroller/group/bld.inf" +#include "../powersaveutilities/group/bld.inf" #include "../gsserverenginestub/group/bld.inf" #include "../GSServerEngine/group/bld.inf" #include "../sensordatacompensatorplugin/group/bld.inf" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/gsserverenginestub/group/GSServerEnginestub.mmp --- a/coreapplicationuis/gsserverenginestub/group/GSServerEnginestub.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/gsserverenginestub/group/GSServerEnginestub.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ // To get the MW_LAYER_SYSTEMINCLUDE-definition #include -TARGET gsserverenginestub.dll +TARGET GSServerEnginestub.dll TARGETTYPE dll UID 0x10281F16 diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/hbdeviceinputdialogplugin.pro --- a/coreapplicationuis/hbdeviceinputdialogplugin/hbdeviceinputdialogplugin.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -# -############################################################################# -## -## Copyright (c) 2010 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 = HbDeviceInputDialogPlugin -CONFIG += hb plugin - -INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - - - - -HEADERS += .\inc\hbdeviceinputdialogplugin_p.h \ - .\inc\hbdeviceinputdialogpluginerrors_p.h \ - .\inc\hbdeviceinputdialogwidget_p.h - -SOURCES += .\src\hbdeviceinputdialogplugin.cpp \ - .\src\hbdeviceinputdialogwidget.cpp - -MOC_DIR = ./tmp - -TRANSLATIONS += filemanager.ts -symbian: { - TARGET.UID3 = 0x2002F376 - TARGET.CAPABILITY = ALL -TCB - TARGET.EPOCALLOWDLLDATA = 1 - - pluginstub.sources = HbDeviceInputDialogPlugin.dll - pluginstub.path = /resource/plugins/devicedialogs - DEPLOYMENT += pluginstub -} - -symbian: -{ -BLD_INF_RULES.prj_exports += \ - "$${LITERAL_HASH}include " \ - "qmakepluginstubs/HbDeviceInputDialogPlugin.qtplugin /epoc32/data/z/pluginstub/HbDeviceInputDialogPlugin.qtplugin"\ - ".\rom\hbdeviceinputdialogplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(hbdeviceinputdialogplugin.iby)" \ - ".\rom\hbdeviceinputdialogplugin_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(hbdeviceinputdialogplugin_resources.iby)" -} - - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogplugin_p.h --- a/coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogplugin_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2010 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 HBDEVICEINPUTDIALOGPLUGIN_P_H -#define HBDEVICEINPUTDIALOGPLUGIN_P_H - -#include -#include - -#include - -class HbDeviceInputDialogPluginPrivate; - -class HbDeviceInputDialogPlugin : public HbDeviceDialogPlugin -{ - Q_OBJECT - -public: - friend class HbDeviceInputDialogPluginPrivate; - - HbDeviceInputDialogPlugin(); - ~HbDeviceInputDialogPlugin(); - - bool accessAllowed(const QString &deviceDialogType,const QVariantMap ¶meters, const QVariantMap &securityInfo) const; - HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,const QVariantMap ¶meters); - bool deviceDialogInfo(const QString &deviceDialogType,const QVariantMap ¶meters, DeviceDialogInfo *info) const; - QStringList deviceDialogTypes() const; - PluginFlags pluginFlags() const; - int error() const; - -private: - Q_DISABLE_COPY(HbDeviceInputDialogPlugin) - HbDeviceInputDialogPluginPrivate *d; -}; - -#endif // HBDEVICEINPUTDIALOGPLUGIN_P_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogpluginerrors_p.h --- a/coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogpluginerrors_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2010 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 HBDEVICEINPUTDIALOGPLUGINERRORS_P_H -#define HBDEVICEINPUTDIALOGPLUGINERRORS_P_H - -#include -#include -#ifdef _DEBUG - - #define TRACES( x ) x - -#else - - #define TRACES( x ) - -#endif - - -// No error -const int NoError = 0; -// Illegal parameter error -const int ParameterError = HbDeviceDialog::PluginErrors + 1; -// Unknown device dialog error -const int UnknownDeviceDialogError = HbDeviceDialog::PluginErrors + 2; - -#endif // HBDEVICEINPUTDIALOGPLUGINERRORS_P_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogwidget_p.h --- a/coreapplicationuis/hbdeviceinputdialogplugin/inc/hbdeviceinputdialogwidget_p.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,97 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2010 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 HBDEVICEINPUTDIALOGWIDGET_P_H -#define HBDEVICEINPUTDIALOGWIDGET_P_H - -#include -#include - -#include -#include -#include -#include - -class HbDialog; - -class HbDeviceInputDialogWidget : public HbInputDialog, public HbDeviceDialogInterface -{ - Q_OBJECT - Q_PROPERTY(QString primaryActionText READ primaryActionText WRITE setPrimaryActionText) - Q_PROPERTY(QString secondaryActionText READ secondaryActionText WRITE setSecondaryActionText) - Q_PROPERTY(bool primaryActionNull READ primaryActionNull WRITE setPrimaryActionNull) - Q_PROPERTY(bool secondaryActionNull READ secondaryActionNull WRITE setSecondaryActionNull) - Q_PROPERTY(QString animationDefinition READ animationDefinition WRITE setAnimationDefinition) - -public: - HbDeviceInputDialogWidget(const QVariantMap ¶meters); - ~HbDeviceInputDialogWidget(); - - bool setDeviceDialogParameters(const QVariantMap ¶meters); - int deviceDialogError() const; - void closeDeviceDialog(bool byClient); - HbDialog *deviceDialogWidget() const; - -public slots: - void primaryActionTriggered(); - void secondaryActionTriggered(); - void closeDialog(); - -private: - bool preConstructDialog(); - bool constructDialog(const QVariantMap ¶meters); - bool checkProperties(const QVariantMap ¶meters); - void setProperties(const QVariantMap ¶meters); - void resetProperties(); - QString primaryActionText() const; - void setPrimaryActionText(QString &actionText); - QString secondaryActionText() const; - void setSecondaryActionText(QString &actionText); - bool primaryActionNull() const; - void setPrimaryActionNull(bool null); - bool secondaryActionNull() const; - void setSecondaryActionNull(bool null); - void hideEvent(QHideEvent *event); - void showEvent(QShowEvent *event); - void setAnimationDefinition(QString &animationDefinition); - QString animationDefinition() const; - -signals: - void deviceDialogClosed(); - void deviceDialogData(QVariantMap data); //used to send the inputted text from server to client - -private: - Q_DISABLE_COPY(HbDeviceInputDialogWidget) - - int mLastError; - int mDeviceDialogError; //DeviceDialogError - int mHack; - - QString mPrimaryActionText; - QString mSecondaryActionText; - bool mPrimaryActionNull; - bool mSecondaryActionNull; - int mSendAction; - bool mShowEventReceived; - QString mAnimationDefinition; - QVariantMap data; - HbAction* mPrimaryAction; - HbAction* mSecondaryAction; - HbTranslator* mHbTranslator; -}; - -#endif // HBDEVICEINPUTDIALOGWIDGET_P_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin.iby --- a/coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2010 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 __HBDEVICEINPUTDIALOGPLUGIN_IBY__ -#define __HBDEVICEINPUTDIALOGPLUGIN_IBY__ - - -file = \epoc32\release\armv5\urel\HbDeviceInputDialogPlugin.dll \sys\bin\HbDeviceInputDialogPlugin.dll UNPAGED -data=\epoc32\data\z\pluginstub\HbDeviceInputDialogPlugin.qtplugin \resource\plugins\devicedialogs\HbDeviceInputDialogPlugin.qtplugin - - -#endif //__HBDEVICEINPUTDIALOGPLUGIN_IBY__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin_resources.iby --- a/coreapplicationuis/hbdeviceinputdialogplugin/rom/hbdeviceinputdialogplugin_resources.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2010 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 __HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__ -#define __HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__ - -//this iby is required for language specific things to be exported to Language iby layer -#include - -data=DATAZ_\QT_TRANSLATIONS_DIR\device_input_dialog.qm QT_TRANSLATIONS_DIR\device_input_dialog.qm - - -#endif //__HBDEVICEINPUTDIALOGPLUGIN_RESOURCES_IBY__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/src/hbdeviceinputdialogplugin.cpp --- a/coreapplicationuis/hbdeviceinputdialogplugin/src/hbdeviceinputdialogplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,147 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2010 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 "hbdeviceinputdialogplugin_p.h" -#include "hbdeviceinputdialogwidget_p.h" -#include "hbdeviceinputdialogpluginerrors_p.h" - -Q_EXPORT_PLUGIN2(deviceinputdialogplugin, HbDeviceInputDialogPlugin) - -// This plugin implements one device dialog type -static const struct { - const char *mTypeString; -} dialogInfos[] = { - {"com.nokia.hb.deviceinputdialog/1.0"} -}; - -class HbDeviceInputDialogPluginPrivate -{ -public: - HbDeviceInputDialogPluginPrivate() {mError = NoError;} - - int mError; -}; - -// Constructor -HbDeviceInputDialogPlugin::HbDeviceInputDialogPlugin() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::Constructor:Begin") ) ); - d = new HbDeviceInputDialogPluginPrivate; - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::Constructor:End") ) ); -} - -// Destructor -HbDeviceInputDialogPlugin::~HbDeviceInputDialogPlugin() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::Destructor:Begin") ) ); - delete d; - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::Destructor:End") ) ); -} - -// Check if client is allowed to use device dialog widget -bool HbDeviceInputDialogPlugin::accessAllowed(const QString &deviceDialogType, - const QVariantMap ¶meters, const QVariantMap &securityInfo) const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::AccessAllowed:Begin") ) ); - Q_UNUSED(deviceDialogType) - Q_UNUSED(parameters) - Q_UNUSED(securityInfo) - - // This plugin doesn't perform operations that may compromise security. - // All clients are allowed to use. - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::AccessAllowed:End") ) ); - return true; - -} - -// Create device dialog widget -HbDeviceDialogInterface *HbDeviceInputDialogPlugin::createDeviceDialog(const QString &deviceDialogType, const QVariantMap ¶meters) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::createDeviceDialog:Begin") ) ); - d->mError = NoError; - - HbDeviceDialogInterface *ret(0); - int i(0); - const int numTypes = sizeof(dialogInfos) / sizeof(dialogInfos[0]); - for(i = 0; i < numTypes; i++) { - if (dialogInfos[i].mTypeString == deviceDialogType) { - break; - } - } - if (i < numTypes) { - QVariantMap params = parameters; - HbDeviceInputDialogWidget *deviceDialog = new HbDeviceInputDialogWidget(params); - d->mError = deviceDialog->deviceDialogError(); - if (d->mError != NoError) { - delete deviceDialog; - deviceDialog = 0; - } - ret = deviceDialog; - } else { - d->mError = UnknownDeviceDialogError; - ret = 0; - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::createDeviceDialog:End") ) ); - return ret; -} - -// Return information of device dialog the plugin creates -bool HbDeviceInputDialogPlugin::deviceDialogInfo(const QString &deviceDialogType, const QVariantMap ¶meters, DeviceDialogInfo *info) const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::deviceDialogInfo:Begin") ) ); - Q_UNUSED(parameters) - Q_UNUSED(deviceDialogType) - - info->group = GenericDeviceDialogGroup; - info->flags = NoDeviceDialogFlags; - info->priority = DefaultPriority; - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::deviceDialogInfo:End") ) ); - return true; - -} - -// Return device dialog types this plugin implements -QStringList HbDeviceInputDialogPlugin::deviceDialogTypes() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::deviceDialogTypes:Begin") ) ); - QStringList types; - const int numTypes = sizeof(dialogInfos) / sizeof(dialogInfos[0]); - for(int i = 0; i < numTypes; i++) { - types.append(dialogInfos[i].mTypeString); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::deviceDialogTypes:End") ) ); - return types; -} - -// Return plugin flags -HbDeviceDialogPlugin::PluginFlags HbDeviceInputDialogPlugin::pluginFlags() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::pluginFlags:Begin") ) ); - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::pluginFlags:End") ) ); - return NoPluginFlags; -} - -// Return last error -int HbDeviceInputDialogPlugin::error() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::error:Begin") ) ); - TRACES( RDebug::Print( _L("HbDeviceInputDialogPlugin::error:End") ) ); - return d->mError; -} diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/hbdeviceinputdialogplugin/src/hbdeviceinputdialogwidget.cpp --- a/coreapplicationuis/hbdeviceinputdialogplugin/src/hbdeviceinputdialogwidget.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,378 +0,0 @@ -/**************************************************************************** - * Copyright (c) 2010 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 -#include "hbdeviceinputdialogwidget_p.h" -#include "hbdeviceinputdialogpluginerrors_p.h" - -//For Localization -QString LOCALE_PATH("/resource/qt/translations/"); -QString TS_FILE("filemanager"); - -// Constructor -HbDeviceInputDialogWidget::HbDeviceInputDialogWidget(const QVariantMap ¶meters):HbInputDialog() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::Constructor:Begin") ) ); - mLastError = NoError; - mShowEventReceived = false; - mPrimaryAction = 0; - mSecondaryAction = 0; - mDeviceDialogError =0; - mHack = 1; - //resetProperties(); - if (preConstructDialog()) - { - //Translator loaded succesfully then olny construct widgets - constructDialog(parameters); - if (!mPrimaryAction) { - // If default button provided by HbInputDialog is used, connect into its triggered signal. - QAction *action = /*primaryAction()*/this->actions().first(); - if (action) { - connect(action, SIGNAL(triggered()), SLOT(primaryActionTriggered())); - } - } - if (!mSecondaryAction) { - // If default button provided by HbInputDialog is used, connect into its triggered signal. - QAction *action = /*secondaryAction()*/ this->actions().at(1); - if (action) { - connect(action, SIGNAL(triggered()), SLOT(secondaryActionTriggered())); - } - } - connect(this, SIGNAL(visibilityChanged()), SLOT(closeDialog())); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::Constructor:End") ) ); -} - -// Destructor -HbDeviceInputDialogWidget::~HbDeviceInputDialogWidget() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::Destrcuctor:Begin") ) ); - delete mPrimaryAction; - delete mSecondaryAction; - delete mHbTranslator; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::Destructor:End") ) ); -} - -// Set parameters -bool HbDeviceInputDialogWidget::setDeviceDialogParameters(const QVariantMap ¶meters) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setDeviceDialogParameters:Begin") ) ); - mLastError = NoError; - bool ret(false); - if (checkProperties(parameters)) { - setProperties(parameters); - ret = true; - } - else { - mLastError = ParameterError; - ret = false; - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setDeviceDialogParameters:End") ) ); - return ret; -} - -/** - * Before creating widgets Translator must be loaded - */ -bool HbDeviceInputDialogWidget::preConstructDialog() - { - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::preConstructDialog:Begin") ) ); - //Translator - mHbTranslator = new HbTranslator(LOCALE_PATH,TS_FILE); - if(!mHbTranslator) - { - //Translator is failed to create - mDeviceDialogError = UnknownDeviceDialogError; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::preConstructDialog:MemoryAllocation Failed") ) ); - return false; - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::preConstructDialog:End") ) ); - return true; - } - -// Get error -int HbDeviceInputDialogWidget::deviceDialogError() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::deviceDialogError:Begin") ) ); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::deviceDialogError:End") ) ); - return mLastError; -} - -// Close device dialog -void HbDeviceInputDialogWidget::closeDeviceDialog(bool byClient) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::closeDeviceDialog:Begin") ) ); - Q_UNUSED(byClient); - // Closed by client or internally by server -> no action to be transmitted. - mSendAction = false; - close(); - // If show event has been received, close is signalled from hide event. If not, - // hide event does not come and close is signalled from here. - if (!mShowEventReceived) { - emit deviceDialogClosed(); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::closeDeviceDialog:End") ) ); -} - -// Return display widget -HbDialog *HbDeviceInputDialogWidget::deviceDialogWidget() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::deviceDialogWidget:Begin") ) ); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::deviceDialogWidget:End") ) ); - return const_cast(this); -} - - -// Construct dialog -bool HbDeviceInputDialogWidget::constructDialog(const QVariantMap ¶meters) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::constructDialog:Begin") ) ); - bool ret(false); - // Check that parameters are valid - - if (!checkProperties(parameters)) { - mLastError = ParameterError; - ret = false; - } - else { - setProperties(parameters); - resetProperties(); - ret = true; - } - - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::constructDialog:End") ) ); - return ret; -} - -// Check that device dialog parameters are valid -bool HbDeviceInputDialogWidget::checkProperties(const QVariantMap ¶meters) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::checkProperties:Begin") ) ); - QVariantMap::const_iterator i = parameters.constBegin(); - while (i != parameters.constEnd()) { - QByteArray key = i.key().toAscii(); - if (!property(key.constData()).isValid()) { - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::checkProperties:End :: returning false") ) ); - return false; - } - ++i; - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::checkProperties:End :: returning true") ) ); - return true; -} - -// Set properties -void HbDeviceInputDialogWidget::setProperties(const QVariantMap ¶meters) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setProperties:Begin") ) ); - QVariantMap::const_iterator i = parameters.constBegin(); - while (i != parameters.constEnd()) { - QByteArray key = i.key().toAscii(); - if (property(key.constData()).isValid()) { - setProperty(key.constData(), i.value()); - } - ++i; - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setProperties:End") ) ); - return; -} - -// Reset properties to default values -void HbDeviceInputDialogWidget::resetProperties() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::resetProperties:Begin") ) ); -// mIconName.clear(); - setModal(true); - setPromptText(hbTrId("txt_common_dialog_password"), 0); - setInputMode(TextInput,0); - setEchoMode(HbLineEdit::Password,0); - setTimeout(HbPopup::NoTimeout); - setDismissPolicy(HbPopup::NoDismiss); - - mPrimaryActionNull = false; - mSecondaryActionNull = false; - mSendAction = true; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::resetProperties:End") ) ); - return; -} - -QString HbDeviceInputDialogWidget::primaryActionText() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::primaryActionText:Begin") ) ); - QAction *action = /*primaryAction()*/this->actions().first(); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::primaryActionText:End") ) ); - return action ? action->text() : QString(); -} - -void HbDeviceInputDialogWidget::setPrimaryActionText(QString &actionText) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setPrimaryActionText:Begin") ) ); - QAction *action = /*primaryAction()*/this->actions().first(); - if (action) { - action->setText(actionText); - } else { - if (!mPrimaryAction) { - mPrimaryAction = new HbAction(actionText); - connect(mPrimaryAction, SIGNAL(triggered()), this, SLOT(primaryActionTriggered())); - } else { - mPrimaryAction->setText(actionText); - } - setPrimaryAction(mPrimaryAction); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setPrimaryActionText:End") ) ); -} - -QString HbDeviceInputDialogWidget::secondaryActionText() const -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::secondaryActionText:Begin") ) ); - QAction *action = /*secondaryAction()*/ this->actions().at(1); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::secondaryActionText:End") ) ); - return action ? action->text() : QString(); - -} - -void HbDeviceInputDialogWidget::setSecondaryActionText(QString &actionText) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setSecondaryActionText:Begin") ) ); - QAction *action = /*secondaryAction()*/ this->actions().at(1); - if (action) { - action->setText(actionText); - } else { - if (!mSecondaryAction) { - mSecondaryAction = new HbAction(actionText); - connect(mSecondaryAction, SIGNAL(triggered()), this, SLOT(secondaryActionTriggered())); - } else { - mSecondaryAction->setText(actionText); - } - setSecondaryAction(mSecondaryAction); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setSecondaryActionText:End") ) ); -} - -bool HbDeviceInputDialogWidget::primaryActionNull() const -{ - return this->actions().first() == 0; -} - -void HbDeviceInputDialogWidget::setPrimaryActionNull(bool isNull) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setPrimaryActionNull:Begin") ) ); - if (isNull) { - // If there is a message box's default action, disconnect from it. - QAction *action = /*primaryAction()*/this->actions().first(); - if (action && mPrimaryAction == 0) { - action->disconnect(SIGNAL(triggered()), this, SLOT(primaryActionTriggered())); - } - setPrimaryAction(0); - } else { - QString text = mPrimaryAction ? mPrimaryAction->text() : QString(); - setPrimaryActionText(text); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setPrimaryActionNull:End") ) ); -} - -bool HbDeviceInputDialogWidget::secondaryActionNull() const -{ - return this->actions().at(1) == 0; -} - -void HbDeviceInputDialogWidget::setSecondaryActionNull(bool isNull) -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setSecondaryActionNull:Begin") ) ); - if (isNull) { - // If there is a message box's default action, disconnect from it. - QAction *action = /*secondaryAction()*/ this->actions().at(1); - if (action && mSecondaryAction == 0) { - action->disconnect(SIGNAL(triggered()), this, SLOT(secondaryActionTriggered())); - } - setSecondaryAction(0); - } else { - QString text = mSecondaryAction ? mSecondaryAction->text() : QString(); - setSecondaryActionText(text); - } - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::setSecondaryActionNull:End") ) ); -} - -// Widget is about to hide. Closing effect has ended. -void HbDeviceInputDialogWidget::hideEvent(QHideEvent *event) -{ - Q_UNUSED(event); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::hideEvent:Begin") ) ); - HbInputDialog::hideEvent(event); - emit deviceDialogClosed(); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::hideEvent:End") ) ); -} - -// Widget is about to show -void HbDeviceInputDialogWidget::showEvent(QShowEvent *event) -{ - Q_UNUSED(event); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::showEvent:Begin") ) ); - HbInputDialog::showEvent(event); - mShowEventReceived = true; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::showEvent:End") ) ); -} - -void HbDeviceInputDialogWidget::setAnimationDefinition(QString &animationDefinition) -{ - mAnimationDefinition = animationDefinition; -} - -QString HbDeviceInputDialogWidget::animationDefinition() const -{ - return mAnimationDefinition; -} - -// Primary action triggered -void HbDeviceInputDialogWidget::primaryActionTriggered() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::primaryActionTriggered:Begin") ) ); - //Get the string enter by user - QString myString = this->value().toString(); - data.insert("ok",myString); - emit deviceDialogData(data); - mSendAction = true; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::primaryActionTriggered:End") ) ); -} - -// Secondary action triggered -void HbDeviceInputDialogWidget::secondaryActionTriggered() -{ - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::secondaryActionTriggered:Begin") ) ); - data.insert("cancel","cancel"); - emit deviceDialogData(data); - mSendAction = false; - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::secondaryActionTriggered:End") ) ); -} - - -// Close Dialog when visibility changed -void HbDeviceInputDialogWidget::closeDialog() - { - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::closeDialog:Begin") ) ); - if(mHack == 1) - { - emit deviceDialogData(data); // first time plugin didnt called deviceDialogData and hence this hack added. - } - emit deviceDialogClosed(); - TRACES( RDebug::Print( _L("HbDeviceInputDialogWidget::closeDialog:End") ) ); - mHack = 0; - } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/kefmapper/data/AknKeyEventMap.rss --- a/coreapplicationuis/kefmapper/data/AknKeyEventMap.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/kefmapper/data/AknKeyEventMap.rss Wed Sep 01 12:24:48 2010 +0100 @@ -44,7 +44,22 @@ devicemode = { KKefModeDefault }; eventtype = { KKefTypeShort | KKefTypeKey }; feedbacktype = 1; // 1 = Basic feedback - } + }, + KEF_KEY_EVENT + { + scancode = { EStdKeyRightFunc, EStdKeyUpArrow } ; + keycode = { EStdKeyApplicationC, EStdKeyApplicationC, EStdKeyApplicationC } ; + devicemode = { 0, 1, 2 }; + eventtype = { KKefTypeShort | KKefTypeLong, KKefTypeShort | KKefTypeLong, KKefTypeShort | KKefTypeLong }; + }, + + KEF_KEY_EVENT + { + scancode = { EStdKeyRightFunc, EStdKeyDownArrow } ; + keycode = { EStdKeyApplicationD, EStdKeyApplicationD, EStdKeyApplicationD } ; + devicemode = { 0, 1, 2 }; + eventtype = { KKefTypeShort | KKefTypeLong, KKefTypeShort | KKefTypeLong, KKefTypeShort | KKefTypeLong }; + } }; } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/kefmapper/group/KeyEventFw.mmp --- a/coreapplicationuis/kefmapper/group/KeyEventFw.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/kefmapper/group/KeyEventFw.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include #include -TARGET keyeventfw.dll +TARGET KeyEventFw.DLL TARGETTYPE dll UID 0x1000008D 0x102824C2 diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/BWINS/batterypopupcontrolu.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/BWINS/batterypopupcontrolu.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,6 @@ +EXPORTS + ??1CBatteryPopupControl@@UAE@XZ @ 1 NONAME ; CBatteryPopupControl::~CBatteryPopupControl(void) + ?NewL@CBatteryPopupControl@@SAPAV1@ABVTDesC16@@0@Z @ 2 NONAME ; class CBatteryPopupControl * CBatteryPopupControl::NewL(class TDesC16 const &, class TDesC16 const &) + ?SetCommandObserver@CBatteryPopupControl@@QAEXAAVMEikCommandObserver@@@Z @ 3 NONAME ; void CBatteryPopupControl::SetCommandObserver(class MEikCommandObserver &) + ?ShowPopUpL@CBatteryPopupControl@@QAEXXZ @ 4 NONAME ; void CBatteryPopupControl::ShowPopUpL(void) + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/CenRep/keys_bsutil.xls Binary file coreapplicationuis/powersaveutilities/CenRep/keys_bsutil.xls has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/EABI/batterypopupcontrolu.DEF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/EABI/batterypopupcontrolu.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,8 @@ +EXPORTS + _ZN20CBatteryPopupControl10ShowPopUpLEv @ 1 NONAME + _ZN20CBatteryPopupControl18SetCommandObserverER19MEikCommandObserver @ 2 NONAME + _ZN20CBatteryPopupControl4NewLERK7TDesC16S2_ @ 3 NONAME + _ZN20CBatteryPopupControlD0Ev @ 4 NONAME + _ZN20CBatteryPopupControlD1Ev @ 5 NONAME + _ZN20CBatteryPopupControlD2Ev @ 6 NONAME + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/batindicatorpanepluginimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/batindicatorpanepluginimpl.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,180 @@ +/* +* Copyright (c) 2007 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: BatIndicatorPanePlugin plugin implementation +* +*/ + + +#ifndef BATINDICATORPANEPLUGINIMPL_H +#define BATINDICATORPANEPLUGINIMPL_H + +// INCLUDES +#include // CAknIndicatorPlugin +#include +#include // CPsmClient +#include // RConeResourceLoader +#include "batterypopupcontrol.h" + +class CPsmClient; +class CBSUtil; + +/** +* BatIndicatorPanePlugin Plug-in implementation +* +* @lib BatIndicatorPanePlugin +* @since S60 5.0 +*/ +class CBatIndicatorPanePluginImpl : public CAknIndicatorPlugin, + public MEikCommandObserver, + public MPsmClientObserver +{ + +private: + + // Preview popup command ids + enum TLinkCommandID + { + ELinkNone = 0, + ELinkFirst = 1 + }; + +public: // Constructors and destructor + + /** + * Two-phased constructor. + * @since S60 5.0 + * @param aCallback Callback for psm client. + */ + static CBatIndicatorPanePluginImpl* NewL( ); + + /** + * Destructor. + */ + ~CBatIndicatorPanePluginImpl(); + +// From MEikCommandObserver + + /** + * @see MEikCommandObserver + */ + void ProcessCommandL( TInt aCommandId ); + +private: + + /** + * C++ default constructor. + */ + CBatIndicatorPanePluginImpl(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL( ); + + /** + * Shows preview popup. + * + * @since S60 5.0 + */ + void ShowPreviewPopupL( ); + + /** + * Enables or disables power save mode. + * If the wished state is already active, does nothing. + * + * @since S60 5.0 + */ + void SetPowerSaveModeEnabled( ); + + /** + * Gets local variation for plugin. + * + * @since S60 5.0 + */ + void GetFeatures( ); + + /** + * This method can check if feature is supported or not. + * @param TInt aFeatureId (defined in batindpanepluginprivatecrkeys.h) + * @return TInt: aFeatureId supported if != 0 + * + * @since S60 5.0 + */ + TInt Supported( TInt aFeatureId ); + +// From CAknIndicatorPlugin + + /** + * @see CAknIndicatorPlugin + */ + void HandleIndicatorTapL( const TInt aUid ); + +// from MPsmClientObserver + + /** + * @see MPsmClientObserver + */ + virtual void PowerSaveModeChanged( const TPsmsrvMode aMode ); + + /** + * @see MPsmClientObserver + */ + virtual void PowerSaveModeChangeError( const TInt aError ); + +private: // data + + /** + * Actual content + * Own. + */ + HBufC* iContentText; + + /** + * Link text + * Own. + */ + HBufC* iLinkText; + + /** + * PSM Server client. + * Own. + */ + CPsmClient* iPsmClient; + + /** + * Battery status utility. + * Own. + */ + CBSUtil* iBatteryStateUtil; + + /** + * Control for preview popup. + * Own. + */ + CBatteryPopupControl* iPopupControl; + + /** + * Resource loader. + */ + RConeResourceLoader iResourceLoader; + + /** + * Value of KBatIndPanePlugin. + */ + TInt iBatIndPanePluginFeatures; + }; + +#endif // BATINDICATORPANEPLUGINIMPL_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/batindpanepluginprivatecrkeys.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/batindpanepluginprivatecrkeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2007 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: Battery Indicator Pane Plug-in central repository +* configuration keys. +* +*/ + + +#ifndef BATINDPANEPLUGINPRIVATECRKEYS_H +#define BATINDPANEPLUGINPRIVATECRKEYS_H + +// INCLUDES + +// ============================================================================= +// Battery Indicator Pane Plug-in Configuration API +// ============================================================================= +const TUid KCRUidBatIndPanePluginConf = { 0x2001011A }; + +/** +* Bitmask used in configuring Battery Indicator Pane Plug-in. +*/ +const TUint32 KBatIndPanePlugin = 0x00000001; + +// ============================================================================= +// Battery Indicator Pane Plug-in Local Variation constants +// ============================================================================= + +/** +* KBatIndPanePluginLinkOnly is an on/off setting for enabling +* a preview popup with battery level information in percents. If enabled, this popup +* is shown only with link for activate/deactivate power save mode. If disabled, this +* popup is shown with icon, battery level information and link. +* +*/ +const TUint32 KBatIndPanePluginLinkOnly = 0x01; // 2^0 + +#endif // BATINDPANEPLUGINPRIVATECRKEYS_H + +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/trace.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/trace.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,378 @@ +/* +* Copyright (c) 2007 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: Battery Indicator Pane Plug-in trace definitions. +* +*/ + + +#ifndef TRACE_H +#define TRACE_H + +#include "traceconfiguration.hrh" + +#ifdef TRACE_INTO_FILE +#include // RFileLogger +#else +#include // RDebug +#endif + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- +// + +/** +* Prefix trace macro to complete tracing with component name. +* Returns TDesC which can be used directly with RDebug or RFileLogger. +*/ +#define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[BatIndicatorPanePlugin]: " L##aMsg ) + +/** +* Prefix error trace +*/ +#define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg ) + +/** +* Prefix info trace. +*/ +#define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg ) + +/** +* Prefix macro for strings +*/ +#define _PREFIX_CHAR( aMsg ) (const char*)"[BatIndicatorPanePlugin]: " ##aMsg + +/** +* Define needed directories if TRACE_INTO_FILE macro in use +*/ +#ifdef TRACE_INTO_FILE + + _LIT( KDir, "BatIndicatorPanePlugin" ); + _LIT( KFile, "BatIndicatorPanePlugin_log.txt" ); + _LIT( KFullPath, "c:\\logs\\BatIndicatorPanePlugin\\" ); + +#endif + +//----------------------------------------------------------------------------- +// Error trace macros +//----------------------------------------------------------------------------- +// +#ifdef ERROR_TRACE + + /** + * Error trace definitions. + */ + #ifdef TRACE_INTO_FILE + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + + #else//TRACE_INTO_FILE not defined + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + + #endif//TRACE_INTO_FILE + + #define ERROR_GEN( aMsg ) ERROR( KErrGeneral, aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) ERROR_1( KErrGeneral, aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) ERROR_2( KErrGeneral, aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) ERROR_3( KErrGeneral, aMsg, aP1, aP3 ) + +#else//ERROR_TRACE not defined + + #define ERROR( aErr, aMsg ) + #define ERROR_1( aErr, aMsg, aP1 ) + #define ERROR_2( aErr, aMsg, aP1, aP2 ) + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 ) + #define ERROR_GEN( aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) + +#endif//ERROR_TRACE + +//----------------------------------------------------------------------------- +// Info trace macros +//----------------------------------------------------------------------------- +// +#ifdef INFO_TRACE + + /** + * Info log message definitions. + */ + #ifdef TRACE_INTO_FILE + + #define INFO( aMsg )\ + {\ + RFileLogger::Write( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + + #else//TRACE_INTO_FILE not defined + + #define INFO( aMsg )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + + #endif//TRACE_INTO_FILE + +#else//INFO_TRACE not defined + + #define INFO( aMsg ) + #define INFO_1( aMsg, aP1 ) + #define INFO_2( aMsg, aP1, aP2 ) + #define INFO_3( aMsg, aP1, aP2, aP3 ) + +#endif//INFO_TRACE + +//----------------------------------------------------------------------------- +// Trace current client thread name and process id +//----------------------------------------------------------------------------- +// +#ifdef CLIENT_TRACE + + #define CLIENT( aMessage )\ + {\ + RThread thread;\ + TInt err = aMessage.Client( thread );\ + if( err == KErrNone )\ + {\ + RProcess process;\ + err = thread.Process( process );\ + if( err == KErrNone )\ + {\ + TPtrC thredName( thread.Name() );\ + TUid processUid( process.SecureId() );\ + INFO_2( "Current client process UID: [%x], thread name: [%S]",\ + processUid,\ + &thredName );\ + }\ + process.Close();\ + }\ + thread.Close();\ + } + +#else + + #define CLIENT( aMessage ) + +#endif + +//----------------------------------------------------------------------------- +// Function trace macros +//----------------------------------------------------------------------------- +// +#ifdef FUNC_TRACE + + /** + * Function logging definitions. + */ + #ifdef TRACE_INTO_FILE + + #define FUNC( aMsg, aP1 )\ + {\ + TPtrC8 trace( _S8( aMsg ) );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, trace, aP1 );\ + }\ + + #else//TRACE_INTO_FILE not defined + + #define FUNC( aMsg, aP1 )\ + {\ + RDebug::Printf( aMsg, aP1 );\ + }\ + + #endif//TRACE_INTO_FILE + + /** + * Function trace helper class. + * + * NOTE: + * LC -methods cannot be trapped. Therefore if LC -method leaves + * END trace is used instead of LEAVE trace. + * If you have an idea how to round this problem please tell. + */ + _LIT8( KFuncNameTerminator, "(" ); + _LIT8( KFuncLeavePatternL, "L" ); + class TFuncLog + { + public: + static void Cleanup( TAny* aPtr ) + { + TFuncLog* self = static_cast< TFuncLog* >( aPtr ); + self->iLeft = ETrue; + FUNC( _PREFIX_CHAR("%S-LEAVE"), &self->iFunc ); // Leave detected + } + inline TFuncLog( const char* aFunc ) : + iFunc( aFunc ? _S8( aFunc ) : _S8("") ), + iLeft( EFalse ), + iCleanupItem( Cleanup, this ), + iCanLeave( EFalse ) + { + TInt pos( iFunc.Find( KFuncNameTerminator ) ); + if( pos != KErrNotFound ) + { + iFunc.Set( iFunc.Left( pos ) ); + iCanLeave = !iFunc.Right( KFuncLeavePatternL().Length() ).Compare( KFuncLeavePatternL ); + if ( iCanLeave ) + { + CleanupStack::PushL( iCleanupItem ); // Ignore warnings + } + } + FUNC( _PREFIX_CHAR("%S-START"), &iFunc ); + } + + inline ~TFuncLog() + { + if ( !iLeft ) + { + if ( iCanLeave ) + { + CleanupStack::Pop( this ); // Pop the cleanup item + } + FUNC( _PREFIX_CHAR("%S-END"), &iFunc ); // Normally finished + } + } + + private: // Data + TPtrC8 iFunc; + TBool iLeft; + TCleanupItem iCleanupItem; + TBool iCanLeave; + }; + #define FUNC_LOG TFuncLog _fl( __PRETTY_FUNCTION__ ); + +#else//FUNC_TRACE not defined + + #define FUNC_LOG + +#endif//FUNC_TRACE + +//----------------------------------------------------------------------------- +// Timestamp trace macros +//----------------------------------------------------------------------------- +// +#ifdef TIMESTAMP_TRACE + + #ifdef TRACE_INTO_FILE + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend,\ + _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #else//TRACE_INTO_FILE not defined + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RDebug::Print( _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #endif//TRACE_INTO_FILE + +#else//TIMESTAMP_TRACE not defined + + #define TIMESTAMP( aCaption ) + +#endif//TIMESTAMP_TRACE + +#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/traceconfiguration.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/inc/traceconfiguration.hrh Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2007 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: Trace configuration for Battery Indicator Pane Plug-in +* +*/ + + +#ifndef TRACECONFIGURATION_HRH +#define TRACECONFIGURATION_HRH + +//----------------------------------------------------------------------------- +// Trace definitions +//----------------------------------------------------------------------------- +// + +/** +* Error trace enabled +*/ +#ifdef _DEBUG + #define ERROR_TRACE +#else + #undef ERROR_TRACE +#endif + +/** +* Info trace enabled +*/ +#ifdef _DEBUG + #define INFO_TRACE +#else + #undef INFO_TRACE +#endif + +/** +* Function trace enabled +*/ +#ifdef _DEBUG + #define FUNC_TRACE +#else + #undef FUNC_TRACE +#endif + +/** +* Timestamp tracing on +*/ +#ifdef _DEBUG + #define TIMESTAMP_TRACE +#else + #undef TIMESTAMP_TRACE +#endif + +/** +* Tracing current client process and thread +*/ +#ifdef _DEBUG + #define CLIENT_TRACE +#else + #undef CLIENT_TRACE +#endif + +/** +* Tracing into file enabled, default RDebug +*/ +#undef TRACE_INTO_FILE + +#endif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/src/batindicatorpanepluginimpl.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/src/batindicatorpanepluginimpl.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,293 @@ +/* +* Copyright (c) 2007 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: BatIndicatorPanePlugin plugin implementation +* +*/ + + +// INCLUDE FILES +#include // RPropert +#include // BatIndicatorPanePlugin resources +#include // Stringloader +#include +#include +#include +#include // KDC_ECOM_RESOURCE_DIR +#include +#include "batindicatorpanepluginimpl.h" +#include "batindpanepluginprivatecrkeys.h" +#include "bsutil.h" +#include "trace.h" + +// CONSTANTS +_LIT( KIndicatorResourceFile,"z:batindpaneplugin.rsc" ); + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// Two-phased constructor. +// --------------------------------------------------------------------------- +// +CBatIndicatorPanePluginImpl* CBatIndicatorPanePluginImpl::NewL( ) + { + FUNC_LOG + + CBatIndicatorPanePluginImpl* self = new( ELeave ) CBatIndicatorPanePluginImpl( ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CBatIndicatorPanePluginImpl::~CBatIndicatorPanePluginImpl() + { + FUNC_LOG + + delete iContentText; + delete iPsmClient; + delete iBatteryStateUtil; + delete iPopupControl; + delete iLinkText; + iResourceLoader.Close(); + } + +// --------------------------------------------------------------------------- +// From MEikCommandObserver +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::ProcessCommandL( TInt aCommandId ) + { + FUNC_LOG + + if( aCommandId == ELinkFirst ) + { + SetPowerSaveModeEnabled(); + } + } + +// --------------------------------------------------------------------------- +// CBatIndicatorPanePluginImpl::CBatIndicatorPanePluginImpl +// C++ default constructor can NOT contain any code, that +// might leave. +// --------------------------------------------------------------------------- +// +CBatIndicatorPanePluginImpl::CBatIndicatorPanePluginImpl( ): + iResourceLoader( *CEikonEnv::Static() ), + iBatIndPanePluginFeatures( 0 ) + { + FUNC_LOG + } + +// --------------------------------------------------------------------------- +// CBatIndicatorPanePluginImpl::ConstructL +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::ConstructL( ) + { + FUNC_LOG + // Create PSM client + iPsmClient = CPsmClient::NewL( *this ); + + GetFeatures(); + + // Create Battery State Utilities + if( !Supported( KBatIndPanePluginLinkOnly ) ) + { + iBatteryStateUtil = CBSUtil::NewL(); + } + + // Read resource strings + TParse* fp = new( ELeave ) TParse(); + CleanupStack::PushL( fp ); + fp->Set( KIndicatorResourceFile, &KDC_ECOM_RESOURCE_DIR , NULL ); + TFileName filename = fp->FullName(); + iResourceLoader.OpenL( filename ); + CleanupStack::PopAndDestroy( fp ); + } + +// --------------------------------------------------------------------------- +// Shows soft notification. +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::ShowPreviewPopupL( ) + { + FUNC_LOG + + delete iPopupControl; + iPopupControl = NULL; + + if( iContentText ) + { + iPopupControl = CBatteryPopupControl::NewL( *iContentText, + *iLinkText ); + } + else + { + iPopupControl = CBatteryPopupControl::NewL( KNullDesC, + *iLinkText ); + } + + iPopupControl->SetCommandObserver( *this ); + // Launch + iPopupControl->ShowPopUpL(); + + delete iContentText; + iContentText = NULL; + + delete iLinkText; + iLinkText = NULL; + } + +// --------------------------------------------------------------------------- +// Enables or disables power save mode. +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::SetPowerSaveModeEnabled( ) + { + FUNC_LOG + // Get PSM state + TInt mode; + TInt err = iPsmClient->PsmSettings().GetCurrentMode( mode ); + + if ( err == KErrNone ) + { + if( mode == EPsmsrvModeNormal || + mode == EPsmsrvPartialMode ) + { + iPsmClient->ChangePowerSaveMode( EPsmsrvModePowerSave ); + } + else + { + iPsmClient->ChangePowerSaveMode( EPsmsrvModeNormal ); + } + } + } + +// --------------------------------------------------------------------------- +// From CAknIndicatorPlugin +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::HandleIndicatorTapL( const TInt /*aUid*/ ) + { + FUNC_LOG + + delete iContentText; + iContentText = NULL; + + delete iLinkText; + iLinkText = NULL; + + TInt err = KErrNone; + + if ( iBatteryStateUtil ) + { + TInt batteryStatus; + err = RProperty::Get( KPSUidHWRMPowerState, KHWRMBatteryStatus, batteryStatus ); + + if( !err && batteryStatus == EBatteryStatusLow ) + { + iContentText = StringLoader::LoadL( R_QTN_BATTERY_LOW_PREVIEW_POPUP ); + } + else + { + TUint8 batteryCapacity = iBatteryStateUtil->GetBatteryCapacity(); + + iContentText = StringLoader::LoadL( R_QTN_BATTERY_STATUS_POPUP, + batteryCapacity ); + } + } + + // Get PSM state + TInt mode; + TBool psmActive = EFalse; + err = iPsmClient->PsmSettings().GetCurrentMode( mode ); + + if ( err == KErrNone ) + { + psmActive = ( mode == EPsmsrvModePowerSave ); + } + + if ( psmActive ) + { + iLinkText = StringLoader::LoadL( R_QTN_DEACTIVATE_POWER_SAVING ); + } + else + { + iLinkText = StringLoader::LoadL( R_QTN_ACTIVATE_POWER_SAVING ); + } + ShowPreviewPopupL(); + } + +// ---------------------------------------------------------------------------- +// CBatIndicatorPanePluginImpl::GetFeatures() +// ---------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::GetFeatures( ) + { + FUNC_LOG + + CRepository* repository = NULL; + + TRAPD( err, repository = CRepository::NewL( KCRUidBatIndPanePluginConf ) ); + + if ( err == KErrNone ) + { + err = repository->Get( KBatIndPanePlugin, iBatIndPanePluginFeatures ); + + if ( err != KErrNone || iBatIndPanePluginFeatures < 0 ) // ERROR + { + INFO_1( "CBatIndicatorPanePluginImpl::GetFeatures - Reading features err %d", err ) + iBatIndPanePluginFeatures = 0; + } + } + else + { + INFO_1( "CBatIndicatorPanePluginImpl::GetFeatures: open KCRUidBatIndPanePluginConf failed, err=%d", err ) + } + delete repository; + } + +// ---------------------------------------------------------------------------- +// CBatIndicatorPanePluginImpl::Supported() +// ---------------------------------------------------------------------------- +// +TInt CBatIndicatorPanePluginImpl::Supported( TInt aFeatureId ) + { + FUNC_LOG + return aFeatureId & iBatIndPanePluginFeatures; + } +// --------------------------------------------------------------------------- +// From MPsmClientObserver +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::PowerSaveModeChanged( const TPsmsrvMode /*aMode*/ ) + { + FUNC_LOG + } + +// --------------------------------------------------------------------------- +// From MPsmClientObserver +// --------------------------------------------------------------------------- +// +void CBatIndicatorPanePluginImpl::PowerSaveModeChangeError( const TInt /*aError*/ ) + { + FUNC_LOG + } +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batindicatorpaneplugin/src/dllmain.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batindicatorpaneplugin/src/dllmain.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2007 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 for DllMain. +* +*/ + + +#include "batindicatorpanepluginimpl.h" + +#include +#include + +// --------------------------------------------------------------------------- +// Define the interface UIDs +// Map the interface implementation UIDs to implementation factory functions +// --------------------------------------------------------------------------- +// +const TImplementationProxy ImplementationTable[] = + { +#ifdef KImplUIDBatteryIndicatorPlugin + IMPLEMENTATION_PROXY_ENTRY( KImplUIDBatteryIndicatorPlugin, + CBatIndicatorPanePluginImpl::NewL ) +#else + IMPLEMENTATION_PROXY_ENTRY( 0x2000E51D, + CBatIndicatorPanePluginImpl::NewL ) +#endif //KImplUIDBatteryIndicatorPlugin + }; + +// --------------------------------------------------------------------------- +// Exported proxy for instantiation method resolution. +// --------------------------------------------------------------------------- +// +EXPORT_C const TImplementationProxy* ImplementationGroupProxy + (TInt& aTableCount) + { + aTableCount = sizeof(ImplementationTable) / sizeof(ImplementationTable[0]); + return ImplementationTable; + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/batterypopupcontrol.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/batterypopupcontrol.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,302 @@ +/* +* Copyright (c) 2007-10 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: Content for preview pop-up. +* +*/ + + +#ifndef CBATTERYPOPUPCONTROL_H +#define CBATTERYPOPUPCONTROL_H + +#include +#include +#include // Controlling the preview pop-up component + +class MEikCommandObserver; +class CEikLabel; +class CGulIcon; + + +/** +* Class defining stylus activated pop-up content. +* +* This content is intended to be used in connection with preview pop-up +* component. Content shows an icon, text and +* an optional stylus tappable function link. If using link, the user gives link text and +* corresponding ID for link in construction. The user must also set +* itself as an observer for this content when using function links. This +* way the user gets callbacks (with ID) for its ProcessCommandL() function +* when the link is tapped. +* +* @lib BatteryPopupControl.lib +* @since S60 5.0 +*/ +NONSHARABLE_CLASS( CBatteryPopupControl ) : + public CAknControl, + public MCoeControlObserver, + public MAknPreviewPopUpObserver + { +public: + + /** Preview popup command ids */ + enum TLinkCommandID + { + ELinkNone = 0, + ELinkFirst = 1 + }; + + /** + * Two-phased constructor. Constructs the content + * with text and function link. + * + * @since S60 5.0 + * @param aContentText Text for the popup. Mandatory. + * @param aLinkText Link text. + * @return Pointer to the created content object. + */ + + IMPORT_C static CBatteryPopupControl* NewL( const TDesC& aContentText, + const TDesC& aLinkText ); + + /** + * Destructor. + */ + ~CBatteryPopupControl(); + + /** + * Sets the command observer of the preview pop-up content. When + * link that is set to the content is pressed, the command + * observer's ProcessCommandL() method is called with the command ID + * of the pressed component. + * + * @since S60 5.0 + * @param aCommandObserver Command observer. + */ + IMPORT_C void SetCommandObserver( MEikCommandObserver& aCommandObserver ); + + /** + * Shows preview popup + * + * @since S60 5.0 + */ + IMPORT_C void ShowPopUpL(); + +private: +// from base class CCoeControl + + /** + * Handles a change to the control's resources of type aType which are + * shared across the environment. + * + * @param aType The type of resource that have changed. + */ + void HandleResourceChange( TInt aType ); + + /** + * Sets container window. + * + * @param aContainer Container. + */ + void SetContainerWindowL( const CCoeControl& aContainer ); + + /** + * Handles pointer events + * + * @param aPointerEvent information about the pointer event. + */ + void HandlePointerEventL( const TPointerEvent& aPointerEvent ); + + +// from base class MCoeControlObserver + + /** + * Handles an event from an observed control. + * + * @param aControl The control that sent the event. + * @param aEventType The event type. + */ + void HandleControlEventL( CCoeControl *aControl, + TCoeEvent aEventType ); + +// From MAknPreviewPopUpObserver + + /** + * @see MAknPreviewPopUpObserver + */ + void HandlePreviewPopUpEventL( CAknPreviewPopUpController* aController, + TPreviewPopUpEvent aEvent ); + + /** + * Default constructor. + */ + CBatteryPopupControl(); + + /** + * Symbian 2nd phase constructor. + * + * @since S60 5.0 + * @param aContentText Text for the popup. + * @param aLinkText Link text. + */ + void ConstructL( const TDesC& aContentText, + const TDesC& aLinkText ); + + /** + * Gets rect from layout data. + * + * @since S60 5.0 + * @param aParent Parent rect. + * @param aComponentLayout Layout data. + */ + TRect RectFromLayout( const TRect& aParent, + const TAknWindowComponentLayout& aComponentLayout ) const; + + /** + * Gets rect from layout data. + * + * @since S60 5.0 + * @param aComponentLayout Layout data. + */ + TRect PopUpWindowRectFromLayout( const TAknWindowComponentLayout& + aComponentLayout ) const; + + /** + * Creates CGulIcon. + * + * @since S60 5.0 + */ + void CreateIconL( ); + +// from base class CCoeControl + + /** + * Returns a control determined by control index. + * + * @param aIndex Index of a control to be returned. + * @return Pointer to control. + */ + CCoeControl* ComponentControl( TInt aIndex ) const; + + /** + * Returns the number of controls inside the control. + * + * @return The number of component controls. + */ + TInt CountComponentControls() const; + + /** + * Draws the control. + * + * @param aRect The control's area. + */ + void Draw( const TRect& aRect ) const; + + /** + * Returns the control's minimum required size. + * + * @return The minimum size required by the control. + */ + TSize MinimumSize(); + + /** + * Responds to size changes to set the size and position for + * the contents of this control. + */ + void SizeChanged(); + +private: // data + /** Variant ids */ + enum TVariantID + { + EVariantIconText = 0, + EVariantIconTextLink = 1 + }; + + /** + * Label for informative text. + * Own. + */ + CEikLabel* iText; + + /** + * Link text. + * Own. + */ + HBufC* iLinkText; + + /** + * Command observer. + * Not own. + */ + MEikCommandObserver* iCommandObserver; + + /** + * Font + * Not own + */ + const CFont* iFont; + + /** + * Status of highlighted item. + */ + TBool iHighlightedItem; + + /** + * Id for icon bitmap + */ + TInt iIconId; + + /** + * Id for icon mask + */ + TInt iMaskId; + + /** + * Icon. + * Own. + */ + CGulIcon* iIcon; + + /** + * Layout for icon + */ + TAknLayoutRect iBitmapLayout; + + /** + * Variant, + * 0 = icon and text + * 1 = icon, text and function link + */ + TInt iVariant; + + /** + * Popup controller + * Own. + */ + CAknPreviewPopUpController* iController; + + /** + * Rect for link + */ + TRect iLinkRect; + + /** + * Alignment of the Layout either ERight or ELeft + */ + CGraphicsContext::TTextAlign iAlign; + }; + + +#endif // CBATTERYPOPUPCONTROL_H + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/trace.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/trace.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,379 @@ +/* +* Copyright (c) 2007 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: Battery Popup Control trace definitions. +* +*/ + + +#ifndef TRACE_H +#define TRACE_H + +#include "traceconfiguration.hrh" + +#ifdef TRACE_INTO_FILE +#include // RFileLogger +#else +#include // RDebug +#endif + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- +// + +/** +* Prefix trace macro to complete tracing with component name. +* Returns TDesC which can be used directly with RDebug or RFileLogger. +*/ +#define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[BatteryPopupControl]: " L##aMsg ) + +/** +* Prefix error trace +*/ +#define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg ) + +/** +* Prefix info trace. +*/ +#define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg ) + +/** +* Prefix macro for strings +*/ +#define _PREFIX_CHAR( aMsg ) (const char*)"[BatteryPopupControl]: " aMsg + + +/** +* Define needed directories if TRACE_INTO_FILE macro in use +*/ +#ifdef TRACE_INTO_FILE + + _LIT( KDir, "BatteryPopupControl" ); + _LIT( KFile, "BatteryPopupControl_log.txt" ); + _LIT( KFullPath, "c:\\logs\\BatteryPopupControl\\" ); + +#endif + +//----------------------------------------------------------------------------- +// Error trace macros +//----------------------------------------------------------------------------- +// +#ifdef ERROR_TRACE + + /** + * Error trace definitions. + */ + #ifdef TRACE_INTO_FILE + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + + #else//TRACE_INTO_FILE not defined + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + + #endif//TRACE_INTO_FILE + + #define ERROR_GEN( aMsg ) ERROR( KErrGeneral, aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) ERROR_1( KErrGeneral, aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) ERROR_2( KErrGeneral, aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) ERROR_3( KErrGeneral, aMsg, aP1, aP3 ) + +#else//ERROR_TRACE not defined + + #define ERROR( aErr, aMsg ) + #define ERROR_1( aErr, aMsg, aP1 ) + #define ERROR_2( aErr, aMsg, aP1, aP2 ) + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 ) + #define ERROR_GEN( aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) + +#endif//ERROR_TRACE + +//----------------------------------------------------------------------------- +// Info trace macros +//----------------------------------------------------------------------------- +// +#ifdef INFO_TRACE + + /** + * Info log message definitions. + */ + #ifdef TRACE_INTO_FILE + + #define INFO( aMsg )\ + {\ + RFileLogger::Write( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + + #else//TRACE_INTO_FILE not defined + + #define INFO( aMsg )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + + #endif//TRACE_INTO_FILE + +#else//INFO_TRACE not defined + + #define INFO( aMsg ) + #define INFO_1( aMsg, aP1 ) + #define INFO_2( aMsg, aP1, aP2 ) + #define INFO_3( aMsg, aP1, aP2, aP3 ) + +#endif//INFO_TRACE + +//----------------------------------------------------------------------------- +// Trace current client thread name and process id +//----------------------------------------------------------------------------- +// +#ifdef CLIENT_TRACE + + #define CLIENT( aMessage )\ + {\ + RThread thread;\ + TInt err = aMessage.Client( thread );\ + if( err == KErrNone )\ + {\ + RProcess process;\ + err = thread.Process( process );\ + if( err == KErrNone )\ + {\ + TPtrC thredName( thread.Name() );\ + TUid processUid( process.SecureId() );\ + INFO_2( "Current client process UID: [%x], thread name: [%S]",\ + processUid,\ + &thredName );\ + }\ + process.Close();\ + }\ + thread.Close();\ + } + +#else + + #define CLIENT( aMessage ) + +#endif + +//----------------------------------------------------------------------------- +// Function trace macros +//----------------------------------------------------------------------------- +// +#ifdef FUNC_TRACE + + /** + * Function logging definitions. + */ + #ifdef TRACE_INTO_FILE + + #define FUNC( aMsg, aP1 )\ + {\ + TPtrC8 trace( _S8( aMsg ) );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, trace, aP1 );\ + }\ + + #else//TRACE_INTO_FILE not defined + + #define FUNC( aMsg, aP1 )\ + {\ + RDebug::Printf( aMsg, aP1 );\ + }\ + + #endif//TRACE_INTO_FILE + + /** + * Function trace helper class. + * + * NOTE: + * LC -methods cannot be trapped. Therefore if LC -method leaves + * END trace is used instead of LEAVE trace. + * If you have an idea how to round this problem please tell. + */ + _LIT8( KFuncNameTerminator, "(" ); + _LIT8( KFuncLeavePatternL, "L" ); + class TFuncLog + { + public: + static void Cleanup( TAny* aPtr ) + { + TFuncLog* self = static_cast< TFuncLog* >( aPtr ); + self->iLeft = ETrue; + FUNC( _PREFIX_CHAR("%S-LEAVE"), &self->iFunc ); // Leave detected + } + inline TFuncLog( const char* aFunc ) : + iFunc( aFunc ? _S8( aFunc ) : _S8("") ), + iLeft( EFalse ), + iCleanupItem( Cleanup, this ), + iCanLeave( EFalse ) + { + TInt pos( iFunc.Find( KFuncNameTerminator ) ); + if( pos != KErrNotFound ) + { + iFunc.Set( iFunc.Left( pos ) ); + iCanLeave = !iFunc.Right( KFuncLeavePatternL().Length() ).Compare( KFuncLeavePatternL ); + if ( iCanLeave ) + { + CleanupStack::PushL( iCleanupItem ); // Ignore warnings + } + } + FUNC( _PREFIX_CHAR("%S-START"), &iFunc ); + } + + inline ~TFuncLog() + { + if ( !iLeft ) + { + if ( iCanLeave ) + { + CleanupStack::Pop( this ); // Pop the cleanup item + } + FUNC( _PREFIX_CHAR("%S-END"), &iFunc ); // Normally finished + } + } + + private: // Data + TPtrC8 iFunc; + TBool iLeft; + TCleanupItem iCleanupItem; + TBool iCanLeave; + }; + #define FUNC_LOG TFuncLog _fl( __PRETTY_FUNCTION__ ); + +#else//FUNC_TRACE not defined + + #define FUNC_LOG + +#endif//FUNC_TRACE + +//----------------------------------------------------------------------------- +// Timestamp trace macros +//----------------------------------------------------------------------------- +// +#ifdef TIMESTAMP_TRACE + + #ifdef TRACE_INTO_FILE + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend,\ + _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #else//TRACE_INTO_FILE not defined + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RDebug::Print( _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #endif//TRACE_INTO_FILE + +#else//TIMESTAMP_TRACE not defined + + #define TIMESTAMP( aCaption ) + +#endif//TIMESTAMP_TRACE + +#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/traceconfiguration.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batterypopupcontrol/inc/traceconfiguration.hrh Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2007 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: Trace configuration for Battery Popup Control +* +*/ + + +#ifndef TRACECONFIGURATION_HRH +#define TRACECONFIGURATION_HRH + +//----------------------------------------------------------------------------- +// Trace definitions +//----------------------------------------------------------------------------- +// + +/** +* Error trace enabled +*/ +#ifdef _DEBUG + #define ERROR_TRACE +#else + #undef ERROR_TRACE +#endif + +/** +* Info trace enabled +*/ +#ifdef _DEBUG + #define INFO_TRACE +#else + #undef INFO_TRACE +#endif + +/** +* Function trace enabled +*/ +#ifdef _DEBUG + #define FUNC_TRACE +#else + #undef FUNC_TRACE +#endif + +/** +* Timestamp tracing on +*/ +#ifdef _DEBUG + #define TIMESTAMP_TRACE +#else + #undef TIMESTAMP_TRACE +#endif + +/** +* Tracing current client process and thread +*/ +#ifdef _DEBUG + #define CLIENT_TRACE +#else + #undef CLIENT_TRACE +#endif + +/** +* Tracing into file enabled, default RDebug +*/ +#undef TRACE_INTO_FILE + +#endif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/batterypopupcontrol/src/batterypopupcontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/batterypopupcontrol/src/batterypopupcontrol.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,628 @@ +/* +* Copyright (c) 2007-2010 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: BatteryPopupControl implementation +* +*/ + + +#include +#include +#include +#include +#include // TResourceReader +#include +#include +#include +#include +#include +#include +#include // KDC_RESOURCE_FILES_DIR +#include +// ----------- Touch feedback additions start +#ifdef RD_TACTILE_FEEDBACK +#include +#endif //RD_TACTILE_FEEDBACK +// ----------- Touch feedback additions end +#include +#include "batterypopupcontrol.h" +#include "trace.h" + +// Constants +const TInt KPopupShowDelay = 0; // Show immediately +const TInt KPopupHideDelay = 3000000; // hide after 3 sec +const TInt KMaxLinkTextLength = 255; + +// ======== MEMBER FUNCTIONS ======== + +// ----------------------------------------------------------------------------- +// Default constructor. +// ----------------------------------------------------------------------------- +// +CBatteryPopupControl::CBatteryPopupControl(): + iHighlightedItem( EFalse ) + { + FUNC_LOG + } + +// ----------------------------------------------------------------------------- +// CBatteryPopupControl::NewL +// ----------------------------------------------------------------------------- +// +EXPORT_C CBatteryPopupControl* CBatteryPopupControl::NewL( + const TDesC& aContentText, + const TDesC& aLinkText ) + { + FUNC_LOG + CBatteryPopupControl* self = + new ( ELeave ) CBatteryPopupControl(); + + CleanupStack::PushL( self ); + self->ConstructL( aContentText, aLinkText ); + CleanupStack::Pop( self ); + return self; + } + +// ----------------------------------------------------------------------------- +// Destructor +// ----------------------------------------------------------------------------- +// +EXPORT_C CBatteryPopupControl::~CBatteryPopupControl() + { + FUNC_LOG + delete iController; + delete iText; + delete iIcon; + delete iLinkText; + } + +// ----------------------------------------------------------------------------- +// CBatteryPopupControl::SetCommandObserver +// ----------------------------------------------------------------------------- +// +EXPORT_C void CBatteryPopupControl::SetCommandObserver( + MEikCommandObserver& aCommandObserver ) + { + FUNC_LOG + iCommandObserver = &aCommandObserver; + } + +// ----------------------------------------------------------------------------- +// CBatteryPopupControl::ShowPopUpL +// ----------------------------------------------------------------------------- +// +EXPORT_C void CBatteryPopupControl::ShowPopUpL() + { + FUNC_LOG + + iController = CAknPreviewPopUpController::NewL( *this, CAknPreviewPopUpController::ELayoutDefault | CAknPreviewPopUpController::EDontClose ); + iController->AddObserverL( *this ); + + // Set popup's hide/show delays + iController->SetPopUpShowDelay( KPopupShowDelay ); + iController->SetPopUpHideDelay( KPopupHideDelay ); + + // Position + TPoint uipRect; + if( AknLayoutUtils::LayoutMetricsPosition( + AknLayoutUtils::EBatteryPane, uipRect ) ) + { + iController->SetPosition( uipRect ); + } + + // Launch + iController->ShowPopUp(); + } + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::HandleResourceChange +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::HandleResourceChange( + TInt aType ) + { + FUNC_LOG + + CCoeControl::HandleResourceChange( aType ); + if ( aType == KEikDynamicLayoutVariantSwitch ) + { + SizeChanged(); + } + + // Position + TPoint uipRect; + if( AknLayoutUtils::LayoutMetricsPosition( AknLayoutUtils::EBatteryPane, uipRect ) ) + { + iController->SetPosition( uipRect ); + } + } + + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::SetContainerWindowL +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::SetContainerWindowL( + const CCoeControl& aContainer ) + { + FUNC_LOG + + CCoeControl::SetContainerWindowL( aContainer ); + + if( iText ) + { + iText->SetContainerWindowL( aContainer ); + } + } + +// ----------------------------------------------------------------------------- +// From class MCoeControlObserver. +// CBatteryPopupControl::HandleControlEventL +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::HandleControlEventL( + CCoeControl* /*aControl*/, + TCoeEvent /*aEventType*/ ) + { + FUNC_LOG + } +// --------------------------------------------------------------------------- +// From MAknPreviewPopUpObserver +// --------------------------------------------------------------------------- +// +void CBatteryPopupControl::HandlePreviewPopUpEventL( + CAknPreviewPopUpController* /*aController*/, + TPreviewPopUpEvent aEvent ) + { + FUNC_LOG + + switch ( aEvent ) + { + case EPreviewPopUpShown: + AknGlobalPopupPriorityController::ShowPopup( *this, ETrue ); + break; + case EPreviewPopUpHidden: + AknGlobalPopupPriorityController::RemovePopupPriority( *this ); + break; + } + } + +// ----------------------------------------------------------------------------- +// CAknStylusActivatedPopUpContent::ConstructL +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::ConstructL( const TDesC& aContentText, + const TDesC& aLinkText ) + { + FUNC_LOG + + if( aContentText != KNullDesC ) + { + iText = new ( ELeave ) CEikLabel; + iText->SetTextL( aContentText ); + CreateIconL(); + } + + if( aLinkText != KNullDesC ) + { + // Check if only link is displayed. + if( aContentText != KNullDesC ) + { + iVariant = EVariantIconTextLink; + } + iLinkText = aLinkText.AllocL(); + } + + TRect rectPopUpWindow = PopUpWindowRectFromLayout( + AknLayoutScalable_Avkon::popup_battery_window( iVariant ) ); + + TAknWindowComponentLayout infoPaneLayout = + AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant ); + + TRect rectInfoPane = RectFromLayout( rectPopUpWindow, infoPaneLayout ); + + TAknTextComponentLayout textLayout = + AknLayoutScalable_Avkon::popup_battery_window_t1( iVariant ); + TAknLayoutText textRect; + textRect.LayoutText( rectPopUpWindow, textLayout ); + + // Font for command links + iFont = textRect.Font(); + } + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::ComponentControl +// ----------------------------------------------------------------------------- +// +CCoeControl* CBatteryPopupControl::ComponentControl( + TInt aIndex ) const + { + FUNC_LOG + switch ( aIndex ) + { + case 0: + { + if( iText ) + { + return iText; + } + } + default: + __ASSERT_ALWAYS( aIndex >= 0, User::Panic( + _L("CBatteryPopupControl::ComponentControl"), EAknPanicOutOfRange ) ); + return NULL; + } + } + + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::CountComponentControls +// ----------------------------------------------------------------------------- +// +TInt CBatteryPopupControl::CountComponentControls() const + { + FUNC_LOG + TInt count = 0; + + if( iText ) + { + count++; + } + + return count; + } + + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::Draw +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::Draw( const TRect& /*aRect*/ ) const + { + FUNC_LOG + + CWindowGc& gc = SystemGc(); + MAknsSkinInstance* skin = AknsUtils::SkinInstance(); + + if( iIcon ) + { + TRgb color( KRgbWhite ); // Default never used + + AknsUtils::GetCachedColor( skin, color, + KAknsIIDQsnIconColors, EAknsCIQsnIconColorsCG6 ); + + if (AknIconUtils::IsMifIcon(iIcon->Bitmap())) + { + AknIconUtils::SetIconColor( iIcon->Bitmap(), color ); + } + + AknIconUtils::SetSize( iIcon->Bitmap(), iBitmapLayout.Rect().Size() ); + iBitmapLayout.DrawImage( gc, iIcon->Bitmap(), iIcon->Mask() ); + + gc.Reset(); + } + + gc.SetPenStyle( CGraphicsContext::ESolidPen ); + const CFont* font = iFont; + if ( !font ) + { + font = iCoeEnv->NormalFont(); + } + gc.UseFont( font ); + + if(iText) + { + TRect rect( iLinkRect ); + TRgb textContentColor; + TInt err = AknsUtils::GetCachedColor( skin, textContentColor, KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6 ); + + if (!err) + { + TRAP_IGNORE( AknLayoutUtils::OverrideControlColorL( *iText, + EColorLabelText, textContentColor ) ); + } + + gc.SetPenColor( textContentColor ); + + TInt textBaseLineOffset = 0; + textBaseLineOffset = (rect.Height() - font->FontMaxHeight())/2; + gc.DrawText( *(iText->Text()), rect, textBaseLineOffset, iAlign ); + //gc.Reset(); + + } + + TRgb textColor; + AknsUtils::GetCachedColor( skin, textColor, KAknsIIDQsnHighlightColors, + EAknsCIQsnHighlightColorsCG3 ); + + gc.SetPenColor( textColor ); + gc.SetUnderlineStyle( EUnderlineOn ); + if(iLinkText) + { + TRect rect( iLinkRect ); + if ( Background() ) + { + Background()->Draw( gc, *this, rect ); + } + + // buffer for visually ordered text + HBufC* visualText = NULL; + TRAPD( err, visualText = HBufC::NewL( KMaxLinkTextLength + + KAknBidiExtraSpacePerLine ) ); + if ( err != KErrNone ) + { + return; + } + TPtr ptr = visualText->Des(); + TInt clipWidth = rect.Width(); + + if ( iHighlightedItem ) + { + TRgb highlightcolor = AKN_LAF_COLOR( 244 ); + AknsUtils::GetCachedColor( skin, highlightcolor, + KAknsIIDQsnHighlightColors, EAknsCIQsnHighlightColorsCG1 ); + + gc.SetBrushColor( highlightcolor ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + } + else + { + gc.SetBrushStyle( CGraphicsContext::ENullBrush ); + } + + // bidi processing - using AknBidiTextUtils. + AknBidiTextUtils::ConvertToVisualAndClip( + *(iLinkText), + ptr, + *font, + clipWidth, + clipWidth ); + + TInt baselineOffset = 0; + baselineOffset = font->AscentInPixels() + + ( rect.Height() - font->AscentInPixels() ) / 2; + gc.DrawText( ptr, rect, baselineOffset, + iAlign ); + delete visualText; + } + } + + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::MinimumSize +// ----------------------------------------------------------------------------- +// +TSize CBatteryPopupControl::MinimumSize() + { + FUNC_LOG + TInt nbrOfInfoLines = 0; + TInt minWidth = 0; + + if( iText ) + { + nbrOfInfoLines = iText->NumberOfLines(); + CEikLabel* textLabel; + for ( TInt i=0; i < nbrOfInfoLines; i++ ) + { + textLabel = iText; + TPtrC ptrText = ( *textLabel->Text() ); + minWidth = Max( textLabel->CalcMinimumSize( ptrText ).iWidth, minWidth ); + } + } + if(iLinkText) + { + TInt tempWidth = iFont->TextWidthInPixels( *( iLinkText ) ); + minWidth = Max( minWidth, tempWidth ); + } + TInt rectWidth = 0; + + TAknWindowComponentLayout infoPaneLayout = + AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant ); + + TRect rectPopUpWindow = PopUpWindowRectFromLayout( + AknLayoutScalable_Avkon::popup_battery_window( iVariant ) ); + + TRect rectInfoPane = RectFromLayout( rectPopUpWindow, infoPaneLayout ); + + rectWidth = Max( rectInfoPane.Width(), minWidth ); + + TInt rectHeight = rectInfoPane.Height(); + + return TSize( rectWidth, rectHeight ); + } + + +// ----------------------------------------------------------------------------- +// From class CCoeControl. +// CBatteryPopupControl::SizeChanged +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::SizeChanged() + { + FUNC_LOG + // Get popup window rect + TRect rectPopUpWindow = PopUpWindowRectFromLayout( + AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant ) ); + + // Get pane icon and text layouts + TAknWindowLineLayout paneIconLayout( + AknLayoutScalable_Avkon::popup_battery_window_g1(iVariant)); + + //Set icon and text rects + if( iIcon ) + { + iBitmapLayout.LayoutRect( rectPopUpWindow, paneIconLayout ); + } + + if( iText ) + { + TAknTextComponentLayout textLayout = + AknLayoutScalable_Avkon::popup_battery_window_t1( iVariant ); + + AknLayoutUtils::LayoutLabel(iText, rectPopUpWindow, textLayout); + + } + + // Set link text rect + if( iLinkText ) + { + TAknLayoutText linkLayoutText; + // popup_battery_window_t2 doesn't have other variants as EVariantIconTextLink + linkLayoutText.LayoutText( rectPopUpWindow, + AknLayoutScalable_Avkon::popup_battery_window_t2( EVariantIconTextLink ) ); + + iAlign = linkLayoutText.Align(); + + iFont = linkLayoutText.Font(); + + TInt tempWidth = iFont->TextWidthInPixels( *(iLinkText) ); + TRect tempRect; + + if( iText ) + { + tempRect = TRect( linkLayoutText.TextRect() ); + } + else + { + TAknLayoutRect linkLayout; + + linkLayout.LayoutRect( rectPopUpWindow, paneIconLayout ); + + tempRect = TRect( linkLayout.Rect() ); + } + + if( iAlign == CGraphicsContext::ERight ) + { + tempRect.iTl.iX = tempWidth - tempRect.iBr.iX; + } + else + { + tempRect.SetWidth( tempWidth ); + } + + + iLinkRect = tempRect; + } + } + +// ----------------------------------------------------------------------------- +// RectFromLayout +// ----------------------------------------------------------------------------- +// +TRect CBatteryPopupControl::RectFromLayout( const TRect& aParent, + const TAknWindowComponentLayout& aComponentLayout ) const + { + TAknWindowLineLayout lineLayout = aComponentLayout.LayoutLine(); + TAknLayoutRect layoutRect; + layoutRect.LayoutRect( aParent, lineLayout ); + return layoutRect.Rect(); + } + +// ----------------------------------------------------------------------------- +// PopUpWindowRectFromLayout +// ----------------------------------------------------------------------------- +// +TRect CBatteryPopupControl::PopUpWindowRectFromLayout( const + TAknWindowComponentLayout& aComponentLayout ) const + { + FUNC_LOG + // get popup window width from the widest variety + TAknWindowLineLayout lineLayout = aComponentLayout.LayoutLine(); + + lineLayout.iW = AknLayoutScalable_Avkon:: + popup_battery_window( iVariant ).LayoutLine().iW; + TAknLayoutRect layoutRect; + layoutRect.LayoutRect( iAvkonAppUi->ApplicationRect(), lineLayout ); + + return layoutRect.Rect(); + } + +// ----------------------------------------------------------------------------- +// From class CCoeControl +// CBatteryPopupControl::HandlePointerEventL +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::HandlePointerEventL( + const TPointerEvent& aPointerEvent ) + { + FUNC_LOG + if(iLinkText) + { + if ( iLinkRect.Contains( aPointerEvent.iPosition ) ) + { + if ( !iHighlightedItem ) + { + iHighlightedItem = ETrue; + DrawNow( iLinkRect ); + } +#ifdef RD_TACTILE_FEEDBACK + if ( aPointerEvent.iType == TPointerEvent::EButton1Down ) + { + MTouchFeedback* feedback = MTouchFeedback::Instance(); + + if ( feedback ) + { + feedback->InstantFeedback( ETouchFeedbackBasic ); + } + } +#endif // RD_TACTILE_FEEDBACK + // Nofity command observer + if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) + { + iCommandObserver->ProcessCommandL( ELinkFirst ); + iHighlightedItem = EFalse; + } + } + else + { + if ( iHighlightedItem ) + { + iHighlightedItem = EFalse; + DrawNow( iLinkRect ); + } + } + } + } +// ----------------------------------------------------------------------------- +// CBatteryPopupControl::CreateIconL() +// +// +// ----------------------------------------------------------------------------- +// +void CBatteryPopupControl::CreateIconL( ) + { + FUNC_LOG + + TParse* fp = new( ELeave ) TParse(); + CleanupStack::PushL( fp ); + _LIT( KBIPPluginIconDirAndName, "z:\\resource\\apps\\batterypopupcontrol.mif"); + fp->Set( KBIPPluginIconDirAndName, &KDC_BITMAP_DIR, NULL ); + + delete iIcon; + iIcon = NULL; + + iIcon = AknsUtils::CreateGulIconL( AknsUtils::SkinInstance(), + KAknsIIDQgnPropBatteryIcon, + fp->FullName(), + EMbmBatterypopupcontrolQgn_prop_battery_ps_deactivate, + EMbmBatterypopupcontrolQgn_prop_battery_ps_deactivate_mask ); + + CleanupStack::PopAndDestroy( fp ); + } +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/bsutil/group/BSUtil.mmp --- a/coreapplicationuis/powersaveutilities/bsutil/group/BSUtil.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -/* -* Copyright (c) 2007 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: Project definition file for project BSUtil -* -*/ - - -#include - -TARGET bsutil.dll -TARGETTYPE dll - -UID 0x1000008D 0x2000B5E2 - -VENDORID VID_DEFAULT - -CAPABILITY CAP_GENERAL_DLL - -#if defined( ARMCC ) - deffile ../../EABI/BSUtil.DEF -#elif defined( WINSCW ) - deffile ../../BWINS/BSUtil.DEF -#endif - -SOURCEPATH ../src -SOURCE bsutil.cpp - -USERINCLUDE ../inc - -MW_LAYER_SYSTEMINCLUDE - -LIBRARY euser.lib -LIBRARY centralrepository.lib - -LANG SC diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/bsutil/group/bld.inf --- a/coreapplicationuis/powersaveutilities/bsutil/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -/* -* Copyright (c) 2009-2010 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: Battery state utility build file. -* -*/ - - -#include - -PRJ_PLATFORMS -DEFAULT - -PRJ_EXPORTS - -../inc/bsutil.h |../../../inc/bsutil.h -../rom/powersaveutilities.iby CORE_MW_LAYER_IBY_EXPORT_PATH(powersaveutilities.iby) - - -PRJ_MMPFILES -BSUtil.mmp - -PRJ_EXTENSIONS - - - -// End of File \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/bsutil/inc/trace.h --- a/coreapplicationuis/powersaveutilities/bsutil/inc/trace.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/powersaveutilities/bsutil/inc/trace.h Wed Sep 01 12:24:48 2010 +0100 @@ -51,7 +51,8 @@ /** * Prefix macro for strings */ -#define _PREFIX_CHAR( aMsg ) (const char*)"[BSUtil]: " ##aMsg +#define _PREFIX_CHAR( aMsg ) (const char*)"[BSUtil]: " aMsg + /** * Define needed directories if TRACE_INTO_FILE macro in use diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/bsutil/rom/powersaveutilities.iby --- a/coreapplicationuis/powersaveutilities/bsutil/rom/powersaveutilities.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -/* -* Copyright (c) 2010 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: -* -* -* -*/ - - -#ifndef __POWERSAVEUTILITIES_IBY__ -#define __POWERSAVEUTILITIES_IBY__ - -file=ABI_DIR\BUILD_DIR\BSUtil.dll SHARED_LIB_DIR\BSUtil.dll - -#endif // __POWERSAVEUTILITIES_IBY__ - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/conf/powersaveutilities.confml Binary file coreapplicationuis/powersaveutilities/conf/powersaveutilities.confml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/conf/powersaveutilities_2000B5E3.crml Binary file coreapplicationuis/powersaveutilities/conf/powersaveutilities_2000B5E3.crml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/conf/powersaveutilities_2001011A.crml Binary file coreapplicationuis/powersaveutilities/conf/powersaveutilities_2001011A.crml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/cppsmplugin.pro --- a/coreapplicationuis/powersaveutilities/cppsmplugin/cppsmplugin.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -# -# Copyright (c) 2010 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: Project file for the RFS Plugin. It creates the bld.inf and .mmp file on executing -# qmake command. -# -# - -TEMPLATE = lib -TARGET = cppsmplugin -DEPENDPATH += . inc src -INCLUDEPATH += . -INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - -CONFIG += hb\ - plugin - -MOC_DIR = moc -OBJECTS_DIR = obj -RCC_DIR = rcc - -# Platforms -SYMBIAN_PLATFORMS = WINSCW \ - ARMV5 - -LIBS += -lcpframework -lpsmclient -lcentralrepository -lcenrepnotifhandler -HEADERS += src/cppsmplugin.h \ - src/cppsmview.h - -SOURCES += src/cppsmplugin.cpp \ - src/cppsmview.cpp - -symbian: { - TARGET.EPOCALLOWDLLDATA = 1 - DEFINES += PLUGINUID3=0x2000E51E - TARGET.UID3 = 0x2000E51E -} - -symbian { - deploy.path = C: - qtplugins.path = /resource/qt/plugins/controlpanel - qtplugins.sources += qmakepluginstubs/cppsmplugin.qtplugin - # This is for new exporting system coming in garden - for(qtplugin, qtplugins.sources):BLD_INF_RULES.prj_exports += "./$$qtplugin $$deploy.path$$qtplugins.path/$$basename(qtplugin)" -} -# common translation file for all plugins -TRANSLATIONS = powermanagement.ts - -# Build.inf rules -BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \ - "rom/cppsmplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(cppsmplugin.iby)" \ - ".\rom\cppsmplugin_resources.iby LANGUAGE_APP_LAYER_IBY_EXPORT_PATH(cppsmplugin_resources.iby)" -TARGET.CAPABILITY = All -TCB -plugin.sources = cppsmplugin.dll -plugin.path = \resource\qt\plugins\controlpanel -DEPLOYMENT += plugin diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/rom/cppsmplugin.iby --- a/coreapplicationuis/powersaveutilities/cppsmplugin/rom/cppsmplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2010 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 __CPPSMPLUGIN_IBY__ -#define __CPPSMPLUGIN_IBY__ - -#include -file=ABI_DIR\BUILD_DIR\cppsmplugin.dll SHARED_LIB_DIR\cppsmplugin.dll -//data=\epoc32\release\winscw\udeb\z\resource\qt\translations\powermanagement_en.qm resource\qt\translations\powermanagement_en.qm -data=\epoc32\data\c\resource\qt\plugins\controlpanel\cppsmplugin.qtplugin resource\qt\plugins\controlpanel\cppsmplugin.qtplugin - -#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/rom/cppsmplugin_resources.iby --- a/coreapplicationuis/powersaveutilities/cppsmplugin/rom/cppsmplugin_resources.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2010 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 __CPPSMPLUGIN_RESOURCES_IBY__ -#define __CPPSMPLUGIN_RESOURCES_IBY__ - -//this iby is required for language specific things to be exported to Language iby layer -#include - -data=DATAZ_\QT_TRANSLATIONS_DIR\powermanagement.qm QT_TRANSLATIONS_DIR\powermanagement.qm - - -#endif //__CPPSMPLUGIN_RESOURCES_IBY__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmplugin.cpp --- a/coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2010 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 "cppsmplugin.h" -#include "cppsmview.h" -#include -#include - - -CpPsmPlugin::CpPsmPlugin() -{ - RDebug::Print( _L("CpPsmPlugin::constructor:Begin") ); - iTrans=new HbTranslator("powermanagement"); - RDebug::Print( _L("CpPsmPlugin::constructor:end") ); -} - -CpPsmPlugin::~CpPsmPlugin() -{ - RDebug::Print( _L("CpPsmPlugin::destructor:Begin") ); - delete iTrans; - RDebug::Print( _L("CpPsmPlugin::destructor:end")); -} -QList CpPsmPlugin::createSettingFormItemData(CpItemDataHelper &itemDataHelper) const -{ - //QList is represented as an array of pointers to items of type T,here T is CpSettingFormItemData - //and here the << function is used which appends object to the list - RDebug::Print( _L("CpPsmPlugin::createSettingFormItemData:Begin") ); - return QList() - << new CpSettingFormEntryItemDataImpl( - itemDataHelper, - hbTrId("txt_power_management_subhead_power_management"), - hbTrId("txt_power_list_power_save_mode"), - QString("qtg_large_power_management")); - -} - -CpBaseSettingView *CpPsmPlugin::createSettingView(const QVariant &hint) const -{ - RDebug::Print( _L("CpPsmPlugin::createSettingView:Begin") ); - if (hint.toString().compare("psm_view",Qt::CaseInsensitive) == 0) { - return new CpPsmView; - } - RDebug::Print( _L("CpPsmPlugin::createSettingView:end") ); - return 0; -} - -Q_EXPORT_PLUGIN2(cppsmplugin, CpPsmPlugin); diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmplugin.h --- a/coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmplugin.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2010 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 CPPSMPLUGIN_H -#define CPPSMPLUGIN_H - -#include -#include -#include -#include - -class CpBaseSettingView; -class QVariant; - -class CpPsmPlugin : public QObject, public CpPluginInterface,public CpLauncherInterface -{ - Q_OBJECT - Q_INTERFACES(CpPluginInterface) - Q_INTERFACES(CpLauncherInterface) -public: - CpPsmPlugin(); - virtual ~CpPsmPlugin(); - //from CpPluginInterface - virtual QList createSettingFormItemData(CpItemDataHelper &itemDataHelper) const; - //from CpLauncherInterface - virtual CpBaseSettingView *createSettingView(const QVariant &hint) const; -private: - HbTranslator* iTrans; -}; - -#endif //CPPSMPLUGIN_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.cpp --- a/coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,204 +0,0 @@ -/* - * Copyright (c) 2010 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 "cppsmview.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -CpPsmView::CpPsmView(QGraphicsItem *parent) : - CpBaseSettingView(0,parent),iCheckBoxItem(0),iTrans(new HbTranslator("powermanagement")) -{ - RDebug::Print( _L("CpPsmView::CpPsmView:Begin") ); - iForm = new HbDataForm(); - iModel = new HbDataFormModel(); - iForm->setHeading(hbTrId("txt_power_management_subhead_power_management")); - //our view has 3 items first one being toggle button for enabling and disabling PSM - iPowerSaveMode = iModel->appendDataFormItem(HbDataFormModelItem::ToggleValueItem, - hbTrId("txt_power_list_power_save_mode")); - iPsmClient = CPsmClient::NewL( *this ); - iPsmClient->RequestPowerSaveModeNotification(); - TInt mode; - TInt err = iPsmClient->PsmSettings().GetCurrentMode( mode ); - //setting of toggle value to on or off depends on the current mode - if( mode == EPsmsrvModePowerSave ) - { - iPowerSaveMode->setContentWidgetData(QString("text"), hbTrId("txt_power_setlabel_val_off")); - } - else - { - iPowerSaveMode->setContentWidgetData(QString("text"), hbTrId("txt_power_setlabel_val_on")); - } - - iForm->addConnection(iPowerSaveMode,SIGNAL(clicked()), this,SLOT(toggleChange())); - - RDebug::Print( _L("CpPsmView::toggle button added") ); - //this is the second item which is a text item which is readonly and describes what PSM does - HbDataFormModelItem *dataItem2 = iModel->appendDataFormItem(HbDataFormModelItem::TextItem); - //setting the maxrows property of hblineedit - dataItem2->setContentWidgetData("maxRows",11); - //setting the text property of hblineedit - dataItem2->setContentWidgetData("text",hbTrId("txt_power_list_activating_power_save_mode_will_con")); - dataItem2->setContentWidgetData("readOnly" , true); - RDebug::Print( _L("CpPsmView::text item added") ); - - //now the third item which is checkbox item for enabling psm automatically when low power - iCheckBoxItem = iModel->appendDataFormItem( - HbDataFormModelItem::CheckBoxItem); - //setting the text property of check box. - iCheckBoxItem->setContentWidgetData("text",hbTrId("txt_power_list_activate_power_save_mode_automatica")); - RDebug::Print( _L("CpPsmView::check box added") ); - - CRepository* repository( NULL ); - TRAPD(err1,repository =CRepository::NewL(KCRUidDeviceManagementSettings)); - TInt value; - err1 = repository->Get( KSettingsPowerSavingQuery, value ); - - if ( err1 == KErrNone ) - { - //checkbox state is initialised based on cenrep key and default value of the key is 1 (meaning unchecked) - if(value==0) - { - RDebug::Print( _L("CpPsmView::checkbox state is checked ") ); - iCheckBoxItem->setContentWidgetData("checkState",2); - } - } - delete repository; - iForm->addConnection(iCheckBoxItem,SIGNAL(stateChanged(int)),this,SLOT(checkBoxStateChanged(int))); - - - err = iPsmClient->PsmSettings().GetCurrentMode( mode ); - - if ( err == KErrNone && mode == EPsmsrvModePowerSave ) - { - //if device is in powersavemode then disable the checkbox - RDebug::Print( _L("CpPsmView::checkbox disabled ") ); - iCheckBoxItem->setEnabled(0); - } - - iForm->setModel(iModel); - setWidget(iForm); - RDebug::Print( _L("CpPsmView::end ")); -} - -CpPsmView::~CpPsmView() -{ -RDebug::Print( _L("CpPsmView::destructor begin ") ); -delete iTrans; -delete iPsmClient; -RDebug::Print( _L("CpPsmView::destructor end ") ); -} - - -void CpPsmView::checkBoxStateChanged(int state) -{ - // store your changes - //state=1 means ->"checked" else it is "un-checked" - RDebug::Print( _L("CpPsmView::checkBoxStateChanged begin ") ); - CRepository* repository( NULL ); - - TRAPD( err, repository = CRepository::NewL( KCRUidDeviceManagementSettings ) ); - - if ( err == KErrNone ) - { - TInt value( 0 ); - //default value of the key is 1 meaning unchecked,so if the checkbox is checked then state=1 so key is set to 0 - if(state) - { - err = repository->Set( KSettingsPowerSavingQuery, value ); - RDebug::Print( _L("CpPsmView::checkBoxStateChanged checked ") ); - } - else - { - err = repository->Set( KSettingsPowerSavingQuery, 1 ); - RDebug::Print( _L("CpPsmView::checkBoxStateChanged unchecked ") ); - } - } - - delete repository; - RDebug::Print( _L("CpPsmView::checkBoxStateChanged end ") ); - -} - -void CpPsmView::toggleChange() - { - // iPsmClient = CPsmClient::NewL( *this ); - RDebug::Print( _L("CpPsmView::toggleChange begin ") ); - TInt mode; - TInt err = iPsmClient->PsmSettings().GetCurrentMode( mode ); - - if ( err == KErrNone ) - { - if( mode == EPsmsrvModeNormal || mode == EPsmsrvPartialMode ) - { - iPsmClient->CancelPowerSaveModeNotificationRequest(); - iPsmClient->ChangePowerSaveMode( EPsmsrvModePowerSave ); - // powerSaveMode->setContentWidgetData(QString("additionalText"), QString("off")); - RDebug::Print( _L("CpPsmView::toggleChange psm on ") ); - } - else - { - iPsmClient->CancelPowerSaveModeNotificationRequest(); - iPsmClient->ChangePowerSaveMode( EPsmsrvModeNormal ); - // powerSaveMode->setContentWidgetData(QString("text"), QString("on")); - RDebug::Print( _L("CpPsmView::toggleChange psm off ") ); - } - } - RDebug::Print( _L("CpPsmView::toggleChange end ") ); - } - - -void CpPsmView::PowerSaveModeChanged( const TPsmsrvMode aMode ) - { - RDebug::Print( _L("CpPsmView::PowerSaveModeChanged begin ") ); - iPsmClient->RequestPowerSaveModeNotification(); - if( aMode == EPsmsrvModePowerSave ) - { - //device in psm mode so disable checkbox and set the value of toggle button to off - iCheckBoxItem->setEnabled(0); - iPowerSaveMode->setContentWidgetData(QString("text"), hbTrId("txt_power_setlabel_val_off")); - RDebug::Print( _L("CpPsmView::PowerSaveModeChanged powersavemode enabled ") ); - } - else - { - //device is in normal mode so enable checkbox and set the value of toggle button to on - iCheckBoxItem->setEnabled(1); - iPowerSaveMode->setContentWidgetData(QString("text"), hbTrId("txt_power_setlabel_val_on")); - RDebug::Print( _L("CpPsmView::PowerSaveModeChanged powersavemode disabled ") ); - } - RDebug::Print( _L("CpPsmView::PowerSaveModeChanged end ") ); - } - - -void CpPsmView::PowerSaveModeChangeError( const TInt aError ) - { - RDebug::Print( _L("CpPsmView::PowerSaveModeChangeError ") ); - } - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.h --- a/coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmview.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2010 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 CPPSMVIEW_H -#define CPPSMVIEW_H - -#include -#include -#include -#include -#include // CPsmClient -#include - -class HbDataFormModel; -class HbDataFormModelItem; -class CpSettingFormItemData; -class CPsmClient; - - -class CpPsmView : public CpBaseSettingView,public MPsmClientObserver -{ - Q_OBJECT -public: - explicit CpPsmView(QGraphicsItem *parent = 0); - virtual ~CpPsmView(); - - void PowerSaveModeChanged( const TPsmsrvMode aMode ); - - /** - * @see MPsmClientObserver - */ - void PowerSaveModeChangeError( const TInt aError ); - -private slots: - //need handling your member's value change - void checkBoxStateChanged(int state); - void toggleChange(); -private: - HbDataForm *iForm; - HbDataFormModel *iModel ; - HbDataFormModelItem *iCheckBoxItem; - CPsmClient* iPsmClient; - HbDataFormModelItem *iPowerSaveMode; - HbTranslator *iTrans; - -}; -#endif// CPPSMVIEW_H diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/data/2000E51E.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/data/2000E51E.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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: This file contains all the resources to launch battery indicator plugin +* +*/ + + +#include + +RESOURCE REGISTRY_INFO theInfo + { + dll_uid = 0x2000E51E; + interfaces = + { + INTERFACE_INFO + { + interface_uid = 0x10275092; + implementations = + { + IMPLEMENTATION_INFO + { + implementation_uid = 0x2000E51D; + version_no = 1; + display_name = ""; + default_data = "Default"; + opaque_data = ""; + } + }; + } + }; + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/data/batindpaneplugin.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/data/batindpaneplugin.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2007-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: Resource definitions for battery indicator pane plugin +* +*/ + + +// RESOURCE IDENTIFIER +NAME BIPP + +#include +#include + + +RESOURCE RSS_SIGNATURE { } + +RESOURCE TBUF r_qtn_deactivate_power_saving +{ +buf = qtn_battery_link_deactivate_power_saving; +} + +RESOURCE TBUF r_qtn_activate_power_saving +{ +buf = qtn_battery_link_activate_power_saving; +} + +RESOURCE TBUF r_qtn_battery_low_preview_popup +{ +buf = qtn_battery_low_preview_popup; +} + +RESOURCE TBUF r_qtn_battery_status_popup +{ +buf = qtn_battery_status_popup; +} diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/group/BSUtil.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/group/BSUtil.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2007 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: Project definition file for project BSUtil +* +*/ + + +#include + +TARGET BSUtil.dll +TARGETTYPE dll + +UID 0x1000008D 0x2000B5E2 + +VENDORID VID_DEFAULT + +CAPABILITY CAP_GENERAL_DLL + +#if defined( ARMCC ) + deffile ../EABI/BSUtil.DEF +#elif defined( WINSCW ) + deffile ../BWINS/BSUtil.DEF +#endif + +SOURCEPATH ../bsutil/src +SOURCE bsutil.cpp + +USERINCLUDE ../bsutil/inc + +MW_LAYER_SYSTEMINCLUDE + +LIBRARY euser.lib +LIBRARY centralrepository.lib + +LANG SC diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/group/batindicatorpaneplugin.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/group/batindicatorpaneplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2007 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: This is project specification file for handling +* UIP taps in BatIndicatorPanePlugin +* +*/ + + +CAPABILITY CAP_ECOM_PLUGIN + +#include +#include + +// Build target +TARGET batindicatorpaneplugin.dll +TARGETTYPE PLUGIN +UID 0x10009D8D 0x2000E51E +VENDORID VID_DEFAULT + + +// Source files location +SOURCEPATH ../batindicatorpaneplugin/src +SOURCE batindicatorpanepluginimpl.cpp +SOURCE dllmain.cpp + + +// Resources +START RESOURCE ../../data/2000E51E.rss +TARGET batindicatorpaneplugin.rsc +TARGETPATH ECOM_RESOURCE_DIR +END + +START RESOURCE ../../data/batindpaneplugin.rss +TARGETPATH ECOM_RESOURCE_DIR +HEADER +LANGUAGE_IDS +END + + +// Include paths +USERINCLUDE ../batindicatorpaneplugin/inc +USERINCLUDE ../../inc + +MW_LAYER_SYSTEMINCLUDE +SYSTEMINCLUDE /epoc32/include/ecom + +// Dependencies to system components +LIBRARY eikcore.lib +LIBRARY cone.lib +LIBRARY euser.lib +LIBRARY ecom.lib +LIBRARY avkon.lib +LIBRARY commonengine.lib // stringloader +LIBRARY efsrv.lib // TParsePtrC +LIBRARY flogger.lib +LIBRARY psmclient.lib +LIBRARY BSUtil.lib +LIBRARY batterypopupcontrol.lib +LIBRARY centralrepository.lib +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/group/batterypopupcontrol.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/group/batterypopupcontrol.mmp Wed Sep 01 12:24:48 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: This is project specification file for handling UIP taps +* in BatteryPopupControl +* +*/ + + +#include + +// Build target +TARGET batterypopupcontrol.dll +TARGETTYPE dll +UID 0x10009D8D 0x2000F85F +VENDORID VID_DEFAULT +CAPABILITY CAP_GENERAL_DLL + +// Source files location +SOURCEPATH ../batterypopupcontrol/src +SOURCE batterypopupcontrol.cpp + +// Include paths +USERINCLUDE ../batterypopupcontrol/inc + +MW_LAYER_SYSTEMINCLUDE + +// Dependencies to system components +LIBRARY cone.lib +LIBRARY euser.lib +LIBRARY avkon.lib +LIBRARY efsrv.lib // TParsePtrC +LIBRARY flogger.lib +LIBRARY eikcoctl.lib +LIBRARY AknLayout2.lib +LIBRARY AknLayout2Scalable.lib +LIBRARY CdlEngine.lib +LIBRARY AknSkins.lib // Skins support +LIBRARY gdi.lib +LIBRARY AknIcon.lib +LIBRARY egul.lib +LIBRARY FontProvider.lib +LIBRARY FontUtils.lib +#ifndef AVKON_BATTERYPOPUP_LAYOUTS +LIBRARY aknnotify.lib +#endif //AVKON_BATTERYPOPUP_LAYOUTS +// ----------- Touch feedback additions start +#ifdef RD_TACTILE_FEEDBACK +LIBRARY touchfeedback.lib +#endif //RD_TACTILE_FEEDBACK + +// End of File + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/group/batterypopupcontrol_icons.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/group/batterypopupcontrol_icons.mk Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,73 @@ +# +# Copyright (c) 2007 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: +# +# + + +ifeq (WINS,$(findstring WINS, $(PLATFORM))) +ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\z +else +ZDIR=\epoc32\data\z +endif + +# ---------------------------------------------------------------------------- +# Configure these +# ---------------------------------------------------------------------------- + +TARGETDIR=$(ZDIR)\resource\apps +HEADERDIR=\epoc32\include +ICONTARGETFILENAME=$(TARGETDIR)\batterypopupcontrol.mif +HEADERFILENAME=$(HEADERDIR)\batterypopupcontrol.mbg + +do_nothing : + @rem do_nothing + +MAKMAKE : do_nothing + +BLD : do_nothing + +CLEAN : do_nothing + +LIB : do_nothing + +CLEANLIB : do_nothing + +# ---------------------------------------------------------------------------- +# Configure these. +# +# NOTE 1: DO NOT DEFINE MASK FILE NAMES! They are included automatically by +# MifConv if the mask detph is defined. +# +# NOTE 2: Usually, source paths should not be included in the bitmap +# definitions. MifConv searches for the icons in all icon directories in a +# predefined order, which is currently \s60\icons, \s60\bitmaps2. +# The directory \s60\icons is included in the search only if the feature flag +# __SCALABLE_ICONS is defined. +# ---------------------------------------------------------------------------- + +#ENABLE ANIMATION: Add background bitmap and animation frames here +RESOURCE : + mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \ + /c8,8 qgn_prop_battery_ps_deactivate.svg + +FREEZE : do_nothing + +SAVESPACE : do_nothing + +RELEASABLES : + @echo $(HEADERFILENAME)&& \ + @echo $(ICONTARGETFILENAME) + +FINAL : do_nothing diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2009-2010 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: Battery state utility build file. +* +*/ + + +#include + +PRJ_PLATFORMS +DEFAULT + +PRJ_EXPORTS +//Configuration tool migration +../conf/powersaveutilities.confml MW_LAYER_CONFML(powersaveutilities.confml) +../conf/powersaveutilities_2000B5E3.crml MW_LAYER_CRML(powersaveutilities_2000B5E3.crml) +../conf/powersaveutilities_2001011A.crml MW_LAYER_CRML(powersaveutilities_2001011A.crml) + +../rom/powersaveutilities.iby CORE_MW_LAYER_IBY_EXPORT_PATH(powersaveutilities.iby) +../rom/powersaveutilitiesresources.iby LANGUAGE_MW_LAYER_IBY_EXPORT_PATH(powersaveutilitiesresources.iby) +../bsutil/inc/bsutil.h |../../inc/bsutil.h + +// batterypopupcontrol +../batterypopupcontrol/inc/batterypopupcontrol.h |../../inc/batterypopupcontrol.h + +// batindicatorpaneplugin +../loc/batindicatorpaneplugin.loc MW_LAYER_LOC_EXPORT_PATH(batindicatorpaneplugin.loc) + +PRJ_MMPFILES +BSUtil.mmp +batterypopupcontrol.mmp +batindicatorpaneplugin.mmp + +PRJ_EXTENSIONS + +START EXTENSION s60/mifconv +OPTION TARGETFILE batterypopupcontrol.mif +OPTION HEADERFILE batterypopupcontrol.mbg +OPTION SOURCES -c8,8 qgn_prop_battery_ps_deactivate +END + +// End of File \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/loc/batindicatorpaneplugin.loc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/loc/batindicatorpaneplugin.loc Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2007-2010 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: Localisation file for BatIndicatorPanePlugin plug-in +* +*/ + + +// LOCALISATION STRINGS + + +// ---[ touch support: strings for preview popup ]--- + + +// d: Link Label for a preview popup. +// d: Popup is shown when user taps the battery indicator from status pane popup. +// l: popup_battery_window_t2/opt1 +// r:5.0 +// +#define qtn_battery_link_deactivate_power_saving "Deactivate power saving" + +// d: Link Label for a preview popup. +// d: Popup is shown when user taps the battery indicator from status pane popup. +// l: popup_battery_window_t2/opt1 +// r:5.0 +// +#define qtn_battery_link_activate_power_saving "Activate power saving" + +// d: Label for a preview popup. +// d: Popup is shown when user taps the battery indicator from status pane popup. +// d: If battery status is low, "Battery low" is shown instead of battery capacity +// l: popup_battery_window_t1/opt1 +// r:5.0 +// +#define qtn_battery_low_preview_popup "Battery low" + +// d: Label for a preview popup. +// d: Popup is shown when user taps the battery indicator from status pane popup. +// d: %N is the battery capacity in percents. +// l: popup_battery_window_t1 +// r:5.0 +// +#define qtn_battery_status_popup "%N %" + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/pluginlauncher/pluginlauncher.pro --- a/coreapplicationuis/powersaveutilities/pluginlauncher/pluginlauncher.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -# -# Copyright (c) 2010 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: cpframework source files -# - -TEMPLATE = app -TARGET = CpPsmPluginLauncher -DEPENDPATH += . -INCLUDEPATH += . - -HEADERS += src/*.h -SOURCES += src/*.cpp - -CONFIG += hb -CONFIG += no_icon - -MOC_DIR = moc -OBJECT_DIR = obj -RCC_DIR = rcc - -symbian: { - TARGET.UID3 = 0x2002DD0C - INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - TARGET.CAPABILITY = ReadDeviceData WriteDeviceData - TARGET.EPOCALLOWDLLDATA = 1 -} - -LIBS += -lcpframework -BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \ - "rom/pluginlauncher.iby CORE_MW_LAYER_IBY_EXPORT_PATH(pluginlauncher.iby)" \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/pluginlauncher/rom/pluginlauncher.iby --- a/coreapplicationuis/powersaveutilities/pluginlauncher/rom/pluginlauncher.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ - -/* -* Copyright (c) 2010 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: -* -*/ - -file=ABI_DIR\BUILD_DIR\CpPsmPluginLauncher.exe \sys\bin\CpPsmPluginLauncher.exe -CP_UPGRADABLE_APP_REG_RSC(CpPsmPluginLauncher) -S60_APP_RESOURCE(CpPsmPluginLauncher) - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/pluginlauncher/src/main.cpp --- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/main.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -/* -* Copyright (c) 2010 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 "mainview.h" -#include - -int main(int argc, char **argv) -{ - RDebug::Print( _L("plugin launcher main begin ") ); - HbApplication app(argc, argv); - - HbMainWindow mainWindow; - MainView *mainView = new MainView(); - mainWindow.addView(mainView); - mainWindow.show(); - RDebug::Print( _L("plugin launcher main end") ); - return app.exec(); -} - -//End of File - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.cpp --- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -/* -* Copyright (c) 2010 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 "mainview.h" -#include -#include -#include -#include -#include -#include -#include -#include - - -MainView::MainView(QGraphicsItem *parent/* = 0*/) -: HbView(parent) -{ - RDebug::Print( _L("plugin launcher MainView begin ") ); - init(); - RDebug::Print( _L("plugin launcher MainView end ") ); -} - -MainView::~MainView() -{ -RDebug::Print( _L("plugin launcher MainView desructor ") ); -} - -void MainView::init() -{ - RDebug::Print( _L("plugin launcher MainView init begin ") ); - launchInProcessProfileView(); - RDebug::Print( _L("plugin launcher MainView init end ") ) ; -} - -void MainView::launchInProcessProfileView() -{ - RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView begin ") ); - //static function which launches the psmplugin view - CpPluginLauncher::launchSettingView("C:/resource/qt/plugins/controlpanel/cppsmplugin.dll","psm_view"); - RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView end ")); -} - - - -//End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.h --- a/coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -/* -* Copyright (c) 2010 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 MAINVIEW_H -#define MAINVIEW_H - -#include - -class MainView : public HbView -{ - Q_OBJECT -public: - explicit MainView(QGraphicsItem *parent = 0); - virtual ~MainView(); -private: - void init(); -private slots: - void launchInProcessProfileView(); -private: - Q_DISABLE_COPY(MainView) -}; - -#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/powersaveutilities.pro --- a/coreapplicationuis/powersaveutilities/powersaveutilities.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -# -# Copyright (c) 2010 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 - -symbian: { -:BLD_INF_RULES.prj_mmpfiles += $$LITERAL_HASH"include \"bsutil/group/bld.inf\"" -SUBDIRS = cppsmplugin \ - psmindicatorplugin \ - pluginlauncher - -} -CONFIG += ordered \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/psmindicatorplugin/inc/psmindicator.h --- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/inc/psmindicator.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2010 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: power save mode Indicator class - * - */ - -#ifndef PSMINDICATOR_H -#define PSMINDICATOR_H - -#include - -#include -#include - -#include -#include -#include - - -/** - * PSM indicator class. - * Handles client request and shows the indications. - */ -class PsmIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface -{ - Q_OBJECT - Q_INTERFACES(HbIndicatorPluginInterface) - -public: - - PsmIndicatorPlugin(); - ~PsmIndicatorPlugin(); -public: - //from HbindicatorInterface - bool handleInteraction(InteractionType type); - QVariant indicatorData(int role) const; - -public: - //from HbIndicatorPluginInterface - QStringList indicatorTypes() const; - bool accessAllowed(const QString &indicatorType,const QVariantMap & securityInfo) const; - HbIndicatorInterface* createIndicator(const QString &indicatorType); - int error() const; - - -protected: - //from HbindicatorInterface - bool handleClientRequest(RequestType type, const QVariant ¶meter); - - -private: - - QString iDisplayName; - QString iIcon; - QProcess iProcess; - QStringList iIndicatorTypes; - HbTranslator *iTrans; - - -private slots: - void processError(QProcess::ProcessError err); // handler for error codes - -private: - Q_DISABLE_COPY(PsmIndicatorPlugin) - int mError; - }; - -#endif // PSMINDICATOR_H - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/psmindicatorplugin/psmindicatorplugin.pro --- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/psmindicatorplugin.pro Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -# -# Copyright (c) 2010 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 = psmindicatorplugin -CONFIG += plugin -CONFIG += hb -INCLUDEPATH += . -DEPENDPATH += . -INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE - -# Input -HEADERS += inc/psmindicator.h -SOURCES += src/psmindicator.cpp -RESOURCES = -symbian { - TARGET.EPOCALLOWDLLDATA = 1 - TARGET.CAPABILITY = CAP_GENERAL_DLL - SYMBIAN_PLATFORMS = WINSCW ARMV5 - TARGET.UID3 = 0x2000F85F - pluginstub.sources = psmindicatorplugin.dll - pluginstub.path = /resource/plugins/indicators - DEPLOYMENT += pluginstub - LIBS += -lcpframework - -} -BLD_INF_RULES.prj_exports += "$${LITERAL_HASH}include " \ - "rom/psmindicatorplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(psmindicatorplugin.iby)" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/psmindicatorplugin/rom/psmindicatorplugin.iby --- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/rom/psmindicatorplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -/* -* Copyright (c) 2010 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. Y:\epoc32\s60\icons\qgn_note_batt_charging.svg -* -* Contributors: -* -* Description: -* -*/ -#ifndef __PSMINDICATORPLUGIN_IBY__ -#define __PSMINDICATORPLUGIN_IBY__ - -REM DLL -file=ABI_DIR\UREL\psmindicatorplugin.dll SHARED_LIB_DIR\psmindicatorplugin.dll -data=\epoc32\data\z\resource\plugins\indicators\psmindicatorplugin.qtplugin \resource\plugins\indicators\psmindicatorplugin.qtplugin - -#endif diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/psmindicatorplugin/src/psmindicator.cpp --- a/coreapplicationuis/powersaveutilities/psmindicatorplugin/src/psmindicator.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,224 +0,0 @@ -/* - * Copyright (c) 2010 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 "psmindicator.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - -Q_EXPORT_PLUGIN(PsmIndicatorPlugin) -const static char IndicatorType[] = "com.nokia.hb.powersavemodeplugin/1.0"; -QString KPsm = "PSM"; -QString KCharging = "Charging"; - -PsmIndicatorPlugin::PsmIndicatorPlugin():HbIndicatorInterface(IndicatorType,HbIndicatorInterface::NotificationCategory,InteractionActivated) - { - RDebug::Print( _L("PsmIndicatorPlugin constructor begin ") ); - iIndicatorTypes << "com.nokia.hb.powersavemodeplugin/1.0"; - RDebug::Print( _L("PsmIndicatorPlugin constructor end ") ); - } - -PsmIndicatorPlugin::~PsmIndicatorPlugin() - { - RDebug::Print( _L("PsmIndicatorPlugin destructor begin ") ); - } - -// ---------------------------------------------------------------------------- -// psmIndicatorPlugin::indicatorTypes -// returns the indicator types handled by this plugin -// ---------------------------------------------------------------------------- - -QStringList PsmIndicatorPlugin::indicatorTypes() const - { - RDebug::Print( _L("PsmIndicatorPlugin indicatortypes ")); - return iIndicatorTypes; - } - -// ---------------------------------------------------------------------------- -// psmIndicatorPlugin::createIndicator -// creates an indicator. -// ---------------------------------------------------------------------------- - -HbIndicatorInterface* PsmIndicatorPlugin::createIndicator( - const QString &indicatorType) - { - Q_UNUSED(indicatorType) - RDebug::Print( _L("PsmIndicatorPlugin createindicator ") ); - return this; - } - -// ---------------------------------------------------------------------------- -// psmIndicatorPlugin::error -// returns the error code. -// ---------------------------------------------------------------------------- - -int PsmIndicatorPlugin::error() const - { - RDebug::Print( _L("PsmIndicatorPlugin error ") ); - return mError; - } - -// ---------------------------------------------------------------------------- -// psmIndicatorPlugin::accessAllowed -// check for the access rights of the client. As there are no restrictions for -// this plugin it always returns true. -// ---------------------------------------------------------------------------- - -bool PsmIndicatorPlugin::accessAllowed(const QString &indicatorType, - const QVariantMap & securityInfo) const - { - Q_UNUSED(indicatorType) - Q_UNUSED(securityInfo) - - RDebug::Print( _L("PsmIndicatorPlugin accessallowed ") ); - return true; - } - -// ---------------------------------------------------------------------------- -// psmIndicator::handleInteraction -// called when the user interacts with the indicator.Enable the interaction -// for psm enabled and charger connected -// ---------------------------------------------------------------------------- -bool PsmIndicatorPlugin::handleInteraction(InteractionType type) - { - bool handled = false; - RDebug::Print( _L("PsmIndicatorPlugin handleinteraction begin ")); - if (type == InteractionActivated) - { - RDebug::Print( _L("PsmIndicatorPlugin handleinteraction inside interactionactivated ") ); - QObject::connect( &iProcess, SIGNAL(error(QProcess::ProcessError)), - this, SLOT(processError(QProcess::ProcessError))); - - // Launch the process to show the view. - iProcess.start("CpPsmPluginLauncher"); - handled = true; - - } - RDebug::Print( _L("PsmIndicatorPlugin handleinteraction end ") ); - return handled; - } - -// ---------------------------------------------------------------------------- -// psmIndicator::indicatorData -// returns the name and icon to be displayed in the universal indicator menu. -// ---------------------------------------------------------------------------- -QVariant PsmIndicatorPlugin::indicatorData(int role) const - { - RDebug::Print( _L("PsmIndicatorPlugin indicatordata begin ") ); - switch(role) - { - //for displaying the string in indicator. - case PrimaryTextRole: - { - return iDisplayName; - } - //for displaying the icon in indicator. - case DecorationNameRole: - { - return iIcon; - } - default: - return QVariant(); - } - } - -// ---------------------------------------------------------------------------- -// psmIndicatorPlugin::handleClientRequest -// this function gets called when client activates plugin -// ---------------------------------------------------------------------------- -bool PsmIndicatorPlugin::handleClientRequest( RequestType type, - const QVariant ¶meter) - { - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest begin ") ); - bool handled(false); - switch (type) - { - case RequestActivate: - { - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest requestactivate ") ); - // Get the param from the hbindicator.activate() which is called from sysap. - HbTranslator trans("powermanagement"); - iDisplayName.clear(); - //if it's a PSM indicator then prepare the string and icon accordingly - if((parameter.operator ==(QString("PSM")))) - { - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest requestactivate PSM ")); - iDisplayName.append(hbTrId("txt_power_management_dpopinfo_psm_activated_automa")); - iIcon.append(QString("qtg_large_psm")); - } - //else it's a charging indicator then prepare the string and icon accordingly - else - { - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest requestactivate charging ") ); - iDisplayName.append(hbTrId("txt_power_management_dblist_charging")); - iIcon.append(QString("qtg_mono_flash_charging")); - } - - - emit dataChanged(); - handled = true; - } - break; - case RequestDeactivate: - { - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest requestdeactivate ") ); - // reset data - iDisplayName = QString(); - iIcon=QString(); - - emit deactivate(); - } - break; - default: - break; - } - RDebug::Print( _L("PsmIndicatorPlugin handleclientrequest end ") ); - return handled; - } - - -// ---------------------------------------------------------------------------- -// psmIndicator::processError -// handle the error conditions returned by the QProcess. -// ---------------------------------------------------------------------------- - -void PsmIndicatorPlugin::processError(QProcess::ProcessError err) - { - RDebug::Print( _L("PsmIndicatorPlugin processerror begin ")); - switch (err) - { - case QProcess::FailedToStart: - case QProcess::Crashed: - case QProcess::Timedout: - case QProcess::ReadError: - case QProcess::WriteError: - case QProcess::UnknownError: - break; - default: - break; - } - } - - diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/rom/powersaveutilities.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/rom/powersaveutilities.iby Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2007-2010 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: powesaveutilities files needed to image +* +*/ + + +#ifndef __POWERSAVEUTILITIES_IBY__ +#define __POWERSAVEUTILITIES_IBY__ + +file=ABI_DIR\BUILD_DIR\BSUtil.dll SHARED_LIB_DIR\BSUtil.dll +file=ABI_DIR\BUILD_DIR\batterypopupcontrol.dll SHARED_LIB_DIR\batterypopupcontrol.dll + +//ECOM_PLUGIN_UDEB( batindicatorpaneplugin.dll, batindicatorpaneplugin.rsc ) +ECOM_PLUGIN( batindicatorpaneplugin.dll, batindicatorpaneplugin.rsc ) + +data=DATAZ_\ECOM_RESOURCE_DIR\batindicatorpaneplugin.rsc ECOM_RESOURCE_DIR\batindicatorpaneplugin.rsc +data=DATAZ_\APP_RESOURCE_DIR\batterypopupcontrol.mif APP_RESOURCE_DIR\batterypopupcontrol.mif + +#endif // __POWERSAVEUTILITIES_IBY__ + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/powersaveutilities/rom/powersaveutilitiesresources.iby --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/powersaveutilities/rom/powersaveutilitiesresources.iby Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2010 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: powesaveutilities resources +* +*/ + + +#ifndef __POWERSAVEUTILITIES_RESOURCES_IBY__ +#define __POWERSAVEUTILITIES_RESOURCES_IBY__ + +data=DATAZ_\ECOM_RESOURCE_DIR\batindpaneplugin.rsc ECOM_RESOURCE_DIR\batindpaneplugin.rsc + + +#endif // __POWERSAVEUTILITIES_RESOURCES_IBY__ + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/AIRFSPlugin/group/AIRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/AIRFSPlugin/group/AIRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/AIRFSPlugin/group/AIRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET airfsplugin.dll +TARGET AIRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BD.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET airfsplugin.rsc + TARGET AIRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/CertRFSPlugin/group/CertRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/CertRFSPlugin/group/CertRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/CertRFSPlugin/group/CertRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET certrfsplugin.dll +TARGET CertRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8B9.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET certrfsplugin.rsc + TARGET CertRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/ClockRFSPlugin/group/ClockRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/ClockRFSPlugin/group/ClockRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/ClockRFSPlugin/group/ClockRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET clockrfsplugin.dll +TARGET ClockRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BE.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET clockrfsplugin.rsc + TARGET ClockRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/DatastoreRFSPlugin/group/DatastoreRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/DatastoreRFSPlugin/group/DatastoreRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/DatastoreRFSPlugin/group/DatastoreRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET datastorerfsplugin.dll +TARGET DatastoreRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8C2.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET datastorerfsplugin.rsc + TARGET DatastoreRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/DefaultFolderRFSPlugin/group/DefaultFolderRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/DefaultFolderRFSPlugin/group/DefaultFolderRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/DefaultFolderRFSPlugin/group/DefaultFolderRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET defaultfolderrfsplugin.dll +TARGET DefaultFolderRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BA.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET defaultfolderrfsplugin.rsc + TARGET DefaultFolderRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/DisplayContrastPlugin/group/RfsDisplayContrastPlugin.mmp --- a/coreapplicationuis/rfsplugins/DisplayContrastPlugin/group/RfsDisplayContrastPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/DisplayContrastPlugin/group/RfsDisplayContrastPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET rfsdisplaycontrastplugin.dll +TARGET RfsDisplayContrastPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 102071F7.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET rfsdisplaycontrastplugin.rsc + TARGET RfsDisplayContrastPlugin.rsc #endif END @@ -44,5 +44,5 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library LIBRARY hal.lib // HAL library \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/cenrep/keys_favouritesplugin.xls Binary file coreapplicationuis/rfsplugins/FavouritesRFSPlugin/cenrep/keys_favouritesplugin.xls has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/conf/favouritesplugin.confml Binary file coreapplicationuis/rfsplugins/FavouritesRFSPlugin/conf/favouritesplugin.confml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/conf/favouritesplugin_2000F8EF.crml Binary file coreapplicationuis/rfsplugins/FavouritesRFSPlugin/conf/favouritesplugin_2000F8EF.crml has changed diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/group/FavouritesRFSPlugin.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/group/FavouritesRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2005 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 + +TARGET FavouritesRFSPlugin.dll + +TARGETTYPE PLUGIN + +CAPABILITY CAP_ECOM_PLUGIN +VENDORID VID_DEFAULT + +UID 0x10009D8D 0x102071F6 + +SOURCEPATH ../src +SOURCE FavouritesRFSPlugin.cpp +SOURCE Proxy.cpp + +START RESOURCE 102071F6.rss +#ifdef SYMBIAN_SECURE_ECOM + TARGET FavouritesRFSPlugin.rsc +#endif +END + +LANG SC + +USERINCLUDE ../inc + +MW_LAYER_SYSTEMINCLUDE + +LIBRARY euser.lib // Base library +LIBRARY ECom.lib // ECom library +LIBRARY FavouritesEngine.lib // Favourites engine library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2005 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: +* This file provides the information required for building RFS Favourites +* plugin +* +*/ + + +#include + +PRJ_PLATFORMS + +PRJ_MMPFILES + +../group/FavouritesRFSPlugin.mmp + +PRJ_EXPORTS +../conf/favouritesplugin.confml APP_LAYER_CONFML(favouritesplugin.confml) +../conf/favouritesplugin_2000F8EF.crml APP_LAYER_CRML(favouritesplugin_2000F8EF.crml) + +PRJ_TESTMMPFILES diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/inc/FavouritesRFSPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/inc/FavouritesRFSPlugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2005 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 FAVOURITESRFSPLUGIN_H +#define FAVOURITESRFSPLUGIN_H + +// INCLUDES +#include +#include +#include "rfsPlugin.h" + +// CLASS DECLARATION + +class CFavouritesRFSPlugin: public CRFSPlugin, public MRfsApMapper + { +public: + + /** + * Two-phased constructor. + * @param aInitParams initial parameters + */ + static CFavouritesRFSPlugin* NewL(TAny* aInitParams); + + /** + * Destructor. + */ + virtual ~CFavouritesRFSPlugin(); + + /** + * + * @param + */ + void RestoreFactorySettingsL( const TRfsReason aType ); + + /** + * + * @param + */ + void GetScriptL( const TRfsReason aType, TDes& aPath ); + + /** + * + * @param + */ + void ExecuteCustomCommandL( const TRfsReason aType, TDesC& aCommand ); + +public: // from MRfsApMapper + + TBool MapAccessPoint( TUint aOldUid, TUint& aNewUid ); + +private: + + /** + * C++ default constructor. + */ + CFavouritesRFSPlugin(); + + /** + * Constructor. + * @param aInitParams initial parameters + */ + CFavouritesRFSPlugin(TAny* aInitParams); + + /** + * Constructor + */ + void ConstructL(); + }; + + + +#endif // FAVOURITESRFSPLUGIN_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/inc/FavouritesRFSPluginPrivateCRKeys.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/inc/FavouritesRFSPluginPrivateCRKeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,30 @@ +/* +* Copyright (c) 2007 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: Private Central Repository keys. +* +* +*/ + + +#ifndef __FAVOURITESRFSPLUGINPRIVATECRKEYS_H__ +#define __FAVOURITESRFSPLUGINPRIVATECRKEYS_H__ + +const TUid KCRUidFavouritesRFSPlugin = {0x2000F8EF}; + +/* + * Used to store init RFS scripts of FavouritesPlugin + */ +const TUint32 KInitFavouritesRFSPlugin = 0x00000001; + +#endif // __FAVOURITESRFSPLUGINPRIVATECRKEYS_H__ diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/102071F6.rss --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/102071F6.rss Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,49 @@ +/* +* 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 "ecom/registryinfo.rh" + +// Declares info for two implementations +RESOURCE REGISTRY_INFO theInfo + { + // UID for the DLL + dll_uid = 0x102071F6; + // Declare array of interface info + interfaces = + { + INTERFACE_INFO + { + // UID of interface that is implemented + interface_uid = 0x102073BB; + implementations = + { + // Info for CSrcsBTConnection + IMPLEMENTATION_INFO + { + implementation_uid = 0x102073BE; + version_no = 1; + display_name = "FavouritesRFSPlugin"; + default_data = "NI"; // N = Normal RFS, D = Deep RFS, I = Init RFS (FirstBoot RFS) + opaque_data = ""; + } + }; + } + }; + } + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/FavouritesRFSPlugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/FavouritesRFSPlugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,123 @@ +/* +* Copyright (c) 2005 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 FILES +#include +#include +#include "FavouritesRFSPluginPrivateCRKeys.h" +#include "FavouritesRFSPlugin.h" + +_LIT( KRfsDefaultBookmarkDbPath, "Z:\\private\\10008D38\\DBS_101FD685_BrowserBookmarks.db" ); + +const TInt KHexLength = 8; +// ================= MEMBER FUNCTIONS ======================= + +// C++ default constructor can NOT contain any code, that +// might leave. +// +CFavouritesRFSPlugin::CFavouritesRFSPlugin() + { + } + +CFavouritesRFSPlugin::CFavouritesRFSPlugin(TAny* /*aInitParams*/) + { + } + +// Destructor +CFavouritesRFSPlugin::~CFavouritesRFSPlugin() + { + } + +// --------------------------------------------------------- +// NewL +// --------------------------------------------------------- +// +CFavouritesRFSPlugin* CFavouritesRFSPlugin::NewL(TAny* aInitParams) + { + #ifdef _DEBUG + RDebug::Print(_L("CFavouritesRFSPlugin::NewL()")); + #endif + CFavouritesRFSPlugin* self = new (ELeave) CFavouritesRFSPlugin(aInitParams); + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + + +// --------------------------------------------------------- +// ConstructL +// --------------------------------------------------------- +// +void CFavouritesRFSPlugin::ConstructL() + { + #ifdef _DEBUG + RDebug::Print(_L("CFavouritesRFSPlugin::ConstructL()")); + #endif + } + +void CFavouritesRFSPlugin::RestoreFactorySettingsL( const TRfsReason aType ) + { + #ifdef _DEBUG + RDebug::Print(_L("CFavouritesRFSPlugin::RestoreFactorySettingsL(%d)"), aType); + #endif + if (aType == ENormalRfs) + { + RFavouritesDb::RestoreFactorySettingsL(KBrowserBookmarks, KRfsDefaultBookmarkDbPath, *this ); + } + #ifdef _DEBUG + RDebug::Print(_L("CFavouritesRFSPlugin::RestoreFactorySettingsL: End")); + #endif + } + +void CFavouritesRFSPlugin::GetScriptL( const TRfsReason aType, TDes& aPath ) + { + if (aType == EInitRfs) + { + // Add CenRep UID and key + TUid hexuid(KCRUidFavouritesRFSPlugin); + TUint32 hexkey(KInitFavouritesRFSPlugin); + HBufC* hbuf = HBufC::New( KMaxPath ); + TPtr buf = hbuf->Des(); + buf.Zero(); + buf.AppendNumFixedWidthUC( hexuid.iUid, EHex, KHexLength ); + buf.Append(_L(":")); + buf.AppendNumFixedWidthUC( hexkey, EHex, KHexLength ); + buf.Append(_L(";")); + RDebug::Print( buf ); + aPath.Copy( buf ); + delete hbuf; + } + } + +void CFavouritesRFSPlugin::ExecuteCustomCommandL( const TRfsReason /*aType*/, + TDesC& aCommand ) + { + #ifdef _DEBUG + RDebug::Print(_L("CFavouritesRFSPlugin::ExecuteCustomCommandL")); + RDebug::Print(_L("CFavouritesRFSPlugin::ExecuteCustomCommandL Command: %S"), &aCommand); + #endif + } + +TBool CFavouritesRFSPlugin::MapAccessPoint( TUint aOldUid, TUint& aNewUid ) + { + aNewUid = aOldUid; + return ETrue; + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/Proxy.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/coreapplicationuis/rfsplugins/FavouritesRFSPlugin/src/Proxy.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2005 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: +* This class export ECom interface implementations. +* +*/ + + +#include +#include + +#include "FavouritesRFSPlugin.h" + +// Map the interface UIDs to implementation factory functions +const TImplementationProxy ImplementationTable[] = + { + IMPLEMENTATION_PROXY_ENTRY(0x102073BE, CFavouritesRFSPlugin::NewL) + }; + +// Exported proxy for instantiation method resolution +EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) + { + aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); + + return ImplementationTable; + } + diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/FormatterRFSPlugin/src/selectiveformatter.cpp --- a/coreapplicationuis/rfsplugins/FormatterRFSPlugin/src/selectiveformatter.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/FormatterRFSPlugin/src/selectiveformatter.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -130,7 +130,7 @@ HandleAppExcludeListsL(); // Handle NR-Applications - //HandleNrExcludeListsL(); + HandleNrExcludeListsL(); if( !iValidExcludeListFound ) { diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/NitzRFSPlugin/group/NitzRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/NitzRFSPlugin/group/NitzRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/NitzRFSPlugin/group/NitzRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET nitzrfsplugin.dll +TARGET NitzRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BF.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET nitzrfsplugin.rsc + TARGET NitzRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/SIPRFSPlugin/group/SipRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/SIPRFSPlugin/group/SipRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/SIPRFSPlugin/group/SipRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET siprfsplugin.dll +TARGET SIPRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2001959D.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET siprfsplugin.rsc + TARGET SIPRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/StarterRFSPlugin/group/StarterRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/StarterRFSPlugin/group/StarterRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/StarterRFSPlugin/group/StarterRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET starterrfsplugin.dll +TARGET StarterRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BB.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET starterrfsplugin.rsc + TARGET StarterRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/SyncMLRFSPlugin/group/SyncMLRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/SyncMLRFSPlugin/group/SyncMLRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/SyncMLRFSPlugin/group/SyncMLRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET syncmlrfsplugin.dll +TARGET SyncMLRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8BC.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET syncmlrfsplugin.rsc + TARGET SyncMLRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/TelephonyRFSPlugin/group/TelephonyRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/TelephonyRFSPlugin/group/TelephonyRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/TelephonyRFSPlugin/group/TelephonyRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET telephonyrfsplugin.dll +TARGET TelephonyRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8C1.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET telephonyrfsplugin.rsc + TARGET TelephonyRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/UnitconverterRFSPlugin/group/UnitconverterRFSPlugin.mmp --- a/coreapplicationuis/rfsplugins/UnitconverterRFSPlugin/group/UnitconverterRFSPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/UnitconverterRFSPlugin/group/UnitconverterRFSPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -19,7 +19,7 @@ #include -TARGET unitconverterrfsplugin.dll +TARGET UnitconverterRFSPlugin.dll TARGETTYPE PLUGIN @@ -34,7 +34,7 @@ START RESOURCE 2000F8C0.rss #ifdef SYMBIAN_SECURE_ECOM - TARGET unitconverterrfsplugin.rsc + TARGET UnitconverterRFSPlugin.rsc #endif END @@ -45,4 +45,4 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib // Base library -LIBRARY ecom.lib // ECom library +LIBRARY ECom.lib // ECom library diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/group/bld.inf --- a/coreapplicationuis/rfsplugins/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -13,16 +13,6 @@ * * Description: Build information file for RFS plugins. * -* Copyright (c) 2008 Nokia Corporation. -* This material, including documentation and any related -* computer programs, is protected by copyright controlled by -* Nokia Corporation. All rights are reserved. Copying, -* including reproducing, storing, adapting or translating, any -* or all of this material requires the prior written consent of -* Nokia Corporation. This material also contains confidential -* information which may not be disclosed to others without the -* prior written consent of Nokia Corporation. -* ============================================================================== */ #include @@ -37,6 +27,7 @@ #include "../AIRFSPlugin/group/bld.inf" #include "../DisplayContrastPlugin/group/bld.inf" +#include "../FavouritesRFSPlugin/group/bld.inf" #include "../CertRFSPlugin/group/bld.inf" #include "../ClockRFSPlugin/group/bld.inf" #include "../DatastoreRFSPlugin/group/bld.inf" diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/msgcentrerfsplugin/group/msgcentrerfsplugin.mmp --- a/coreapplicationuis/rfsplugins/msgcentrerfsplugin/group/msgcentrerfsplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/msgcentrerfsplugin/group/msgcentrerfsplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -44,4 +44,4 @@ LIBRARY eikcore.lib // Eikon library LIBRARY euser.lib // Base library LIBRARY cone.lib // Control environment library -LIBRARY muiuutils.lib // For message centre reset +LIBRARY muiu.lib // For message centre reset diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/rom/RFSPlugins.iby --- a/coreapplicationuis/rfsplugins/rom/RFSPlugins.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/rom/RFSPlugins.iby Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -26,6 +26,7 @@ ECOM_PLUGIN(DatastoreRFSPlugin.dll,2000F8C2.rsc) ECOM_PLUGIN(DefaultFolderRFSPlugin.dll,2000F8BA.rsc) ECOM_PLUGIN(RfsDisplayContrastPlugin.dll,102071F7.rsc) +ECOM_PLUGIN(FavouritesRFSPlugin.dll,102071F6.rsc) ECOM_PLUGIN(NitzRFSPlugin.dll,2000F8BF.rsc) ECOM_PLUGIN(StarterRFSPlugin.dll,2000F8BB.rsc) ECOM_PLUGIN(SyncMLRFSPlugin.dll,2000F8BC.rsc) diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/data/rfstestapp.rss --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/data/rfstestapp.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/data/rfstestapp.rss Wed Sep 01 12:24:48 2010 +0100 @@ -21,8 +21,8 @@ #include #include #include -#include -#include +//#include +//#include #include #include #include "rfstestappcmds.hrh" @@ -120,17 +120,19 @@ // r_rfstestapp_memory_selection // --------------------------------------------------------------------------- // +/* RESOURCE MEMORYSELECTIONDIALOG r_rfstestapp_memory_selection { title = ""; softkey_1 = "Ok"; } - +*/ // --------------------------------------------------------------------------- // r_rfstestapp_specfile_selection // --------------------------------------------------------------------------- // +/* RESOURCE FILESELECTIONDIALOG r_rfstestapp_specfile_selection { title = "Select Data Specification File"; @@ -147,13 +149,14 @@ filter_data = { "*.spc" }; } }; - } + }*/ // --------------------------------------------------------------------------- // r_rfstestapp_excludelist_selection // --------------------------------------------------------------------------- // +/* RESOURCE FILESELECTIONDIALOG r_rfstestapp_excludelist_selection { title = "Select Exclude List File"; @@ -171,7 +174,7 @@ } }; } - +*/ // --------------------------------------------------------------------------- // r_rfstestapp_progress diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/src/rfstestappui.cpp --- a/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/src/rfstestappui.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/rfsplugins/tsrc/rfspluginstest/rfstestapp/src/rfstestappui.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -16,9 +16,9 @@ */ -#include +//#include #include -#include +//#include #include #include #include @@ -63,13 +63,13 @@ TParsePtr parse( aPath ); TPtrC rootFolder = parse.DriveAndPath(); INFO_1( "Root folder for opening test files: %S", &rootFolder ); - TBool ret = AknCommonDialogsDynMem::RunSelectDlgLD( - AknCommonDialogsDynMem::EMemoryTypePhone | - AknCommonDialogsDynMem::EMemoryTypeMMC, - aPath, - rootFolder, - R_RFSTESTAPP_MEMORY_SELECTION, - aResId ); + TBool ret =ETrue;// = AknCommonDialogsDynMem::RunSelectDlgLD( + //AknCommonDialogsDynMem::EMemoryTypePhone | + //AknCommonDialogsDynMem::EMemoryTypeMMC, + //aPath, + //rootFolder, + //R_RFSTESTAPP_MEMORY_SELECTION, + //aResId ); return ret; } @@ -234,6 +234,7 @@ HBufC* specFile = HBufC::NewLC( KMaxFileName ); TPtr specFileDes = specFile->Des(); specFileDes = aSpec; + /* if ( AskPathL( specFileDes, R_RFSTESTAPP_SPECFILE_SELECTION ) ) { HBufC* excludeFile = HBufC::NewLC( KMaxFileName ); @@ -278,7 +279,7 @@ } CleanupStack::PopAndDestroy( excludeFile ); - } + }*/ CleanupStack::PopAndDestroy( specFile ); } diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/sensordatacompensatorplugin/group/bld.inf --- a/coreapplicationuis/sensordatacompensatorplugin/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/sensordatacompensatorplugin/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -23,13 +23,13 @@ PRJ_EXPORTS -../data/sensordatacompensationui.rul /epoc32/data/z/private/10282bc4/rules/sensordatacompensationui.rul -../data/sensordatacompensationui.rul /epoc32/release/winscw/udeb/z/private/10282bc4/rules/sensordatacompensationui.rul -../data/sensordatacompensationui.rul /epoc32/release/winscw/urel/z/private/10282bc4/rules/sensordatacompensationui.rul +../data/sensordatacompensationui.rul /epoc32/data/Z/private/10282bc4/rules/sensordatacompensationui.rul +../data/sensordatacompensationui.rul /epoc32/RELEASE/winscw/UDEB/Z/private/10282bc4/rules/sensordatacompensationui.rul +../data/sensordatacompensationui.rul /epoc32/RELEASE/winscw/UREL/Z/private/10282bc4/rules/sensordatacompensationui.rul -../data/sensordatacompensationdevice.rul /epoc32/data/z/private/10282bc4/rules/sensordatacompensationdevice.rul -../data/sensordatacompensationdevice.rul /epoc32/release/winscw/udeb/z/private/10282bc4/rules/sensordatacompensationdevice.rul -../data/sensordatacompensationdevice.rul /epoc32/release/winscw/urel/z/private/10282bc4/rules/sensordatacompensationdevice.rul +../data/sensordatacompensationdevice.rul /epoc32/data/Z/private/10282bc4/rules/sensordatacompensationdevice.rul +../data/sensordatacompensationdevice.rul /epoc32/RELEASE/winscw/UDEB/Z/private/10282bc4/rules/sensordatacompensationdevice.rul +../data/sensordatacompensationdevice.rul /epoc32/RELEASE/winscw/UREL/Z/private/10282bc4/rules/sensordatacompensationdevice.rul ../rom/sensordatacompensatorplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH( sensordatacompensatorplugin.iby ) diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/tsrc/public/basic/MT_PhoneCmdhandler/MT_CPhoneHandler.mmp --- a/coreapplicationuis/tsrc/public/basic/MT_PhoneCmdhandler/MT_CPhoneHandler.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/tsrc/public/basic/MT_PhoneCmdhandler/MT_CPhoneHandler.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -35,7 +35,7 @@ MW_LAYER_SYSTEMINCLUDE -SYSTEMINCLUDE /epoc32/include/Digia/EUnit +SYSTEMINCLUDE /epoc32/include/platform/Digia/EUnit LIBRARY EUnit.lib LIBRARY EUnitUtil.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/tsrc/public/basic/MT_kefmapper/MT_kefmapper.mmp --- a/coreapplicationuis/tsrc/public/basic/MT_kefmapper/MT_kefmapper.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/tsrc/public/basic/MT_kefmapper/MT_kefmapper.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -35,7 +35,7 @@ MW_LAYER_SYSTEMINCLUDE -SYSTEMINCLUDE /epoc32/include/Digia/EUnit +SYSTEMINCLUDE /epoc32/include/platform/Digia/EUnit LIBRARY EUnit.lib diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/tsrc/public/basic/group/MT_Rfs.mmp --- a/coreapplicationuis/tsrc/public/basic/group/MT_Rfs.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/tsrc/public/basic/group/MT_Rfs.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -32,8 +32,7 @@ USERINCLUDE ../MT_Rfs/Src . MW_LAYER_SYSTEMINCLUDE - -SYSTEMINCLUDE /epoc32/include/Digia/EUnit +SYSTEMINCLUDE /epoc32/include/platform/Digia/EUnit LIBRARY EUnit.lib LIBRARY EUnitUtil.lib diff -r 924385140d98 -r c2c61fdca848 filehandling/fileconverterfw/doc_pub/SGL.GT0093.110_How_To_Implement_and_use_a_file converter_objectv1.4.doc Binary file filehandling/fileconverterfw/doc_pub/SGL.GT0093.110_How_To_Implement_and_use_a_file converter_objectv1.4.doc has changed diff -r 924385140d98 -r c2c61fdca848 filehandling/fileconverterfw/group/ConarcTest.pkg --- a/filehandling/fileconverterfw/group/ConarcTest.pkg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +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: -; - -;Languages -&EN - - -;Localised Vendor name -%{"ConarcTest.pkg EN"} - -; Vendor name -: "ConarcTest" - - -"\epoc32\data\z\conarctest\conarctest_run.bat"-"c:\conarctest_run.bat" -"\epoc32\data\z\conarctest\conarctest_t_b64cnv.script"-"c:\conarctest\conarctest_t_b64cnv.script" -"\epoc32\data\z\conarctest\conarctest_t_cnf.script"-"c:\conarctest\conarctest_t_cnf.script" -"\epoc32\data\z\conarctest\conarctest_t_loadecomcnv.script"-"c:\conarctest\conarctest_t_loadecomcnv.script" diff -r 924385140d98 -r c2c61fdca848 filehandling/htmltorichtextconverter/doc_pub/CHTMLTOCRTCONVERTER test code.rtf Binary file filehandling/htmltorichtextconverter/doc_pub/CHTMLTOCRTCONVERTER test code.rtf has changed diff -r 924385140d98 -r c2c61fdca848 filehandling/richtexttohtmlconverter/Group/BLD.INF --- a/filehandling/richtexttohtmlconverter/Group/BLD.INF Tue Aug 31 15:24:25 2010 +0300 +++ b/filehandling/richtexttohtmlconverter/Group/BLD.INF Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -17,7 +17,6 @@ DEFAULT PRJ_EXPORTS - ./RichTextToHtmlConv.iby /epoc32/rom/include/core/mw/richtexttohtmlconv.iby ./RichTextToHtmlConv.iby /epoc32/rom/include/richtexttohtmlconv.iby PRJ_MMPFILES diff -r 924385140d98 -r c2c61fdca848 layers.sysdef.xml --- a/layers.sysdef.xml Tue Aug 31 15:24:25 2010 +0300 +++ b/layers.sysdef.xml Wed Sep 01 12:24:48 2010 +0100 @@ -1,13 +1,13 @@ - ]> - + - + diff -r 924385140d98 -r c2c61fdca848 mediakeys/KeyPublisherPlugin/group/KeyPublisherPlugin.mmp --- a/mediakeys/KeyPublisherPlugin/group/KeyPublisherPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/mediakeys/KeyPublisherPlugin/group/KeyPublisherPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -18,7 +18,7 @@ #include -TARGET keypublisherplugin.dll +TARGET KeyPublisherPlugin.DLL TARGETTYPE ani UID 0x10003B22 0x1020724B diff -r 924385140d98 -r c2c61fdca848 mediakeys/MMKeyBearer/group/MMKeyBearer.mmp --- a/mediakeys/MMKeyBearer/group/MMKeyBearer.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/mediakeys/MMKeyBearer/group/MMKeyBearer.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -21,7 +21,7 @@ #include -TARGET mmkeybearer.dll +TARGET MMKeyBearer.dll // CAPABILITY CAP_ECOM_PLUGIN // capabilities are required as that of remconbearerplugin.dll @@ -41,7 +41,7 @@ SOURCEPATH . START RESOURCE 10207235.rss -target mmkeybearer.rsc +target MMKeyBearer.rsc END @@ -52,14 +52,15 @@ MW_LAYER_SYSTEMINCLUDE LIBRARY euser.lib -LIBRARY ecom.lib +LIBRARY ECom.lib LIBRARY c32.lib LIBRARY remconbearerplugin.lib LIBRARY remcontypes.lib LIBRARY flogger.lib +LIBRARY avkon.lib +LIBRARY akncapserverclient.lib LIBRARY apparc.lib LIBRARY eikcore.lib -LIBRARY lockclient.lib #include #include "../../group/mediakeys.mmh" diff -r 924385140d98 -r c2c61fdca848 mediakeys/MMKeyBearer/inc/MMKeyBearerImplementation.h --- a/mediakeys/MMKeyBearer/inc/MMKeyBearerImplementation.h Tue Aug 31 15:24:25 2010 +0300 +++ b/mediakeys/MMKeyBearer/inc/MMKeyBearerImplementation.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005 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" @@ -26,9 +26,7 @@ #include #include #include -#include - - +#include #include "MMKeyBearerObserverPS.h" @@ -157,7 +155,8 @@ RProperty iProperty; // For keylock interaction - CKeyguardAccessApi* iKeyguardAccess; - }; + RAknUiServer iAknServer; + TBool iAknServerConnected; + }; #endif // __MMKEYBEARERIMPLEMENTATION_H__ diff -r 924385140d98 -r c2c61fdca848 mediakeys/MMKeyBearer/src/MMKeyBearerImplementation.cpp --- a/mediakeys/MMKeyBearer/src/MMKeyBearerImplementation.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/mediakeys/MMKeyBearer/src/MMKeyBearerImplementation.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -26,7 +26,6 @@ #include #include #include // Property values -#include // Include this once it is exported // #include @@ -75,7 +74,7 @@ delete iMediaKeyObserver; delete iAccessoryVolKeyObserver; delete iUSBFileTransferObserver; - delete iKeyguardAccess; + iAknServer.Close(); } // --------------------------------------------------------- @@ -85,10 +84,11 @@ // CMMKeyBearer::CMMKeyBearer(TBearerParams& aParams) : CRemConBearerPlugin(aParams), - iUSBFileTransfer(KUsbWatcherSelectedPersonalityNone) + iUSBFileTransfer(KUsbWatcherSelectedPersonalityNone), + iAknServerConnected(EFalse) { FUNC_LOG; - + //Pass } @@ -105,7 +105,6 @@ TRemConAddress addr; addr.BearerUid() = Uid(); TInt err = Observer().ConnectIndicate(addr); - iKeyguardAccess = CKeyguardAccessApi::NewL(); // Start Active object for listening key events from P&S TRAP_AND_LEAVE( @@ -343,6 +342,12 @@ INFO_3( "Received key: enumValue = %d, keyType = %d, usbFileTransfer = %d", aEnumValue, aKeyType, iUSBFileTransfer ); + //Start the listener once again + if (aKeyType == ESideVolumeKeys) + { + iMMKeyBearerObserver->Start(); + } + // Mediakeys must be disabled when MTP (Music Transfer) is happening. if (aKeyType == EFileTransferStatus) { @@ -362,20 +367,25 @@ // If events are from accessory device,then do not check for keypadlock if (aKeyType != EAccessoryVolumeKeys && aKeyType != ESideVolumeKeys ) { - - TInt err=iKeyguardAccess->ShowKeysLockedNote(); + TBool keysLocked = EFalse; + if (!(iAknServerConnected)) // Connect to server for first time + { + if(iAknServer.Connect() == KErrNone) + { + iAknServerConnected = ETrue; + } + else if (aKeyType == EMediaKeys) // If connection fails, then return + { + iMediaKeyObserver->Start(); + return ; + } + } + iAknServer.ShowKeysLockedNote(keysLocked); - if (err==KErrNone) + if (keysLocked && aKeyType == EMediaKeys) { // Device is locked , Discard the key event - - //Start the listener once again - - if (aKeyType == EMediaKeys) - { - iMediaKeyObserver->Start(); - } - + iMediaKeyObserver->Start(); return; } } @@ -408,11 +418,7 @@ TInt aError = Observer().NewCommand(addr); //Start the listener once again - if (aKeyType == ESideVolumeKeys) - { - iMMKeyBearerObserver->Start(); - } - else if (aKeyType == EMediaKeys) + if (aKeyType == EMediaKeys) { iMediaKeyObserver->Start(); } diff -r 924385140d98 -r c2c61fdca848 printingsupport/printinguisupport/group/BLD.INF --- a/printingsupport/printinguisupport/group/BLD.INF Tue Aug 31 15:24:25 2010 +0300 +++ b/printingsupport/printinguisupport/group/BLD.INF Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1999-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" @@ -31,7 +31,7 @@ // specify the source file followed by its destination here // copy will be used to copy the source file to its destination // If there's no destination then the source file will be copied -// to the same name in /epoc32/include +// to the same name in \epoc32\include ../inc/PRNINF.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(prninf.h) ../inc/PRNPREV.H SYMBIAN_MW_LAYER_PUBLIC_EXPORT_PATH(prnprev.h) diff -r 924385140d98 -r c2c61fdca848 printingsupport/printinguisupport/group/print.iby --- a/printingsupport/printinguisupport/group/print.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/printingsupport/printinguisupport/group/print.iby Wed Sep 01 12:24:48 2010 +0100 @@ -18,7 +18,7 @@ #ifndef __PRINT_IBY__ #define __PRINT_IBY__ -#ifndef __UPNP_PRINT_FRAMEWORK +#ifdef SYMBIAN_EXCLUDE_PRINT REM Feature PRINT is not included in this ROM #else REM Print diff -r 924385140d98 -r c2c61fdca848 printingsupport/printinguisupport/inc/PRNSETUP.H --- a/printingsupport/printinguisupport/inc/PRNSETUP.H Tue Aug 31 15:24:25 2010 +0300 +++ b/printingsupport/printinguisupport/inc/PRNSETUP.H Wed Sep 01 12:24:48 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-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" @@ -29,6 +29,10 @@ #include #endif +#ifndef SYMBIAN_ENABLE_MIXED_HEADERS +#include +#endif + /** @publishedAll @released */ diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/data/ssyreference_config_template.xml --- a/sensorsupport/testsensor/data/ssyreference_config_template.xml Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/data/ssyreferenceconfig.xml --- a/sensorsupport/testsensor/data/ssyreferenceconfig.xml Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/group/bld.inf --- a/sensorsupport/testsensor/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -// bld.inf - -// Copyright (c) 2006-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: -// - - - -PRJ_PLATFORMS - DEFAULT - -PRJ_EXPORTS - ssyreference.iby /epoc32/rom/include/ssyreference.iby - - // Export config to SensorServers private folder. - // For emulator use. - ../data/ssyreferenceconfig.xml /epoc32/release/winscw/udeb/z/refssy/ssyreferenceconfig.xml - ../data/ssyreferenceconfig.xml /epoc32/release/winscw/urel/z/refssy/ssyreferenceconfig.xml - - // For hardware use. - ../data/ssyreferenceconfig.xml /epoc32/data/z/refssy/ssyreferenceconfig.xml - -#ifdef SYMBIAN_OLD_EXPORT_LOCATION - ../inc/ssyreferenceaccelerometer.h /epoc32/include/sensors/channels/ssyreferenceaccelerometer.h -#endif -#ifdef SYMBIAN_OLD_EXPORT_LOCATION - ../inc/ssyreferencemagnetometer.h /epoc32/include/sensors/channels/ssyreferencemagnetometer.h -#endif -#ifdef SYMBIAN_OLD_EXPORT_LOCATION - ../inc/ssyreferenceorientation.h /epoc32/include/sensors/channels/ssyreferenceorientation.h -#endif -#ifdef SYMBIAN_OLD_EXPORT_LOCATION - ../inc/ssyreferenceproximity.h /epoc32/include/sensors/channels/ssyreferenceproximity.h -#endif - -PRJ_MMPFILES - ssyreferenceplugin.mmp diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/group/ssyreference.iby --- a/sensorsupport/testsensor/group/ssyreference.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// ssyreference.iby - -// Copyright (c) 2006-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 SSYREFERENCE_IBY -#define SSYREFERENCE_IBY - -#include - -ECOM_PLUGIN(ssyreferenceplugin.dll, ssyreferenceplugin.rsc) -data=DATAZ_\refssy\ssyreferenceconfig.xml \refssy\ssyreferenceconfig.xml -#endif // SSYREFERENCE_IBY diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/group/ssyreferenceplugin.mmp --- a/sensorsupport/testsensor/group/ssyreferenceplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// ssyreferenceplugin.mmp - -// Copyright (c) 2006-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 - -TARGET ssyreferenceplugin.dll -TARGETTYPE plugin -VENDORID 0x70000001 - -// ECom Dll recognition UID followed by the unique UID for this dll -UID 0x10009D8D 0x10205089 - -CAPABILITY SENSOR_PLUGIN_CAPABILITIES - -SOURCEPATH ../src -SOURCE ssyreferencechanneldataprovider.cpp -SOURCE ssyreferencecontrol.cpp -SOURCE ssyreferencepropertyprovider.cpp -SOURCE ssyreferencechannel.cpp -SOURCE ssyreferenceconfig.cpp -SOURCE ssyreferencecmdhandler.cpp -SOURCE ecomentrypoint.cpp - -USERINCLUDE ../src - -SYSTEMINCLUDE /epoc32/include -SYSTEMINCLUDE /epoc32/include/ecom -SYSTEMINCLUDE /epoc32/include/sensors -SYSTEMINCLUDE /epoc32/include/sensors/spi -SYSTEMINCLUDE /epoc32/include/sensors/channels - -// The resource name should have to be same as the third UID above -START RESOURCE ../src/10205089.rss -TARGET ssyreferenceplugin.rsc -END - -LIBRARY euser.lib -LIBRARY ecom.lib -LIBRARY sensrvutil.lib -LIBRARY xmlparser.lib // for XML parser -LIBRARY efsrv.lib -LIBRARY xmldom.lib diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/group/syslibs_sensors_ssyreference.history.xml --- a/sensorsupport/testsensor/group/syslibs_sensors_ssyreference.history.xml Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ - - - - Referencey SSY for testing the Sensors Framework. - - - - - Update to Sensors framework as part of the Core OS 2 project. - - - - - - Adding Reference SSY to Symbian OS as part of the Core OS 2 project. - - - - - - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/group/syslibs_sensors_ssyreference.mrp --- a/sensorsupport/testsensor/group/syslibs_sensors_ssyreference.mrp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -component syslibs_sensors_ssyreference - -source \sf\mw\appsupport\sensorsupport\testsensor - -exports \sf\mw\appsupport\sensorsupport\testsensor\group -binary \sf\mw\appsupport\sensorsupport\testsensor\group all - -notes_source \component_defs\release.src - -ipr T diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/inc/ssyreferenceaccelerometer.h --- a/sensorsupport/testsensor/inc/ssyreferenceaccelerometer.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,256 +0,0 @@ -// ssyreferenceaccelerometer.h - -/* -* Copyright (c) 2008-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: -* -*/ - - - - -/** - @file - @internalAll Sensor framework Reference SSY header file - @test -*/ - - -#ifndef SSYREFERENCEACCELEROMETER_H -#define SSYREFERENCEACCELEROMETER_H - -// INCLUDES -#include -#include - - -// ACCELEROMETER RELATED CHANNELS - -/** -* - Name: Accelerometer XYZ-axis data channel type -* - Type: Rawdata -* - Datatype: TSensrvAccelerometerAxisData -* - Description: Accelerometer x-, y-, z-axis data -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdAccelerometerXYZAxisData = 0x1020507E; - -// ACCELEROMETER RELATED PROPERTIES - -/** -* - Name: Axis active -* - Type: TInt -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Indicates is sensor axis activated. -* Value is one if the axis is activated, zero otherwise. -*/ -const TSensrvPropertyId KSensrvPropIdAxisActive = 0x00001001; - -/** -* - Name: Axis threshold value -* - Type: TReal -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Threshold value for a sensor channel -*/ -const TSensrvPropertyId KSensrvPropIdAxisThresholdValue = 0x00001002; - -// ACCELEROMETER RELATED DATATYPES - -/** -* Accelerometer axis data type -*/ -class TSensrvAccelerometerAxisData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x1020507E; - - /** - * Channel data type index numbers - */ - enum TSensrvAccelerometerAxisDataIndexes - { - ETimeStamp = 0, - EAxisX, - EAxisY, - EAxisZ - }; - -public: - /** - * - Item name: Sampling time. - * - Item Index: 0 - * - Conditions: None - * - Description: Timestamp for a sample. - */ - TTime iTimeStamp; - - /** - * - Item name: Accelerometer x-axis - * - Item Index: 1 - * - Conditions: Single limit and range - * - Description: Accelerometer values from x-axis - */ - TInt iAxisX; - - /** - * - Item name: Accelerometer y-axis - * - Item Index: 2 - * - Conditions: Single limit and range - * - Description: Accelerometer values from y-axis - */ - TInt iAxisY; - - /** - * - Item name: Accelerometer z-axis - * - Item Index: 3 - * - Conditions: Single limit and range - * - Description: Accelerometer values from z-axis - */ - TInt iAxisZ; - }; - - -// TAPPING RELATED CHANNELS - -/** -* - Name: Wakeup event channel type -* - Type: Event -* - Datatype: TSensrvTappingData -* - Description: Wakeup events -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdAccelerometerWakeupData = 0x1020507F; - -/** -* - Name: Double tapping event channel type -* - Type: Event -* - Datatype: TSensrvTappingData -* - Description: Double tapping events -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdAccelerometerDoubleTappingData = 0x10205081; - -// TAPPING RELATED PROPERTIES - -/** -* - Name: Tapping axis active -* - Type: TInt -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Indicates is sensor axis activated. -* Value is one if the axis is activated, zero otherwise. -*/ -const TSensrvPropertyId KSensrvPropIdTappingAxisActive = 0x00001001; - -/** -* - Name: Tapping axis threshold value -* - Type: TReal -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Threshold value for a sensor channel -*/ -const TSensrvPropertyId KSensrvPropIdTappingAxisThresholdValue = 0x00001002; - -/** -* - Name: Tap duration in milliseconds -* - Type: TInt -* - Scope: Channel property -* - Mandatory: No -* - Capability: None -* - Description: Tapping duration setting -*/ -const TSensrvPropertyId KSensrvPropIdTapDurationValue = 0x00001003; - -/** -* - Name: Double tap latency -* - Type: TInt -* - Scope: Channel property -* - Mandatory: No -* - Capability: None -* - Description: Double tap latency in milliseconds -*/ -const TSensrvPropertyId KSensrvPropIdDblTapLatency = 0x00001004; - -/** -* - Name: Double tap interval -* - Type: TInt -* - Scope: Channel property -* - Mandatory: No -* - Capability: None -* - Description: Double tap interval in milliseconds -*/ -const TSensrvPropertyId KSensrvPropIdDblTapInterval = 0x00001005; - - - -// TAPPING RELATED DATATYPES - -/** -* Direction of the tapping data. If direction (plus or minus) is not known, -* direction is, for example in x-axis case -* KSensrvAccelerometerDirectionXplus | KSensrvAccelerometerDirectionXminus -*/ -const TUint8 KSensrvAccelerometerDirectionXplus = 0x01; -const TUint8 KSensrvAccelerometerDirectionXminus = 0x02; -const TUint8 KSensrvAccelerometerDirectionYplus = 0x04; -const TUint8 KSensrvAccelerometerDirectionYminus = 0x08; -const TUint8 KSensrvAccelerometerDirectionZplus = 0x10; -const TUint8 KSensrvAccelerometerDirectionZminus = 0x20; - -/** -* Tapping data type -*/ -class TSensrvTappingData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x1020507F; - - /** - * Channel data type index numbers - */ - enum TSensrvAccelerometerAxisDataIndexes - { - ETimeStamp = 0, - EDirection - }; - -public: - /** - * - Item name: Sampling time. - * - Item Index: 0 - * - Conditions: None - * - Description: Timestamp for a sample. - */ - TTime iTimeStamp; - - /** - * - Item name: Tapping direction bitmask - * - Item Index: 1 - * - Conditions: Binary - * - Description: Direction bitmask of the tapping event. - * See constant definitions above. - */ - TUint32 iDirection; - }; - -#endif //SSYREFERENCEACCELEROMETER_H diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/inc/ssyreferencemagnetometer.h --- a/sensorsupport/testsensor/inc/ssyreferencemagnetometer.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -// ssyreferencemagnetometer.h - -/* -* Copyright (c) 2008-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: -* -*/ - - - - -/** - @file - @internalAll Sensor framework Reference SSY header file - @test -*/ - - -#ifndef SSYREFERENCEMAGNETOMETER_H -#define SSYREFERENCEMAGNETOMETER_H - -// INCLUDES -#include -#include - - -// MAGNETOMETER RELATED CHANNELS - -/** -* - Name: Magnetometer XYZ-axis data channel type -* - Type: Rawdata -* - Datatype: TSensrvMagnetometerAxisData -* - Description: Magnetometer x-, y-, z-axis data -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdMagnetometerXYZAxisData = 0x2000BEE0; - - -// MAGNETOMETER RELATED PROPERTIES - -/** -* - Name: Name of the property -* - Type: Defines type of the property (TInt/TReal/TBuf) -* - Scope: Defines a property scope. Property can be defined for a channel, -* for a specific item in a channel or for a server related to -* channel. -* - Mandatory: Defines is property mandatory -* - Capability: Capabilities needed to set this property -* - Description: Description of the property -*/ - -/** -* - Name: Auto calibration active -* - Type: TInt -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Indicates is auto calibration active. -* Value is one if calibration is activated, zero otherwise. -*/ -const TSensrvPropertyId KSensrvPropAutoCalibrationActive = 0x00001006; - -/** -* - Name: Calibration status -* - Type: TInt -* - Scope: Channel item property -* - Mandatory: No -* - Capability: None -* - Description: Indicates the calibration level. -* Calibration level scales between minimum and maximum value. -* Maximum indicates that calibration level is at its best -* level. Minimum indicates that calibration is undefined. -*/ -const TSensrvPropertyId KSensrvPropCalibrationLevel = 0x00001007; - -// MAGNETOMETER RELATED DATATYPES - -/** -* Magnetometer axis data type -*/ -class TSensrvMagnetometerAxisData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x2000BEE0; - - /** - * Channel data type index numbers - */ - enum TSensrvMagnetometerAxisDataIndexes - { - ETimeStamp = 0, - EAxisX, - EAxisY, - EAxisZ - }; - -public: - - /** - * - Item name: Sampling time. - * - Item Index: 0 - * - Conditions: None - * - Description: Timestamp for a sample. - */ - TTime iTimeStamp; - - /** - * - Item name: Magnetometer x-axis - * - Item Index: 1 - * - Conditions: Single limit and range - * - Description: Magnetometer values from x-axis - */ - TInt iAxisXRaw; - - /** - * - Item name: Magnetometer y-axis - * - Item Index: 2 - * - Conditions: Single limit and range - * - Description: Magnetometer values from y-axis - */ - TInt iAxisYRaw; - - /** - * - Item name: Magnetometer z-axis - * - Item Index: 3 - * - Conditions: Single limit and range - * - Description: Magnetometer values from z-axis - */ - TInt iAxisZRaw; - - /** - * - Item name: Magnetometer x-axis - * - Item Index: 1 - * - Conditions: Single limit and range - * - Description: Magnetometer values from x-axis - */ - TInt iAxisXCalibrated; - - /** - * - Item name: Magnetometer y-axis - * - Item Index: 2 - * - Conditions: Single limit and range - * - Description: Magnetometer values from y-axis - */ - TInt iAxisYCalibrated; - - /** - * - Item name: Magnetometer z-axis - * - Item Index: 3 - * - Conditions: Single limit and range - * - Description: Magnetometer values from z-axis - */ - TInt iAxisZCalibrated; - }; - -#endif //SSYREFERENCEMAGNETOMETER_H - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/inc/ssyreferenceorientation.h --- a/sensorsupport/testsensor/inc/ssyreferenceorientation.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,172 +0,0 @@ -// ssyreferenceorientation.h - -/* -* Copyright (c) 2008-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: -* -*/ - - - - -/** - @file - @internalAll Sensor framework Reference SSY header file - @test -*/ - - -#ifndef SSYREFERENCEORIENTATION_H -#define SSYREFERENCEORIENTATION_H - -// INCLUDES -#include -#include - - -// ORIENTATION RELATED CHANNELS - -/** -* - Name: Orientation event channel type -* - Type: Event -* - Datatype: TSensrvOrientationData -* - Description: Orientation events -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdOrientationData = 0x10205088; - -/** -* - Name: Rotation event channel type -* - Type: Event -* - Datatype: TSensrvRotationData -* - Description: Rotation events -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdRotationData = 0x10205089; - -// ORIENTATION RELATED DATATYPES - -class TSensrvOrientationData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x10205088; - - /** - * Channel data type index numbers - */ - enum TSensrvOrientationEventIndexes - { - ETimeStamp = 0, - EDeviceOrientation - }; - - /** - * Possible device orientations - */ - enum TSensrvDeviceOrientation - { - EOrientationUndefined = 0, - EOrientationDisplayUp, - EOrientationDisplayDown, - EOrientationDisplayLeftUp, - EOrientationDisplayRightUp, - EOrientationDisplayUpwards, - EOrientationDisplayDownwards - }; - -public: - - /** - * - Item name: Sampling time - * - Item Index: 0 - * - Description: Timestamp for a sample - */ - TTime iTimeStamp; - - /** - * - Item name: Device orientation - * - Item Index: 1 - * - Description: Contains one of the six basic orientations of the device - */ - TSensrvDeviceOrientation iDeviceOrientation; - }; - - -class TSensrvRotationData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x10205089; - - /** - * Rotation axis value equals -1 when it cannot be defined. - * The undefined situation varies depending on the sensor type. - * In the case of an accelerometer, the rotation value cannot be defined - * when the corresponding axis is parallel to the gravitational force or - * the device is in motion. In the case of a magnetometer, there are - * difficulties in measuring values, when the axis is parallel to the - * magnetic field. - */ - static const TInt KSensrvRotationUndefined = -1; - - /** - * Channel data type index numbers - */ - enum TSensrvRotationDataIndexes - { - ETimeStamp = 0, - EDeviceRotationAboutXAxis, - EDeviceRotationAboutYAxis, - EDeviceRotationAboutZAxis, - }; - -public: - /** - * - Item name: Sampling time. - * - Item Index: 0 - * - Description: Timestamp for a sample - */ - TTime iTimeStamp; - - /** - * - Item name: Rotation about x-axis - * - Item Index: 1 - * - Description: Positive rotation in Cartesian coordinate system about the x-axis. - * If the value cannot be defined it is set to KSensrvRotationUndefined. - */ - TInt iDeviceRotationAboutXAxis; - - /** - * - Item name: Rotation about y-axis - * - Item Index: 2 - * - Description: Positive rotation in Cartesian coordinate system about the y-axis. - * If the value cannot be defined it is set to KSensrvRotationUndefined. - */ - TInt iDeviceRotationAboutYAxis; - - - /** - * - Item name: Rotation about z-axis - * - Item Index: 3 - * - Description: Positive rotation in Cartesian coordinate system about the z-axis. - * If the value cannot be defined it is set to KSensrvRotationUndefined. - */ - TInt iDeviceRotationAboutZAxis; - }; - -#endif //SSYREFERENCEORIENTATION_H - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/inc/ssyreferenceproximity.h --- a/sensorsupport/testsensor/inc/ssyreferenceproximity.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +0,0 @@ -// ssyreferenceproximity.h - -/* -* Copyright (c) 2008-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: -* -*/ - - - - -/** - @file - @internalAll Sensor framework Reference SSY header file - @test -*/ - - -#ifndef SSYREFERENCEPROXIMITY_H -#define SSYREFERENCEPROXIMITY_H - -// INCLUDES -#include -#include - - -// PROXIMITY RELATED CHANNELS - -/** -* - Name: Proximity data channel -* - Type: Event -* - Datatype: TSensrvProximityMonitorData -* - Description: Proximity status -*/ -const TSensrvChannelTypeId KSensrvChannelTypeIdProximityMonitor = 0x2000E585; - -// PROXIMITY RELATED DATATYPES - -/** -* Proximity monitoring data type -*/ -class TSensrvProximityData - { -public: - /** - * Channel data type Id number - */ - static const TSensrvChannelDataTypeId KDataTypeId = 0x2000E585; - - /** - * Channel data type index numbers - */ - enum TSensrvProximityDataIndexes - { - ETimeStamp = 0, - EState - }; - - /** - * Possible values for proximito state - */ - enum TProximityState - { - EProximityUndefined = 0, - EProximityIndiscernible, - EProximityDiscernible - }; - -public: - - /** - * - Item name: Sampling time. - * - Item Index: 0 - * - Conditions: None - * - Description: Timestamp for a sample. - */ - TTime iTimeStamp; - - /** - * - Item name: Proximity state - * - Item Index: 0 - * - Conditions: None - * - Description: - - */ - TProximityState iProximityState; - -}; - -#endif //SSYREFERENCEPROXIMITY_H - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/10205089.rss --- a/sensorsupport/testsensor/src/10205089.rss Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -// 10205089.rss - -// Copyright (c) 2006-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 - -// RESOURCE DEFINITIONS -// ----------------------------------------------------------------------------- -// -// Declares info for SSYReference ECom plugin -// -// ----------------------------------------------------------------------------- - -RESOURCE REGISTRY_INFO SSYReferencePlugin - { - // UID for the DLL. See ssyreferenceplugin.mmp - resource_format_version = RESOURCE_FORMAT_VERSION_2; - dll_uid = 0x10205089; - interfaces = - { - INTERFACE_INFO - { - // UID of interface that is implemented - interface_uid = KSsyControlInterfaceUid; - implementations = - { - BINARY_IMPLEMENTATION_INFO - { - implementation_uid = 0x10205088; - version_no = 1; - display_name = "SSYReferencePlugin"; - default_data = { - // Double tap channel - 0x01, // ChannelInfoVersion - 0x2E, // ChannelInfoLength - 0x1E, // Flags - 0x81, 0x50, 0x20, 0x10, // ChannelType - 0x02, 0x00, 0x00, 0x00, // ContextType - 0x0B, 0x00, 0x00, 0x00, // Quantity - 0x05, 0x4e, 0x6f, 0x4c, 0x6f, 0x63, // Location: NoLoc - 0x0C, 0x53, 0x73, 0x79, 0x52, 0x65, 0x66, 0x56, 0x65, 0x6E, 0x64, 0x6F, 0x72, // VendorId: SsyRefVendor - 0x7F, 0x50, 0x20, 0x10, // ChannelDataTypeId - 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // ChannelSecurityPolicy - - // Accelerometer channel - 0x01, // ChannelInfoVersion - 0x30, // ChannelInfoLength - 0x1E, // Flags - 0x7E, 0x50, 0x20, 0x10, // ChannelType - 0x02, 0x00, 0x00, 0x00, // ContextType - 0x0A, 0x00, 0x00, 0x00, // Quantity - 0x07, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x25, 0x64, // Location - 0x0C, 0x53, 0x73, 0x79, 0x52, 0x65, 0x66, 0x56, 0x65, 0x6E, 0x64, 0x6F, 0x72, // VendorId: SsyRefVendor - 0x7E, 0x50, 0x20, 0x10, // ChannelDataTypeId - 0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF // ChannelSecurityPolicy - - }; - opaque_data = {}; - } - }; - } - }; - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ecomentrypoint.cpp --- a/sensorsupport/testsensor/src/ecomentrypoint.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -// ecomentrypoint.cpp - -// Copyright (c) 2006-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 FILES -#include -#include -#include "ssyreferencecontrol.h" - -// Define the interface UIDs -const TImplementationProxy ImplementationTable[] = - { - IMPLEMENTATION_PROXY_ENTRY( 0x10205088, - CSsyReferenceControl::NewL ) - }; - -// The one and only exported function that is the ECom entry point -EXPORT_C const TImplementationProxy* ImplementationGroupProxy - (TInt& aTableCount) - { - aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy ); - - return ImplementationTable; - } diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencechannel.cpp --- a/sensorsupport/testsensor/src/ssyreferencechannel.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,443 +0,0 @@ -// ssyreferencechannel.cpp - -// Copyright (c) 2006-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 // MSsyCallback -#include "ssyreferencechannel.h" -#include "ssyreferencecontrol.h" // SSY Control -#include "ssyreferencepropertyprovider.h" // iChannelPropertyProvider -#include "ssyreferencechanneldataprovider.h" // iChannelDataProvider -#include "ssyreferencetrace.h" -#include "ssyreferencecmdhandler.h" - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferenceChannel::CSsyReferenceChannel( CSsyReferenceControl& aSsyControl, TSensrvChannelInfo aChannelInfo ) : - iSsyControl( aSsyControl ), - iChannelInfo( aChannelInfo ), - iState( ESsyReferenceChannelIdle ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::CSsyReferenceChannel()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::CSsyReferenceChannel() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ConstructL()" ) ) ); - - // Create command handler - iCmdHandler = CSsyReferenceCmdHandler::NewL( *this ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ConstructL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::NewL -// --------------------------------------------------------------------------- -// -CSsyReferenceChannel* CSsyReferenceChannel::NewL( CSsyReferenceControl& aSsyControl, TSensrvChannelInfo aChannelInfo ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::NewL()" ) ) ); - CSsyReferenceChannel* self = new ( ELeave ) CSsyReferenceChannel( aSsyControl, aChannelInfo ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferenceChannel::~CSsyReferenceChannel() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::~CSsyReferenceChannel()" ) ) ); - - // In case channel is not closed before destruction, providers are not deleted - if ( iChannelDataProvider ) - { - delete iChannelDataProvider; - iChannelDataProvider = NULL; - } - - if ( iChannelPropertyProvider ) - { - delete iChannelPropertyProvider; - iChannelPropertyProvider = NULL; - } - - if ( iCmdHandler ) - { - delete iCmdHandler; - iCmdHandler = NULL; - } - - iProperties.Reset(); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::~CSsyReferenceChannel() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::ChannelId -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceChannel::ChannelId() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ChannelId() - %i" ), iChannelInfo.iChannelId ) ); - return iChannelInfo.iChannelId; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::SsyControl -// --------------------------------------------------------------------------- -// -CSsyReferenceControl& CSsyReferenceChannel::SsyControl() const - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::SsyControl()" ) ) ); - return iSsyControl; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::SsyCmdHandler -// --------------------------------------------------------------------------- -// -CSsyReferenceCmdHandler& CSsyReferenceChannel::CommandHandler() const - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::SsyCmdHandler()" ) ) ); - return *iCmdHandler; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::FindPropertyL -// --------------------------------------------------------------------------- -// -TSensrvProperty& CSsyReferenceChannel::FindPropertyL( - const TSensrvPropertyId aPropertyId, - TInt aItemIndex, - TInt aArrayIndex ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::FindPropertyL()" ) ) ); - TSensrvProperty* property = NULL; - TBool propertyFound( EFalse ); - - // Search property - for ( TInt i = 0; i < iProperties.Count() && !propertyFound; i++ ) - { - property = static_cast( &iProperties[i] ); - - // Compare property IDs and array index - if ( property->GetPropertyId() == aPropertyId ) - { - // Compare item index if it is given - if ( ( KErrNotFound == aItemIndex ) || ( property->PropertyItemIndex() == aItemIndex ) ) - { - // Correct property ID is found, now check is it array type of property. - // Either array indexes must match or propertys array index has to be array info - if ( ( property->GetArrayIndex() == aArrayIndex ) || - ( ( property->GetArrayIndex() == ESensrvArrayPropertyInfo ) && - ( ESensrvSingleProperty == aArrayIndex ) ) ) - { - // Correct array index found - propertyFound = ETrue; - } - } - } - } - - // Leave if not found - if ( !propertyFound ) - { - iSsyControl.FindPropertyL( aPropertyId, aArrayIndex, *property ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::FindPropertyL() - return" ) ) ); - return *property; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::FindAndUpdatePropertyL -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::FindAndUpdatePropertyL( const TSensrvProperty& aProperty ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::FindAndUpdatePropertyL()" ) ) ); - TBool propertyFound( EFalse ); - - // Search property - for ( TInt i = 0; i < iProperties.Count() && !propertyFound; i++ ) - { - // Compare property IDs - if ( iProperties[i].GetPropertyId() == aProperty.GetPropertyId() ) - { - // Compare item index if it is given - if ( ( KErrNotFound != aProperty.PropertyItemIndex() ) && - ( iProperties[i].PropertyItemIndex() == aProperty.PropertyItemIndex() ) ) - { - // Property found -> update if possible - if ( iProperties[i].ReadOnly() ) - { - User::Leave( KErrAccessDenied ); - } - // If modifiable, get type and update value - switch ( iProperties[i].PropertyType() ) - { - case ESensrvIntProperty: - { - TInt value( 0 ); - aProperty.GetValue( value ); - iProperties[i].SetValue( value ); - break; - } - case ESensrvRealProperty: - { - TReal value( 0 ); - aProperty.GetValue( value ); - iProperties[i].SetValue( (TReal) value ); - break; - } - case ESensrvBufferProperty: - { - TBuf8<20> propValue; - aProperty.GetValue( propValue ); - iProperties[i].SetValue( propValue ); - break; - } - default: - { - break; - } - } - propertyFound = ETrue; - } - } - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::FindPropertyL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::GetProperties -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::GetProperties( RSensrvPropertyList& aPropertyList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::GetProperties()" ) ) ); - // Copy properties one by one to param aPropertyList - TInt propCount( iProperties.Count() ); - RSensrvPropertyList propList( propCount ); - - for ( TInt i = 0; i < propCount; i++ ) - { - propList.Append( iProperties[i] ); - } - - aPropertyList = propList; - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::GetProperties() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::UpdateState -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::UpdateState( const TSsyReferenceChannelState aNewState ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::UpdateState() - %i" ), aNewState ) ); - iState = aNewState; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::ProcessResponse -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::ProcessResponse( TSsyReferenceMsg* aMessage ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ProcessResponse()" ) ) ); - - if ( aMessage ) - { - switch ( aMessage->Function() ) - { - case ESsyReferenceOpenChannelResp: - { - // Open channel specific handling here - TRAPD( err, HandleOpenChannelRespL( aMessage->Error() ) ); - if ( KErrNone != err ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ProcessResponse() - Error opening channel: %i" ), err ) ); - } - break; - } - case ESsyReferenceDataItemReceived: - { - // Send data item to data provider - TRAPD( err, iChannelDataProvider->ChannelDataReceivedL( aMessage ) ); - if ( KErrNone != err ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ProcessResponse() - Error receiving data: %i" ), err ) ); - } - break; - } - case ESsyReferenceCloseChannelResp: - { - // Close channel specific handling here - HandleCloseChannelResp(); - break; - } - default: - { - // This command was not intended to process here, try Control class - iSsyControl.ProcessResponse( aMessage ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ProcessResponse() - Unknown function" ) ) ); - } - } - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::ProcessResponse() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::OpenChannel -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceChannel::OpenChannel() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::OpenChannel()" ) ) ); - - TInt err( KErrAlreadyExists ); - - // Check that this channel is not already open - if ( ESsyReferenceChannelIdle == iState ) - { - // Update state and issue request. Will continue in HandleOpenChannelResp - UpdateState( ESsyReferenceChannelOpening ); - - // Create message with function spesific information - // and pass it to command handler - err = iCmdHandler->ProcessCommand( TSsyReferenceMsg( ChannelId(), ESsyReferenceOpenChannel ) ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::OpenChannel() - return" ) ) ); - return err; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::HandleOpenChannelResp -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::HandleOpenChannelRespL( const TInt aError ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::HandleOpenChannelResp()" ) ) ); - - // Open channel asynhronously and complete request with MSsyCallback::ChannelOpened() when - // channel is opened. - - // Create instance of the data provider of this channel - iChannelDataProvider = CSsyReferenceChannelDataProvider::NewL( *this ); - // Create instance of the property provider of this channel - iChannelPropertyProvider = CSsyReferencePropertyProvider::NewL( *this ); - - TInt error( aError ); - - // If channel opening succeeds, update state to Open - if ( KErrNone == aError ) - { - // Update state to Open - UpdateState( ESsyReferenceChannelOpen ); - // Get channel properties - TRAP( error, iSsyControl.SsyConfig().GetChannelPropertiesL( ChannelId(), iProperties ) ); - } - else - { - // Channel opening failed, back to idle - UpdateState( ESsyReferenceChannelIdle ); - } - - // Complete transaction - iSsyControl.SsyCallback().ChannelOpened( ChannelId(), - error, - iChannelDataProvider, - iChannelPropertyProvider ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::HandleOpenChannelResp() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::CloseChannel -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceChannel::CloseChannel() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::CloseChannel()" ) ) ); - - TInt err( KErrNotFound ); - - // Check that this channel is open - if ( ESsyReferenceChannelOpen == iState ) - { - // Update state and issue request. Will continue in HandleCloseChannelResp - UpdateState( ESsyReferenceChannelClosing ); - // Create message with function spesific information - // and pass it to command handler - err = iCmdHandler->ProcessCommand( TSsyReferenceMsg( ChannelId(), ESsyReferenceCloseChannel ) ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::CloseChannel() - return" ) ) ); - return err; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannel::HandleCloseChannelResp -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannel::HandleCloseChannelResp() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::HandleCloseChannelResp()" ) ) ); - - // Close channel and complete request with MSsyCallback::ChannelClosed() when - // channel is closed. - - // Delete providers - delete iChannelDataProvider; - iChannelDataProvider = NULL; - - delete iChannelPropertyProvider; - iChannelPropertyProvider = NULL; - - // Update state to idle - UpdateState( ESsyReferenceChannelIdle ); - - // Reset properties - iProperties.Reset(); - - // Complete transaction - iSsyControl.SsyCallback().ChannelClosed( ChannelId() ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannel::HandleCloseChannelResp() - return" ) ) ); - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencechannel.h --- a/sensorsupport/testsensor/src/ssyreferencechannel.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,228 +0,0 @@ -// ssyreferencechannel.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - -#ifndef SSYREFERENCECHANNEL_H -#define SSYREFERENCECHANNEL_H - -#include -#include -#include "ssyreferenceconfig.h" - -class CSsyReferenceControl; -class CSsyReferenceChannelDataProvider; -class CSsyReferencePropertyProvider; -class CSsyReferenceCmdHandler; - -/** - * Main control class for SSY. Controls sensor basic functionality and provides mandatory - * ECOM interface specific things. - */ -class CSsyReferenceChannel : public CBase - { - -public: - - /** - * Enumeration of the state of this channel - */ - enum TSsyReferenceChannelState - { - ESsyReferenceChannelIdle, // Channel created, not opened - ESsyReferenceChannelOpening, // Processing channel opening - ESsyReferenceChannelOpen, // Channel is open - ESsyReferenceChannelReceiving, // Channel is receiving data - ESsyReferenceChannelClosing // Processing channel closing. After this state is idle - }; - -public: - - /** - * Two-phase constructor - * - * @param[in] aSsyControl Reference to SSY control instance. - * @param[in] aChannelInfo Information of this channel - * @return Pointer to created CSsyReferenceControl object - */ - static CSsyReferenceChannel* NewL( CSsyReferenceControl& aSsyControl, TSensrvChannelInfo aChannelInfo ); - - /** - * Virtual destructor - */ - virtual ~CSsyReferenceChannel(); - - /** - * Request for SSY to open a sensor channel asynchronously. - * Response to the request is delivered through MSsyCallback::ChannelOpened(). - * Initilizes SSY (and the sensor) to be ready for other control commands via - * data and property providers. Multiple OpenChannel()-requests can be - * active for different channels at the same time. - * - * @return Symbian error code - */ - TInt OpenChannel(); - - /** - * Request to close a sensor channel asynchronously. - * Response to the request is delivered through MSsyCallback::ChannelClosed(). - * Multiple CloseChannel()-requests can be active for different channels - * at the same time. - * - * @return Symbian error code - */ - TInt CloseChannel(); - - /** - * Returns ID of this channel - */ - TInt ChannelId(); - - /** - * Handles response directed to this channel - * - * @param[in] aMessage Contains information of the response - */ - void ProcessResponse( TSsyReferenceMsg* aMessage ); - - /** - * Updates the state of this channel - * - * @param[in] aNewState State to update this channel - */ - void UpdateState( const TSsyReferenceChannelState aNewState ); - - /** - * Reference to SsyControl - */ - CSsyReferenceControl& SsyControl() const; - - /** - * Reference to command handler - */ - CSsyReferenceCmdHandler& CommandHandler() const; - - /** - * Search property of given property id from the channel properties and - * returns reference to that. Leaves with KErrNotFound if property is not found - * - * @param[in] aPropertyId Property ID to locate - * @param[in] aItemIndex Item index if this search conserns specific property - * @param[in] aArrayIndex Indicates array index of property - */ - TSensrvProperty& FindPropertyL( const TSensrvPropertyId aPropertyId, - TInt aItemIndex = KErrNotFound, - TInt aArrayIndex = ESensrvSingleProperty ); - - /** - * Search property of given property id from the channel properties and - * update property values, if not read only - * - * @param[in] aProperty Property to find and update - */ - void FindAndUpdatePropertyL( const TSensrvProperty& aProperty ); - - - /** - * Copies properties to param PropertyList - * - * @param[in, out] aPropertyList List where to copy properties - */ - void GetProperties( RSensrvPropertyList& aPropertyList ); - -private: - - /** - * C++ constructor. - * - * @param[in] aSsyControl Reference to SSY Control instance. - * @param[in] aChannelInfo Information of this channel - */ - CSsyReferenceChannel( CSsyReferenceControl& aSsyControl, TSensrvChannelInfo aChannelInfo ); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - - /** - * Handles response for OpenChannel and completes transaction by calling - * MSsyCallback::ChannelOpened - * - * @param[in] aError Error code indicating the channel opening status - */ - void HandleOpenChannelRespL( const TInt aError ); - - /** - * Handles response for CloseChannel and completes transaction by calling - * MSsyCallback::ChannelClosed - */ - void HandleCloseChannelResp(); - - /** - * Handles response for StartChannelData. Loops all channel data items and sends - * each item to ChannelDataProvider - */ - void HandleDataReceivedResp(); - -private: // data - - /** - * Reference to SSY Control to send responses to Sensor Server - */ - CSsyReferenceControl& iSsyControl; - - /** - * Pointer to CSsyReferenceChannelDataProvider owned by this channel - */ - CSsyReferenceChannelDataProvider* iChannelDataProvider; - - /** - * Pointer to CSsyReferencePropertyProvider owned by this channel - */ - CSsyReferencePropertyProvider* iChannelPropertyProvider; - - /** - * Pointer to command handler - */ - CSsyReferenceCmdHandler* iCmdHandler; - - /** - * Information of this channel - */ - TSensrvChannelInfo iChannelInfo; - - /** - * State of this channel. See CSsyReferenceChannel::TSsyReferenceChannelState - */ - TInt iState; - - /** - * Property list of this channel - */ - RSensrvPropertyList iProperties; - }; - -#endif // SSYREFERENCECHANNEL_H diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencechanneldataprovider.cpp --- a/sensorsupport/testsensor/src/ssyreferencechanneldataprovider.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,269 +0,0 @@ -// ssyreferencechanneldataprovider.cpp - -// Copyright (c) 2006-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 "ssyreferencechanneldataprovider.h" -#include "ssyreferencetrace.h" -#include "ssyreferencechannel.h" -#include "ssyreferencecontrol.h" -#include "ssyreferencecmdhandler.h" -#include - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferenceChannelDataProvider::CSsyReferenceChannelDataProvider( CSsyReferenceChannel& aChannel ) : - iChannel( aChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::CSsyReferenceChannelDataProvider()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::CSsyReferenceChannelDataProvider() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ConstructL()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ConstructL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::NewL -// --------------------------------------------------------------------------- -// -CSsyReferenceChannelDataProvider* CSsyReferenceChannelDataProvider::NewL( CSsyReferenceChannel& aChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::NewL()" ) ) ); - CSsyReferenceChannelDataProvider* self = new ( ELeave ) CSsyReferenceChannelDataProvider( aChannel ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferenceChannelDataProvider::~CSsyReferenceChannelDataProvider() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::~CSsyReferenceChannelDataProvider()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::~CSsyReferenceChannelDataProvider() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::StartChannelDataL -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::StartChannelDataL( - const TSensrvChannelId aChannelId, - TUint8* aBuffer, - TInt aCount ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::StartChannelDataL()" ) ) ); - - if ( iChannel.ChannelId() != aChannelId ) - { - User::Leave( KErrNotFound ); - } - - // Store buffer pointer - iDataBuffer = aBuffer; - iMaxCount = aCount; - iDataCount = 0; - - // Udpate channel state - iChannel.UpdateState( CSsyReferenceChannel::ESsyReferenceChannelReceiving ); - - // Start receiving - iChannel.CommandHandler().ProcessCommand( TSsyReferenceMsg( aChannelId, ESsyReferenceStartChannelData ) ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::StartChannelDataL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::StopChannelDataL -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::StopChannelDataL( const TSensrvChannelId aChannelId ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::StopChannelDataL()" ) ) ); - - // Leave if wrong channel - if ( iChannel.ChannelId() != aChannelId ) - { - User::Leave( KErrNotFound ); - } - - // Udpate channel state - iChannel.UpdateState( CSsyReferenceChannel::ESsyReferenceChannelOpen ); - - // Stop receiving - iChannel.CommandHandler().ProcessCommand( TSsyReferenceMsg( aChannelId, ESsyReferenceStopChannelData ) ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::StopChannelDataL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::ForceBufferFilledL -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::ForceBufferFilledL( const TSensrvChannelId aChannelId ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ForceBufferFilledL()" ) ) ); - - // Leave if wrong channel - if ( iChannel.ChannelId() != aChannelId ) - { - User::Leave( KErrNotFound ); - } - - // Send current buffer. Channel keeps receiveing - SendBufferFilled(); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ForceBufferFilledL() - return" ) ) ); - } - -// ----------------------------------------------------------------------------- -// CSensrvTestCases::GetChannelDataProviderInterfaceL -// ----------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::GetChannelDataProviderInterfaceL( TUid /*aInterfaceUid*/, - TAny*& aInterface ) - { - aInterface = NULL; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::ChannelDataReceived -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::ChannelDataReceivedL( TSsyReferenceMsg* aMessage ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ChannelDataReceived()" ) ) ); - - // Get base class from message - TSsyRefChannelDataBase* dataItemBase = aMessage->DataItem(); - - if ( !dataItemBase ) - { - User::Leave( KErrArgument ); - } - - // get size of the object - TInt size( dataItemBase->Size() ); - - // First, resolve data item type - switch ( dataItemBase->ChannelDataType() ) - { - case TSsyRefChannelDataBase::ESsyRefChannelTypeTapping: - { - // Cast data item base to tapping data item - TSsyRefChannelDataTapping* tappingData = static_cast( dataItemBase ); - TSensrvTappingData senSrvTapping; - senSrvTapping.iTimeStamp = tappingData->Timestamp(); - senSrvTapping.iDirection = tappingData->Direction(); - - // Add mapped data item into buffer - AddDataToBuffer( reinterpret_cast( &senSrvTapping ), size ); - break; - } - case TSsyRefChannelDataBase::ESsyRefChannelTypeAxis: - { - // Cast data item base to Axis data item - TSsyRefChannelDataAxis* axisData = static_cast( dataItemBase ); - TSensrvAccelerometerAxisData senSrvAxis; - senSrvAxis.iTimeStamp = axisData->Timestamp(); - senSrvAxis.iAxisX = axisData->XAxis(); - senSrvAxis.iAxisY = axisData->YAxis(); - senSrvAxis.iAxisZ = axisData->ZAxis(); - - // Add data to buffer - AddDataToBuffer( reinterpret_cast( &senSrvAxis ), size ); - break; - } - case TSsyRefChannelDataBase::ESsyRefChannelTypeProximity: - { - // Cast data item base to tapping data item - TSsyRefChannelDataProximity* proximityData = static_cast( dataItemBase ); - TSensrvProximityData senSrvProximity; - senSrvProximity.iProximityState = ( TSensrvProximityData::TProximityState ) proximityData->ProximityState(); - - // Add mapped data item into buffer - AddDataToBuffer( reinterpret_cast( &senSrvProximity ), size ); - break; - } - default: - { - // Unknown data item -> Leave - User::Leave( KErrUnknown ); - } - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::ChannelDataReceived() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::AddDataToBuffer -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::AddDataToBuffer( TUint8* aData, const TInt aSize ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::AddDataToBuffer()" ) ) ); - // Write data to buffer. If buffer is full, send notification to SensorServer - - // Write data bytes one by one to buffer pointer. The actual buffer is in Sensor Server - for ( TInt i = 0; i < aSize; i++ ) - { - *iDataBuffer++ = *aData++; - } - - // Increase number of items count - iDataCount++; - - // Check is maximum data count received - if ( iDataCount == iMaxCount ) - { - // Send BufferFilled notification to Sensor server - SendBufferFilled(); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::AddDataToBuffer() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceChannelDataProvider::SendBufferFilled -// --------------------------------------------------------------------------- -// -void CSsyReferenceChannelDataProvider::SendBufferFilled() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::SendBufferFilled()" ) ) ); - // Send BufferFilled notification to Sensor server - iChannel.SsyControl().SsyCallback().BufferFilled( iChannel.ChannelId(), iDataCount, iDataBuffer, iMaxCount ); - iDataCount = 0; - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceChannelDataProvider::SendBufferFilled() - return" ) ) ); - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencechanneldataprovider.h --- a/sensorsupport/testsensor/src/ssyreferencechanneldataprovider.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ -// ssyreferencechanneldataprovider.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - -#ifndef SSYREFERENCECHANNELDATAPROVIDER_H -#define SSYREFERENCECHANNELDATAPROVIDER_H - -#include - -class CSsyReferenceChannel; -class TSsyReferenceMsg; - -/** - * Channel data provider implementation. - */ -class CSsyReferenceChannelDataProvider : public CBase, public MSsyChannelDataProvider - { - -public: - - /** - * Two-phase constructor - * - * @param[in] aChannel Reference to channel this provider belongs to - * @return Pointer to created CSsyReferenceControl object - */ - static CSsyReferenceChannelDataProvider* NewL( CSsyReferenceChannel& aChannel ); - - /** - * Virtual destructor - */ - virtual ~CSsyReferenceChannelDataProvider(); - -// from base class MSsyChannelDataProvider - - /** - * From MSsyChannelDataProvider - * Starts asynchronous data listening. Multiple OpenChannel()-requests - * can be active for different channels at the same time. - * - * @param[in] aBuffer Pointer to a data buffer - * @param[in] aCount Indicates data buffer size as a count of the data objects. - */ - void StartChannelDataL( const TSensrvChannelId aChannelId, TUint8* aBuffer, TInt aCount ); - - /** - * From MSsyChannelDataProvider - * Stops asynchronous data listening. The data buffer is not valid after call of - * this function. - */ - void StopChannelDataL( const TSensrvChannelId aChannelId ); - - /** - * From MSsyChannelDataProvider - * Forces SSY to call BufferFilled() regardless of how many data items have been - * written to buffer. Even if no data items have yet been written, BufferFilled() - * must be called. - */ - void ForceBufferFilledL( const TSensrvChannelId aChannelId ); - - /** - * Returns a pointer to a specified interface - to allow future extension - * of this class without breaking binary compatibility - * - * @param aInterfaceUid Identifier of the interface to be retrieved - * @param aInterface A reference to a pointer that retrieves the specified interface. - */ - void GetChannelDataProviderInterfaceL( TUid aInterfaceUid, TAny*& aInterface ); - - /** - * Channel data item received - * - * @param[in] aMessage Contains channel item - */ - void ChannelDataReceivedL( TSsyReferenceMsg* aMessage ); - -private: - - /** - * C++ constructor. - * @param[in] aChannel Reference to channel this provider belongs to - */ - CSsyReferenceChannelDataProvider( CSsyReferenceChannel& aChannel ); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - - /** - * Adds data into buffer. - * - *@param[in] aData Data to add to buffer - *@param[in] aSize Size of data - */ - void AddDataToBuffer( TUint8* aData, const TInt aSize ); - - /** - * Sends BufferFilled notification to MSsyCallback - */ - void SendBufferFilled(); - -private: // data - - /** - * Reference to channel for which this provider belongs to - */ - CSsyReferenceChannel& iChannel; - - /** - * Pointer to data buffer in Sensor Server side - */ - TUint8* iDataBuffer; - - /** - * Maximum requested data items - */ - TInt iMaxCount; - - /** - * Number of items in buffer - */ - TInt iDataCount; - }; - -#endif // SSYREFERENCECHANNELDATAPROVIDER_H diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencecmdhandler.cpp --- a/sensorsupport/testsensor/src/ssyreferencecmdhandler.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,367 +0,0 @@ -// ssyreferencecmdhandler.cpp - -// Copyright (c) 2006-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 "ssyreferencecmdhandler.h" -#include "ssyreferencecontrol.h" -#include "ssyreferencechannel.h" -#include "ssyreferencetrace.h" - -// ======== CONSTANTS ======== -const TInt KSsyRefShortDelay = 100; - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferenceCmdHandler::CSsyReferenceCmdHandler( CSsyReferenceChannel& aSsyChannel ) : - CActive( EPriorityNormal ), - iSsyChannel( aSsyChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::CSsyReferenceCmdHandler()" ) ) ); - CActiveScheduler::Add( this ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::CSsyReferenceCmdHandler() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferenceCmdHandler::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ConstructL()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ConstructL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::NewL -// --------------------------------------------------------------------------- -// -CSsyReferenceCmdHandler* CSsyReferenceCmdHandler::NewL( CSsyReferenceChannel& aSsyChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::NewL()" ) ) ); - CSsyReferenceCmdHandler* self = new ( ELeave ) CSsyReferenceCmdHandler( aSsyChannel ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferenceCmdHandler::~CSsyReferenceCmdHandler() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::~CSsyReferenceCmdHandler()" ) ) ); - - if ( iMessage ) - { - // Send ProcessResponse - iMessage->SetError( KErrCancel ); - iSsyChannel.ProcessResponse( iMessage ); - delete iMessage; - iMessage = NULL; - } - - if ( iTimer ) - { - iTimer->Cancel(); - delete iTimer; - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::~CSsyReferenceCmdHandler() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::ProcessCommand -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceCmdHandler::ProcessCommand( TSsyReferenceMsg aMessage ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ProcessCommand()" ) ) ); - TInt err( KErrAlreadyExists ); - - // Special case, when channel is reciving, iMessage is not deleted after ProcessCommand - if ( aMessage.Function() == ESsyReferenceStopChannelData ) - { - // Stop 'receiving'. No need to handle this asynchronously - if ( iTimer ) - { - iTimer->Cancel(); - delete iTimer; - iTimer = NULL; - } - - iDataItemArray.Reset(); - iDataItemPtr = 0; - err = KErrNone; - // No need to send ProcessResponse either - delete iMessage; - iMessage = NULL; - } - else if ( !iMessage ) - { - iMessage = new TSsyReferenceMsg( aMessage ); - if(iMessage) - { - switch( aMessage.Function() ) - { - case ESsyReferenceStartChannelData: - { - // Get channel data items and start 'receiving' - IssueRequest(); - err = KErrNone; - break; - } - case ESsyReferenceOpenChannel: - { - // Open channel specific handling here - IssueRequest(); - err = KErrNone; - break; - } - case ESsyReferenceCloseChannel: - { - // Close channel specific handling here - IssueRequest(); - err = KErrNone; - break; - } - default: - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ProcessCommand() - Unknown function" ) ) ); - err = KErrNotFound; - } - } - } - else - { - err = KErrNoMemory; - } - } - else - { - err = KErrUnknown; - } - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ProcessCommand() - return" ) ) ); - return err; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::IssueRequest -// --------------------------------------------------------------------------- -// -void CSsyReferenceCmdHandler::IssueRequest( TInt aError ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::IssueRequest()" ) ) ); - // Provides synchronous function calls to be handled as asynchronous - if ( !IsActive() ) - { - TRequestStatus *s = &iStatus; - User::RequestComplete( s, aError ); - SetActive(); - } - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::IssueRequest() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::SendResponse -// --------------------------------------------------------------------------- -// -void CSsyReferenceCmdHandler::SendResponse( TInt aError ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::SendResponse()" ) ) ); - // Send response to channel - if ( iMessage ) - { - iMessage->SetError( aError ); - iSsyChannel.ProcessResponse( iMessage ); - delete iMessage; - iMessage = NULL; - } - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::SendResponse() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::RunL -// --------------------------------------------------------------------------- -// -void CSsyReferenceCmdHandler::RunL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::RunL() - %i" ), iStatus.Int() ) ); - - TInt err( iStatus.Int() ); - - if ( iMessage ) - { - switch( iMessage->Function() ) - { - case ESsyReferenceStartChannelData: - { - TInt startInterval( 0 ); - - // Get all Channel data information from config file - iSsyChannel.SsyControl().SsyConfig(). - GetChannelDataInformationL( iMessage->ChannelId(), iDataItemArray, startInterval ); - - // Check that channel data items were found - if ( iDataItemArray.Count() ) - { - // If interval is zero, set small interval - if ( startInterval == 0 ) - { - startInterval = KSsyRefShortDelay; - } - - // wait that interval - if ( iTimer ) - { - iTimer->Cancel(); - delete iTimer; - iTimer = NULL; - } - - // Reset pointer - iDataItemPtr = 0; - - // Start timer and continue processing in callback function - iTimer = CPeriodic::NewL( EPriorityNormal ); - iTimer->Start( startInterval * 1000, 0, TCallBack( DataItemCallback, this ) ); - } - break; - } - case ESsyReferenceOpenChannel: - { - // Open channel response specific handling here - iMessage->SetFunction( ESsyReferenceOpenChannelResp ); - SendResponse(); - break; - } - case ESsyReferenceCloseChannel: - { - // Close channel response specific handling here - iMessage->SetFunction( ESsyReferenceCloseChannelResp ); - SendResponse(); - break; - } - default: - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::ProcessCommand() - Unknown function" ) ) ); - err = KErrNotFound; - } - } - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::RunL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::DoCancel -// --------------------------------------------------------------------------- -// -void CSsyReferenceCmdHandler::DoCancel() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::DoCancel()" ) ) ); - - // Handle cancel for this channel. Cancel any ongoing requests - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::DoCancel() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::RunError -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceCmdHandler::RunError( TInt /*aError*/ ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::RunError()" ) ) ); - - // Handle possible errors here and return KErrNone to prevent SSY from panic - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::RunError() - return" ) ) ); - return KErrNone; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::DataItemCallback -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceCmdHandler::DataItemCallback( TAny* aThis ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::DataItemCallback()" ) ) ); - return static_cast( aThis )->GenerateChannelDataItem(); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceCmdHandler::GenerateChannelDataItem -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceCmdHandler::GenerateChannelDataItem() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::GenerateChannelDataItem()" ) ) ); - - // Get next item from list and set pointer to next item - TSsyRefChannelDataBase dataItem = iDataItemArray[iDataItemPtr++]; - - // Get next item interval from data item - TInt nextInterval( dataItem.Interval() ); - - // Set timestamp to data item - TTime time; - time.HomeTime(); - dataItem.SetTimestamp( time ); - - // If interval is zero, set small interval - if ( nextInterval == 0 ) - { - nextInterval = KSsyRefShortDelay; - } - - // Add data item to message - iMessage->SetDataItem( &dataItem ); - - // If in last data item, set pointer back to first item - if ( iDataItemArray.Count() == iDataItemPtr ) - { - iDataItemPtr = 0; - } - - // Send response and start new timer - iMessage->SetFunction( ESsyReferenceDataItemReceived ); - iSsyChannel.ProcessResponse( iMessage ); - - if ( iTimer ) - { - delete iTimer; - iTimer = NULL; - } - - TRAP_IGNORE( iTimer = CPeriodic::NewL( EPriorityNormal ); - iTimer->Start( nextInterval * 1000, 0, TCallBack( DataItemCallback, this ) ); ) - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceCmdHandler::GenerateChannelDataItem() - return" ) ) ); - return KErrNone; - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencecmdhandler.h --- a/sensorsupport/testsensor/src/ssyreferencecmdhandler.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,147 +0,0 @@ -// ssyreferencecmdhandler.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - -#ifndef SSYREFERENCECMDHANDLER_H -#define SSYREFERENCECMDHANDLER_H - -#include -#include "ssyreferenceconfig.h" - -// FORWARD DECLARATIONS -class CSsyReferenceChannel; - -/** - * Command handler class for handling commands of one channel. Each opened - * channel has its own instance of this class - */ -class CSsyReferenceCmdHandler : public CActive - { - -public: - - /** - * Two-phase constructor - * - * @param[in] aSsyChannel Reference to SSY Channel instance. - * @return Pointer to created CSsyReferenceCmdHandler object - */ - static CSsyReferenceCmdHandler* NewL( CSsyReferenceChannel& aSsyChannel ); - - /** - * Virtual destructor - */ - virtual ~CSsyReferenceCmdHandler(); - -// from base class CSsyControl - - /** - * Processes command specified in param aMessage. - * - * @param[in] aMessage Contains command information to process - * @return Symbian error code - */ - TInt ProcessCommand( TSsyReferenceMsg aMessage ); - - /** - * From CActive - */ - void RunL(); - - /** - * From CActive - */ - void DoCancel(); - - /** - * From CActive - */ - TInt RunError( TInt aError ); - - /** - * Callback function for DataItem generation - */ - static TInt DataItemCallback( TAny* aThis ); - - /** - * Handles data item generation. Called from DataItemCallback - */ - TInt GenerateChannelDataItem(); - -private: - - /** - * C++ constructor. - * - * @param[in] aSsyChannel Reference to SSY Channel instance. - */ - CSsyReferenceCmdHandler( CSsyReferenceChannel& aSsyChannel ); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - - /** - * Makes synchronous calls asynchronous - */ - void IssueRequest( TInt aError = KErrNone ); - - /** - * Sends response to channel - */ - void SendResponse( TInt aError = KErrNone ); - -private: // data - - /** - * Reference to SSY Conrtol to send responses for commands - */ - CSsyReferenceChannel& iSsyChannel; - - /** - * Pointer to currently processing message - */ - TSsyReferenceMsg* iMessage; - - /** - * Data item array - */ - TSsyRefDataItemArray iDataItemArray; - - /** - * Pointer to next item to generate in iDataItemArray - */ - TInt iDataItemPtr; - - /** - * Periodic timer for generating channel data - */ - CPeriodic* iTimer; - }; - -#endif // SSYREFERENCECMDHANDLER_H - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferenceconfig.cpp --- a/sensorsupport/testsensor/src/ssyreferenceconfig.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,896 +0,0 @@ -// ssyreferenceconfig.cpp - -// Copyright (c) 2006-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 -#include -#include -#include - -#include "ssyreferencecontrol.h" -#include "ssyreferenceconfig.h" -#include "ssyreferencetrace.h" - - -// ======== CONSTANTS ======= -_LIT( KSsyReferenceCfgFileOrig, "z:\\refssy\\ssyreferenceconfig.xml" ); -_LIT( KSsyReferenceCfgFileExt, "c:\\refssy\\ssyreferenceconfig.xml" ); - -// Config file definitions - -// Maximum attribute length -const TInt KSsyRefMaxAttribLength = 20; - -// TAG DEFINITIONS -_LIT( KSsyRefRootTag, "SsyReferenceConfig" ); // Ssy general information tag -_LIT( KSsyRefGeneralInfoTag, "SsyGeneralInformation" ); // Ssy general information tag -_LIT( KSsyRefChannelInfoGroupTag, "ChannelInformationGroup" ); // Channel information group tag -_LIT( KSsyRefChannelItemTag, "ChannelItem" ); // Channel item tag -_LIT( KSsyRefChannelDataTag, "ChannelData" ); // Channel data tag -_LIT( KSsyRefChannelDataItemTag, "ChannelDataItem" ); // Channel data item tag - -_LIT( KSsyRefProperties, "Properties" ); // Properties tag -_LIT( KSsyRefPropertyItem, "PropertyItem" ); // PropertyItem tag - -// Data item definitions -_LIT( KSsyRefAxisDataItemTag, "SsyRefChannelDataAxis" ); // SsyRefChannelDataAxis data item tag -_LIT( KSsyRefXAxis, "XAxis" ); // XAxis from SsyRefChannelDataAxis -_LIT( KSsyRefYAxis, "YAxis" ); // YAxis from SsyRefChannelDataAxis -_LIT( KSsyRefZAxis, "ZAxis" ); // ZAxis from SsyRefChannelDataAxis - -_LIT( KSsyRefTappingDataItemTag, "SsyRefChannelDataTapping" ); // SsyRefChannelDataTapping data item tag -_LIT( KSsyRefDirection, "Direction" ); // Direction from SsyRefChannelDataTapping - -_LIT( KSsyRefProximityDataItemTag, "SsyRefChannelDataProximity" ); // SsyRefChannelDataProximity data item tag -_LIT( KSsyRefProximityState, "ProximityState" ); // ProximityStatus from SsyRefChannelDataProximity - -// ATTRIBUTE DEFINITIONS -_LIT( KSsyRefChannelCount, "ChannelCount" ); // Channel count from ChannelInformationGroup -_LIT( KSsyRefChannelId, "ChannelId" ); // Channel ID from ChannelItem -_LIT( KSsyRefContextType, "ContextType" ); // Context type from ChannelItem -_LIT( KSsyRefQuantity, "Quantity" ); // Quantity from ChannelItem -_LIT( KSsyRefChannelType, "ChannelType" ); // ChannelType from ChannelItem -_LIT( KSsyRefLocation, "Location" ); // Location from ChannelItem -_LIT( KSsyRefVendorId, "Vendor" ); // Vendor from ChannelItem - - -// Channel data item specific attribute definitions -_LIT( KSsyRefStartInterval, "StartIntervalMs" ); // StartInterval from ChannelData -_LIT( KSsyRefDataItemCount, "count" ); // count from ChannelDataItem -_LIT( KSsyRefDataTypeID, "DataTypeId" ); // DataTypeId from ChannelDataItem -_LIT( KSsyRefInterval, "IntervalMs" ); // IntervalMs from ChannelDataItem - -// Property spesific attributes -_LIT( KSsyRefPropertyId, "PropertyId" ); // PropertyId from PropertyItem -_LIT( KSsyRefArrayIndex, "ArrayIndex" ); // ArrayIndex from PropertyItem -_LIT( KSsyRefItemIndex, "ItemIndex" ); // ItemIndex from PropertyItem -_LIT( KSsyRefPropertyValue, "PropertyValue" ); // PropertyValue from PorpertyItem -_LIT( KSsyRefPropertyType, "PropertyType" ); // PropertyType from PropertyItem -_LIT( KSsyRefMaxValue, "MaxValue" ); // MaxValue from PropertyItem -_LIT( KSsyRefMinValue, "MinValue" ); // MinValue from PorpertyItem -_LIT( KSsyRefReadOnly, "ReadOnly" ); // ReadOnly from PropertyItem - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferenceConfig::CSsyReferenceConfig() : - CActive( EPriorityMuchLess ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::CSsyReferenceConfig()" ) ) ); - CActiveScheduler::Add( this ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::CSsyReferenceConfig() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ConstructL()" ) ) ); - // Create config file parser - iConfigParser = CMDXMLParser::NewL( this ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ConstructL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::NewL -// --------------------------------------------------------------------------- -// -CSsyReferenceConfig* CSsyReferenceConfig::NewL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::NewL()" ) ) ); - CSsyReferenceConfig* self = new ( ELeave ) CSsyReferenceConfig(); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferenceConfig::~CSsyReferenceConfig() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::~CSsyReferenceConfig()" ) ) ); - - if ( iConfigParser ) - { - delete iConfigParser; - iConfigParser = NULL; - } - - if ( iGenralInfoElement ) - { - delete iGenralInfoElement; - iGenralInfoElement = NULL; - } - - if ( iChannelGroupElement ) - { - delete iChannelGroupElement; - iChannelGroupElement = NULL; - } - - if ( iSsyReferenceConfig ) - { - delete iSsyReferenceConfig; - iSsyReferenceConfig = NULL; - } - - if ( iConfigFile ) - { - delete iConfigFile; - iConfigFile = NULL; - } - - iChannelPairArray.Reset(); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::~CSsyReferenceConfig() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::InitConfig -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::InitConfigL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::InitConfig()" ) ) ); - - // Open config file - RFs fileSession; - User::LeaveIfError( fileSession.Connect() ); - - // Locate extrenal file... - RFile file; - TInt err( file.Open( fileSession, KSsyReferenceCfgFileExt, EFileRead ) ); - file.Close(); - - // Check is external file found - if ( KErrNone == err ) - { - // Use SSY with external configuration - User::LeaveIfError( iConfigParser->ParseFile( fileSession, KSsyReferenceCfgFileExt ) ); - } - else - { - // Use SSY with original configuration - - // Start parsing file and wait notification to ParseFileCompleteL - // XML Parser takes ownership of the RFs and closes it when file is parsed - User::LeaveIfError( iConfigParser->ParseFile( fileSession, KSsyReferenceCfgFileOrig ) ); - } - - iConfigFileParsed = EFalse; - - // This active object has very low priority since XML parser uses Active objects also, - // so it is mandatory to let XML parser to complete sooner than this active object - IssueRequest(); - iSchedulerWait.Start(); // Blocks until file is parsed - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::InitConfig() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::IssueRequest -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::IssueRequest( TInt aError ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::IssueRequest()" ) ) ); - // Provides synchronous function calls to be handled as asynchronous - if ( !IsActive() ) - { - SetActive(); - TRequestStatus *s = &iStatus; - User::RequestComplete( s, aError ); - } - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::IssueRequest() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::RunL -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::RunL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::RunL() - %i" ), iStatus.Int() ) ); - - if ( iConfigFileParsed ) - { - // Stop blocking - iSchedulerWait.AsyncStop(); - } - else - { - // Continue RunL loop - IssueRequest(); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::RunL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::DoCancel -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::DoCancel() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::DoCancel()" ) ) ); - - // Stop blocking - iSchedulerWait.AsyncStop(); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::DoCancel() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::RunError -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceConfig::RunError( TInt /*aError*/ ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::RunError()" ) ) ); - - // Handle possible errors here and return KErrNone to prevent SSY from panic - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::RunError() - return" ) ) ); - return KErrNone; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::ParseFileCompleteL -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::ParseFileCompleteL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ParseFileCompleteL()" ) ) ); - // First get document - iConfigFile = iConfigParser->DetachXMLDoc(); - // Then get document element - CMDXMLElement* documentElement = iConfigFile->DocumentElement(); - // Get root element, 'SsyReferenceConfig' - iSsyReferenceConfig = documentElement->FirstChildOfType( KSsyRefRootTag ); - // Get gereral information element - iGenralInfoElement = iSsyReferenceConfig->FirstChildOfType( KSsyRefGeneralInfoTag ); - // Get channel information group element - iChannelGroupElement = iSsyReferenceConfig->FirstChildOfType( KSsyRefChannelInfoGroupTag ); - // Get channel count - iChannelCount = GetAttributeIntValue( *iChannelGroupElement, KSsyRefChannelCount ); - - // No need to delete documentElement, it is owned by iConfigFile. - documentElement = NULL; - iConfigFileParsed = ETrue; - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ParseFileCompleteL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetAttributeIntValue -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceConfig::GetAttributeIntValue( CMDXMLElement& aElement, const TDesC& aAttrib ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeIntValue()" ) ) ); - COMPONENT_TRACE( ( _L( " Element: %s", aElement.NodeName() ) ) ); - COMPONENT_TRACE( ( _L( " Attribute: %s", aAttrib ) ) ); - - TInt intValue( 0 ); - - // Check availability - if ( aElement.IsAttributeSpecified( aAttrib ) ) - { - // Buffer to where to read value - TBufC buffer( KNullDesC ); - TPtrC ptr( buffer ); - - // Read attribute value - aElement.GetAttribute( aAttrib, ptr ); - - // Cast literal value into TInt - TLex lexValue( ptr ); - lexValue.Val( intValue ); - } - - COMPONENT_TRACE( ( _L( " IntValue: %i", intValue ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeIntValue() - return" ) ) ); - return intValue; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetAttributeStrValue -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GetAttributeStrValue( CMDXMLElement& aElement, const TDesC& aAttrib, TDes8& aTarget ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeStrValue()" ) ) ); - COMPONENT_TRACE( ( _L( " Element: %s", aElement.NodeName() ) ) ); - COMPONENT_TRACE( ( _L( " Attribute: %s", aAttrib ) ) ); - - // Check availability - if ( aElement.IsAttributeSpecified( aAttrib ) ) - { - // Buffer to where to read value - TBufC buffer( KNullDesC ); - TPtrC ptr( buffer ); - - // Read attribute value - aElement.GetAttribute( aAttrib, ptr ); - - // Copy string from 16-bit descriptor to 8-bit descriptor - aTarget.Copy( ptr ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeStrValue() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetAttributeHexValue -// --------------------------------------------------------------------------- -// -TUint CSsyReferenceConfig::GetAttributeHexValue( CMDXMLElement& aElement, const TDesC& aAttrib ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeHexValue()" ) ) ); - COMPONENT_TRACE( ( _L( " Element: %s", aElement.NodeName() ) ) ); - COMPONENT_TRACE( ( _L( " Attribute: %s", aAttrib ) ) ); - - TUint32 hexValue( 0 ); - - // Check availability - if ( aElement.IsAttributeSpecified( aAttrib ) ) - { - // Buffer to where to read value - TBufC buffer( KNullDesC ); - TPtrC ptr( buffer ); - - // Read attribute value - aElement.GetAttribute( aAttrib, ptr ); - - // Get bounded value and cast it into TUint32 (hex) - TRadix radix( EHex ); - TUint limit( 0xFFFFFFFF ); - - // Append string into Lex and skip first two characters, 0x - TLex lexValue( ptr ); - lexValue.Inc( 2 ); - - // Read value - lexValue.BoundedVal( hexValue, radix, limit ); - } - - COMPONENT_TRACE( ( _L( " HexValue: %x", hexValue ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeHexValue() - return" ) ) ); - return hexValue; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetAttributeRealValue -// --------------------------------------------------------------------------- -// -TReal CSsyReferenceConfig::GetAttributeRealValue( CMDXMLElement& aElement, const TDesC& aAttrib ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeRealValue()" ) ) ); - COMPONENT_TRACE( ( _L( " Element: %s", aElement.NodeName() ) ) ); - COMPONENT_TRACE( ( _L( " Attribute: %s", aAttrib ) ) ); - - TReal realValue( 0 ); - - // Check availability - if ( aElement.IsAttributeSpecified( aAttrib ) ) - { - - // Buffer to where to read value - TBufC buffer( KNullDesC ); - TPtrC ptr( buffer ); - - // Read attribute value - aElement.GetAttribute( aAttrib, ptr ); - - // Cast literal value into TReal - TLex lexValue( ptr ); - TInt error = lexValue.Val( realValue ); - if( error!=KErrNone ) - { - realValue = error; - } - } - - COMPONENT_TRACE( ( _L( " IntValue: %i", realValue ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetAttributeRealValue() - return" ) ) ); - return realValue; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::ChannelCount -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceConfig::ChannelCount() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ChannelCount() - %i" ), iChannelCount ) ); - return iChannelCount; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GenerateChannels -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GenerateChannels( RSensrvChannelInfoList& aChannelList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GenerateChannels()" ) ) ); - - // Initialize channel pair array - TSsyRefChannelIdArray tempArray( iChannelCount ); - iChannelPairArray = tempArray; - - // Go through Channel group element and get all information - TSensrvChannelInfo channelInfo; - CMDXMLElement* channelElement = iChannelGroupElement->FirstChildOfType( KSsyRefChannelItemTag ); - - while( channelElement ) - { - // check is element correct type of node - if ( channelElement->NodeType() == CMDXMLNode::EElementNode ) - { - // read channel identifier - iChannelPairArray.Append( TSsyRefChannelIdPair( GetAttributeIntValue( *channelElement, KSsyRefChannelId ) ) ); - - // Read attributes - channelInfo.iContextType = ( TSensrvContextType ) GetAttributeIntValue( *channelElement, KSsyRefContextType ); - channelInfo.iQuantity = ( TSensrvQuantity ) GetAttributeIntValue( *channelElement, KSsyRefQuantity ); - channelInfo.iChannelType = ( TSensrvChannelTypeId ) GetAttributeHexValue( *channelElement, KSsyRefChannelType ); - GetAttributeStrValue( *channelElement, KSsyRefLocation, channelInfo.iLocation ); - GetAttributeStrValue( *channelElement, KSsyRefVendorId, channelInfo.iVendorId ); - channelInfo.iChannelDataTypeId = ( TSensrvChannelDataTypeId ) GetAttributeHexValue( *channelElement, KSsyRefDataTypeID ); - - // Calculate data item size based on channel type - switch ( channelInfo.iChannelType ) - { - case KSensrvChannelTypeIdAccelerometerXYZAxisData: - { - channelInfo.iDataItemSize = KSsyRefAxisDataItemSize; - break; - } - case KSensrvChannelTypeIdProximityMonitor: - { - channelInfo.iDataItemSize = KSsyRefProximityDataItemSize; - break; - } - case KSensrvChannelTypeIdAccelerometerWakeupData: - case KSensrvChannelTypeIdAccelerometerDoubleTappingData: - { - channelInfo.iDataItemSize = KSsyRefTappingDataItemSize; - break; - } - default: - { - channelInfo.iDataItemSize = 0; - break; - } - } - - // Append channel info to list - aChannelList.Append( channelInfo ); - } - channelElement = static_cast( channelElement->NextSibling() ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GenerateChannels() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetChannelDataInformation -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GetChannelDataInformationL( - const TInt aSrvChannelId, - TSsyRefDataItemArray& aDataItemList, - TInt& aStartInterval ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetChannelDataInformation()" ) ) ); - - // First, get correct config channel element corresponding to aSrvChannelId - CMDXMLElement* channelElement = ChannelElement( aSrvChannelId ); - - if ( channelElement ) - { - // Channel element found, get channel data group element - CMDXMLElement* groupElement = channelElement->FirstChildOfType( KSsyRefChannelDataTag ); - - if ( groupElement ) - { - // Get start interval - aStartInterval = GetAttributeIntValue( *groupElement, KSsyRefStartInterval ); - - // First, loop channel data items to get total count - CMDXMLElement* dataItemElement = groupElement->FirstChildOfType( KSsyRefChannelDataItemTag ); - - // Take channel data item type at this point. One channel can produce only one type of - // channel data item - TUint channelType( GetAttributeHexValue( *dataItemElement, KSsyRefDataTypeID ) ); - - TInt channelItemCount( 0 ); // Total number of data items - TInt definitionCount( 0 ); // Total number of different definitions - - // Go through elements and get counters - while ( dataItemElement ) - { - definitionCount++; - channelItemCount = channelItemCount + GetAttributeIntValue( *dataItemElement, KSsyRefDataItemCount ); - // This will return NULL if no next sibling found - dataItemElement = static_cast( dataItemElement->NextSibling() ); - } - - // Now, start all over to get item information - dataItemElement = groupElement->FirstChildOfType( KSsyRefChannelDataItemTag ); - - // Create temp array now that we know the data item count - TSsyRefDataItemArray tempArray( channelItemCount ); - - for ( TInt i = 0; i < definitionCount; i++ ) - { - // Check element type - if ( dataItemElement->NodeType() == CMDXMLNode::EElementNode ) - { - // First we get interval and count from channel item - TInt interval( GetAttributeIntValue( *dataItemElement, KSsyRefInterval ) ); - TInt countOfType( GetAttributeIntValue( *dataItemElement, KSsyRefDataItemCount ) ); - - // Read next child values to corresponding data type class - switch ( channelType ) - { - case TSensrvAccelerometerAxisData::KDataTypeId: - { - CMDXMLElement* axisDataElement = dataItemElement->FirstChildOfType( KSsyRefAxisDataItemTag ); - TInt axisX( GetAttributeIntValue( *axisDataElement, KSsyRefXAxis ) ); - TInt axisY( GetAttributeIntValue( *axisDataElement, KSsyRefYAxis ) ); - TInt axisZ( GetAttributeIntValue( *axisDataElement, KSsyRefZAxis ) ); - - // Create channel data type item - TSsyRefChannelDataAxis channelData( axisX, axisY, axisZ, interval ); - // add items into array - for ( TInt k = 0; k < countOfType; k++ ) - { - tempArray.Append( channelData ); - } - break; - } - case TSensrvTappingData::KDataTypeId: - { - CMDXMLElement* tappingDataElement = dataItemElement->FirstChildOfType( KSsyRefTappingDataItemTag ); - TInt direction( GetAttributeHexValue( *tappingDataElement, KSsyRefDirection ) ); - - // Create channel data type item - TSsyRefChannelDataTapping channelData( direction, interval ); - // add items into array - for ( TInt k = 0; k < countOfType; k++ ) - { - tempArray.Append( channelData ); - } - break; - } - case TSensrvProximityData::KDataTypeId: - { - CMDXMLElement* proximityDataElement = dataItemElement->FirstChildOfType( KSsyRefProximityDataItemTag ); - TInt state( GetAttributeIntValue( *proximityDataElement, KSsyRefProximityState ) ); - - // Create channel data type item - TSsyRefChannelDataProximity channelData( state, interval ); - // add items into array - for ( TInt k = 0; k < countOfType; k++ ) - { - tempArray.Append( channelData ); - } - break; - } - default: - { - // Other data items are not supported - User::Leave( KErrGeneral ); - } - } - } - - // Get next channel data item element - dataItemElement = static_cast( dataItemElement->NextSibling() ); - } - - // Compress temp array in case there were comments - tempArray.Compress(); - - // copy information to param array - aDataItemList = tempArray; - } - else - { - User::Leave( KErrNotFound ); - } - } - else - { - User::Leave( KErrNotFound ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetChannelDataInformation() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetElementPropertiesL -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GetElementPropertiesL( - CMDXMLElement& aElement, - RSensrvPropertyList& aPropertyList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetElementPropertiesL()" ) ) ); - - // First we need 'Properties' element - CMDXMLElement* properties = aElement.FirstChildOfType( KSsyRefProperties ); - - if ( !properties ) - { - // Wrong element... or properties are not defined - User::Leave( KErrNotFound ); - } - - // Get first property get started - CMDXMLElement* propertyItem = properties->FirstChildOfType( KSsyRefPropertyItem ); - TInt propertyCount( 0 ); - - // Loop properties to get count of properties - while ( propertyItem ) - { - propertyCount++; - propertyItem = static_cast( propertyItem->NextSibling() ); // returns NULL if next not found - } - - if ( !propertyCount ) - { - // Check that there are properties - User::Leave( KErrNotFound ); - } - - // Temporary property list now that we know the property count - RSensrvPropertyList tempList( propertyCount ); - - // Start loop again from the start and read each property - propertyItem = properties->FirstChildOfType( KSsyRefPropertyItem ); - for ( TInt i = 0; i < propertyCount; i++ ) - { - // Check element type - if ( propertyItem->NodeType() == CMDXMLNode::EElementNode ) - { - // Read property values - const TSensrvPropertyId propertyId( ( TSensrvPropertyId )GetAttributeHexValue( *propertyItem, KSsyRefPropertyId ) ); - const TInt itemIndex( GetAttributeIntValue( *propertyItem, KSsyRefItemIndex ) ); - const TBool readOnly( ( TBool )GetAttributeIntValue( *propertyItem, KSsyRefReadOnly ) ); - const TSensrvPropertyType propertyType( ( TSensrvPropertyType ) GetAttributeIntValue( *propertyItem, KSsyRefPropertyType ) ); - - // Array index must be handled in different way as it is not mandatory and it may not exist in XML file - TInt arrayIndex( ESensrvSingleProperty ); - - // Extra check is needed, otherwise this value is always '0' when it should be 'ESensrvSingleProperty' by default - if ( propertyItem->IsAttributeSpecified( KSsyRefArrayIndex ) ) - { - // Attribute exists, now we can read the value - arrayIndex = GetAttributeIntValue( *propertyItem, KSsyRefArrayIndex ); - } - - // Resolve type, get correct type value and append property into list - switch ( propertyType ) - { - case ESensrvIntProperty: - { - const TInt intValue( GetAttributeIntValue( *propertyItem, KSsyRefPropertyValue ) ); - const TInt maxValue( GetAttributeIntValue( *propertyItem, KSsyRefMaxValue ) ); - const TInt minValue( GetAttributeIntValue( *propertyItem, KSsyRefMinValue ) ); - TSensrvProperty property( propertyId, itemIndex, intValue, maxValue, minValue, readOnly, propertyType ); - property.SetArrayIndex( arrayIndex ); - tempList.Append( property ); - break; - } - case ESensrvRealProperty: - { - const TReal intValue( GetAttributeRealValue( *propertyItem, KSsyRefPropertyValue ) ); - const TReal maxValue( GetAttributeRealValue( *propertyItem, KSsyRefMaxValue ) ); - const TReal minValue( GetAttributeRealValue( *propertyItem, KSsyRefMinValue ) ); - TSensrvProperty property( propertyId, itemIndex, intValue, maxValue, minValue, readOnly, propertyType ); - property.SetArrayIndex( arrayIndex ); - tempList.Append( property ); - break; - } - case ESensrvBufferProperty: - { - TBuf8 desValue; - GetAttributeStrValue( *propertyItem, KSsyRefPropertyValue, desValue ); - TSensrvProperty property( propertyId, itemIndex, desValue, readOnly, propertyType ); - property.SetArrayIndex( arrayIndex ); - tempList.Append( property ); - break; - } - default: - { - // Unknown property type -> leave - User::Leave( KErrArgument ); - } - } - } - - // Next property - propertyItem = static_cast( propertyItem->NextSibling() ); // returns NULL if next not found - } - - // Compress temp list in case there were comment nodes - tempList.Compress(); - - // copy temp list to parameter list - aPropertyList = tempList; - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetElementPropertiesL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::ChannelElement -// --------------------------------------------------------------------------- -// -CMDXMLElement* CSsyReferenceConfig::ChannelElement( const TInt aSrvChannelId ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ChannelElement()" ) ) ); - - const TInt configId( ConfigChannelId( aSrvChannelId ) ); - TBool channelFound( EFalse ); - - // Loop channel group and match configId for the channel ID in element - CMDXMLElement* channelItemElement = iChannelGroupElement->FirstChildOfType( KSsyRefChannelItemTag ); - - for ( TInt i = 0; i < iChannelCount && !channelFound; i++ ) - { - TInt channelId( GetAttributeIntValue( *channelItemElement, KSsyRefChannelId ) ); - if ( configId == channelId ) - { - // Channel found, no need to loop - channelFound = ETrue; - } - else - { - // Take next channel - channelItemElement = static_cast( channelItemElement->NextSibling() ); - } - } - - // If not found, return NULL - if ( !channelFound ) - { - channelItemElement = NULL; - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ChannelElement() - return" ) ) ); - return channelItemElement; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::UpdateChannelIds -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::UpdateChannelIds( RSensrvChannelInfoList aChannelList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::UpdateChannelIds()" ) ) ); - - - if ( ChannelCount() == aChannelList.Count() ) - { - for ( TInt i = 0; i < aChannelList.Count(); i++ ) - { - iChannelPairArray[i].SetServerId( aChannelList[i].iChannelId ); - } - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::UpdateChannelIds() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::ConfigChannelId -// --------------------------------------------------------------------------- -// -TInt CSsyReferenceConfig::ConfigChannelId( const TInt aSrvChannelId ) const - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ConfigChannelId()" ) ) ); - TInt returnValue( 0 ); - - for ( TInt i = 0; i < iChannelPairArray.Count(); i++ ) - { - if ( iChannelPairArray[i].ServerId() == aSrvChannelId ) - { - returnValue = iChannelPairArray[i].ConfigId(); - } - } - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::ConfigChannelId() - return" ) ) ); - return returnValue; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetSensorPropertiesL -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GetSensorPropertiesL( RSensrvPropertyList& aPropertyList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetSensorPropertiesL()" ) ) ); - - // We already have SsyGeneralInformation element, read properties from that - GetElementPropertiesL( *iGenralInfoElement, aPropertyList ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetSensorPropertiesL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceConfig::GetChannelPropertiesL -// --------------------------------------------------------------------------- -// -void CSsyReferenceConfig::GetChannelPropertiesL( - const TInt aSrvChannelId, - RSensrvPropertyList& aPropertyList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetChannelPropertiesL()" ) ) ); - - // Get channel element first - CMDXMLElement* channelElement = ChannelElement( aSrvChannelId ); - - if ( !channelElement ) - { - // Leave, channel element is not found - User::Leave( KErrNotFound ); - } - - // Get properties of this channel element - GetElementPropertiesL( *channelElement, aPropertyList ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceConfig::GetChannelPropertiesL() - return" ) ) ); - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferenceconfig.h --- a/sensorsupport/testsensor/src/ssyreferenceconfig.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,522 +0,0 @@ -// ssyreferenceconfig.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - - -#ifndef SSYREFERENCECONFIG_H -#define SSYREFERENCECONFIG_H - -// INCLUDES -#include -#include -#include -#include -#include -#include -#include -#include - -// CONSTANTS -// Data item sizes -const TInt KSsyRefAxisDataItemSize = sizeof( TSensrvAccelerometerAxisData ); -const TInt KSsyRefTappingDataItemSize = sizeof( TSensrvTappingData ); -const TInt KSsyRefProximityDataItemSize = sizeof( TSensrvProximityData ); - -// ENUMS -enum TSsyReferenceFunctions - { - ESsyReferenceOpenChannel, - ESsyReferenceOpenChannelResp, - ESsyReferenceDataItemReceived, - ESsyReferenceCloseChannel, - ESsyReferenceCloseChannelResp, - ESsyReferenceStartChannelData, - ESsyReferenceStopChannelData - }; - -/** - * Base class for Channel data types. Contains iChannelDataType which is set - * by derived classes on construction. - */ -class TSsyRefChannelDataBase - { - public: - /** - * Enumeration for possible channel data types - */ - enum TSsyRefChannelDataType - { - ESsyRefChannelTypeTapping = 5000, - ESsyRefChannelTypeAxis, - ESsyRefChannelTypeProximity, - ESsyRefChannelTypeAmbientLight - }; - - TInt ChannelDataType() const { return iChannelDataType; } - TInt Interval() const { return iInterval; } - - void SetTimestamp( const TTime aTimestamp ) { iTimestamp = aTimestamp; } - TTime Timestamp() const { return iTimestamp; } - - TInt Size() const { return iSize; } - - protected: - - /** - * Protected constructor as this class is not supposed to be instantiate - * directly. - */ - TSsyRefChannelDataBase() {} - - protected: // data - - /** - * Identifies the type of data type class derived from this base class - */ - TInt iChannelDataType; - - /** - * Interval. Indicates time in ms from previous item until next item is produced - */ - TInt iInterval; - - /** - * Timestamp. Time when this data item is generated. - */ - TTime iTimestamp; - - /** - * Size of one data item. This is filled by derived class - */ - TInt iSize; - - /** - * Axis data item values. - * Accessible only from TSsyRefChannelDataAxis class - */ - TInt iXAxis; - TInt iYAxis; - TInt iZAxis; - - - /** - * Proximity data item values. - * Accessible only from TSsyRefChannelProximity class - */ - TInt iProximityState; - - /** - * AmbientLight data item values. - * Accessible only from TSsyRefChannelAmbientLight class - */ - TInt iAmbientLightState; - - /** - * Tapping data item values. Difrection of the tapping. - * Accessible only from TSsyRefChannelDataTapping class - */ - TInt iDirection; - }; - -// Type definition array for Data item base class -typedef RArray TSsyRefDataItemArray; - -/** - * Message item for SSY <--> Sensor communications - * Contains Channel ID for which the message belongs to, - * Function ID that identifies the command and - * error for error cases. - */ -class TSsyReferenceMsg - { - public: - - /** - * Constructor of the TSsyReferenceMsg - * - * @param[in] aChannelId Channel identifier - * @param[in] aFunction See TSsyReferenceFunctions - */ - TSsyReferenceMsg( TInt aChannelId, TInt aFunction ) : - iChannelId( aChannelId ), - iFunction( aFunction ), - iError( KErrNone ) - {} - - /** - * Copy constructor of the TSsyReferenceMsg - * - * @param[in] aMsg Object to be copied to constructed object - */ - TSsyReferenceMsg( const TSsyReferenceMsg& aMsg ) : - iChannelId( aMsg.iChannelId ), - iFunction( aMsg.iFunction ), - iError( aMsg.iError ) - {} - - TInt ChannelId() { return iChannelId; } - - void SetFunction( TInt aFunction ) { iFunction = aFunction; } - TInt Function() { return iFunction; } - - void SetError( TInt aError ) { iError = aError; } - TInt Error() { return iError; } - - void SetDataItem( TSsyRefChannelDataBase* aDataItem ) { iDataItem = aDataItem; } - TSsyRefChannelDataBase* DataItem() const { return iDataItem; } - - private: // data - - TInt iChannelId; // Identifies the channel - TInt iFunction; // Identifies the command - TInt iError; // Error is passed to response handler - - // Data item for received data. This is casted to correct data item - // class implementation according to ChannelDataType - TSsyRefChannelDataBase* iDataItem; - }; - -/** - * Tapping data type class implementation. - */ -class TSsyRefChannelDataTapping : public TSsyRefChannelDataBase - { - public: - - TSsyRefChannelDataTapping( TInt aDirection, TInt aInterval ) - { - iChannelDataType = ESsyRefChannelTypeTapping; - iSize = KSsyRefTappingDataItemSize; - iInterval = aInterval; - iDirection = aDirection; - } - - TInt Direction() const { return iDirection; } - }; - -/** - * XYZ Axis data type class implementation. - */ -class TSsyRefChannelDataAxis : public TSsyRefChannelDataBase - { - public: - - TSsyRefChannelDataAxis( TInt aXAxis, TInt aYAxis, TInt aZAxis, - TInt aInterval ) - { - iChannelDataType = ESsyRefChannelTypeAxis; - iSize = KSsyRefAxisDataItemSize; - iInterval = aInterval; - iXAxis = aXAxis; - iYAxis = aYAxis; - iZAxis = aZAxis; - } - - TInt XAxis() const { return iXAxis; } - TInt YAxis() const { return iYAxis; } - TInt ZAxis() const { return iZAxis; } - }; - - -/** - * Proximity data type class implementation. - */ -class TSsyRefChannelDataProximity : public TSsyRefChannelDataBase - { - public: - - TSsyRefChannelDataProximity( TInt aProximityState, TInt aInterval ) - { - iChannelDataType = ESsyRefChannelTypeProximity; - iSize = KSsyRefProximityDataItemSize; - iInterval = aInterval; - iProximityState = aProximityState; - } - - TInt ProximityState() const { return iProximityState; } - }; - -/** - * Channel ID pair class for pairing config file channel id and - * Sensor Server generated channel ID. - */ -class TSsyRefChannelIdPair - { - public: - /** - * Constructor of the TSsyRefChannelIdPair - * - * @param[in] aConfigChannelId Channel identifier from config file - */ - TSsyRefChannelIdPair( TInt aConfigChannelId ) : - iConfigChannelId( aConfigChannelId ) - {} - - TInt ConfigId() const { return iConfigChannelId; } - TInt ServerId() const { return iSrvChannelId; } - - void SetServerId( const TInt aSrvId ) { iSrvChannelId = aSrvId; } - - private: // data - - TInt iConfigChannelId; // Config file ID of the channel - TInt iSrvChannelId; // Sensor server assigned ID of the channel - }; - -typedef RArray TSsyRefChannelIdArray; - - -// CONSTANTS - -/** - * Configuration class for SSY reference plugin. Generates configured SSY channel information. - * This keeps reference SSY implementation independent from 'sensor' it uses. This class is fully - * modifiable regarding to the needs of this SSY. It may be for example accelerometer sensor - * without any changes in the SSY reference implementation. Only this class is modified. - */ -class CSsyReferenceConfig : public CActive, public MMDXMLParserObserver - { - -public: - - /** - * Two-phase constructor - * - * @return Pointer to created CSsyReferenceControl object - */ - static CSsyReferenceConfig* NewL(); - - /** - * Virtual destructor - */ - virtual ~CSsyReferenceConfig(); - - /** - * From CActive - */ - void RunL(); - - /** - * From CActive - */ - void DoCancel(); - - /** - * From CActive - */ - TInt RunError( TInt aError ); - - /** - * From MMDXMLParserObserver - * - * Call back function used to inform a client of the Parser when a parsing operation completes. - */ - void ParseFileCompleteL(); - - /** - * Starts parsing config file. This function blocks until file is parsed - */ - void InitConfigL(); - - /** - * Total number of channels this SSY provides - * - * @return Count of channels this SSY is configured to provide - */ - TInt ChannelCount(); - - /** - * Generates channels this SSY is configured to provide - * - * @param[in,out] aChannnelList Filled with generated channels by this configurator - */ - void GenerateChannels( RSensrvChannelInfoList& aChannelList ); - - /** - * Updates Sensor server's generated channel Ids - * - * @param[in] aChannnelList Same list as GenerateChannels produces but - * this contains channel identifiers - */ - void UpdateChannelIds( RSensrvChannelInfoList aChannelList ); - - /** - * Reads all channel data information from config file and fills - * parameters with information - * - * @param[in] aSrvChannelId Sensor server generated channel id of the target channel - * @param[in,out] aDataItemList Contains data item objects defined in config file. Each - * Data item is presented as Data Item class derived from TSsyRefChannelDataBase. - * List can contain only one type of derived channel data items - * @param[in,out] aStartInterval Contains start interval to start producing data items - */ - void GetChannelDataInformationL( const TInt aSrvChannelId, - TSsyRefDataItemArray& aDataItemList, - TInt& aStartInterval ); - - /** - * Reads sensor properties from config file and adds them to list - * - * @param[out] aPropertyList List where to append properties - */ - void GetSensorPropertiesL( RSensrvPropertyList& aPropertyList ); - - /** - * Reads channel properties from config file and adds them to list - * - * @param[in] aSenSrvChannelId Sensor server generated channel id - * @param[out] aPropertyList List where to append properties - */ - void GetChannelPropertiesL( const TInt aSrvChannelId, - RSensrvPropertyList& aPropertyList ); - -private: - - /** - * C++ constructor. - */ - CSsyReferenceConfig(); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - - /** - * Makes synchronous calls asynchronous - */ - void IssueRequest( TInt aError = KErrNone ); - - /** - * Reads attribute value from element and casts it into TInt value - * - * @param[in] aElement Element from where to read attribute - * @param[in] aAttrib Attribute name which to read - * @return Integer value of read value - */ - TInt GetAttributeIntValue( CMDXMLElement& aElement, const TDesC& aAttrib ); - - /** - * Reads attribute value from element and casts it into literal value - * - * @param[in] aElement Element from where to read attribute - * @param[in] aAttrib Attribute name which to read - * @param[in/out] aTarget Target descriptor where to copy read literal - */ - void GetAttributeStrValue( CMDXMLElement& aElement, const TDesC& aAttrib, TDes8& aTarget ); - - /** - * Reads attribute value from element and casts it into TReal value - * - * @param[in] aElement Element from where to read attribute - * @param[in] aAttrib Attribute name which to read - * @return value of the attribute - */ - TReal GetAttributeRealValue( CMDXMLElement& aElement, const TDesC& aAttrib ); - - /** - * Reads Hexadesimal attribute value from element and casts it into Integer value - * - * @param[in] aElement Element from where to read attribute - * @param[in] aAttrib Attribute name which to read - * @return Unsigned integer value of read Hexadesimal value - */ - TUint GetAttributeHexValue( CMDXMLElement& aElement, const TDesC& aAttrib ); - - /** - * Compares Sensor server generated channel IDs and return corresponding - * ConfigFile channel id - * - * @param[in] aSrvChannelId SenServer generated channel ID for which pair is needed - * @return ConfigFile channel ID that is paired with aSrvChannelId - */ - TInt ConfigChannelId( const TInt aSrvChannelId ) const; - - /** - * Searches channel element for given SensorServer generated channel ID - * - * @param[in] aSrvChannelId SenServer generated channel ID identifying wanted channel element - * @return Pointer to found channel element or NULL if not found - */ - CMDXMLElement* ChannelElement( const TInt aSrvChannelId ); - - /** - * Reads properties from given element and adds them to list. - * Element can be either 'SsyGenealInformation' or 'ChannelItem' - * - * @param[in] aElement Element from where to read properties - * @param[out] aPropertyList List where to append properties - */ - void GetElementPropertiesL( CMDXMLElement& aElement, RSensrvPropertyList& aPropertyList ); - - -private: // data - - /** - * Pointer of the config xml-file parser - */ - CMDXMLParser* iConfigParser; - - /** - * Contains Ssy general information element and all of its childs - */ - CMDXMLElement* iGenralInfoElement; - - /** - * Contains Ssy Channel information group element and all of its childs - * including each channel information and channel data for testing purpose - */ - CMDXMLElement* iChannelGroupElement; - - /** - * Number of channels defined in config file - */ - TInt iChannelCount; - - /** - * Active scheduler wait for blocking construction until config file is parsed - */ - CActiveSchedulerWait iSchedulerWait; - - /** - * Indicates is config file parsed - */ - TBool iConfigFileParsed; - - /** - * Channel ID pair array - */ - TSsyRefChannelIdArray iChannelPairArray; - - /** - * Elements of the config file. These needs to be stored - */ - CMDXMLDocument* iConfigFile; - CMDXMLElement* iSsyReferenceConfig; // Root of the config - }; - -#endif //SSYREFERENCECONFIG_H - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencecontrol.cpp --- a/sensorsupport/testsensor/src/ssyreferencecontrol.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,281 +0,0 @@ -// ssyreferencecontrol.cpp - -// Copyright (c) 2006-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 // MSsyCallback -#include "ssyreferencecontrol.h" -#include "ssyreferencetrace.h" -#include "ssyreferencechannel.h" -#include "ssyreferencecmdhandler.h" - - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferenceControl C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferenceControl::CSsyReferenceControl( MSsyCallback& aSsyCallback ) : - iSsyCallback( aSsyCallback ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::CSsyReferenceControl()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::CSsyReferenceControl() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferenceControl::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::ConstructL()" ) ) ); - - // Create configurator and start config file parsing - iConfigFile = CSsyReferenceConfig::NewL(); - TRAPD( err, iConfigFile->InitConfigL() ); // This will block until config is ready - - if ( KErrNone != err ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::ConstructL() - Init config failed: %i" ), err ) ); - } - - // --------------------------------------------------------------- - - // Store channel count for later use - const TInt channelCount( iConfigFile->ChannelCount() ); - - // Instantiate channel info list - RSensrvChannelInfoList channelInfoList( channelCount ); - CleanupClosePushL( channelInfoList ); - - // Fills channel info list with generated channel info objects - iConfigFile->GenerateChannels( channelInfoList ); - - // Register channels. Sensor Server generates unique ID for each channel - iSsyCallback.RegisterChannelsL( channelInfoList ); - - // Update channel IDs to ConfigFile - iConfigFile->UpdateChannelIds( channelInfoList ); - - // Create channels - iChannelArray = new ( ELeave ) CArrayPtrFlat( channelCount ); - for ( TInt i = 0; i < channelCount; i++ ) - { - CSsyReferenceChannel* channel = CSsyReferenceChannel::NewL( *this, channelInfoList[i] ); - iChannelArray->AppendL( channel ); - } - - // Clean up - CleanupStack::PopAndDestroy( &channelInfoList ); - - // Get properties of this SSY. Leaves with KErrNotFound if not found. These properties are - // not mandatory, so we can ignore that leave - TRAP_IGNORE( iConfigFile->GetSensorPropertiesL( iProperties ) ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::ConstructL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::NewL -// --------------------------------------------------------------------------- -// -CSsyReferenceControl* CSsyReferenceControl::NewL( MSsyCallback& aSsyCallback ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::NewL()" ) ) ); - CSsyReferenceControl* self = new ( ELeave ) CSsyReferenceControl( aSsyCallback ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferenceControl::~CSsyReferenceControl() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::~CSsyReferenceControl()" ) ) ); - - if ( iChannelArray ) - { - if ( iChannelArray->Count() ) - { - iChannelArray->ResetAndDestroy(); - } - - delete iChannelArray; - } - - if ( iConfigFile ) - { - delete iConfigFile; - iConfigFile = NULL; - } - - iProperties.Reset(); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::~CSsyReferenceControl() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::SsyCallback -// --------------------------------------------------------------------------- -// -MSsyCallback& CSsyReferenceControl::SsyCallback() const - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::SsyCallback()" ) ) ); - return iSsyCallback; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::SsyConfig -// --------------------------------------------------------------------------- -// -CSsyReferenceConfig& CSsyReferenceControl::SsyConfig() const - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::SsyConfig()" ) ) ); - return *iConfigFile; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::FindPropertyL -// --------------------------------------------------------------------------- -// -void CSsyReferenceControl::FindPropertyL( - const TSensrvPropertyId aPropertyId, - const TInt aArrayIndex, - TSensrvProperty& aProperty ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::FindPropertyL()" ) ) ); - TSensrvProperty* property = NULL; - TBool propertyFound( EFalse ); - - // Search property - for ( TInt i = 0; i < iProperties.Count() && !propertyFound; i++ ) - { - property = static_cast( &iProperties[i] ); - - // Compare property IDs - if ( property->GetPropertyId() == aPropertyId ) - { - // Correct property ID is found, now check is it array type of property. - // Either array indexes must match or propertys array index has to be array info - if ( ( property->GetArrayIndex() == aArrayIndex ) || - ( ( property->GetArrayIndex() == ESensrvArrayPropertyInfo ) && - ( ESensrvSingleProperty == aArrayIndex ) ) ) - { - // Correct array index found - propertyFound = ETrue; - } - } - } - - // Leave if not found - if ( !propertyFound ) - { - User::Leave( KErrNotFound ); - } - - aProperty = *property; - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::FindPropertyL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::FindChannel -// --------------------------------------------------------------------------- -// -CSsyReferenceChannel* CSsyReferenceControl::FindChannelL( TSensrvChannelId aChannelID ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::FindChannel()" ) ) ); - - if ( !iChannelArray ) - { - User::Leave( KErrNotFound ); - } - - const TInt channelCount( iChannelArray->Count() ); - CSsyReferenceChannel* channel = NULL; - - // Check that there are channels - if ( channelCount ) - { - // Loop channels until correct channel is found - for ( TInt i = 0; i < channelCount; i++ ) - { - channel = iChannelArray->At( i ); - - // Compare channel id - if ( channel->ChannelId() == aChannelID ) - { - // Channel found, no need to loop rest - i = channelCount; - } - } - } - - // Leave if channel is not found - if ( !channel ) - { - User::Leave( KErrNotFound ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::FindChannel() - return" ) ) ); - return channel; - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::OpenChannelL -// --------------------------------------------------------------------------- -// -void CSsyReferenceControl::OpenChannelL( TSensrvChannelId aChannelID ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::OpenChannelL()" ) ) ); - // Find and open channel - User::LeaveIfError( FindChannelL( aChannelID )->OpenChannel() ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::OpenChannelL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::CloseChannelL -// --------------------------------------------------------------------------- -// -void CSsyReferenceControl::CloseChannelL( TSensrvChannelId aChannelID ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::CloseChannelL()" ) ) ); - // Find and close channel - User::LeaveIfError( FindChannelL( aChannelID )->CloseChannel() ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::CloseChannelL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferenceControl::ProcessResponse -// --------------------------------------------------------------------------- -// -void CSsyReferenceControl::ProcessResponse( TSsyReferenceMsg* /*aMessage*/ ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::ProcessResponse()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferenceControl::ProcessResponse() - return" ) ) ); - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencecontrol.h --- a/sensorsupport/testsensor/src/ssyreferencecontrol.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,156 +0,0 @@ -// ssyreferencecontrol.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - -#ifndef SSYREFERENCECONTROL_H -#define SSYREFERENCECONTROL_H - -#include -#include "ssyreferenceconfig.h" - -// FORWARD DECLARATIONS -class CSsyReferenceChannel; - -/** - * Main control class for SSY. Controls sensor basic functionality and provides mandatory - * ECOM interface specific things. - */ -class CSsyReferenceControl : public CSsyControl - { - -public: - - /** - * Two-phase constructor - * - * @param[in] aSsyCallback Reference to SSY callback instance. - * @return Pointer to created CSsyReferenceControl object - */ - static CSsyReferenceControl* NewL( MSsyCallback& aSsyCallback ); - - /** - * Virtual destructor - */ - virtual ~CSsyReferenceControl(); - -// from base class CSsyControl - - /** - * From CSsyControl - * Request for SSY to open a sensor channel asynchronously. - * Response to the request is delivered through MSsyCallback::ChannelOpened(). - * Initilizes SSY (and the sensor) to be ready for other control commands via - * data and property providers. Multiple OpenChannel()-requests can be - * active for different channels at the same time. - * - * @param[in] aChannelID Channel that is requested to be opened - * @return Symbian error code - */ - void OpenChannelL( TSensrvChannelId aChannelID ); - - /** - * From CSsyControl - * Request to close a sensor channel asynchronously. - * Response to the request is delivered through MSsyCallback::ChannelClosed(). - * Multiple CloseChannel()-requests can be active for different channels - * at the same time. - * - * @param[in] aChannelID Channel that is reqeusted to be closed - * @leave Any One of the system wide error codes - */ - void CloseChannelL( TSensrvChannelId aChannelID ); - - /** - * Reference to SSY Callback instance - */ - MSsyCallback& SsyCallback() const; - - /** - * Reference to SSY Config file - */ - CSsyReferenceConfig& SsyConfig() const; - /** - * Handles response to CSsyReferenceCmdHandler::ProcessCommand - * - * @param[in] aMessage Contains information of the response - */ - void ProcessResponse( TSsyReferenceMsg* aMessage ); - - /** - * Search property of given property id from the channel properties and - * returns reference to that. Leaves with KErrNotFound if property is not found - * - * @param[in] aPropertyId Property ID to locate - * @param[in] aArrayIndex Propertys array index - * @param[out] aProperty Contains found property - */ - void FindPropertyL( const TSensrvPropertyId aPropertyId, - const TInt aArrayIndex, - TSensrvProperty& aProperty ); - -private: - - /** - * C++ constructor. - * - * @param[in] aSsyCallback Reference to SSY callback instance. - */ - CSsyReferenceControl( MSsyCallback& aSsyCallback ); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - - /** - * Finds and returns pointer to channel - */ - CSsyReferenceChannel* FindChannelL( TSensrvChannelId aChannelID ); - -private: // data - - /** - * Reference to SSY CallBack to send responses to Sensor Server - */ - MSsyCallback& iSsyCallback; - - /** - * Pointer array of all channels provided by this SSY - */ - CArrayPtrFlat* iChannelArray; - - /** - * Pointer to config file parser - */ - CSsyReferenceConfig* iConfigFile; - - /** - * Property list of general properties of this SSY - */ - RSensrvPropertyList iProperties; - }; - -#endif // SSYREFERENCECONTROL_H diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencepropertyprovider.cpp --- a/sensorsupport/testsensor/src/ssyreferencepropertyprovider.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,164 +0,0 @@ -// ssyreferencepropertyprovider.cpp - -// Copyright (c) 2006-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 "ssyreferencepropertyprovider.h" -#include "ssyreferencetrace.h" -#include "ssyreferencechannel.h" - -// ======== MEMBER FUNCTIONS ======== - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider C++ constructor -// --------------------------------------------------------------------------- -// -CSsyReferencePropertyProvider::CSsyReferencePropertyProvider( CSsyReferenceChannel& aChannel ) : - iChannel( aChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::CSsyReferencePropertyProvider()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::CSsyReferencePropertyProvider() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// Symbian 2nd phase constructor -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::ConstructL() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::ConstructL()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::ConstructL() - return" ) ) ); - } - - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::NewL -// --------------------------------------------------------------------------- -// -CSsyReferencePropertyProvider* CSsyReferencePropertyProvider::NewL( CSsyReferenceChannel& aChannel ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::NewL()" ) ) ); - CSsyReferencePropertyProvider* self = new ( ELeave ) CSsyReferencePropertyProvider( aChannel ); - CleanupStack::PushL( self ); - self->ConstructL(); - CleanupStack::Pop( self ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::NewL() - return" ) ) ); - return self; - } - -// --------------------------------------------------------------------------- -// Destructor -// --------------------------------------------------------------------------- -// -CSsyReferencePropertyProvider::~CSsyReferencePropertyProvider() - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::~CSsyReferencePropertyProvider()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::~CSsyReferencePropertyProvider() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::CheckPropertyDependenciesL -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::CheckPropertyDependenciesL( - const TSensrvChannelId /*aChannelId*/, - const TSensrvProperty& /*aProperty*/, - RSensrvChannelList& /*aAffectedChannels*/ ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::CheckPropertyDependenciesL()" ) ) ); - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::CheckPropertyDependenciesL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::SetPropertyL -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::SetPropertyL( - const TSensrvChannelId aChannelId, - const TSensrvProperty& aProperty ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::SetPropertyL()" ) ) ); - - if ( iChannel.ChannelId() != aChannelId ) - { - User::Leave( KErrArgument ); - } - - // Search property. Leaves with KErrNotFound if property is not found. - // Leaves with KErrAccessDenied if found property is Read only - iChannel.FindAndUpdatePropertyL( aProperty ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::SetPropertyL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::GetPropertyL -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::GetPropertyL( - const TSensrvChannelId aChannelId, - TSensrvProperty& aProperty ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::GetPropertyL()" ) ) ); - - if ( iChannel.ChannelId() != aChannelId && aChannelId != 0 ) - { - User::Leave( KErrArgument ); - } - else - { - // Search property. Leaves with KErrNotFound if property is not found - aProperty = iChannel.FindPropertyL( - aProperty.GetPropertyId(), - aProperty.PropertyItemIndex(), - aProperty.GetArrayIndex() ); - } - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::GetPropertyL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::GetAllPropertiesL -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::GetAllPropertiesL( - const TSensrvChannelId aChannelId, - RSensrvPropertyList& aChannelPropertyList ) - { - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::GetAllPropertiesL()" ) ) ); - - if ( iChannel.ChannelId() != aChannelId ) - { - User::Leave( KErrArgument ); - } - - iChannel.GetProperties( aChannelPropertyList ); - - COMPONENT_TRACE( ( _L( "SSY Reference Plugin - CSsyReferencePropertyProvider::GetAllPropertiesL() - return" ) ) ); - } - -// --------------------------------------------------------------------------- -// CSsyReferencePropertyProvider::GetPropertyProviderInterfaceL -// --------------------------------------------------------------------------- -// -void CSsyReferencePropertyProvider::GetPropertyProviderInterfaceL( TUid /*aInterfaceUid*/, - TAny*& aInterface ) - { - aInterface = NULL; - } - diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencepropertyprovider.h --- a/sensorsupport/testsensor/src/ssyreferencepropertyprovider.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,139 +0,0 @@ -// ssyreferencepropertyprovider.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ - - -#ifndef SSYREFERENCEPROPERTYPROVIDER_H -#define SSYREFERENCEPROPERTYPROVIDER_H - -#include - - -class CSsyReferenceChannel; - -/** - * Channel property provider implementation. - */ -class CSsyReferencePropertyProvider : public CBase, public MSsyPropertyProvider - { - -public: - - /** - * Two-phase constructor - * - * @param[in] aChannel Reference to channel this provider belongs to - * @return Pointer to created CSsyReferenceControl object - */ - static CSsyReferencePropertyProvider* NewL( CSsyReferenceChannel& aChannel ); - - /** - * Virtual destructor - */ - virtual ~CSsyReferencePropertyProvider(); - -// from base class MSsyPropertyProvider - - /** - * From MSsyPropertyProvider - * Check if property value affects other sensor channels already open. - * If the new property value is legal but affects somehow other channels' properties, - * SSY must return list of the affected channels so that the sensor server can - * check if the client allowed to set this property. If the SSY value - * is not legal SSY must leave with KErrArgument-value. - * - * @param[in] aProperty Property to be checked. - * @param[out] aAffectedChannels Return list of the channel which will be affected if the property - * value will be set. - * @leave KErrArgument If the property value is illegal. - */ - void CheckPropertyDependenciesL( const TSensrvChannelId aChannelId, - const TSensrvProperty& aProperty, - RSensrvChannelList& aAffectedChannels ); - - /** - * From MSsyPropertyProvider - * Set property for the channel. Before the sensor server sets the property value, - * it is checked with CheckPropertyDependenciesL()-function. - * This means a property value should always be valid for the SSY. - * - * @param[in] aProperty Rereference to a property object to be set - */ - void SetPropertyL( const TSensrvChannelId aChannelId, - const TSensrvProperty& aProperty ); - - /** - * From MSsyPropertyProvider - * Get channel property value. The property parameter contains channel id and - * item index. SSY fills values and attributes to the property object. - * - * @param[in, out] aProperty Reference to a property object to be filled - * with property values and attributes. - */ - void GetPropertyL( const TSensrvChannelId aChannelId, - TSensrvProperty& aProperty ); - - /** - * From MSsyPropertyProvider - * Get all channel properties. Returns all properties which are related to this channel. - * - * @param[out] aChannelPropertyList List of the all properties of the channel. - */ - void GetAllPropertiesL( const TSensrvChannelId aChannelId, - RSensrvPropertyList& aChannelPropertyList ); - - /** - * Returns a pointer to a specified interface - to allow future extension - * of this class without breaking binary compatibility - * - * @param aInterfaceUid Identifier of the interface to be retrieved - * @param aInterface A reference to a pointer that retrieves the specified interface. - */ - void GetPropertyProviderInterfaceL( TUid aInterfaceUid, - TAny*& aInterface ); - -private: - - /** - * C++ constructor. - * @param[in] aChannel Reference to channel this provider belongs to - */ - CSsyReferencePropertyProvider( CSsyReferenceChannel& aChannel ); - - /** - * Symbian 2nd phase constructor. - */ - void ConstructL(); - -private: // data - - /** - * Reference to channel for which this provider belongs to - */ - CSsyReferenceChannel& iChannel; - }; - -#endif // SSYREFERENCEPROPERTYPROVIDER_H diff -r 924385140d98 -r c2c61fdca848 sensorsupport/testsensor/src/ssyreferencetrace.h --- a/sensorsupport/testsensor/src/ssyreferencetrace.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,117 +0,0 @@ -// ssyreferencetrace.h - -/* -* Copyright (c) 2006-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: -* -*/ - - - - -/** - @file - @internalComponent -*/ -#ifndef SSYREFERENCETRACE_H -#define SSYREFERENCETRACE_H - - -// INCLUDES -#include - - -// PC-LINT OPTIONS -// Removes null statement not in line by itself warnings from -// COMPONENT_TRACE macros -//lint -esym(960,54) - -// Removes "area too small" pointer cast warnings. -//lint -e826 - - - -// CONSTANTS -// MACROS -#ifdef _DEBUG - - #ifdef THREAD_TRACE_FLAG - - #define THREAD_TRACE RDebug::Print(RThread().Name()); - - #else - - #define THREAD_TRACE - - #endif // #ifdef THREAD_TRACE_FLAG - - #ifdef BUFFER_TRACE_FLAG - - #define BUFFER_TRACE_DEBUG - #define DEBUG_PRINT_BUFFER DebugPrintBuffer(); - #define BUFFER_TRACE( a ) RDebug::Print a - - #else - - #define DEBUG_PRINT_BUFFER - #define BUFFER_TRACE( a ) - - #endif // #ifdef THREAD_TRACE_FLAG - - #ifdef COMPONENT_TRACE_FLAG - - #define COMPONENT_TRACE( a ) THREAD_TRACE;RDebug::Print a - #define COMPONENT_TRACE_DEBUG - - #else // #ifdef COMPONENT_TRACE_FLAG - - #define COMPONENT_TRACE( a ) - - #endif //#ifdef COMPONENT_TRACE_FLAG - - #ifdef API_TRACE_FLAG - - #define API_TRACE( a ) THREAD_TRACE;RDebug::Print a - #define API_TRACE_DEBUG - - #else //#ifdef API_TRACE_FLAG - - #define API_TRACE( a ) - - #endif //#ifdef API_TRACE_FLAG - - #ifdef ERROR_TRACE_FLAG - - #define ERROR_TRACE( a ) THREAD_TRACE;RDebug::Print a - #define ERROR_TRACE_DEBUG - - #else //#ifdef ERROR_TRACE_FLAG - - #define ERROR_TRACE( a ) - - #endif //#ifdef ERROR_TRACE_FLAG - -#else // #ifdef _DEBUG - - #define COMPONENT_TRACE( a ) - #define API_TRACE( a ) - #define ERROR_TRACE( a ) - #define BUFFER_TRACE( a ) - #define THREAD_TRACE - #define DEBUG_PRINT_BUFFER - -#endif //#ifdef _DEBUG - -#endif // SSYREFERENCETRACE_H - diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/group/bld.inf --- a/startupservices/SplashScreen/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-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" @@ -25,9 +25,12 @@ ../rom/splashscreen.iby CORE_MW_LAYER_IBY_EXPORT_PATH(splashscreen.iby) ../rom/splashscreen_variant.iby CUSTOMER_MW_LAYER_IBY_EXPORT_PATH(splashscreen_variant.iby) -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/data/z/resource/apps/qgn_startup_screen.svg -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/udeb/z/resource/apps/qgn_startup_screen.svg -/epoc32/s60/icons/qgn_startup_screen.svg /epoc32/release/winscw/urel/z/resource/apps/qgn_startup_screen.svg PRJ_MMPFILES splashscreen.mmp +PRJ_EXTENSIONS +START EXTENSION s60/mifconv + OPTION TARGETFILE splashscreen.mif + OPTION HEADERFILE splashscreen.mbg + OPTION SOURCES -c8 qgn_startup_screen +END diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/group/splashscreen.mmp --- a/startupservices/SplashScreen/group/splashscreen.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/group/splashscreen.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -20,7 +20,7 @@ #include #include -TARGET splashscreen.exe +TARGET SPLASHSCREEN.EXE TARGETTYPE EXE TARGETPATH PROGRAMS_DIR UID 0x100039CE 0x100059DE @@ -45,8 +45,5 @@ LIBRARY euser.lib LIBRARY ws32.lib LIBRARY efsrv.lib +LIBRARY AknIcon.lib // AknIconUtils LIBRARY fbscli.lib -LIBRARY SVGEngine.lib -LIBRARY gdi.lib -LIBRARY cone.lib -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/inc/SplashScreen.h --- a/startupservices/SplashScreen/inc/SplashScreen.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/inc/SplashScreen.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -42,6 +42,8 @@ void ConstructL(CMainWindow* aWindow); void RunL(); void SetMainWindow(CMainWindow* aWindow); +//protected: +// TCallBack iCallBack; private: CMainWindow* iWindow; }; @@ -67,7 +69,7 @@ // destruct ~CWsClient(); // main window - virtual void ConstructMainWindowL()=0; + virtual void ConstructMainWindowL(); // terminate cleanly void Exit(); // active object protocol @@ -155,7 +157,6 @@ CMainWindow (CWsClient* aClient); ~CMainWindow (); void Draw (const TRect& aRect); - CFbsBitmap* ReadSVGL (TFileName aFileName); void HandlePointerEvent (TPointerEvent& aPointerEvent); void ConstructL (const TRect& aRect, CWindow* aParent=0); private: diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/inc/SplashScreenDefines.h --- a/startupservices/SplashScreen/inc/SplashScreenDefines.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/inc/SplashScreenDefines.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005 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" @@ -20,7 +20,7 @@ #define SPLASHSCREENDEFINES_H //CONSTANTS -_LIT(KSplashBitmapName, "Z:QGN_STARTUP_SCREEN.SVG"); +_LIT(KSplashBitmapName, "Z:SPLASHSCREEN.MIF"); _LIT(KPanicMsg,"SplashScreen"); _LIT(KSplashScreenWindowGroup, "S60SplashScreenGroup"); @@ -28,8 +28,6 @@ _LIT_SECURITY_POLICY_C1(KReadPolicy, ECapabilityReadDeviceData); _LIT_SECURITY_POLICY_C1(KWritePolicy, ECapabilityWriteDeviceData); -#define SIZE_X 360 -#define SIZE_Y 360 // MACROS #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"SplashScreen: \"" L##aText L"\"")) diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/rom/splashscreen.iby --- a/startupservices/SplashScreen/rom/splashscreen.iby Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/rom/splashscreen.iby Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -20,6 +20,5 @@ #define __SplashScreen_IBY__ file=ABI_DIR\BUILD_DIR\SplashScreen.exe System\Programs\SplashScreen.exe -data=DATAZ_\resource\apps\qgn_startup_screen.svg resource\apps\qgn_startup_screen.svg #endif diff -r 924385140d98 -r c2c61fdca848 startupservices/SplashScreen/src/SplashScreen.cpp --- a/startupservices/SplashScreen/src/SplashScreen.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/SplashScreen/src/SplashScreen.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -18,13 +18,11 @@ // SYSTEM INCLUDES #include -#include #include #include +#include +#include #include -#include -#include -#include // USER INCLUDES #include "SplashScreen.h" @@ -245,6 +243,7 @@ // construct redrawer iRedrawer=new (ELeave) CWsRedrawer; iRedrawer->ConstructL(this); + User::LeaveIfError( RAknIconSrvClient::Connect() ); // construct main window ConstructMainWindowL(); @@ -262,6 +261,7 @@ CWsClient::~CWsClient() { TRACES("CWsClient::~CWsClient(): Start"); + RAknIconSrvClient::Disconnect(); // neutralize us as an active object Deque(); // cancels and removes from scheduler // get rid of scheduler and all attached objects @@ -301,6 +301,11 @@ TRACES("CWsClient::DoCancel(): End"); } +void CWsClient::ConstructMainWindowL() + { + TRACES("CWsClient::ConstructMainWindowL()"); + } + ////////////////////////////////////////////////////////////////////////////// @@ -331,57 +336,6 @@ TRACES("CMainWindow::~CMainWindow(): End"); } -CFbsBitmap* CMainWindow::ReadSVGL (TFileName aFileName) - { - TRACES("CMainWindow::ReadSVGL(): Start"); - TFontSpec fontspec; - TDisplayMode mode = EColor16MA; - TSize size(SIZE_X, SIZE_Y); - - //if ( mode >= (TDisplayMode)13 ) { mode = EColor16MA; } - - CFbsBitmap* frameBuffer = new ( ELeave ) CFbsBitmap; - CleanupStack::PushL( frameBuffer ); - frameBuffer->Create( size, mode ); - - CSvgEngineInterfaceImpl* svgEngine = NULL; - svgEngine = CSvgEngineInterfaceImpl::NewL(frameBuffer, NULL, fontspec ); - - if (svgEngine == NULL) - { - TRACES("CMainWindow::ReadSVGL(): Splashscreen SVG engine creation failed"); - } - - CleanupStack::PushL( svgEngine ); - TInt domHandle = 0; - svgEngine->PrepareDom( aFileName, domHandle ) ; - if (domHandle == 0) - { - TRACES("CMainWindow::ReadSVGL(): Splashscreen DOM handle creation failed"); - } - - CFbsBitmap* bitmap = new(ELeave) CFbsBitmap; - CleanupStack::PushL( bitmap ); - User::LeaveIfError( bitmap->Create( size, EColor64K ) ); - - svgEngine->UseDom( domHandle, bitmap, NULL ) ; - - MSvgError* err; - svgEngine->Start( err ); - if (err->HasError()) - { - TRACES("CMainWindow::ReadSVGL(): Splashscreen SVG Engine Start failed"); - } - - svgEngine->DeleteDom( domHandle ); - CleanupStack::Pop( bitmap ); - CleanupStack::PopAndDestroy( svgEngine ); - CleanupStack::PopAndDestroy( frameBuffer ); - - TRACES("CMainWindow::ReadSVGL(): End"); - return bitmap; - } - void CMainWindow::ConstructL (const TRect& aRect, CWindow* aParent) { TRACES("CMainWindow::ConstructL(): Start"); @@ -407,7 +361,9 @@ if ( !err ) { TRACES("CMainWindow::ConstructL(): Image found"); - iBitmap = ReadSVGL(fp->FullName()); + iBitmap = AknIconUtils::CreateIconL( fp->FullName(), EMbmSplashscreenQgn_startup_screen ); + AknIconUtils::ExcludeFromCache(iBitmap); + AknIconUtils::SetSize( iBitmap, iRect.Size(), EAspectRatioPreservedAndUnusedSpaceRemoved ); } else { @@ -472,7 +428,8 @@ void CMainWindow::HandlePointerEvent (TPointerEvent& /*aPointerEvent*/) { TRACES("CMainWindow::HandlePointerEvent(): Start"); - +// TPoint point = aPointerEvent.iPosition; +// (void)point; TRACES("CMainWindow::HandlePointerEvent(): End"); } diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/MediatorPlugin/group/StartupMediatorPlugin.mmp --- a/startupservices/Startup/MediatorPlugin/group/StartupMediatorPlugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/MediatorPlugin/group/StartupMediatorPlugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -20,14 +20,14 @@ // Build target -TARGET startupmediatorplugin.dll +TARGET StartupMediatorPlugin.dll CAPABILITY CAP_ECOM_PLUGIN TARGETTYPE PLUGIN UID 0x10009D8D 0x102750AF VENDORID VID_DEFAULT START RESOURCE ../src/102750AF.rss -TARGET startupmediatorplugin.rsc +TARGET StartupMediatorPlugin.rsc TARGETPATH resource/plugins END @@ -45,16 +45,13 @@ LIBRARY euser.lib // Core -LIBRARY ecom.lib // ECom -LIBRARY mediatorclient.lib // Mediator client -LIBRARY mediatorpluginbase.lib // Mediator client +LIBRARY ECom.lib // ECom +LIBRARY MediatorClient.lib // Mediator client +LIBRARY MediatorPluginBase.lib // Mediator client LIBRARY featmgr.lib // FeatureManager LIBRARY centralrepository.lib // Central Repository // Logger DEBUGLIBRARY flogger.lib - -SMPSAFE // End of File - diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/MediatorPlugin/inc/StartupMediatorPlugin.h --- a/startupservices/Startup/MediatorPlugin/inc/StartupMediatorPlugin.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/MediatorPlugin/inc/StartupMediatorPlugin.h Wed Sep 01 12:24:48 2010 +0100 @@ -23,7 +23,7 @@ #include #include #include -#include +#include // FORWARD DECLARATIONS diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/MediatorPlugin/src/StartupMediatorPluginPSObserver.cpp --- a/startupservices/Startup/MediatorPlugin/src/StartupMediatorPluginPSObserver.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/MediatorPlugin/src/StartupMediatorPluginPSObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2005-2010 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" @@ -22,7 +22,7 @@ // SYSTEM INCLUDES #include #include -#include +#include #include #include diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/conf/startup.confml Binary file startupservices/Startup/conf/startup.confml has changed diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/conf/startup_101F8763.crml Binary file startupservices/Startup/conf/startup_101F8763.crml has changed diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/group/bld.inf --- a/startupservices/Startup/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -36,9 +36,9 @@ ../loc/startup.loc MW_LAYER_LOC_EXPORT_PATH(startup.loc) - ../data/backup_registration.xml /epoc32/data/z/private/100058f4/backup_registration.xml - ../data/backup_registration.xml /epoc32/release/winscw/udeb/z/private/100058f4/backup_registration.xml - ../data/backup_registration.xml /epoc32/release/winscw/urel/z/private/100058f4/backup_registration.xml + ../data/backup_registration.xml /epoc32/data/z/private/100058F4/backup_registration.xml + ../data/backup_registration.xml /epoc32/release/winscw/udeb/z/private/100058F4/backup_registration.xml + ../data/backup_registration.xml /epoc32/release/winscw/urel/z/private/100058F4/backup_registration.xml PRJ_EXTENSIONS START EXTENSION s60/mifconv diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/group/startup.mmp --- a/startupservices/Startup/group/startup.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/group/startup.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -33,10 +33,20 @@ SOURCE StartupApplication.cpp SOURCE StartupAppUi.cpp +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION SOURCE startupanimationwrapper.cpp SOURCE startupview.cpp +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION +SOURCE StartupWelcomeAnimation.cpp +SOURCE StartupOperatorAnimation.cpp +SOURCE StartupTone.cpp +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION SOURCE StartupDocument.cpp +SOURCE StartupUserWelcomeNote.cpp +SOURCE StartupQueryDialog.cpp SOURCE StartupSubscriber.cpp +SOURCE StartupMediatorObserver.cpp +SOURCE StartupPopupList.cpp SOURCE StartupPubSubObserver.cpp @@ -46,7 +56,12 @@ LANGUAGE_IDS END // RESOURCE - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + START RESOURCE ../data/operatoranimation.rss + HEADER + TARGETPATH APP_RESOURCE_DIR + END // RESOURCE +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION START RESOURCE ../data/Startup_reg.rss HEADER @@ -59,15 +74,14 @@ USERINCLUDE ../../inc USERINCLUDE ../../../inc -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets - APP_LAYER_SYSTEMINCLUDE // dependency to app layer (Profiles) LIBRARY eikcoctl.lib LIBRARY euser.lib LIBRARY apparc.lib LIBRARY cone.lib - +LIBRARY avkon.lib +LIBRARY eikdlg.lib LIBRARY eikcore.lib LIBRARY efsrv.lib LIBRARY fbscli.lib @@ -75,18 +89,23 @@ LIBRARY commonengine.lib //use of SharedData LIBRARY starterclient.lib //use of Starter to remove splash screen LIBRARY ws32.lib - +LIBRARY aknnotify.lib //AknGlobalNote LIBRARY apgrfx.lib // -LIBRARY egul.lib //DrawUtils +LIBRARY Egul.lib //DrawUtils LIBRARY featmgr.lib LIBRARY bafl.lib +LIBRARY timezonelocalization.lib +LIBRARY tzclient.lib +LIBRARY AknIcon.lib LIBRARY mediatorclient.lib - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION LIBRARY sanimctrl.lib - -LIBRARY hbwidgets.lib -LIBRARY hbCore.lib +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION +LIBRARY CdlEngine.lib +LIBRARY MediaClientAudio.lib //for playing startup tone +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION LIBRARY bmpanim.lib - - -SMPSAFE +#ifdef RD_UI_TRANSITION_EFFECTS_PHASE2 +LIBRARY gfxtrans.lib +#endif +LIBRARY aknskins.lib diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupAppUi.h --- a/startupservices/Startup/inc/StartupAppUi.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/inc/StartupAppUi.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -27,27 +27,53 @@ #ifndef STARTUPAPPUI_H #define STARTUPAPPUI_H -#include +// FLAGS +//#define USE_STARTUPTEST_APP + + +// SYSTEM INCLUDES +#include //appui + +#include +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + #include +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +#include // USER INCLUDES #include "startup.hrh" //internal state types #include "StartupDefines.h" //some common defines - #include +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + #include "StartupTone.h" +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + +// CONSTANTS +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + const TInt KConnectionRetryTime = 50000; // 50 ms +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // FORWARD DECLARATIONS - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + class CStartupWelcomeAnimation; + class CStartupOperatorAnimation; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION class CStartupUserWelcomeNote; class CStartupPubSubObserver; - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION class CStartupAnimationWrapper; class CStartupView; +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + class CStartupTone; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +class CStartupMediatorObserver; /** * 'AppUi' class. * */ -class CStartupAppUi : public CEikAppUi //: public CAknAppUi +class CStartupAppUi : public CAknAppUi { public: // Constructors and destructor @@ -99,13 +125,65 @@ */ TBool HiddenReset(); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Continue startup when startup tone completes. + * @param None + * @return void + */ + void ContinueStartupAfterToneL(TToneType aToneType); /** + * Stop startuptone + * @param None + * @return void + */ + void StopStartupTone(); + + /** + * Stop startuptone + * @param None + * @return void + */ + void StopOperatorTone(); + + /** + * Checks if StartupTone is playing + * @param None + * @return TBool + */ + TBool StartupTonePlaying(); + + /** + * Checks if OperatorTone is playing + * @param None + * @return TBool + */ + TBool OperatorTonePlaying(); + +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + /** * Called when welcome or operator animation has finished. * * @since S60 3.2 */ void AnimationFinished(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Brings Startup application to foregound after Touch Screen Calibration and emergency call from PIN query. + * @param None + * @return void + */ + void BringToForeground(); + + /** + * Send Startup application to background before Touch Screen Calibration. + * @param None + * @return void + */ + void SendToBackground(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION /** * Sets iCleanBoot to EStartupCleanBoot. @@ -114,6 +192,77 @@ */ void SetCleanBoot(); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * + * @param None + * @return void + */ + void WaitingTouchScreenCalibL(); + +#ifdef RD_SCALABLE_UI_V2 + /** + * + * @param None + * @return void + */ + void TouchScreenCalibrationDoneL(); +#endif // RD_SCALABLE_UI_V2 +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * + * @param None + * @return void + */ + void CoverUIWelcomeAnimationSyncOKL(); + + /** + * + * @param None + * @return void + */ + void WaitingCoverUIWelcomeAnimationSyncL(); + + /** + * + * @param None + * @return void + */ + void CoverUIOperatorAnimationSyncOKL(); + + /** + * + * @param None + * @return void + */ + void WaitingCoverUIOperatorAnimationSyncL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * + * @param None + * @return void + */ + void WaitingCoverUIStartupReadySyncL(); + + /** + * + * @param None + * @return void + */ + void CoverUIStartupReadySyncOKL(); + + /** + * + * @param None + * @return void + */ + void RaiseCoverUIEvent( TUid aCategory, + TInt aEventId, + const TDesC8& aData ); void SetCriticalBlockEndedL(); @@ -136,12 +285,12 @@ /** System state has changed to EmergencyCallsOnly. Skip the animations. */ void SetEmergencyCallsOnlyL(); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION /** * Check if animation should be loaded in advance and do it. */ void TryPreLoadAnimation(); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION /** * Propagates fatal startup error state. @@ -151,6 +300,22 @@ */ void SwStateFatalStartupErrorL( TBool aPropertyChanged ); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Returns value of iOfflineModeQueryShown. + * @param None + * @return TBool + */ + TBool GetOfflineModeQueryShown(); + + /** + * Sets value of iOfflineModeQueryShown. + * @param TBool + * @return void + */ + void SetOfflineModeQueryShown(TBool aValue); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + /** * Return value of the__SIMCARD feature * @param None @@ -158,7 +323,12 @@ */ TBool SimSupported(); - + /** + * Return value of KFeatureIdCoverDisplay feature + * @param None + * @return TBool + */ + TBool CoverUISupported(); /** * Checks if DOS is in Offline Mode @@ -179,7 +349,31 @@ */ TBool SimStatusChangedReset(); - public: // from MEikMenuObserver +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + private: + /** + * For starting startup tone initialization timer when needed + * @param None + * @return void + */ + void WaitingStartupToneL(); + + /** + * Callback function of startup tone initialization timer + * @param TAny* + * @return TInt + */ + static TInt ToneInitTimerTimeoutL(TAny* aObject); + + /** + * For checking startup tone initialization status + * @param None + * @return void + */ + void StartupToneWaitStatusL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + private: // from MEikMenuObserver /** * EPOC default constructor. @@ -188,9 +382,8 @@ private: // from CEikAppUi - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION /** - * Functionality Commented as no support from Qt * From CAknAppUi. * Handles a change to the application's resources which are shared across * the environment. @@ -198,10 +391,11 @@ * @since S60 3.2 * * @param aType The type of resources that have changed. - + */ void HandleResourceChangeL( TInt aType ); - */ - + + void IsFTUAvailableL(TBool& aFTUAvailable); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION /** * Takes care of command handling. @@ -247,6 +441,19 @@ void DoStartupShowOperatorAnimationL(); /** + * This part of the startup phases + * shows the user welcome note. + */ + void DoStartupShowUserWelcomeNoteL(); + + /** + * Returns EFalse if date, time and city + * queries are disabled for testing purposes + * @return TBool + */ + TBool StartupQueriesEnabled(); + + /** * Predictive Time and Country selection support * Returns ETrue when enabled. * @return TBool @@ -262,6 +469,13 @@ void DoStartupFirstBootAndRTCCheckL(); /** + * Shows the needed startup queries in first boot + * or when real time clock value is invalid + * @return void + */ + void ShowStartupQueriesL(); + + /** * Last part of the startup phases. * This part does some cleaning things and * calls the Exit(). @@ -312,7 +526,48 @@ */ TBool UiInOfflineMode(); - + /** + * Shows country and city selection lists to the user. + * This is shown in first boot. + */ + void ShowCountryAndCityListsL(); + + /** + * Shows country selection list to the user. + * This is shown in first boot. + * @return TInt + */ + TInt ShowCountryListL(); + + /** + * Shows city selection list to the user. + * This is shown in first boot. + * @return TBool + */ + TBool ShowCityListL(TUint8 cityGroupId); + + /** + * Shows time query to the user. + * This is shown in first boot or when + * real time clock isn't valid. + * @return TBool + */ + TBool ShowTimeQueryL(); + + /** + * Shows date query to the user. + * This is shown in first boot or when + * real time clock isn't valid. + * @return TBool + */ + TBool ShowDateQueryL(); + + /** + * Gets default time and date from cenrep + * @param aTime + * @return void + */ + void GetDefaultTimeAndDate( TTime& aTime ); /** * Returns information about is this the first boot happening. @@ -333,40 +588,74 @@ */ void SystemFatalErrorL(); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION /** * Updates startup UI phase to Publish&Subscribe key KPSStartupUiPhase. * * @param aValue the new value to be written to the key KPSStartupUiPhase. */ void UpdateStartupUiPhase( TInt aValue ); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION private: // ***** Member Data ******************************************** - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION // The only window-owning control of the Startup application. CStartupView* iMainView; // Used for showing Welcome Animation. Owned. May not be NULL. CStartupAnimationWrapper* iAnimation; +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + //used for showing Welcome Animation + CStartupWelcomeAnimation* iWelcomeAnimation; //owns - + //used for showing Operator Animation + CStartupOperatorAnimation* iOperatorAnimation; //owns +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + //used for showing User Welcome Note + CStartupUserWelcomeNote* iUserWelcomeNote; //owns +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + //used for showing welcome animation + CPeriodic* iAnimTimer; //owns +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION //used for showing user welcome note CPeriodic* iNoteTimer; //owns //used for exiting application, smoothly without tricky errors CPeriodic* iExitTimer; //owns - - + + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + // Used for playing startup tone + CStartupTone* iStartupTone; //owns + + // Used for waiting startup tone initialization + CPeriodic* iToneInitTimer; //owns + + // Used for playing operator startup tone + CStartupTone* iOpStartupTone; //owns + + // Used for following tone initialization time + TInt iToneInitWaitTime; + + //used for telling if the user welcome note is animation + TBool iAnimation; +#endif RD_STARTUP_ANIMATION_CUSTOMIZATION + //internal execution state TStartupInternalState iInternalState; +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + //is used for telling the application that + //splashscreen should be removed for showing the code queries + //or welcome note + TBool iSplashScreenShouldBeRemoved; +#endif RD_STARTUP_ANIMATION_CUSTOMIZATION //is used for quarantee only one time continuing TBool iStartupFirstBootAndRTCCheckAlreadyCalled; @@ -403,14 +692,18 @@ //is used for telling if SIM card is supported TBool iSimSupported; - - + CStartupMediatorObserver* iStartupMediatorObserver; //owns - + TBool iCoverUISupported; + + TInt iCounryListIndex; TTime iTime; - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + TBool iTouchScreenCalibSupport; + TBool iTouchScreenCalibrationDone; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION }; #endif // STARTUPAPPUI_H diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupApplication.h --- a/startupservices/Startup/inc/StartupApplication.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/inc/StartupApplication.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -21,9 +21,7 @@ #define STARTUPAPPLICATION_H // INCLUDES - - -#include +#include // CONSTANTS @@ -34,7 +32,7 @@ /** * CStartupApp application class. */ -class CStartupApplication : public CEikApplication +class CStartupApplication : public CAknApplication { private: // from CApaApplication /** diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupDocument.h --- a/startupservices/Startup/inc/StartupDocument.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/inc/StartupDocument.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002 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" @@ -21,7 +21,7 @@ #define STARTUPDOCUMENT_H // INCLUDES -#include +#include // FORWARD DECLARATIONS class CEikAppUi; @@ -31,14 +31,14 @@ /** * CStartupDocument application class. */ -class CStartupDocument : public CEikDocument +class CStartupDocument : public CAknDocument { public: /** * C++ default constructor. */ - CStartupDocument(CEikApplication& aApp): CEikDocument(aApp) { } + CStartupDocument(CEikApplication& aApp): CAknDocument(aApp) { } /** * Two-phased constructor. diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupOperatorAnimation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupOperatorAnimation.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2004 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: +* This class is the container class of the CStartupOperatorAnimation. +* It is used for showing predefined animation. +* +*/ + + + +#ifndef STARTUPOPERATORANIMATION_H +#define STARTUPOPERATORANIMATION_H + +// INCLUDES +#include +#include "Startup.hrh" +#include "StartupWelcomeAnimation.h" + +// CONSTANTS + +// FORWARD DECLARATIONS +class CStartupModel; +class CAknBitmapAnimation; +class CStartupAppUi; + +// CLASS DECLARATION + +/** +* This class takes care of showing welcome animatio to the user. +*/ +class CStartupOperatorAnimation : public CStartupWelcomeAnimation + { + public: + + + /** + * Two-phased constructor. + */ + static CStartupOperatorAnimation* NewL( CStartupAppUi* aStartupAppUi, const TRect& aRect); + + /** + * This handles the key events in this control. + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + + private: + /** + * C++ default constructor. + */ + CStartupOperatorAnimation( CStartupAppUi* aStartupAppUi ); + + /** + * EPOC default constructor + */ + void ConstructL(const TRect& aRect); + + /** + * Is called by Draw()-function and contains + * the drawing intelligence about different states of the execution. + */ + void DoDrawing() const; + }; + +#endif // STARTUPOPERATORANIMATION_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupPopupList.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupPopupList.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2006 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: This class implements a customized pop-up + which disables LSK if no city/country match is there +* +*/ + + +#ifndef STARTUPPOPUPLIST_H +#define STARTUPPOPUPLIST_H + +#include +#include +#include + +NONSHARABLE_CLASS(CStartupPopupList) : public CAknPopupList, + public MListBoxItemChangeObserver +{ + private: + + /** + * Constructor + */ + CStartupPopupList(); + + /** + * @param aListBox Pre-existing listbox-derived class + * @param aCbaResource Softkey pane to display while pop-up is active + */ + void ConstructL(CAknSinglePopupMenuStyleListBox* aListBox, + TInt aCbaResource, AknPopupLayouts::TAknPopupLayouts aType); + + public: + /** + * Destructor + */ + ~CStartupPopupList(); + + /** + * Two-phased constructor. + * @param aListBox Pre-existing listbox-derived class + * @param aCbaResource Softkey pane to display while pop-up is active + * @return CStartupPopupList* + */ + static CStartupPopupList* NewL(CAknSinglePopupMenuStyleListBox* + aListBox, TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts aType); + + /** + * From CCoeControl, handle activation of control. + */ + void ActivateL(); + + /** + * From MListBoxItemChangeObserver, handle enable/disable LSK + */ + void ListBoxItemsChanged(CEikListBox* aListBox); + + /** + * From CCoeControl, handles pointer events in this control. + */ + void HandlePointerEventL(const TPointerEvent& aPointerEvent); +}; + +#endif //STARTUPPOPUPLIST_H + + + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupQueryDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupQueryDialog.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2004 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: +* This class adds send-key to acknowledge the time/date query. +* Feature is implemented to needs of the PET-chamber in production tests. +* More information can be found in Change Request-database. +* +*/ + + +#ifndef STARTUPQUERYDIALOG_H +#define STARTUPQUERYDIALOG_H + +// INCLUDES +#include //used for Time and Date query + +// FORWARD DECLARATIONS + +// CLASS DECLARATION + +// CONSTANTS + +// CLASS DECLARATION + +/** +* CStartupQueryDialog class. +*/ +class CStartupQueryDialog : public CAknTimeQueryDialog + { + public://construction and destruction + /** + * C++ Constructor. + */ + CStartupQueryDialog(TTime& aTime,const TTone aTone = ENoTone); + + /** + * C++ Destructor. + */ + virtual ~CStartupQueryDialog(); + + public:// from CCoeControl + + /** + * From CCoeControl Handle key events. When a key event occurs, + * CONE calls this function for each control on the control stack, + * until one of them returns EKeyWasConsumed to indicate that it processed the key event. + * @param aKeyEvent The key event. + * @param aType The type of the event: EEventKey, EEventKeyUp or EEventKeyDown. + * @return Indicates whether or not the key event was used by this control. + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + + public://from MAknQueryControlObeserver + + /** + * Called by OfferkeyEventL(), gives a change to dismiss the query with + * send/answer key. + */ + virtual TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); + + /** + * Called by NeedToDismissQueryL(), gives a change to either accept or reject + * the query. Default implementation is to accept the query if the Left soft + * key is displayed and reject it otherwise. Left softkey is only displayed if + * the query has valid data into it. + */ + virtual void DismissQueryL(); + + /** + * Returns whether the left softkey is visible + * @return ETrue is the left softkey is visible + */ + TBool IsLeftSoftkeyVisible(); + + }; + +#endif // STARTUPAPPLICATION_H + +// End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupTone.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupTone.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,124 @@ +/* +* Copyright (c) 2005-2007 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: +* This class is the container class of the CStartupTone. +* It is used for playing startup tone. +* +*/ + + +#ifndef __STARTUPTONE_H__ +#define __STARTUPTONE_H__ + +// INCLUDES +#include +#include "startupdefines.h" +#include "startup.hrh" + +// CLASS DECLARATION +/** +* CStartupTone +* This class is used for playing of startup tone. +*/ +class CStartupAppUi; + +class CStartupTone : public CBase, public MMdaAudioPlayerCallback + { + public: //Constructors and destructor + /** + * C++ constructor. + */ + CStartupTone( CStartupAppUi* aStartupAppUi ); + + /** + * Two-phased constructor. + */ + static CStartupTone* NewL( CStartupAppUi* aStartupAppUi, TToneType aToneType ); + + /** + * Destructor + */ + virtual ~CStartupTone(); + + /** + * Two phase constructor - this creates the audio player object + */ + void ConstructL(TToneType aToneType); + + public: // New Functions + + /** + * Play tone + */ + TInt Play(); + + /** + * Stop tone + */ + void Stop(); + + /** + * Check is tone currectly playing + */ + TBool Playing(); + + /** + * Audio ready query + * @return ETrue= audio ready, EFalse=audio not ready + */ + TBool AudioReady(); + + /** + * Check if Startup tone is defined and found + */ + TBool ToneFound(); + + /** + */ + void StartupWaiting(TBool aValue); + private: + + /** + */ + TInt GetRingingToneVolumeL(); + + public: // Functions from base classes + + /** + * From MMdaAudioPlayerCallback, audio initialization complete (Audio ready) + * @param aError + * @param aDuration not used internally + */ + void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& aDuration); + + /** + * From MMdaAudioPlayerCallback, audio playing complete + * @param aError + */ + void MapcPlayComplete(TInt aError); + + private: //data + CMdaAudioPlayerUtility* iTone; + TBool iAudioReady; + TBool iPlaying; + TToneType iToneType; + CStartupAppUi* iStartupAppUi; //uses + TBool iHiddenReset; + TInt iVolume; + TBool iStartupWaitingForTone; + }; + +#endif // __STARTUPTONE_H__ + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupUserWelcomeNote.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupUserWelcomeNote.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,247 @@ +/* +* Copyright (c) 2002 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: +* This class is the container class of the CStartupUerWelcomeNote. +* It is used for showing user defined image or text. +* +*/ + + +#ifndef STARTUPUSERWELCOMENOTE_H +#define STARTUPUSERWELCOMENOTE_H + +// INCLUDES +#include +#include "startup.hrh" +#include "startupdomaincrkeys.h" + +// CONSTANTS +const TInt KStartupTBufMaxLength( 100 ); + +// FORWARD DECLARATIONS +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION +class CStartupView; +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION +class CStartupModel; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +class CStartupAppUi; + +// CLASS DECLARATION + +/** +* This class takes care of showing user welcome note to the user. +* User welcome note type can be predefined default animation, +* user defined image or text. +*/ +class CStartupUserWelcomeNote + : public CCoeControl +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + , MCoeControlObserver +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + { + public: // Constructors and destructor + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Two-phased constructor. + * + * @param aView The compound control that is the container for this + * control. + */ + static CStartupUserWelcomeNote* NewL( + CStartupAppUi& aStartupAppUi, + const TRect& aRect, + CStartupView& aView ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * C++ default constructor. + */ + CStartupUserWelcomeNote( CStartupAppUi& aStartupAppUi ); + + /** + * Two-phased constructor. + */ + static CStartupUserWelcomeNote* NewL( CStartupAppUi& aStartupAppUi, const TRect& aRect); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * Destructor + */ + ~CStartupUserWelcomeNote(); + + /** + * Returns the information about the type of + * the selected welcome note. This also consider + * the product variant types of welcome note. + * Return type can be animation, text or image. + */ + TStartupNoteTypeInformation NoteTypeInformation(); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * This handles the key events in this control. + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + + /** + * This cancels iNoteCancelTimer + */ + void CancelNoteCancelTimer(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * This function performs the actual user welcome note showing. + */ + void StartL(); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Update screen with white bitmap. + */ + void DrawBlankScreen() const; + + /** + * EPOC default constructor + */ + void ConstructL(const TRect& aRect); + + /** + * Sets the iUserWelcomeNoteShowing member value + * @return void + */ + void SetUserWelcomeNoteShowing(TBool aValue); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + private: + + /** + * Returns the component specified by aIndex parameter. + */ + CCoeControl* ComponentControl(TInt aIndex) const; + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** + * Handles the event of the control. + */ + void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + /** + * Loads the data about selected welcome note info from the Cental Repository. + */ + TInt GetUserWelcomeNoteTypeInfo(); + + /** + * Shows the text type of user welcome note. + */ + void ShowInformationNoteWrapperL(); + + /** + * Returns information about the selected user welcome note type. + * Text, image or default(no note). + */ + TStartupWelcomeNoteType UserWelcomeNoteType(); + + /** + * Draws a image type of welcome note to the center of + * the screen. Both user selected image and operator + * image as a product variant feature. + */ + void DrawImageWelcomeNote(); + + TInt CheckImage( const TDesC& aPath); + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + private: + + /** + * C++ default constructor. + * + * @param aView The compound control that is the container for this + * control. + */ + CStartupUserWelcomeNote( CStartupAppUi& aStartupAppUi, CStartupView& aView ); + + /** + * Second phase constructor. + */ + void ConstructL( const TRect& aRect ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + private: // Data + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + /** Parent control for the animation control(s). */ + CStartupView& iView; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + //Used for showing user selected image + CFbsBitmap* iBitmap; //owns + + //contains the type information of the user welcome note as selected from + //General Settings (variant information doesn't include in this) + TStartupWelcomeNoteType iNoteType; + + //contains the possible variation information of the default user welcome note + TStartupUserWelcomeNoteDefaultVariationType iNoteDefaultVariationType; + + //is used for storing image path information + TBuf iNotePath; + + //is used for storing text note information + TBuf iNoteText; + + //is used for storing image path information + TBuf iNoteOperPath; + + //is used for storing text note information + TBuf iNoteOperText; + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + //stores the information about the execution state + //of the application. This information is used + //in drawing properly in current situation. + TStartupDrawInfo iDrawUpdateInfo; + + //is uded for guarantee that RStarterSession is made + //and used only once when RemoveSplashScreen is called. + //In other words it is used for preventing needless work... + TBool iSplashScreenRemoved; + + //is used in redrawing in various execution phases (DoDrawingL()-function) + TStartupNoteTypeInformation iWelcomeNoteType; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + //is used when user cancels the welcome note showing by + //pressing any key. + CStartupAppUi& iStartupAppUi; //uses + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + //is used when user cancels the welcome note showing by + //pressing any key. The reason for using callback in OfferKeyEvent() + //guarantees that EKeyWasConsumed is returned properly before application + //continues the tight execution. + CPeriodic* iNoteCancelTimer; //owns + + //used for telling when the UWN is showing + TBool iUserWelcomeNoteShowing; + + //used for telling if UWN is cancelled by user. + TBool iUserWelcomeNoteCancelled; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + }; + +#endif // STARTUPUSERWELCOMENOTE_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupWelcomeAnimation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupWelcomeAnimation.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,208 @@ +/* +* Copyright (c) 2003-2007 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: +* This class is the container class of the CStartupUerWelcomeNote. +* It is used for showing predefined animation. +* +*/ + + + +#ifndef STARTUPWELCOMEANIMATION_H +#define STARTUPWELCOMEANIMATION_H + +// INCLUDES +#include +#include "Startup.hrh" + +// CONSTANTS + +// FORWARD DECLARATIONS +class CStartupModel; +class CAknBitmapAnimation; +class CStartupAppUi; + +// CLASS DECLARATION + +/** +* This class takes care of showing welcome animatio to the user. +*/ +class CStartupWelcomeAnimation : public CCoeControl , MCoeControlObserver + { + public: // Constructors and destructor + + /** + * C++ default constructor. + */ + CStartupWelcomeAnimation( CStartupAppUi* aStartupAppUi ); + + /** + * Two-phased constructor. + */ + static CStartupWelcomeAnimation* NewL( CStartupAppUi* aStartupAppUi, const TRect& aRect); + + /** + * Destructor + */ + ~CStartupWelcomeAnimation(); + + /** + * This handles the pointer events in this control. + */ + void HandlePointerEventL(const TPointerEvent& aPointerEvent); + + /** + * This handles the key events in this control. + */ + TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); + + /** + * This cancels the animation. + */ + void CancelAnimation(); + + /** + * This function performs the actual user welcome note showing. + */ + void StartL(); + + /** + * This makes the animation module to stop showing animation. + */ + void EndAnimation() const; + + /** + * Returns the whole duration of the animation, in milliseconds. + */ + TInt ShowingTime(); + + /** + * Update screen with white bitmap. + */ + void DrawBlankScreen() const; + + /** + * EPOC default constructor + */ + void ConstructL(const TRect& aRect); + + /** + * Set the info about which state in execution the + * application is, so that view class can draw window + * properly. + */ + void UpdateDrawInfo( TStartupDrawInfo aValue ); + + /** + * Removes the splashscreen + * @return void + */ + void RemoveSplashScreen() const; + + /** + * Tells is the animation cancelled by user + * @return TBool + */ + TBool IsAnimationCancelled(); + + /** + * Sets the iAnimationShowing member value + * @return void + */ + void SetAnimationShowing(TBool aValue); + + /** + * Handle resource change + * @param aType Type of change + */ + void HandleResourceChange(TInt aType); + + //TEJ + void CancelAnimCancelTimer(); + private: + + /** + * Is called when size is changed. + */ + void SizeChanged(); + + /** + * Returns the count of the components in the container. + */ + TInt CountComponentControls() const; + + /** + * Returns the component specified by aIndex parameter. + */ + CCoeControl* ComponentControl(TInt aIndex) const; + + /** + * Handles the event of the control. + */ + void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); + + /** + * Is called by Draw()-function and contains + * the drawing intelligence about different states of the execution. + */ + virtual void DoDrawingL() const; + + private: // Functions from base classes + + /** + * Returns the count of the components in the container. + */ + void Draw(const TRect& aRect) const; + + protected: // Data + + //Used for showing animation + CAknBitmapAnimation *iAnim; //owns + + //Used for showing white background + CFbsBitmap* iBackgroundBitmap; //owns + + //Is used for setting the timer over the animation + TInt iShowingTime; //in milli + + //stores the information about the execution state + //of the application. This information is used + //in drawing properly in current situation. + TStartupDrawInfo iDrawUpdateInfo; + + //is uded for guarantee that RStarterSession is made + //and used only once when RemoveSplashScreen is called. + //In other words it is used for preventing needless work... + TBool iSplashScreenRemoved; + + //is used when user cancels the welcome note showing by + //pressing any key. + CStartupAppUi* iStartupAppUi; //uses + + //is used when user cancels the welcome note showing by + //pressing any key. The reason for using callback in OfferKeyEvent() + //guarantees that EKeyWasConsumed is returned properly before application + //continues the tight execution. + CPeriodic* iAnimCancelTimer; //owns + + //used for telling when the animation is showing + TBool iAnimationShowing; + + //used for telling if animation is cancelled by user. + TBool iAnimationCancelled; + }; + +#endif // STARTUPWELCOMEANIMATION_H + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/StartupWelcomeCrKeys.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupWelcomeCrKeys.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2010 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: Startup Welcome keys +*/ + +#ifndef __STARTUPWELCOMECRKEYS_H +#define __STARTUPWELCOMECRKEYS_H + +/** + * The Uid for the repository itself + * This repository holds the settings for Welcome2 + */ +const TUid KCRUidWelcome6 = { 0x200122A4 }; + +/* + * Used by PA to indicate if it has accomplished the task. + */ + +const TUint32 KPhoneActicationCompleted = 0x0000000B; +#endif // STARTUPWELCOMCRKEYS_H + +// End of file \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/inc/startupview.h --- a/startupservices/Startup/inc/startupview.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/inc/startupview.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007,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" @@ -21,6 +21,7 @@ #include +class CAknsBasicBackgroundControlContext; // Skin support /** * Main view for the Startup application. @@ -107,7 +108,8 @@ /** Component control. */ CCoeControl* iComponent; - + /** Skin support */ + CAknsBasicBackgroundControlContext* iBgContext; }; diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupAppUi.cpp --- a/startupservices/Startup/src/StartupAppUi.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/src/StartupAppUi.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -18,7 +18,14 @@ // SYSTEM INCLUDES #include - +#include //used for Selftest failed note +#include +#include +#include +#include +#include +#include +#include #include // Feature Manager #include #include @@ -28,21 +35,53 @@ #include #include #include -#include -#include "sanimstartupctrl.h" -#include +#include "StartupWelcomeCrKeys.h" + +#ifdef RD_UI_TRANSITION_EFFECTS_PHASE2 +// Transition effects +#include +#include +#endif + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + #include "sanimstartupctrl.h" +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + #include // For layout change event definitions + #include +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // USER INCLUDES #include "StartupAppUi.h" #include "StartupApplication.h" - +#include "StartupUserWelcomeNote.h" +#include "StartupQueryDialog.h" //used for Startup own Time and Date queries +#include "StartupPopupList.h" //used for Startup own City and Country queries +#include "StartupMediatorObserver.h" #include "StartupPubSubObserver.h" -#include "startupanimationwrapper.h" -#include "startupview.h" - -#include + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + #include "startupanimationwrapper.h" + #include "startupview.h" +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + #include "StartupDocument.h" + #include "StartupOperatorAnimation.h" + #include "StartupTone.h" + #include "StartupWelcomeAnimation.h" +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +// CONSTANTS +const TInt KUserWelcomeNoteShowPeriodTime = 3000000; // 3 sec + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + const TInt KOneMilliSecondInMicroSeconds = 1000; + const TInt KMaxToneInitWait = 200; // 200 ms +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +static const TInt KMaxCityLength(120); +static const TInt KMaxCountryLength(120); + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION static const CSAnimStartupCtrl::TAnimationParams KStartupAnimationParams = { KCRUidStartupConf, @@ -52,7 +91,15 @@ KStartupTonePath, KStartupToneVolume }; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +_LIT(KEmpty, " "); + +// Default date and time value is used if cenrep string is not valid +// Default date is 01.01.2007 and default time is 09:00 AM +_LIT( KDefaultDateTimeValue, "20070000:090000" ); // YYYYMMDD:HHMMSS + +static const TInt KTimeFormatLength(16); // "20070000:090000." _LIT_SECURITY_POLICY_C1(KReadDeviceDataPolicy, ECapabilityReadDeviceData); _LIT_SECURITY_POLICY_C1(KWriteDeviceDataPolicy, ECapabilityWriteDeviceData); @@ -60,6 +107,7 @@ // ======== LOCAL FUNCTIONS ================================================== +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION namespace { TInt AnimationFinishedFunc( TAny* aPtr ) @@ -68,7 +116,7 @@ return KErrNone; } } - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // ================= MEMBER FUNCTIONS ======================================== @@ -77,8 +125,17 @@ // CStartupAppUi::CStartupAppUi() // --------------------------------------------------------------------------- CStartupAppUi::CStartupAppUi() : - iInternalState( EStartupStartingUp ), - + iUserWelcomeNote( NULL ), +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iStartupTone( NULL ), + iOpStartupTone( NULL ), + iToneInitWaitTime( 0 ), + iAnimation( EFalse ), +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iInternalState( EStartupStartingUp ), +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iSplashScreenShouldBeRemoved( EFalse ), +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION iStartupFirstBootAndRTCCheckAlreadyCalled( EFalse ), iChargingOrAlarmBoot( EFalse ), iFirstBoot( ETrue ), @@ -88,8 +145,15 @@ iCriticalBlockEnded( EFalse ), iSwStateFatalStartupError( EFalse ), iStartupWaitingShowStartupAnimation( EFalse ), - iSimSupported( ETrue ) - + iSimSupported( ETrue ), + iStartupMediatorObserver( NULL ), + iCoverUISupported( EFalse ), + iCounryListIndex( 0 ) + , iTime( 0 ) +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + , iTouchScreenCalibSupport( EFalse ) + , iTouchScreenCalibrationDone( EFalse ) +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION { TRACES("CStartupAppUi::CStartupAppUi"); } @@ -99,18 +163,18 @@ // --------------------------------------------------------------------------- void CStartupAppUi::ConstructL() { - RThread thread; //increase the thread priority to smooth the animation - thread.SetPriority(EPriorityAbsoluteForeground); - thread.Close(); TRACES("CStartupAppUi::ConstructL()"); - TInt flags = EStandardApp; - BaseConstructL( flags ); - + TInt flags = EStandardApp|EAknEnableSkin|EAknEnableMSK ; + + BaseConstructL(flags); + + iAvkonAppUi->SetKeyEventFlags( CAknAppUiBase::EDisableSendKeyShort | + CAknAppUiBase::EDisableSendKeyLong ); + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION iMainView = CStartupView::NewL( ApplicationRect() ); - - iAnimation = CStartupAnimationWrapper::NewL( *iMainView ); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION TInt err = RProperty::Define( KPSUidStartupApp, KPSStartupAppState, @@ -135,9 +199,42 @@ iStartupPubSubObserver = CStartupPubSubObserver::NewL( this ); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + err = RProperty::Define( KPSUidStartup, + KStartupBootIntoOffline, + RProperty::EInt, + KReadDeviceDataPolicy, + KWriteDeviceDataPolicy ); + if( KErrNone != err && + KErrAlreadyExists != err ) + { + TRACES1("CStartupAppUi::ConstructL(): KStartupBootIntoOffline define err %d", err); + } + err = RProperty::Define( KPSUidStartup, + KStartupSecurityCodeQueryStatus, + RProperty::EInt, + KReadDeviceDataPolicy, + KWriteDeviceDataPolicy ); + if( KErrNone != err && + KErrAlreadyExists != err ) + { + TRACES1("CStartupAppUi::ConstructL(): KStartupSecurityCodeQueryStatus define err %d", err); + } + err = RProperty::Define( KPSUidStartup, + KStartupCleanBoot, + RProperty::EInt, + KReadDeviceDataPolicy, + KWriteDeviceDataPolicy ); + if( KErrNone != err && + KErrAlreadyExists != err ) + { + TRACES1("CStartupAppUi::ConstructL(): KStartupCleanBoot define err %d", err); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION err = RProperty::Define( KPSUidStartup, KPSStartupUiPhase, RProperty::EInt, @@ -151,7 +248,7 @@ } UpdateStartupUiPhase( EStartupUiPhaseUninitialized ); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION FeatureManager::InitializeLibL(); if ( FeatureManager::FeatureSupported( KFeatureIdOfflineMode ) ) @@ -162,30 +259,60 @@ { iSimSupported = EFalse; } - + if ( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) + { + iCoverUISupported = ETrue; + } TRACES1("CStartupAppUi::ConstructL(): Offline mode supported: %d", iOfflineModeSupported ); TRACES1("CStartupAppUi::ConstructL(): SIM card supported: %d", iSimSupported ); - + TRACES1("CStartupAppUi::ConstructL(): CoverUI supported: %d", iCoverUISupported ); + +#if defined (RD_SCALABLE_UI_V2) && !defined(RD_STARTUP_ANIMATION_CUSTOMIZATION) + if ( FeatureManager::FeatureSupported(KFeatureIdPenSupport) && + FeatureManager::FeatureSupported(KFeatureIdPenSupportCalibration) ) + { + iTouchScreenCalibSupport = ETrue; + } +#endif // RD_SCALABLE_UI_V2 && !RD_STARTUP_ANIMATION_CUSTOMIZATION + + if (iCoverUISupported) + { + iStartupMediatorObserver = CStartupMediatorObserver::NewL( this ); + } iFirstBoot = FirstBoot(); TRACES1("CStartupAppUi::ConstructL(): First boot: %d", iFirstBoot ); - - CEikonEnv* eikEnv = CEikonEnv::Static(); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation = CStartupWelcomeAnimation::NewL( this, ClientRect()); + AddToStackL( iWelcomeAnimation ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // Set Startup application to be system application - eikEnv->SetSystem( ETrue ); + iEikonEnv->SetSystem( ETrue ); - eikEnv->RootWin().SetOrdinalPosition(0,0); + iEikonEnv->RootWin().SetOrdinalPosition(0,0); // Disable priority changes of window server - eikEnv->WsSession().ComputeMode( + iEikonEnv->WsSession().ComputeMode( RWsSession::EPriorityControlDisabled ); - iNoteTimer = CPeriodic::NewL( EPriorityNormal ); + iNoteTimer = CPeriodic::NewL( EPriorityNormal ); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iAnimTimer = CPeriodic::NewL( EPriorityNormal ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION iExitTimer = CPeriodic::NewL( EPriorityNormal ); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + TRACES("CStartupAppUi::ConstructL(): StartupTone: Initialising"); + iStartupTone = CStartupTone::NewL( this, EStartupTone ); + TRACES("CStartupAppUi::ConstructL(): StartupTone: Initialised"); + + TRACES("CStartupAppUi::ConstructL(): Operator StartupTone: Initialising"); + iOpStartupTone = CStartupTone::NewL( this, EStartupOpTone ); + TRACES("CStartupAppUi::ConstructL(): Operator StartupTone: Initialised"); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION if ( iSwStateFatalStartupError ) { @@ -207,6 +334,43 @@ { TRACES("CStartupAppUi::~CStartupAppUi()"); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + if (iWelcomeAnimation) + { + RemoveFromStack( iWelcomeAnimation ); + delete iWelcomeAnimation; + } + + if (iOperatorAnimation) + { + RemoveFromStack( iOperatorAnimation); + delete iOperatorAnimation; + } + + if (iUserWelcomeNote) + { + RemoveFromStack( iUserWelcomeNote ); + delete iUserWelcomeNote; + iUserWelcomeNote = NULL; + } + + if (iStartupPubSubObserver) + { + delete iStartupPubSubObserver; + } + if (iStartupMediatorObserver) + { + delete iStartupMediatorObserver; + } + if (iStartupTone) + { + delete iStartupTone; + } + if (iOpStartupTone) + { + delete iOpStartupTone; + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION if( iExitTimer ) { @@ -214,7 +378,13 @@ delete iExitTimer; } - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + if( iAnimTimer ) + { + iAnimTimer->Cancel(); + delete iAnimTimer; + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION if( iNoteTimer ) { @@ -222,13 +392,13 @@ delete iNoteTimer; } - - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + delete iUserWelcomeNote; delete iAnimation; delete iStartupPubSubObserver; - + delete iStartupMediatorObserver; delete iMainView; - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION FeatureManager::UnInitializeLib(); @@ -242,11 +412,26 @@ { TRACES("CStartupAppUi::PrepareToExit()"); - +#ifdef RD_UI_TRANSITION_EFFECTS_PHASE2 + // Start the custom exit effect at boot time. + // Note: Not allowed to call GfxTransEffect::EndFullScreen() as AVKON takes care of that when + // EApplicationExit context is used! - - CEikAppUi::PrepareToExit(); +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( !( iAnimation->WasCancelled() ) ) +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + if( !iWelcomeAnimation->IsAnimationCancelled() ) +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + { + TRACES("CStartupAppUi::PrepareToExit(): Starting transition effect"); + GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationExit, TRect(), + AknTransEffect::EParameterType, + AknTransEffect::GfxTransParam( KUidStartUp, AknTransEffect::TParameter::EAllowAtBoot ) ); + } +#endif + + CEikAppUi::PrepareToExit(); #ifndef RD_BOOT_CUSTOMIZABLE_AI if( !iChargingOrAlarmBoot ) { @@ -290,7 +475,6 @@ return KErrNone; } - // --------------------------------------------------------------------------- // CStartupAppUi::HandleKeyEventL // --------------------------------------------------------------------------- @@ -329,7 +513,13 @@ iOfflineModeQueryShown = EFalse; response = EKeyWasConsumed; } - + else if ( iUserWelcomeNote ) + { + TRACES("CStartupAppUi::HandleKeyEventL(): This key event is used to stop UserWelcomeAnimation"); + //this is used to stop User Welcome note showing + StopTimingL(); + response = EKeyWasConsumed; + } else if ( ( iInternalState == EStartupShowingWelcomeAnimation || iInternalState == EStartupShowingOperatorAnimation ) && !( iAnimation->WasCancelled() ) ) @@ -345,8 +535,7 @@ return response; } -/* - * Qt Support Not available.. +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- // CStartupAppUi::HandleResourceChangeL // @@ -356,20 +545,17 @@ { TRACES("CStartupAppUi::HandleResourceChangeL()"); TRACES1("CStartupAppUi::HandleResourceChangeL Type: %d", aType); - - - * No equivalent in Qt. + CAknAppUi::HandleResourceChangeL( aType ); if ( aType == KEikDynamicLayoutVariantSwitch ) { iMainView->SetRect( ApplicationRect() ); } - + TRACES("CStartupAppUi::HandleResourceChangeL(): End"); } - -*/ +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- @@ -383,8 +569,7 @@ case EEikCmdExit: { TRACES("CStartupAppUi::HandleCommandL(): EEikCmdExit"); - - Exit(); + Exit(); } break; default: @@ -399,13 +584,14 @@ void CStartupAppUi::DoStartupStartPartL() { TRACES("CStartupAppUi::DoStartupStartPartL()"); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION TryPreLoadAnimation(); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION DoNextStartupPhaseL( EStartupWaitingCriticalBlock ); TRACES("CStartupAppUi::DoStartupStartPartL(): End"); } +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- // CStartupAppUi::TryPreLoadAnimation() // --------------------------------------------------------------------------- @@ -436,7 +622,7 @@ { iAnimation->PreLoad( ClientRect(), - *iMainView, + *iMainView, KStartupAnimationParams, ETrue, SecondaryDisplay::EStartWelcomeAnimation ); @@ -444,7 +630,7 @@ TRACES("CStartupAppUi::TryPreLoadAnimation(): End"); } - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- @@ -459,24 +645,44 @@ //the same way like in the end of ShowUserWelcomeNoteL() TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Skip the animation and UWN because it's hidden reset"); TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): and change internal state directly to EStartupFirstBootAndRTCCheck"); - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->RemoveSplashScreen(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + return; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION else { TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Show animation"); iAnimation->Play( ClientRect(), - *iMainView, + *iMainView, KStartupAnimationParams, ETrue, SecondaryDisplay::EStartWelcomeAnimation, TCallBack( AnimationFinishedFunc, this ) ); } +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Play startup tone."); + + // Play startup tone + if (iStartupTone->Play() != KErrNone) + { + // Play startup beep. + TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): Play startup beep"); + static_cast(iEikonEnv-> + EikAppUi())-> + KeySounds()-> + PlaySound( EAvkonSIDPowerOnTone ); + } + iWelcomeAnimation->SetAnimationShowing(ETrue); + ShowWelcomeAnimationL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION TRACES("CStartupAppUi::DoStartupShowWelcomeAnimationL(): End"); } @@ -494,9 +700,11 @@ TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Skip the animation and UWN because it's hidden reset"); TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): and change internal state directly to EStartupFirstBootAndRTCCheck"); DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); - +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + return; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION else { TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Show animation"); @@ -510,18 +718,61 @@ params.iVolumeKey = KStartupOperatorToneVolume; iAnimation->Play( ClientRect(), - *iMainView, params, EFalse, SecondaryDisplay::EStartOperatorAnimation, TCallBack( AnimationFinishedFunc, this ) ); } - +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( iOperatorAnimation->ShowingTime() ) + { + TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Operator animation time defined properly"); + iOperatorAnimation->SetAnimationShowing(ETrue); + iOpStartupTone->Play(); + ShowOperatorAnimationL(); + } + else + { + TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): Operator animation not defined. Skip it."); + iOperatorAnimation->SetAnimationShowing(EFalse); + DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION TRACES("CStartupAppUi::DoStartupShowOperatorAnimationL(): End"); } +// --------------------------------------------------------------------------- +// CStartupAppUi::DoStartupShowUserWelcomeNoteL() +// --------------------------------------------------------------------------- +void CStartupAppUi::DoStartupShowUserWelcomeNoteL() + { + TRACES("CStartupAppUi::DoStartupShowUserWelcomeNoteL()"); + ShowUserWelcomeNoteL(); + TRACES("CStartupAppUi::DoStartupShowUserWelcomeNoteL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::StartupQueriesEnabled() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::StartupQueriesEnabled() + { + TRACES("CStartupAppUi::StartupQueriesEnabled()"); + + TInt value( EStartupQueriesEnabled ); + CRepository* repository(NULL); + + TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); + if ( err == KErrNone ) + { + err = repository->Get( KStartupQueries, value ); + } + delete repository; + + TRACES1("CStartupAppUi::StartupQueriesEnabled(): returns %d", value); + return value; + } // --------------------------------------------------------------------------- // CStartupAppUi::PredictiveTimeEnabled() @@ -551,46 +802,69 @@ { TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL()"); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION RProperty::Set( KPSUidStartup, KStartupCleanBoot, iCleanBoot ); RProperty::Set( KPSUidStartup, KPSSplashShutdown, ESplashShutdown ); + delete iUserWelcomeNote; + iUserWelcomeNote = NULL; iMainView->DrawDeferred(); - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // When Predictive Time and Country Selection is enabled, no queries are // shown to user during first boot. Instead, Clock application gets the // time and location from the network and marks the first boot as done. if( !PredictiveTimeEnabled() ) { - if( iFirstBoot && !HiddenReset() ) //&& StartupQueriesEnabled() ) + if( iFirstBoot && !HiddenReset() && StartupQueriesEnabled() ) { TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): First boot. Show city, time and date queries."); - TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Mark first boot"); + + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->UpdateDrawInfo( EStartupDICityTimeDateQueries ); + iWelcomeAnimation->DrawNow(); + + if (iOperatorAnimation) + { + RemoveFromStack( iOperatorAnimation ); + delete iOperatorAnimation; + iOperatorAnimation = NULL; + } + if (iUserWelcomeNote) + { + RemoveFromStack( iUserWelcomeNote ); + delete iUserWelcomeNote; + iUserWelcomeNote = NULL; + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + ShowStartupQueriesL(); + TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Mark first boot"); MarkFirstBoot(); } - else if( !RTCStatus() && !HiddenReset() ) // && StartupQueriesEnabled()) + else if( !RTCStatus() && !HiddenReset() && StartupQueriesEnabled()) { TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): No first boot but RTCStatus is corrupted. Ask time and date"); - } - if( iFirstBoot ) // && !StartupQueriesEnabled() ) + #ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->UpdateDrawInfo( EStartupDICityTimeDateQueries ); + if (iUserWelcomeNote) + { + RemoveFromStack( iUserWelcomeNote ); + delete iUserWelcomeNote; + iUserWelcomeNote = NULL; + } + #endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + ShowStartupQueriesL(); // Not first boot, so skips Country/City query + } + if( iFirstBoot && !StartupQueriesEnabled() ) { TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): First boot ongoing and queries are disabled."); MarkFirstBoot(); } } - else - { - // Temporary fix for the defect VEZI-7YDEAR , as clock is not yet supported. - TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): if PredictiveTimeEnabled is set"); - if( iFirstBoot && !HiddenReset() ) - { - TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Mark first boot"); - MarkFirstBoot(); - } - // End of temporary fix. - } TRACES("CStartupAppUi::DoStartupFirstBootAndRTCCheckL(): Setting KPSStartupAppState = EStartupAppStateFinished"); TInt err = RProperty::Set( KPSUidStartupApp, KPSStartupAppState, EStartupAppStateFinished ); @@ -600,11 +874,58 @@ , err); } - DoNextStartupPhaseL( EStartupStartupOK ); + DoNextStartupPhaseL( EStartupWaitingCUIStartupReady ); } +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowStartupQueriesL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ShowStartupQueriesL() + { + TRACES("CStartupAppUi::ShowStartupQueriesL()"); + TBool citysaved(EFalse); + TBool timesaved(EFalse); + TBool datesaved(EFalse); + // Get default time ( to be used only in date query ) + GetDefaultTimeAndDate( iTime ); + + // Show Country, Date and Time queries ( with possibility to go back ). + // Country query is shown only in the first boot. + + while (!timesaved) + { + while (!datesaved) + { + while (!citysaved && iFirstBoot) + { + // 1. Select time zone + ShowCountryAndCityListsL(); + citysaved = ETrue; + TRACES1("CStartupAppUi::ShowStartupQueriesL(): citysaved = %d", citysaved ); + } + // 2. Set date + datesaved = ShowDateQueryL(); + TRACES1("CStartupAppUi::ShowStartupQueriesL(): datesaved = %d", datesaved ); + if (!datesaved) + { + citysaved = EFalse; + } + } + // 3. Set time + timesaved = ShowTimeQueryL(); + TRACES1("CStartupAppUi::ShowStartupQueriesL(): timesaved = %d", timesaved ); + if (!timesaved) + { + datesaved = EFalse; + } + } + + // All the queries completed. + + TRACES("CStartupAppUi::ShowStartupQueriesL() - END"); + } // --------------------------------------------------------------------------- // CStartupAppUi::DoStartupEndPart() @@ -613,31 +934,100 @@ { TRACES("CStartupAppUi::DoStartupEndPart()"); TRACES("CStartupAppUi::DoStartupEndPart(): STARTUP OK"); + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + RProperty::Set( KPSUidStartup, KStartupCleanBoot, iCleanBoot ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + TBool fTUDone = ETrue; + TRAP_IGNORE(IsFTUAvailableL(fTUDone)); - TBool ftuenabled=EFalse; - TInt err=KErrNone; -#ifndef __WINSCW__ - TRAP(err, - TInt enabled=0; - //open cenrep; - CRepository *cenrep=CRepository::NewLC(KCRUidStartupConf); - //check if ftu is enabled or not - User::LeaveIfError(cenrep->Get(KFtuStartupEnabled,enabled)); - ftuenabled=!!enabled; //make sure we only have a boolean value here - CleanupStack::PopAndDestroy(cenrep); - ); -#endif - if(!ftuenabled) + if(fTUDone) + { + UpdateStartupUiPhase( EStartupUiPhaseAllDone ); + } + else { - UpdateStartupUiPhase( EStartupUiPhaseAllDone ); + UpdateStartupUiPhase(EStartupUiPhaseAllDone+1); } + //UpdateStartupUiPhase( EStartupUiPhaseAllDone ); + + +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + TRACES("CStartupAppUi::DoStartupEndPart(): Exit application."); iExitTimer->Start( 100000, 100000, TCallBack( DoExitApplication, this ) ); TRACES("CStartupAppUi::DoStartupEndPart(): DoExitApplication-timer called."); TRACES("CStartupAppUi::DoStartupEndPart(): End"); } +void CStartupAppUi::IsFTUAvailableL(TBool& aFTUAvailable) + { + //From Startupwelcomecrkeys.h + CRepository* repo = CRepository::NewLC(KCRUidWelcome6); + repo->Get(KPhoneActicationCompleted, aFTUAvailable); + CleanupStack::PopAndDestroy(repo); + } + + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::ContinueStartupAfterToneL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ContinueStartupAfterToneL(TToneType aToneType) + { + TRACES("CStartupAppUi::ContinueStartupAfterToneL()"); + + if (aToneType == EStartupTone) + { + TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone type EStartupTone"); + DoNextStartupPhaseL( EStartupWaitingCUIOperatorAnim ); + } + else if (aToneType == EStartupOpTone) + { + TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone type EStartupOpTone"); + DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); + } + else + { + TRACES("CStartupAppUi::ContinueStartupAfterToneL(): Tone interrupted"); + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); + } + TRACES("CStartupAppUi::ContinueStartupAfterToneL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::BringToForeground() +// --------------------------------------------------------------------------- +void CStartupAppUi::BringToForeground() + { + TRACES("CStartupAppUi::BringToForeground()"); + if ((iInternalState != EStartupWaitingTouchScreenCalib) || + (iTouchScreenCalibrationDone)) + { + TRACES("CStartupAppUi::BringToForeground(): Bring to foreground"); + TApaTask self(iCoeEnv->WsSession()); + self.SetWgId(iCoeEnv->RootWin().Identifier()); + self.BringToForeground(); + } + TRACES("CStartupAppUi::BringToForeground(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::SendToBackground() +// --------------------------------------------------------------------------- +void CStartupAppUi::SendToBackground() + { + TRACES("CStartupAppUi::SendToBackground()"); + TApaTask self(iCoeEnv->WsSession()); + self.SetWgId(iCoeEnv->RootWin().Identifier()); + self.SendToBackground(); + TRACES("CStartupAppUi::SendToBackground(): End"); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + // --------------------------------------------------------------------------- // CStartupAppUi::StopTimingL() // --------------------------------------------------------------------------- @@ -653,10 +1043,87 @@ TRACES("CStartupAppUi::StopTimingL(): Stopping UWN"); iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; iNoteTimer->Cancel(); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION UpdateStartupUiPhase( EStartupUiPhaseUserWelcomeDone ); DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + iUserWelcomeNote->CancelNoteCancelTimer(); + iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeNoteEnd ); + iWelcomeAnimation->DrawNow(); + iUserWelcomeNote->SetUserWelcomeNoteShowing(EFalse); + TRACES("CStartupAppUi::StopTimingL(): UWN stopped"); + if (iStartupTone->Playing()) + { + TRACES("CStartupAppUi::StopTimingL(): Startup tone playing. Cannot continue to next phase"); + iStartupTone->StartupWaiting(ETrue); + } + else + { + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); + } + } + else if (iInternalState == EStartupShowingOperatorAnimation) // EStartupShowingOperatorAnimation + { + TRACES("CStartupAppUi::StopTimingL(): Stopping animation"); + iAnimTimer->Cancel(); + iWelcomeAnimation->CancelAnimCancelTimer(); + iOperatorAnimation->UpdateDrawInfo( EStartupDIOperatorAnimEnd ); + iOperatorAnimation->SetAnimationShowing(EFalse); + TRACES("CStartupAppUi::StopTimingL(): operator animation showing stopped"); + if ( iOperatorAnimation->IsAnimationCancelled()) + { + TRACES("CStartupAppUi::StopTimingL(): Animation is cancelled by user and therefore UWN is not shown"); + StopOperatorTone(); + iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); + } + else + { + // If tone is still playing wait until it completes. + if (iOpStartupTone->Playing()) + { + TRACES("CStartupAppUi::StopTimingL(): Operator startup tone is still playing. Wait until it completes."); + iOpStartupTone->StartupWaiting(ETrue); + } + else + { + TRACES("CStartupAppUi::StopTimingL(): Lets display UWN"); + DoNextStartupPhaseL( EStartupShowingUserWelcomeNote ); + } + } + TRACES("CStartupAppUi::StopTimingL(): Operator Animation stopped"); + } + else // EStartupShowingWelcomeAnimation + { + TRACES("CStartupAppUi::StopTimingL(): Stopping animation"); + iAnimTimer->Cancel(); + iWelcomeAnimation->CancelAnimCancelTimer(); + iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimEnd ); + iWelcomeAnimation->SetAnimationShowing(EFalse); + TRACES("CStartupAppUi::StopTimingL(): Welcome animation showing stopped"); + + if ( iWelcomeAnimation->IsAnimationCancelled()) + { + TRACES("CStartupAppUi::StopTimingL(): Animation is cancelled by user and therefore operator animation and UWN is not shown"); + StopStartupTone(); + iStartupFirstBootAndRTCCheckAlreadyCalled = ETrue; + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); + } + else + { + if (iStartupTone->Playing()) + { + // If tone is still playing wait until it completes. + iStartupTone->StartupWaiting(ETrue); + } + else + { + DoNextStartupPhaseL( EStartupWaitingCUIOperatorAnim ); + } + } + TRACES("CStartupAppUi::StopTimingL(): Animation stopped"); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } } @@ -674,6 +1141,331 @@ TRACES("CStartupAppUi::ExitApplication(): End"); } +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowWelcomeAnimationL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ShowWelcomeAnimationL() + { + TRACES("CStartupAppUi::ShowWelcomeAnimationL()"); + __ASSERT_DEBUG( iWelcomeAnimation , PANIC( EStartupPanicClassMemberVariableIsNull ) ); + TInt showtime = iWelcomeAnimation->ShowingTime(); + iAnimation = ETrue; + TRACES("CStartupAppUi::ShowWelcomeAnimationL(): Animation timer started"); + iAnimTimer->Start( + showtime*KOneMilliSecondInMicroSeconds, + showtime*KOneMilliSecondInMicroSeconds, + TCallBack( DoStopTimingL, this ) ); + iWelcomeAnimation->StartL(); + TRACES("CStartupAppUi::ShowWelcomeAnimationL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowOperatorAnimationL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ShowOperatorAnimationL() + { + TRACES("CStartupAppUi::ShowOperatorAnimationL()"); + __ASSERT_DEBUG( iOperatorAnimation , PANIC( EStartupPanicClassMemberVariableIsNull ) ); + TInt showtime = iOperatorAnimation->ShowingTime(); + iAnimation = ETrue; + TRACES("CStartupAppUi::ShowWelcomeAnimationL(): Operator Animation timer started"); + iAnimTimer->Start( + showtime*KOneMilliSecondInMicroSeconds, + showtime*KOneMilliSecondInMicroSeconds, + TCallBack( DoStopTimingL, this ) ); + iOperatorAnimation->StartL(); + TRACES("CStartupAppUi::ShowOperatorAnimationL(): End"); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowUserWelcomeNoteL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ShowUserWelcomeNoteL() + { + TRACES("CStartupAppUi::ShowUserWelcomeNoteL()"); +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + iUserWelcomeNote = CStartupUserWelcomeNote::NewL( *this, ClientRect(), *iMainView ); + TStartupNoteTypeInformation type = iUserWelcomeNote->NoteTypeInformation(); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + __ASSERT_DEBUG( iUserWelcomeNote , PANIC( EStartupPanicClassMemberVariableIsNull ) ); + TStartupNoteTypeInformation type; + type = iUserWelcomeNote->NoteTypeInformation(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + if( type == EStartupImage ) + { + // UserWelcomeNote type is EStartupImage + // This type of note is shown fixed (KUserWelcomeNoteShowPeriodTime) time + TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): UWNTimer started (graphic)"); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iAnimation = EFalse; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iNoteTimer->Start( + KUserWelcomeNoteShowPeriodTime, + KUserWelcomeNoteShowPeriodTime, + TCallBack( DoStopTimingL, this ) ); +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + iUserWelcomeNote->StartL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + } +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + else if ( type == EStartupText ) + { + TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): Text UWN"); + + iUserWelcomeNote->StartL(); + + UpdateStartupUiPhase( EStartupUiPhaseUserWelcomeDone ); + + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); + } + else + { + TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): No UWN"); + + DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + else + { + //if User Welcome Note type is ETextWelcomeNote nothing to do here, + //because it is implemented with Avkon globalnote + //or if type is EDefaultWelcomeNote no User Welcome Note is shown. + TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): No UWN to show or UWN is text"); + } + //invoke welcome note container to show note + iUserWelcomeNote->StartL(); + + if( type == EStartupText || type == EStartupNoNote) + { + //this is called already here because timer not activated in text uwn case + //and so DoStopTimingL() is never called and should be called here. + StopTimingL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + } + + TRACES("CStartupAppUi::ShowUserWelcomeNoteL(): End"); + } + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::WaitingTouchScreenCalibL() +// --------------------------------------------------------------------------- +void CStartupAppUi::WaitingTouchScreenCalibL() + { + TRACES("CStartupAppUi::WaitingTouchScreenCalibL()"); +#ifdef RD_SCALABLE_UI_V2 + + if( iFirstBoot && iTouchScreenCalibSupport ) + { + if (iTouchScreenCalibrationDone) + { + TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Calibration already done. Continue boot up"); + DoNextStartupPhaseL( EStartupOfflineModeQuery ); + } + else + { + SendToBackground(); + + iWelcomeAnimation->UpdateDrawInfo( EStartupDITouchScreenCalib ); + iWelcomeAnimation->DrawNow(); + TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Startup sequence halted until Touch Screen Calibration is done"); + } + } + else + { + TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Not first boot or calibration not supported. Continue boot up"); + DoNextStartupPhaseL( EStartupOfflineModeQuery ); + } + +#else // !RD_SCALABLE_UI_V2 + TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): Calibration not supported. Continue boot up"); + DoNextStartupPhaseL( EStartupOfflineModeQuery ); + +#endif // RD_SCALABLE_UI_V2 + TRACES("CStartupAppUi::WaitingTouchScreenCalibL(): End"); + } + +#ifdef RD_SCALABLE_UI_V2 +// --------------------------------------------------------------------------- +// CStartupAppUi::TouchScreenCalibrationDoneL() +// --------------------------------------------------------------------------- +void CStartupAppUi::TouchScreenCalibrationDoneL() + { + TRACES("CStartupAppUi::TouchScreenCalibrationDoneL()"); + if (iInternalState == EStartupWaitingTouchScreenCalib) + { + iTouchScreenCalibrationDone = ETrue; + BringToForeground(); + DoNextStartupPhaseL( EStartupOfflineModeQuery ); + } + else + { + iTouchScreenCalibrationDone = ETrue; + } + TRACES("CStartupAppUi::TouchScreenCalibrationDoneL(): End"); + } +#endif // RD_SCALABLE_UI_V2 +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::CoverUIWelcomeAnimationSyncOKL() +// --------------------------------------------------------------------------- +void CStartupAppUi::CoverUIWelcomeAnimationSyncOKL() + { + TRACES("CStartupAppUi::CoverUIWelcomeAnimationSyncOKL()"); + DoNextStartupPhaseL( EStartupWaitingStartupTone ); + TRACES("CStartupAppUi::CoverUIWelcomeAnimationSyncOKL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL() +// --------------------------------------------------------------------------- +void CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL() + { + TRACES("CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL()"); + if (iCoverUISupported) + { + iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, + SecondaryDisplay::EStartWelcomeAnimation); + } + else + { + DoNextStartupPhaseL( EStartupWaitingStartupTone ); + } + TRACES("CStartupAppUi::WaitingCoverUIWelcomeAnimationSyncL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::CoverUIOperatorAnimationSyncOKL() +// --------------------------------------------------------------------------- +void CStartupAppUi::CoverUIOperatorAnimationSyncOKL() + { + TRACES("CStartupAppUi::CoverUIOperatorAnimationSyncOKL()"); + DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); + TRACES("CStartupAppUi::CoverUIOperatorAnimationSyncOKL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL() +// --------------------------------------------------------------------------- +void CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL() + { + TRACES("CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL()"); + if (iCoverUISupported) + { + if (iOperatorAnimation->ShowingTime()) + { + iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, + SecondaryDisplay::EStartOperatorAnimation ); + } + else + { + DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); + } + } + else + { + DoNextStartupPhaseL( EStartupShowingOperatorAnimation ); + } + TRACES("CStartupAppUi::WaitingCoverUIOperatorAnimationSyncL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::WaitingStartupToneL() +// --------------------------------------------------------------------------- +void CStartupAppUi::WaitingStartupToneL() + { + if( iStartupTone->ToneFound() && !iStartupTone->AudioReady() ) + { + TRACES("CStartupAppUi::WaitingStartupToneL(): Startup tone found but not ready. Waiting tone to init"); + iToneInitTimer = CPeriodic::NewL( EPriorityNormal ); + iToneInitTimer->Start( KOneMilliSecondInMicroSeconds, + KOneMilliSecondInMicroSeconds, + TCallBack( ToneInitTimerTimeoutL, this ) ); + } + else + { + TRACES("CStartupAppUi::WaitingStartupToneL(): Audio ready"); + DoNextStartupPhaseL( EStartupShowingWelcomeAnimation ); + } + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ToneInitTimerTimeoutL() +// --------------------------------------------------------------------------- +TInt CStartupAppUi::ToneInitTimerTimeoutL(TAny* aObject) + { + STATIC_CAST( CStartupAppUi*, aObject )->StartupToneWaitStatusL(); // cast, and call non-static function + return KErrNone; + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::StartupToneWaitStatusL() +// --------------------------------------------------------------------------- +void CStartupAppUi::StartupToneWaitStatusL() + { + iToneInitWaitTime++; + TRACES1("CStartupAppUi::StartupToneWaitStatusL(): Total tone init wait time = %d ms", iToneInitWaitTime ); + TBool audioReady = iStartupTone->AudioReady(); + if ( audioReady || (iToneInitWaitTime>=KMaxToneInitWait) ) + { + iToneInitTimer->Cancel(); + delete iToneInitTimer; + iToneInitTimer = NULL; + + TRACES1("CStartupAppUi::StartupToneWaitStatusL(): AudioReady: %d, proceed", audioReady ); + DoNextStartupPhaseL( EStartupShowingWelcomeAnimation ); + } + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// --------------------------------------------------------------------------- +// CStartupAppUi::CoverUIStartupReadySyncOKL() +// --------------------------------------------------------------------------- +void CStartupAppUi::CoverUIStartupReadySyncOKL() + { + TRACES("CStartupAppUi::CoverUIStartupReadySyncOKL()"); + DoNextStartupPhaseL( EStartupStartupOK ); + TRACES("CStartupAppUi::CoverUIStartupReadySyncOKL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::WaitingCoverUIStartupReadySyncL() +// --------------------------------------------------------------------------- +void CStartupAppUi::WaitingCoverUIStartupReadySyncL() + { + TRACES("CStartupAppUi::WaitingCoverUIStartupReadySyncL()"); + if (iCoverUISupported) + { + iStartupMediatorObserver->IssueCommand(SecondaryDisplay::ECmdStartupSync, + SecondaryDisplay::EStartStartupReady); + } + else + { + DoNextStartupPhaseL( EStartupStartupOK ); + } + TRACES("CStartupAppUi::WaitingCoverUIStartupReadySyncL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::RaiseCoverUIEvent() +// --------------------------------------------------------------------------- +void CStartupAppUi::RaiseCoverUIEvent( TUid aCategory, + TInt aEventId, + const TDesC8& aData ) + { + TRACES("CStartupAppUi::RaiseCoverUIEvent()"); + if (iCoverUISupported) + { + iStartupMediatorObserver->RaiseEvent( aCategory, + aEventId, + aData ); + } + TRACES("CStartupAppUi::RaiseCoverUIEvent(): End"); + } + // --------------------------------------------------------------------------- // CStartupAppUi::SetCriticalBlockEndedL() // --------------------------------------------------------------------------- @@ -698,8 +1490,11 @@ if( iCriticalBlockEnded ) { TRACES("CStartupAppUi::WaitingCriticalBlockEndingL(): CriticalBlock has ended. Continue."); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION DoNextStartupPhaseL( EStartupOfflineModeQuery ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + DoNextStartupPhaseL( EStartupWaitingTouchScreenCalib ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION } TRACES("CStartupAppUi::WaitingCriticalBlockEndingL(): End"); } @@ -744,7 +1539,7 @@ { TRACES("CStartupAppUi::SetEmergencyCallsOnlyL(): Entered emergency calls only state."); - DoNextStartupPhaseL( EStartupStartupOK ); + DoNextStartupPhaseL( EStartupWaitingCUIStartupReady ); } TRACES("CStartupAppUi::SetEmergencyCallsOnlyL(): End"); } @@ -766,6 +1561,28 @@ TRACES("CStartupAppUi::SwStateFatalStartupErrorL(): End"); } + + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::GetOfflineModeQueryShown() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::GetOfflineModeQueryShown() + { + TRACES1("CStartupAppUi::GetOfflineModeQueryShown(): iOfflineModeQueryShown == %d ", iOfflineModeQueryShown ); + return iOfflineModeQueryShown; + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::SetOfflineModeQueryShown() +// --------------------------------------------------------------------------- +void CStartupAppUi::SetOfflineModeQueryShown(TBool aValue) + { + TRACES1("CStartupAppUi::SetOfflineModeQueryShown(): iOfflineModeQueryShown == %d ", iOfflineModeQueryShown ); + iOfflineModeQueryShown = aValue; + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + // ---------------------------------------------------------------------------- // CStartAppUi::DosInOfflineModeL() // ---------------------------------------------------------------------------- @@ -848,23 +1665,20 @@ else if ( iOfflineModeSupported && DosInOfflineModeL() ) { TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline mode query needed"); +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION RProperty::Set( KPSUidStartup, KPSSplashShutdown, ESplashShutdown ); iAnimation->BringToForeground(); iMainView->DrawDeferred(); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->UpdateDrawInfo( EStartupDIQueriesOn ); + iWelcomeAnimation->DrawNow(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION iOfflineModeQueryShown = ETrue; - CHbDeviceMessageBoxSymbian *aMessageBox = NULL; - aMessageBox = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EQuestion); - _LIT(KText, "Continue using phone in Offline mode?"); - aMessageBox->SetTextL(KText); - _LIT(KAcceptText, "Yes"); - aMessageBox->SetButtonTextL(CHbDeviceMessageBoxSymbian::EAcceptButton, KAcceptText); - _LIT(KRejectText, "No"); - aMessageBox->SetButtonTextL(CHbDeviceMessageBoxSymbian::ERejectButton, KRejectText); - //aMessageBox->SetDismissPolicy(HbPopup::NoDismiss); - //define the selection button to hold user's option choice - CHbDeviceMessageBoxSymbian::TButtonId selection; - selection = aMessageBox->ExecL(); - if ( selection == CHbDeviceMessageBoxSymbian::EAcceptButton ) + CAknQueryDialog* dlg = new (ELeave) CAknQueryDialog( CAknQueryDialog::ENoTone ); + TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Publish dialog for Secondary UI"); + dlg->PublishDialogL(SecondaryDisplay::ECmdShowOfflineQuery, + SecondaryDisplay::KCatStartup); + if ( dlg->ExecuteLD( R_STARTUP_OFFLINE_MODE_QUERY ) ) { TRACES("CStartupAppUi::ShowOfflineModeQueryL(): Offline Mode query: YES -> Boot to Offline"); reply = 1; @@ -898,7 +1712,7 @@ { TRACES1("CStartupAppUi::ShowOfflineModeQueryL(): KStartupBootIntoOffline set err %d", err); } - + TRACES("CStartupAppUi::ShowOfflineModeQueryL(): End"); } @@ -908,13 +1722,395 @@ void CStartupAppUi::CancelAnimation() { TRACES("CStartupAppUi::CancelAnimation()"); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION iAnimation->Cancel(); - +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->CancelAnimation(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION TRACES("CStartupAppUi::CancelAnimation(): End"); } +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowCountryAndCityListsL() +// --------------------------------------------------------------------------- +void CStartupAppUi::ShowCountryAndCityListsL() + { + TRACES("CStartupAppUi::ShowCountryAndCityListsL()"); + TInt cityselected( EFalse ); + while ( !cityselected ) + { + TRACES1("CStartupAppUi::ShowCountryAndCityListsL(): City item to focus: %d", iCounryListIndex); + TInt cityGroupId = ShowCountryListL(); + TRACES1("CStartupAppUi::ShowCountryAndCityListsL(): City group id: %d", cityGroupId); + if ( cityGroupId != KErrCancel ) + { + cityselected = ShowCityListL(cityGroupId); + } + else + { + cityselected = ETrue; + } + } + TRACES("CStartupAppUi::ShowCountryAndCityListsL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowCountryListL() +// --------------------------------------------------------------------------- +TInt CStartupAppUi::ShowCountryListL() + { + TRACES("CStartupAppUi::ShowCountryListL()"); + + CAknSinglePopupMenuStyleListBox* listBox = + new(ELeave) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL(listBox); + + CStartupPopupList* popupList = CStartupPopupList::NewL(listBox, R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT, + AknPopupLayouts::EMenuGraphicHeadingWindow ); + + CleanupStack::PushL(popupList); + + listBox->ConstructL(popupList, EAknListBoxSelectionList | EAknListBoxScrollBarSizeExcluded); + listBox->CreateScrollBarFrameL( ETrue ); + listBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, + CEikScrollBarFrame::EAuto ); + + listBox->ItemDrawer()->FormattedCellData()->EnableMarqueeL( ETrue ); + + CDesCArrayFlat *items = new(ELeave)CDesCArrayFlat(1); + + CleanupStack::PushL(items); + + CTzLocalizer* tzLocalizer = CTzLocalizer::NewL(); + CleanupStack::PushL(tzLocalizer); + + CTzLocalizedCityGroupArray* countryList; + countryList = tzLocalizer->GetAllCityGroupsL(CTzLocalizer::ETzAlphaNameAscending); + CleanupStack::PushL(countryList); + + TRACES("CStartupAppUi::ShowCountryListL(): Create list of cities"); + for(TInt i = 0; i Count(); i++) + { + CTzLocalizedCityGroup& cityGroup = countryList->At(i); + + // Check if the country name is blank. + // If it is blank, ignore it. Empty name shouldn't be shown in the list. + if(cityGroup.Name().Compare(KEmpty) != 0) + { + TBuf countryitem; + countryitem.Insert(0,cityGroup.Name()); + TRACES1("CStartupAppUi::ShowCountryListL(): Create country to list: %S", &countryitem); + items->AppendL(countryitem); + } + } + + CleanupStack::PopAndDestroy( countryList ); + + CTextListBoxModel* model=listBox->Model(); + model->SetItemTextArray(items); + model->SetOwnershipType(ELbmOwnsItemArray); + + TRACES("CStartupAppUi::ShowCountryListL(): Set title"); + // Set title + HBufC* title = StringLoader::LoadLC( R_QTN_SU_SELECT_COUNTRY ); + popupList->SetTitleL(title->Des()); + CleanupStack::PopAndDestroy( title ); + + popupList->EnableAdaptiveFind(); + listBox->SetCurrentItemIndex(iCounryListIndex); + + TInt cityGroupId; + + if (iCoverUISupported) + { + TRACES("CStartupAppUi::ShowCountryListL(): Publish country list for Secondary UI"); + TPckgBuf data( SecondaryDisplay::EShowCountryQuery ); + iStartupMediatorObserver->RaiseEvent( SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgStartupEvent, + data ); + } + + TRACES("CStartupAppUi::ShowCountryListL(): Show the list"); + if (popupList->ExecuteLD()) + { + iCounryListIndex = listBox->CurrentItemIndex(); + TRACES1("CStartupAppUi::ShowCountryListL(): CurrentItemIndex: %d", iCounryListIndex); + TPtrC countryName = listBox->Model()->ItemText(iCounryListIndex); + + CTzLocalizedCityGroup* tzLocalizedCityGroup = tzLocalizer->FindCityGroupByNameL(countryName); + CleanupStack::PushL(tzLocalizedCityGroup); + + cityGroupId = tzLocalizedCityGroup->Id(); + CleanupStack::PopAndDestroy( tzLocalizedCityGroup ); + + TRACES1("CStartupAppUi::ShowCountryListL(): Selected country %S", &countryName); + } + else + { + TRACES("CStartupAppUi::ShowCountryListL(): Country list cancelled"); + cityGroupId = KErrCancel; + } + + CleanupStack::PopAndDestroy( tzLocalizer ); + CleanupStack::Pop( items ); + CleanupStack::Pop( popupList ); + CleanupStack::PopAndDestroy( listBox ); + + TRACES1("CStartupAppUi::ShowCountryListL(): End. Return city group id: %d", cityGroupId); + return cityGroupId; + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowCityListL() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::ShowCityListL(TUint8 cityGroupId) + { + TRACES("CStartupAppUi::ShowCityListL()"); + + TBool retval( ETrue ); + + CTzLocalizer* tzLocalizer = CTzLocalizer::NewL(); + CleanupStack::PushL(tzLocalizer); + + CTzLocalizedCityArray* cityList; + + TRACES1("CStartupAppUi::ShowCityListL(): Create list of cities in group %d", cityGroupId); + + cityList = tzLocalizer->GetCitiesInGroupL(cityGroupId,//cityGroup.Id(), + CTzLocalizer::ETzAlphaNameAscending ); + CleanupStack::PushL(cityList); + + if ( cityList->Count() == 1 ) + { + TRACES("CStartupAppUi::ShowCityListL(): Only one city in citygroup. This can be selected automatically."); + + CTzLocalizedCity& city = cityList->At(0); + + CTzLocalizedCity* tzLocalizedCity = tzLocalizer->FindCityByNameL(city.Name()); + CleanupStack::PushL(tzLocalizedCity); + + TInt timeZoneId = tzLocalizedCity->TimeZoneId(); + + tzLocalizer->SetTimeZoneL(timeZoneId); + tzLocalizer->SetFrequentlyUsedZoneL(*tzLocalizedCity, CTzLocalizedTimeZone::ECurrentZone); + + CleanupStack::PopAndDestroy( tzLocalizedCity ); + CleanupStack::PopAndDestroy( cityList ); + CleanupStack::PopAndDestroy( tzLocalizer ); + + TRACES1("CStartupAppUi::ShowCityListL(): End, returns %d", retval); + return retval; + } + + CAknSinglePopupMenuStyleListBox* listBox = + new(ELeave) CAknSinglePopupMenuStyleListBox; + CleanupStack::PushL(listBox); + + CStartupPopupList* popupList = CStartupPopupList::NewL(listBox, R_AVKON_SOFTKEYS_SELECT_CANCEL__SELECT, + AknPopupLayouts::EMenuGraphicHeadingWindow ); + + CleanupStack::PushL(popupList); + + CDesCArrayFlat *items = new(ELeave)CDesCArrayFlat(1); + + CleanupStack::PushL(items); + + for(TInt j = 0; j < cityList->Count(); j++) + { + CTzLocalizedCity& city = cityList->At(j); + + // Check if the city name is blank. + // If it is blank, ignore it. Empty name shouldn't be shown in the list. + if(city.Name().Compare(KEmpty) != 0) + { + TBuf homecityitem; + homecityitem.Insert(0,city.Name()); + TRACES1("CStartupAppUi::ShowCityListL(): Create to list: %S", &homecityitem); + items->AppendL(homecityitem); + } + } + + listBox->ConstructL(popupList, EAknListBoxSelectionList | EAknListBoxScrollBarSizeExcluded); + listBox->CreateScrollBarFrameL( ETrue ); + listBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, + CEikScrollBarFrame::EAuto ); + + listBox->ItemDrawer()->FormattedCellData()->EnableMarqueeL( ETrue ); + + CTextListBoxModel* model=listBox->Model(); + model->SetItemTextArray(items); + model->SetOwnershipType(ELbmOwnsItemArray); + + TRACES("CStartupAppUi::ShowCityListL(): Set title"); + // Set title + HBufC* title = StringLoader::LoadLC( R_QTN_SU_SELECT_CITY ); + popupList->SetTitleL(title->Des()); + CleanupStack::PopAndDestroy(title); + + popupList->EnableAdaptiveFind(); + + if (iCoverUISupported) + { + TRACES("CStartupAppUi::ShowCountryListL(): Publish city list for Secondary UI"); + TPckgBuf data( SecondaryDisplay::EShowCityQuery ); + iStartupMediatorObserver->RaiseEvent( SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgStartupEvent, + data ); + } + + TRACES("CStartupAppUi::ShowCityListL(): Show the list"); + if (popupList->ExecuteLD()) + { + TInt index(listBox->CurrentItemIndex()); + TRACES1("CStartupAppUi::ShowCityListL(): CurrentItemIndex: %d", index); + TPtrC cityName = listBox->Model()->ItemText(index); + + CTzLocalizedCity* tzLocalizedCity = tzLocalizer->FindCityByNameL(cityName); + CleanupStack::PushL(tzLocalizedCity); + + TInt timeZoneId = tzLocalizedCity->TimeZoneId(); + + tzLocalizer->SetTimeZoneL(timeZoneId); + tzLocalizer->SetFrequentlyUsedZoneL(*tzLocalizedCity, CTzLocalizedTimeZone::ECurrentZone); + + CleanupStack::PopAndDestroy(tzLocalizedCity); + + TRACES1("CStartupAppUi::ShowCityListL(): Selected city %S", &cityName); + } + else + { + TRACES("CStartupAppUi::ShowCityListL(): City list cancelled"); + retval = EFalse; + } + + CleanupStack::Pop(items); + CleanupStack::Pop(popupList); + CleanupStack::PopAndDestroy(listBox); + CleanupStack::PopAndDestroy(cityList); + CleanupStack::PopAndDestroy(tzLocalizer); + + + TRACES("CStartupAppUi::ShowCityListL(): Home city selected"); + TRACES1("CStartupAppUi::ShowCityListL(): End, return %d", retval); + return retval; + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowTimeQueryL() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::ShowTimeQueryL() + { + TRACES("CStartupAppUi::ShowTimeQueryL()"); + + TTime time; + GetDefaultTimeAndDate( time ); + + CStartupQueryDialog* dlg = new (ELeave) CStartupQueryDialog(time, CAknQueryDialog::ENoTone); + TRACES("CStartupAppUi::ShowTimeQueryL(): Publish dialog for Secondary UI"); + dlg->PublishDialogL(SecondaryDisplay::ECmdShowTimeQuery, SecondaryDisplay::KCatStartup); + if( dlg->ExecuteLD( R_STARTUP_TIME_SETTING_QUERY ) ) + { + TTime current; + current.HomeTime(); + TDateTime cTime = current.DateTime(); + TDateTime atime = time.DateTime(); + atime.SetYear(cTime.Year()); + atime.SetMonth(cTime.Month()); + atime.SetDay(cTime.Day()); + time = atime; + + RTz rtz; + User::LeaveIfError(rtz.Connect()); + User::LeaveIfError(rtz.SetHomeTime(time)); + rtz.Close(); + + TRACES("CStartupAppUi::ShowTimeQueryL(): End, return ETrue"); + return ETrue; + } + else + { + //in case of poweroff key was pressed and shutdown is occuring + TRACES("CStartupAppUi::ShowTimeQueryL(): End, return EFalse"); + return EFalse; + } + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::ShowDateQueryL() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::ShowDateQueryL() + { + TRACES("CStartupAppUi::ShowDateQueryL()"); + + + CStartupQueryDialog* dlg = new (ELeave) CStartupQueryDialog(iTime, CAknQueryDialog::ENoTone); + TRACES("CStartupAppUi::ShowDateQueryL(): Publish dialog for Secondary UI"); + dlg->PublishDialogL(SecondaryDisplay::ECmdShowDateQuery, SecondaryDisplay::KCatStartup); + + TInt query( R_STARTUP_DATE_SETTING_QUERY_NOBACK ); + if ( iFirstBoot ) + { + query = R_STARTUP_DATE_SETTING_QUERY; + } + + if( dlg->ExecuteLD( query ) ) + { + TTime current; + current.HomeTime(); + TDateTime cTime = current.DateTime(); + TDateTime atime = iTime.DateTime(); + atime.SetHour(cTime.Hour()); + atime.SetMinute(cTime.Minute()); + atime.SetSecond(cTime.Second()); + atime.SetMicroSecond(cTime.MicroSecond()); + iTime = atime; + + RTz rtz; + User::LeaveIfError(rtz.Connect()); + User::LeaveIfError(rtz.SetHomeTime(iTime)); + rtz.Close(); + + TRACES("CStartupAppUi::ShowDateQueryL(): End, return ETrue"); + return ETrue; + } + else + { + // Back key pressed. ( Or poweroff key was pressed and shutdown is occuring ) + TRACES("CStartupAppUi::ShowDateQueryL(): End, return EFalse"); + return EFalse; + } + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::GetDefaultTimeAndDate() +// --------------------------------------------------------------------------- +void CStartupAppUi::GetDefaultTimeAndDate( TTime& aTime ) + { + TRACES("CStartupAppUi::GetDefaultTimeAndDate(): Get Time and Date from CenRep"); + + CRepository* repository(NULL); + + TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); + if ( !err ) + { + TBuf buf; + err = repository->Get( KStartupDefaultTime, buf ); + if( !err ) + { + err = aTime.Set(buf); // returns error if cenrep time format not valid + } + } + + if ( err ) + { + TRACES("CStartupAppUi::GetDefaultTimeAndDate(): Failed to get valid data from CenRep. Using default"); + aTime.Set(KDefaultDateTimeValue); + } + + delete repository; + TRACES("CStartupAppUi::GetDefaultTimeAndDate(): End"); + } // --------------------------------------------------------------------------- // CStartupAppUi::FirstBoot() @@ -1016,7 +2212,7 @@ } - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- // CStartupAppUi::AnimationFinished() // --------------------------------------------------------------------------- @@ -1058,7 +2254,7 @@ } else if ( iInternalState == EStartupShowingOperatorAnimation ) { - TRAP(err, DoNextStartupPhaseL( EStartupFirstBootAndRTCCheck)); + TRAP(err, DoNextStartupPhaseL( EStartupShowingUserWelcomeNote )); } if ( err != KErrNone ) @@ -1068,6 +2264,51 @@ TRACES("CStartupAppUi::AnimationFinished(): End"); } +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupAppUi::StopStartupTone() +// --------------------------------------------------------------------------- +void CStartupAppUi::StopStartupTone() + { + TRACES("CStartupAppUi::StopStartupTone()"); + if ((iStartupTone) && (iStartupTone->Playing())) + { + iStartupTone->Stop(); + } + TRACES("CStartupAppUi::StopStartupTone(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::StopOperatorTone() +// --------------------------------------------------------------------------- +void CStartupAppUi::StopOperatorTone() + { + TRACES("CStartupAppUi::StopOperatorTone()"); + if ((iOpStartupTone) && (iOpStartupTone->Playing())) + { + iOpStartupTone->Stop(); + } + TRACES("CStartupAppUi::StopOperatorTone(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::StartupTonePlaying() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::StartupTonePlaying() + { + TRACES("CStartupAppUi::StartupTonePlaying()"); + return iStartupTone->Playing(); + } + +// --------------------------------------------------------------------------- +// CStartupAppUi::OperatorTonePlaying() +// --------------------------------------------------------------------------- +TBool CStartupAppUi::OperatorTonePlaying() + { + TRACES("CStartupAppUi::OperatorTonePlaying()"); + return iOpStartupTone->Playing(); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- // CStartupAppUi::SetCleanBoot() @@ -1088,7 +2329,14 @@ return iSimSupported; } - +// ---------------------------------------------------------------------------- +// CStartupAppUi::CoverUISupported() +// ---------------------------------------------------------------------------- +TBool CStartupAppUi::CoverUISupported() + { + TRACES("CStartupAppUi::CoverUISupported()"); + return iCoverUISupported; + } // --------------------------------------------------------------------------- // CStartupAppUi::DoNextStartupPhaseL( TStartupInternalState toState ) @@ -1100,14 +2348,14 @@ // 5 EStartupWaitingTouchScreenCalib // 6 EStartupWaitingPhoneLightIdle 8, 18 // 8 EStartupOfflineModeQuery 9, 18 -// 9 EStartupWaitingCUIWelcomeAnim 10, 18 Removed +// 9 EStartupWaitingCUIWelcomeAnim 10, 18 // 10 EStartupWaitingStartupTone 11, 18 // 11 EStartupShowingWelcomeAnimation 12, 14, 18 // 12 EStartupWaitingCUIOperatorAnim 13, 18 // 13 EStartupShowingOperatorAnimation 14, 14, 18 -// 14 EStartupShowingUserWelcomeNote 15, 18 Removed +// 14 EStartupShowingUserWelcomeNote 15, 18 // 15 EStartupFirstBootAndRTCCheck 16, 18 -// 16 EStartupWaitingCUIStartupReady 17, 18 Removed +// 16 EStartupWaitingCUIStartupReady 17, 18 // 17 EStartupStartupOK - // 18 EStartupSystemFatalError - @@ -1143,18 +2391,42 @@ { switch( toState ) { - case EStartupStartupOK: - iInternalState = EStartupStartupOK; - TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupStartupOK"); - DoStartupEndPart(); + case EStartupWaitingCUIStartupReady: + iInternalState = EStartupWaitingCUIStartupReady; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIStartupReady"); + WaitingCoverUIStartupReadySyncL(); + break; +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupWaitingTouchScreenCalib: + iInternalState = EStartupWaitingTouchScreenCalib; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingTouchScreenCalib"); + WaitingTouchScreenCalibL(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); break; - + default: + __ASSERT_DEBUG( + EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; + case EStartupWaitingTouchScreenCalib: + { + switch( toState ) + { +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION case EStartupOfflineModeQuery: iInternalState = EStartupOfflineModeQuery; TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupOfflineModeQuery"); ShowOfflineModeQueryL(); - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION DoNextStartupPhaseL( EStartupWaitingShowStartupAnimation ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + DoNextStartupPhaseL( EStartupWaitingCUIWelcomeAnim ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION break; case EStartupSystemFatalError: SystemFatalErrorL(); @@ -1171,13 +2443,20 @@ { switch( toState ) { - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION case EStartupWaitingShowStartupAnimation: iInternalState = EStartupWaitingShowStartupAnimation; TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingShowStartupAnimation"); WaitingStartupAnimationStartL(); break; - case EStartupSystemFatalError: +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupWaitingCUIWelcomeAnim: + iInternalState = EStartupWaitingCUIWelcomeAnim; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIWelcomeAnim"); + WaitingCoverUIWelcomeAnimationSyncL(); + break; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupSystemFatalError: SystemFatalErrorL(); break; default: @@ -1188,6 +2467,50 @@ } } break; +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupWaitingCUIWelcomeAnim: + { + switch( toState ) + { + case EStartupWaitingStartupTone: + iInternalState = EStartupWaitingStartupTone; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingStartupTone"); + WaitingStartupToneL(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); + break; + default: + __ASSERT_DEBUG( EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; + case EStartupWaitingStartupTone: + { + switch( toState ) + { + case EStartupShowingWelcomeAnimation: + iInternalState = EStartupShowingWelcomeAnimation; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupShowingWelcomeAnimation"); + iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimStart ); + iWelcomeAnimation->DrawNow(); + DoStartupShowWelcomeAnimationL(); + iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeAnimEnd ); + iWelcomeAnimation->DrawNow(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); + break; + default: + __ASSERT_DEBUG( EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION case EStartupWaitingShowStartupAnimation: { switch( toState ) @@ -1212,11 +2535,19 @@ { switch( toState ) { - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION case EStartupShowingOperatorAnimation: iInternalState = EStartupShowingOperatorAnimation; TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingOperatorAnimation"); DoStartupShowOperatorAnimationL(); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupWaitingCUIOperatorAnim: + iOperatorAnimation = CStartupOperatorAnimation::NewL( this, ClientRect()); + AddToStackL( iOperatorAnimation); + iInternalState = EStartupWaitingCUIOperatorAnim; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupWaitingCUIOperatorAnim"); + WaitingCoverUIOperatorAnimationSyncL(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION break; case EStartupFirstBootAndRTCCheck: iInternalState = EStartupFirstBootAndRTCCheck; @@ -1233,12 +2564,45 @@ } } break; +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + case EStartupWaitingCUIOperatorAnim: + { + switch( toState ) + { + case EStartupShowingOperatorAnimation: + iInternalState = EStartupShowingOperatorAnimation; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingOperatorAnimation"); + iOperatorAnimation->UpdateDrawInfo( EStartupDIOperatorAnimStart ); + DoStartupShowOperatorAnimationL(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); + break; + default: + __ASSERT_DEBUG( EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION case EStartupShowingOperatorAnimation: { switch( toState ) { - - + case EStartupShowingUserWelcomeNote: +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iUserWelcomeNote = CStartupUserWelcomeNote::NewL( *this, ClientRect()); + AddToStackL( iUserWelcomeNote ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iInternalState = EStartupShowingUserWelcomeNote; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState: EStartupShowingUserWelcomeNote"); +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + iWelcomeAnimation->UpdateDrawInfo( EStartupDIWelcomeNoteStart ); + iUserWelcomeNote->SetUserWelcomeNoteShowing(ETrue); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + DoStartupShowUserWelcomeNoteL(); + break; case EStartupFirstBootAndRTCCheck: iInternalState = EStartupFirstBootAndRTCCheck; TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupFirstBootAndRTCCheck"); @@ -1254,15 +2618,52 @@ } } break; - + case EStartupShowingUserWelcomeNote: + { + switch( toState ) + { + case EStartupFirstBootAndRTCCheck: + iInternalState = EStartupFirstBootAndRTCCheck; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupFirstBootAndRTCCheck"); + DoStartupFirstBootAndRTCCheckL(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); + break; + default: + __ASSERT_DEBUG( EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; case EStartupFirstBootAndRTCCheck: { switch( toState ) { + case EStartupWaitingCUIStartupReady: + iInternalState = EStartupWaitingCUIStartupReady; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupWaitingCUIStartupReady"); + WaitingCoverUIStartupReadySyncL(); + break; + case EStartupSystemFatalError: + SystemFatalErrorL(); + break; + default: + __ASSERT_DEBUG( EFalse, + PANIC( EStartupInvalidInternalStateChange ) ); + break; + } + } + break; + case EStartupWaitingCUIStartupReady: + { + switch( toState ) + { case EStartupStartupOK: - iInternalState = EStartupStartupOK; - TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupInvokeAndWaitForFtu"); - DoStartupEndPart(); + iInternalState = EStartupStartupOK; + TRACES("CStartupAppUi::DoNextStartupPhaseL(): InternalState : EStartupStartupOK"); + DoStartupEndPart(); break; case EStartupSystemFatalError: SystemFatalErrorL(); @@ -1282,6 +2683,7 @@ case EStartupOfflineModeQuery: case EStartupShowingWelcomeAnimation: case EStartupShowingOperatorAnimation: + case EStartupShowingUserWelcomeNote: case EStartupFirstBootAndRTCCheck: case EStartupWaitingCUIStartupReady: case EStartupStartupOK: @@ -1337,7 +2739,7 @@ return ret_val; } - +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION // --------------------------------------------------------------------------- // CStartupAppUi::UpdateStartupUiPhase() // --------------------------------------------------------------------------- @@ -1352,5 +2754,5 @@ TRACES1("CStartupAppUi::UpdateStartupUiPhase(): KPSStartupUiPhase set err %d", err); } } - +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION // End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupMediatorObserver.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupMediatorObserver.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,182 @@ +/* +* Copyright (c) 2005-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". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of CStartupMediatorObserver class +* +*/ + + +#include + +#include "StartupMediatorObserver.h" +#include "StartupAppUi.h" +#include "startupdomainpskeys.h" + +// ================= MEMBER FUNCTIONS ======================= + +// ---------------------------------------------------- +// CStartupMediatorObserver::ConstructL() +// ---------------------------------------------------- +void CStartupMediatorObserver::ConstructL() + { + TRACES("CStartupMediatorObserver::ConstructL()"); + + TRACES("CStartupMediatorObserver::ConstructL(): iCommandInitiator"); + iCommandInitiator = CMediatorCommandInitiator::NewL(this); + + TRACES("CStartupMediatorObserver::ConstructL(): iEventProvider"); + iEventProvider = CMediatorEventProvider::NewL(); + + TRACES("CStartupMediatorObserver::ConstructL(): Register event: EMsgWelcomeImageEvent "); + iEventProvider->RegisterEvent( KMediatorSecondaryDisplayDomain, + SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgWelcomeImageEvent, + TVersion(0,0,0), + ECapabilitySwEvent ); + + TRACES("CStartupMediatorObserver::ConstructL(): Register event: EMsgStartupEvent "); + iEventProvider->RegisterEvent( KMediatorSecondaryDisplayDomain, + SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgStartupEvent, + TVersion(0,0,0), + ECapabilitySwEvent ); + + TRACES("CStartupMediatorObserver::ConstructL(): End"); + } + +// ---------------------------------------------------- +// CStartupMediatorObserver::NewL( CStartupAppUi* aStartupAppUi ) +// ---------------------------------------------------- +CStartupMediatorObserver* CStartupMediatorObserver::NewL( CStartupAppUi* aStartupAppUi ) + { + TRACES("CStartupMediatorObserver::NewL()"); + CStartupMediatorObserver* self = new (ELeave) CStartupMediatorObserver( aStartupAppUi ); + + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop(); // self + + TRACES("CStartupMediatorObserver::NewL(): End"); + return self; + } + +// ---------------------------------------------------- +// CStartupMediatorObserver::CStartupMediatorObserver( CStartupAppUi* aStartupAppUi ) +// C++ default constructor can NOT contain any code, that +// might leave. +// ---------------------------------------------------- +CStartupMediatorObserver::CStartupMediatorObserver( CStartupAppUi* aStartupAppUi ) : + iStartupAppUi( aStartupAppUi ), + iSyncData( NULL ) + { + TRACES("CStartupMediatorObserver::CStartupMediatorObserver()"); + } + +// ---------------------------------------------------- +// CStartupMediatorObserver::~CStartupMediatorObserver() +// ---------------------------------------------------- +CStartupMediatorObserver::~CStartupMediatorObserver() + { + TRACES("CStartupMediatorObserver::~CStartupMediatorObserver()"); + delete iCommandInitiator; + delete iEventProvider; + TRACES("CStartupMediatorObserver::~CStartupMediatorObserver(): End"); + } + +// --------------------------------------------------------- +// +// --------------------------------------------------------- +void CStartupMediatorObserver::IssueCommand(TInt aCommandId, TInt aData) + { + TRACES("CStartupMediatorObserver::IssueCommand()"); + TRACES1("CStartupMediatorObserver::IssueCommand(): aCommandId %d", aCommandId); + TRACES1("CStartupMediatorObserver::IssueCommand(): aData: %d", aData); + if (aCommandId == SecondaryDisplay::ECmdStartupSync) + { + iSyncData = aData; + } + + TPckgBuf data( aData ); + iCommandInitiator->IssueCommand( KMediatorSecondaryDisplayDomain, + SecondaryDisplay::KCatStartup, + aCommandId, + TVersion(0,0,0), + data); + + TRACES("CStartupMediatorObserver::IssueCommand(): End"); + } + +// --------------------------------------------------------- +// +// --------------------------------------------------------- +void CStartupMediatorObserver::CommandResponseL( TUid /*aDomain*/, + TUid /*aCategory*/, + TInt aCommandId, + TInt /*aStatus*/, + const TDesC8& /*aData*/ ) + { + TRACES("CStartupMediatorObserver::CommandResponseL()"); + if (aCommandId == SecondaryDisplay::ECmdStartupSync) + { +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( iSyncData == SecondaryDisplay::EStartWelcomeAnimation ) + { + TRACES("CStartupMediatorObserver::CommandResponseL(): EStartWelcomeAnimation"); + iStartupAppUi->CoverUIWelcomeAnimationSyncOKL(); + } + else if ( iSyncData == SecondaryDisplay::EStartOperatorAnimation ) + { + TRACES("CStartupMediatorObserver::CommandResponseL(): EStartOperatorAnimation"); + iStartupAppUi->CoverUIOperatorAnimationSyncOKL(); + } + else +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + if ( iSyncData == SecondaryDisplay::EStartStartupReady ) + { + TRACES("CStartupMediatorObserver::CommandResponseL(): EStartStartupReady"); + iStartupAppUi->CoverUIStartupReadySyncOKL(); + } + else + { + TRACES("CStartupMediatorObserver::CommandResponseL(): Unsupported command"); + } + } + + TRACES("CStartupMediatorObserver::CommandResponseL(): End"); + } + +// --------------------------------------------------------- +// +// --------------------------------------------------------- +void CStartupMediatorObserver::RaiseEvent( TUid aCategory, + TInt aEventId, + const TDesC8& aData ) + { + TRACES("CStartupMediatorObserver::RaiseEvent()"); + TRACES1("CStartupMediatorObserver::RaiseEvent(): domain :%d", KMediatorSecondaryDisplayDomain); + TRACES1("CStartupMediatorObserver::RaiseEvent(): category:%d", aCategory); + TRACES1("CStartupMediatorObserver::RaiseEvent(): event id:%d", aEventId); + TRACES1("CStartupMediatorObserver::RaiseEvent(): data :%S", &aData); + TInt err = iEventProvider->RaiseEvent( KMediatorSecondaryDisplayDomain, + aCategory, + aEventId, + TVersion(0,0,0), + aData ); + if ( err != KErrNone ) + { + TRACES1("CStartupMediatorObserver::RaiseEvent(): Error raising event: err = d", err); + } + TRACES("CStartupMediatorObserver::RaiseEvent(): End"); + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupOperatorAnimation.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupOperatorAnimation.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,206 @@ +/* +* Copyright (c) 2003 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: +* This class is the container class of the CStartupOperatorAnimation. +* Is used to show operator animation. +* +*/ + + +// INCLUDE FILES +#include +#include +#include //use of TResourceReader +#include +#include "StartupOperatorAnimation.h" +#include +#include "StartupDefines.h" +#include "Startup.hrh" +#include "StartupAppUi.h" +#include +#include + +// CONSTANTS + +// Path to operator variated animation +_LIT( KOperatorAnimationResource, "z:operatoranimation.rsc" ); + +//Constants used in OfferKeyEventL +const TInt KTimerDelay( 10000); +const TInt KTimerInterval( 10000); + +// ================= MEMBER FUNCTIONS ======================= + +// --------------------------------------------------------------------------- +// CStartupOperatorAnimation::ConstructL(const TRect& aRect) +// Symbian 2nd phase constructor can leave. +// Need different ConstructL from base class CStartupWelcomeAnimation +// because different animation file and time are loaded. +// --------------------------------------------------------------------------- +void CStartupOperatorAnimation::ConstructL(const TRect& /*aRect*/) + { + TRACES("CStartupOperatorAnimation::ConstructL()"); + UpdateDrawInfo( EStartupDIStart ); + CreateWindowL(); + iAnimCancelTimer = CPeriodic::NewL( EPriorityNormal ); + + TRACES("CStartupOperatorAnimation::ConstructL(): Animation loading started"); + iAnim = CAknBitmapAnimation::NewL(); + iAnim->ExcludeAnimationFramesFromCache(); + iAnim->SetContainerWindowL( *this ); + iAnim->SetScaleModeForAnimationFrames(EAspectRatioPreservedAndUnusedSpaceRemoved); + TResourceReader rr; + RConeResourceLoader loader( *CEikonEnv::Static() ); + + TParse* fp = new(ELeave) TParse(); + fp->Set(KOperatorAnimationResource, &KDC_APP_RESOURCE_DIR, NULL); + TRACES1("CStartupOperatorAnimation::ConstructL(): Operator animation resource path: '%S'", &fp->FullName()); + TFileName name( fp->FullName() ); + delete fp; + + TInt fileError = loader.Open( name ); + if ( fileError == KErrNone ) + { + CleanupClosePushL( loader ); + iCoeEnv->CreateResourceReaderLC(rr, R_OPERATOR_IMAGE); + TRAPD(err, iAnim->ConstructFromResourceL( rr )); + TRACES1("CStartupOperatorAnimation::ConstructL(): Operator animation: err = %d", err); + if( err == KErrNone ) + { + TResourceReader timeReader; + iCoeEnv->CreateResourceReaderLC(timeReader, R_ANIM_DURATION); + iShowingTime = timeReader.ReadInt16(); + TRACES1("CStartupOperatorAnimation::ConstructL(): Operator animation showing time: %d", iShowingTime ); + CleanupStack::PopAndDestroy(); // pop timeReader + } + else + { + iShowingTime = 0; + TRACES("CStartupOperatorAnimation::ConstructL(): Animation loading failed"); + } + CleanupStack::PopAndDestroy(); //pop rr + TRACES("CStartupOperatorAnimation::ConstructL(): Animation loading ended"); + CleanupStack::PopAndDestroy(); //pop loader + } + else + { + TRACES("CStartupOperatorAnimation::ConstructL(): Resource file loading failed"); + } + + + SetRect(iAvkonAppUi->ApplicationRect()); + iAnim->SetPosition( TPoint( (iAvkonAppUi->ApplicationRect().Width()/2) - (iAnim->BitmapAnimData()->Size().iWidth/2), + (iAvkonAppUi->ApplicationRect().Height()/2) - (iAnim->BitmapAnimData()->Size().iHeight/2) ) ); + ActivateL(); + + TRACES("CStartupOperatorAnimation::ConstructL(): End"); + } + +// ----------------------------------------------------------------------------- +// CStartupOperatorAnimation::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CStartupOperatorAnimation* CStartupOperatorAnimation::NewL( CStartupAppUi* aStartupAppUi, + const TRect& aRect) + { + TRACES("CStartupOperatorAnimation::NewL()"); + CStartupOperatorAnimation* self = new (ELeave) CStartupOperatorAnimation( aStartupAppUi ); + CleanupStack::PushL(self); + self->ConstructL(aRect); + CleanupStack::Pop(); + return self; + } + +// --------------------------------------------------------- +// CStartupOperatorAnimation::CStartupOperatorAnimation() +// --------------------------------------------------------- +CStartupOperatorAnimation::CStartupOperatorAnimation( CStartupAppUi* aStartupAppUi ) : + CStartupWelcomeAnimation(aStartupAppUi) + { + TRACES("CStartupOperatorAnimation::CStartupOperatorAnimation()"); + iShowingTime = 0; + } + +// --------------------------------------------------------------------------- +// CStartupOperatorAnimation::OfferKeyEventL(...) +// --------------------------------------------------------------------------- +TKeyResponse CStartupOperatorAnimation::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/) + { + TRACES("CStartupWelcomeAnimation::OfferKeyEventL()"); + if( iAnimationShowing && !iStartupAppUi->HiddenReset() && !iAnimationCancelled ) + { + // Cancel animation + UpdateDrawInfo( EStartupDIOperatorAnimCancelled ); + EndAnimation(); + TRACES("CStartupWelcomeAnimation::OfferKeyEventL(): Timer activated - before"); + iAnimCancelTimer->Start( KTimerDelay, KTimerInterval, + TCallBack( iStartupAppUi->DoStopTimingL, iStartupAppUi ) ); + TRACES("CStartupOperatorAnimation::OfferKeyEventL(): Timer activated - after"); + iAnimationCancelled = ETrue; + } + else if( !iAnimationShowing && iStartupAppUi->OperatorTonePlaying()) + { + TRACES("CStartupOperatorAnimation::OfferKeyEventL() Animation has completed but tone is still playing. Stop it."); + iStartupAppUi->StopOperatorTone(); + } + + TRACES("CStartupOperatorAnimation::OfferKeyEventL(): End"); + return EKeyWasConsumed; + } + +// --------------------------------------------------------------------------- +// CStartupOperatorAnimation::DoDrawing() +// --------------------------------------------------------------------------- +void CStartupOperatorAnimation::DoDrawing() const + { +// These are the cases handled in this function +// EStartupDIOperatorAnimStart, +// EStartupDIOperatorAnimCancelled, +// EStartupDIOperatorAnimEnd +// EStartupDISystemFatalError + TRACES("CStartupOperatorAnimation::DoDrawing()"); + TRACES1("CStartupOperatorAnimation::DoDrawing(): %d ", iDrawUpdateInfo ); + switch ( iDrawUpdateInfo ) + { + + case EStartupDIOperatorAnimStart: + { + TRACES("CStartupOperatorAnimation::DoDrawing(): EStartupDIOperatorAnimStart"); + } + break; + case EStartupDIOperatorAnimCancelled: + { + TRACES("CStartupOperatorAnimation::DoDrawing(): EStartupDIOperatorAnimCancelled"); + EndAnimation(); + TRAPD(err,iStartupAppUi->StopTimingL()); + if (err != KErrNone) + { + TRACES1("CStartupOperatorAnimation::DoDrawing(): StopTimingL() leaves, err = %d", err ); + } + } + break; + case EStartupDIOperatorAnimEnd: + { + TRACES("CStartupOperatorAnimation::DoDrawing(): EStartupDIOperatorAnimEnd"); + } + break; + case EStartupDISystemFatalError: + { + } + break; + default: + break; + } + } diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupPopupList.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupPopupList.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,141 @@ +/* +* 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: This class implements a customized pop-up +* which disables LSK if no city/country match is there +* +*/ + + +// INCLUDE FILES + +#include "StartupPopupList.h" +#include +#include "StartupDefines.h" + +// --------------------------------------------------------------------------- +// CStartupPopupList::CStartupPopupList() +// +// --------------------------------------------------------------------------- +CStartupPopupList::CStartupPopupList() + { + } + +// --------------------------------------------------------------------------- +// CStartupPopupList::~CStartupPopupList() +// --------------------------------------------------------------------------- +// +CStartupPopupList::~CStartupPopupList() + { + } + +// --------------------------------------------------------------------------- +// CStartupPopupList::NewL() +// --------------------------------------------------------------------------- +// +CStartupPopupList* CStartupPopupList::NewL( + CAknSinglePopupMenuStyleListBox* aListBox, + TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts aType) + { + TRACES("CStartupPopupList::NewL()"); + CStartupPopupList* self = new(ELeave)CStartupPopupList(); + CleanupStack::PushL(self); + self->ConstructL(aListBox, aCbaResource, aType); + CleanupStack::Pop(); // self + TRACES("CStartupPopupList::NewL(): End"); + return self; + } + +// --------------------------------------------------------------------------- +// CStartupPopupList::ConstructL() +// Symbian OS second phase constructor +// --------------------------------------------------------------------------- +// + void CStartupPopupList::ConstructL(CAknSinglePopupMenuStyleListBox* aListBox, + TInt aCbaResource, + AknPopupLayouts::TAknPopupLayouts aType) + { + TRACES("CStartupPopupList::ConstructL()"); + CAknPopupList::ConstructL(aListBox, aCbaResource,aType); + TRACES("CStartupPopupList::ConstructL(): End"); + } + + +// --------------------------------------------------------------------------- +// CStartupPopupList::ListBoxItemsChanged() +// Handle the ListBox Change Event and Disable "Select" & "MSK" CBA Buttons +// --------------------------------------------------------------------------- +// +void CStartupPopupList::ListBoxItemsChanged(CEikListBox* aListBox) + { + TRACES("CStartupPopupList::ListBoxItemsChanged()"); + // get the CBA button group container + CEikButtonGroupContainer* cbaContainer = ButtonGroupContainer(); + // check if there's no match of items + if( !aListBox->Model()->NumberOfItems() ) + { + // Disable the 'Select' button + cbaContainer->MakeCommandVisible(EAknSoftkeySelect,EFalse); + // Disable the 'Middle softkey' button + cbaContainer->MakeCommandVisibleByPosition( + CEikButtonGroupContainer::EMiddleSoftkeyPosition,EFalse); + } + // check if 'Select' is disabled + else if(!cbaContainer->IsCommandVisible(EAknSoftkeySelect)) + { + // Enable the 'Select' button if disabled + cbaContainer->MakeCommandVisible(EAknSoftkeySelect,ETrue); + // Enable the 'Middle softkey' button if disabled + cbaContainer->MakeCommandVisibleByPosition( + CEikButtonGroupContainer::EMiddleSoftkeyPosition,ETrue); + } + TRACES("CStartupPopupList::ListBoxItemsChanged(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupPopupList::ActivateL() +// Activate the View and add the ListBox Observer +// --------------------------------------------------------------------------- +// +void CStartupPopupList::ActivateL() + { + TRACES("CStartupPopupList::ActivateL()"); + // call Base class ActivateL() + CAknPopupList::ActivateL(); + // add the listbox item change observer + ListBox()->AddItemChangeObserverL(this); + TRACES("CStartupPopupList::ActivateL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupPopupList::HandlePointerEventL() +// --------------------------------------------------------------------------- +// +void CStartupPopupList::HandlePointerEventL(const TPointerEvent& aPointerEvent) + { + TRACES("CStartupPopupList::HandlePointerEventL()"); + TRACES1("CStartupPopupList::HandlePointerEventL: aPointerEvent.iType == %d",aPointerEvent.iType ); + + /* Handle all taps except when EButton1Down outside of country/city query + -> query is not cancelled and scroll bar does not remain pressed down */ + if ( Rect().Contains( aPointerEvent.iPosition ) || ( !Rect().Contains( aPointerEvent.iPosition ) && + aPointerEvent.iType != TPointerEvent::EButton1Down ) ) + { + CAknPopupList::HandlePointerEventL( aPointerEvent ); + } + + TRACES("CStartupPopupList::HandlePointerEventL(): End"); + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupQueryDialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupQueryDialog.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2002 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: +* This class adds send-key to acknowledge the time/date query. +* Feature is implemented to needs of the PET-chamber in production tests. +* More information can be found in Change Request-database. +* +*/ + + + +// INCLUDE FILES +#include "StartupQueryDialog.h" + +// ========================= MEMBER FUNCTIONS ================================ + +// ----------------------------------------------------------------------------- +// CStartupQueryDialog::CStartupQueryDialog +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- +// +CStartupQueryDialog::CStartupQueryDialog( TTime& aTime, const TTone aTone ) : + CAknTimeQueryDialog( aTime, aTone ) + { + } + +// Destructor +CStartupQueryDialog::~CStartupQueryDialog() + { + } + +// ----------------------------------------------------------------------------- +// CStartupQueryDialog::OfferKeyEventL +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +TKeyResponse CStartupQueryDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent, + TEventCode aType) + { + if( aType != EEventKey ) + return EKeyWasNotConsumed; + + if( NeedToDismissQueryL( aKeyEvent ) ) + return EKeyWasConsumed; + return CAknDialog::OfferKeyEventL(aKeyEvent,aType); + } + +// ----------------------------------------------------------------------------- +// CStartupQueryDialog::NeedToDismissQueryL +// Allows user to acknowledge time and date queries with the send key. +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +TBool CStartupQueryDialog::NeedToDismissQueryL(const TKeyEvent& aKeyEvent) + { + if (aKeyEvent.iCode == EKeyPhoneSend) + { + DismissQueryL(); + return ETrue; + } + return EFalse; + } + +// ----------------------------------------------------------------------------- +// CStartupQueryDialog::DismissQueryL +// Query is accepted if the left softkey is displayed +// (left softkey is displayed only if there is valid data in the query). +// Query is discarded if the left softkey is not displayed. +// Clients can override this and implement something different. +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +void CStartupQueryDialog::DismissQueryL() + { + if (IsLeftSoftkeyVisible()) + { + TryExitL(EEikBidOk); + } + } + +// ----------------------------------------------------------------------------- +// CStartupQueryDialog::IsLeftSoftkeyVisible +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +TBool CStartupQueryDialog::IsLeftSoftkeyVisible() + { + return ButtonGroupContainer().ButtonGroup()->IsCommandVisible( + ButtonGroupContainer().ButtonGroup()->CommandId(0)); + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupTone.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupTone.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,324 @@ +/* +* Copyright (c) 2005-2010 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: +* This class is the container class of the CStartupTone. +* Is used to play startup tone. +* +*/ + + +// INCLUDE FILES +#include +#include +#include +#include +#include "StartupTone.h" +#include "StartupAppUi.h" +#include "AudioPreference.h" + +#define MIN_VOLUME 0 +#define MAX_VOLUME 10000 + +//=============================== MEMBER FUNCTIONS ============================ +// --------------------------------------------------------- +// Constructor & destructor +// EPOC two phased constructor +// --------------------------------------------------------- +// +CStartupTone::CStartupTone( CStartupAppUi* aStartupAppUi ) : + iTone( NULL ), + iAudioReady( EFalse ), + iPlaying( EFalse ), + iStartupAppUi( aStartupAppUi ), + iHiddenReset (EFalse ), + iStartupWaitingForTone ( EFalse ) + { + } + +CStartupTone::~CStartupTone() + { + TRACES("CStartupTone::~CStartupTone()"); + + if (iTone) + { + if (iPlaying) + { + TRACES("CStartupTone::~CStartupTone(): Still playing. Stop it!"); + iTone->Stop(); + } + delete iTone; + iTone = NULL; + TRACES("CStartupTone::~CStartupTone(): iTone deleted"); + } + TRACES("CStartupTone::~CStartupTone(): End"); + } + +// ---------------------------------------------------- +// CStartupTone::NewL( CStartupAppUi* aStartupAppUi ) +// ---------------------------------------------------- +CStartupTone* CStartupTone::NewL( CStartupAppUi* aStartupAppUi, TToneType aToneType ) + { + TRACES("CStartupTone::NewL()"); + CStartupTone* self = new (ELeave) CStartupTone( aStartupAppUi ); + + CleanupStack::PushL( self ); + self->ConstructL(aToneType); + CleanupStack::Pop(); // self + + TRACES("CStartupTone::NewL(): End"); + return self; + } + +void CStartupTone::ConstructL(TToneType aToneType) + { + TRACES("CStartupTone::ConstructL()"); + // Check tone volume + iVolume = GetRingingToneVolumeL(); + // Check if hidden reset + iHiddenReset = iStartupAppUi->HiddenReset(); + + iToneType = aToneType; + + if ((!iHiddenReset) && (iVolume)) + { + TPath tonePath; + TRACES("CStartupTone::ConstructL(): Get tone path from CenRep"); + + CRepository* repository(NULL); + + TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); + if ( err != KErrNone ) + { + TRACES("CStartupTone::ConstructL(): End, ERROR: Failed to get startup tone path"); + return; + } + if (iToneType == EStartupTone) + { + TRACES("CStartupTone::ConstructL(): Tone type EStartupTone"); + err = repository->Get( KStartupTonePath, tonePath ); + } + else + { + TRACES("CStartupTone::ConstructL(): Tone type EStartupOpTone"); + err = repository->Get( KStartupOperatorTonePath, tonePath ); + } + delete repository; + + TRACES2("CStartupTone::ConstructL(): Get tone to play. err = %d, Path = '%S'", err, &tonePath ); + + RFs fs; + err = fs.Connect(); + TFindFile findExe(fs); + err = findExe.FindByPath( tonePath, NULL ); + fs.Close(); + if (err != KErrNone) + { + TRACES1("CStartupTone::ConstructL(): Tone to play: Cannot find tone. err = %d", err); + } + else + { + TRACES("CStartupTone::ConstructL(): Tone found"); + iTone = CMdaAudioPlayerUtility::NewFilePlayerL( + tonePath, + *this, KAudioPriorityPhonePower, + TMdaPriorityPreference( KAudioPrefDefaultTone)); + } + } + } +// --------------------------------------------------------- +// void CStartupTone::Play() +// --------------------------------------------------------- +// + +TInt CStartupTone::Play() + { + TRACES("CStartupTone::Play()"); + TRACES1("CStartupTone::Play(): Tone type: %d", iToneType); + if (iAudioReady && !iHiddenReset && iVolume && iTone) + { + TRACES("CStartupTone::Play(): Audio ready. Play tone"); + iVolume = Max( MIN_VOLUME, Min( iVolume, MAX_VOLUME ) ); + iTone->SetVolume(iVolume); + iTone->Play(); + iPlaying = ETrue; + TRACES("CStartupTone::Play(): End, return KErrNone"); + return KErrNone; + } + else + { + TRACES("CStartupTone::Play(): Audio not ready, hidden reset, volume null or tone is not initialized. Unable to play tone."); + TRACES1("CStartupTone::Play(): Audio ready: %d",iAudioReady); + TRACES1("CStartupTone::Play(): Hidden reset: %d",iHiddenReset); + TRACES1("CStartupTone::Play(): Volume: %d",iVolume); + TRACES1("CStartupTone::Play(): Tone: %d",iTone); + TRACES("CStartupTone::Play(): End, return KErrNotReady"); + return KErrNotReady; + } + } + +// --------------------------------------------------------- +// void CStartupTone::Stop() +// --------------------------------------------------------- +// + +void CStartupTone::Stop() + { + TRACES("CStartupTone::Stop()"); + if (iTone) + { + TRACES("CStartupTone::Stop(): Stop the tone"); + iPlaying=EFalse; + iTone->Stop(); + iToneType = EStartupNoTone; + MapcPlayComplete(KErrNone); + } + TRACES("CStartupTone::Stop(): End"); + } + +// --------------------------------------------------------- +// CStartupTone::ToneFound() +// --------------------------------------------------------- +// +TBool CStartupTone::ToneFound() + { + TBool status(EFalse); + if(iTone) + status = ETrue; + return status; + } + +// --------------------------------------------------------- +// CStartupTone::AudioReady() +// --------------------------------------------------------- +// +TBool CStartupTone::AudioReady() + { + return iAudioReady; + } + +// --------------------------------------------------------- +// void CStartupTone::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/) +// --------------------------------------------------------- +// +void CStartupTone::MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds& /*aDuration*/) + { + TRACES("CStartupTone::MapcInitComplete()"); + if (aError == KErrNone) + { + TRACES("CStartupTone::MapcInitComplete(): Ready to play startup tone"); + iAudioReady = ETrue; + } + else + { + TRACES("CStartupTone::MapcInitComplete(): Unable to play startup tone"); + } + TRACES("CStartupTone::MapcInitComplete(): End"); + } + +// --------------------------------------------------------- +// void CStartupTone::MapcPlayComplete(TInt /*aError*/) +// --------------------------------------------------------- +// +void CStartupTone::MapcPlayComplete(TInt /*aError*/) + { + TRACES("StartupTone::MapcPlayComplete()"); + iPlaying=EFalse; + if (iStartupWaitingForTone) + { + TRACES("StartupTone::MapcPlayComplete(): Startup waiting "); + TRAPD(err, iStartupAppUi->ContinueStartupAfterToneL(iToneType)); + if (err != KErrNone) + { + TRACES1("CStartupTone::MapcPlayComplete(): ContinueStartupAfterToneL() leaves, err = %d", err ); + } + } + TRACES("StartupTone::MapcPlayComplete(): End"); + } + +// --------------------------------------------------------- +// TBool CStartupTone::Playing() +// --------------------------------------------------------- +// +TBool CStartupTone::Playing() + { + TRACES1("StartupTone::Playing(): Return %d", iPlaying ); + return iPlaying; + } + +// --------------------------------------------------------- +// void CStartupTone::StartupWaiting() +// --------------------------------------------------------- +// +void CStartupTone::StartupWaiting(TBool aValue) + { + TRACES1("StartupTone::StartupWaiting(): aValue == %d", aValue); + iStartupWaitingForTone = aValue; + } + +// ---------------------------------------------------------- +// CStartupTone::GetRingingToneVolumeL +// Startup tone volume is always 4 but when ringing type is +// silent or ringing volume is 0 or 1 startup tone is silent. +// ---------------------------------------------------------- +// +TInt CStartupTone::GetRingingToneVolumeL() + { + TRACES("StartupTone::GetRingingToneVolumeL()"); + + TInt retval(0); + TInt ringingType(EProfileRingingTypeSilent); + TInt ringingVol(0); + + CRepository* repository(NULL); + + TRAPD( err, repository = CRepository::NewL( KCRUidProfileEngine ) ); + if ( err != KErrNone ) + { + TRACES("StartupTone::GetRingingToneVolumeL(): End, ERROR, Cannot connect to CenRep"); + return 0; + } + + User::LeaveIfError( repository->Get( KProEngActiveRingingVolume, ringingVol )); + User::LeaveIfError( repository->Get( KProEngActiveRingingType, ringingType )); + delete repository; + + TRACES1("StartupTone::GetRingingToneVolumeL(): Ringing tone volume = %d", ringingVol); + TRACES1("StartupTone::GetRingingToneVolumeL(): Ringing type = %d", ringingType); + + if ((ringingType != EProfileRingingTypeSilent) && + (ringingVol != 0) && + (ringingVol != EProfileRingingVolumeLevel1)) + { + TRACES("StartupTone::GetRingingToneVolumeL(): Get startup tone volume"); + TInt defaultRingingVol; + CRepository* repository(NULL); + + TRAPD( err, repository = CRepository::NewL( KCRUidStartupConf ) ); + if ( err != KErrNone ) + { + return 0; + } + + User::LeaveIfError( repository->Get( KStartupToneVolume, defaultRingingVol )); + delete repository; + + ringingVol = defaultRingingVol; + retval = ringingVol; + } + + TRACES1("StartupTone::GetRingingToneVolumeL(): End, return %d", retval); + return retval; + } + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupUserWelcomeNote.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupUserWelcomeNote.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,587 @@ +/* +* Copyright (c) 2002 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: +* This class is the container class of the CStartupUerWelcomeNote. +* Is user for showing user selected picture, text or predefined animation. +* +*/ + + + +// INCLUDE FILES +#include +#include +#include +#include +#include //use of TResourceReader +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION +#include "startupview.h" +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION +#include //used for RemoveSplashScreen +#include +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION +#include +#include "StartupUserWelcomeNote.h" +#include +#include +#include +#include "StartupDefines.h" +#include "startup.hrh" +#include "StartupAppUi.h" +#include "aknSDData.h" + +// ================= MEMBER FUNCTIONS ======================= + +// --------------------------------------------------------------------------- +// CStartupUseWelcomeNote::ConstructL +// +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::ConstructL( const TRect& /*aRect*/ ) + { + TRACES("CStartupUserWelcomeNote::ConstructL()"); + + iAvkonAppUi->StatusPane()->MakeVisible( EFalse ); + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + + SetContainerWindowL( iView ); + iView.SetComponent( *this ); + +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + + CreateWindowL(); + iNoteCancelTimer = CPeriodic::NewL( EPriorityNormal ); + +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + iBitmap = new(ELeave) CFbsBitmap(); + + //get user selected userwelcomenotetype from Central Repository + TInt err = GetUserWelcomeNoteTypeInfo(); + + if( err != KErrNone ) + { + TRACES("CStartupUserWelcomeNote::ConstructL(): Show default note"); + //in error case default uwn (no note) is shown + iNoteType = EDefaultWelcomeNote; + iNoteDefaultVariationType = EStartupUWNDefaultNoNote; + } + //Do some preparations for showing user welcome note later + //This makes the starting to show much more quicker + switch ( iNoteType ) + { + case ETextWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::ConstructL(): iNoteType == ETextWelcomeNote"); + } + break; + case EImageWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::ConstructL(): iNoteType == EImageWelcomeNote"); + TInt errorCode = iBitmap->Load( TPtrC(iNotePath.Ptr()) ); + TRACES1("CStartupUserWelcomeNote::ConstructL(): Load returned %d", errorCode); + if(iStartupAppUi.CoverUISupported()) + { + SecondaryDisplay::TWelcomeImage data(TPtrC(iNotePath.Ptr())); + SecondaryDisplay::TWelcomeImagePckg Pckg( data ); + iStartupAppUi.RaiseCoverUIEvent( SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgWelcomeImageEvent, + Pckg); + } + } + break; + default: + { + TRACES("CStartupUserWelcomeNote::ConstructL(): iNoteType == EDefaultWelcomeNote"); + switch ( iNoteDefaultVariationType ) + { + case EStartupUWNDefaultOperatorGraphic: + { + TRACES("CStartupUserWelcomeNote::ConstructL(): iNoteDefaultVariationType == EStartupUWNDefaultOperatorGraphic"); + iBitmap->Load( TPtrC(iNoteOperPath.Ptr()) ); + if(iStartupAppUi.CoverUISupported()) + { + SecondaryDisplay::TWelcomeImage data(TPtrC(iNoteOperPath.Ptr())); + SecondaryDisplay::TWelcomeImagePckg Pckg( data ); + iStartupAppUi.RaiseCoverUIEvent( SecondaryDisplay::KCatStartup, + SecondaryDisplay::EMsgWelcomeImageEvent, + Pckg); + } + } + break; + case EStartupUWNDefaultOperatorText: + case EStartupUWNDefaultNoNote: + default: + { + //nothing preparation + TRACES("CStartupUserWelcomeNote::ConstructL(): iNoteDefaultVariationType == EStartupUWNDefaultOperatorText or EStartupUWNDefaultNoNote"); + } + break; + } + } + break; + } +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + //get information for draw-function + iWelcomeNoteType = NoteTypeInformation(); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + SetRect(iAvkonAppUi->ApplicationRect()); + ActivateL(); + TRACES("CStartupUserWelcomeNote::ConstructL(): End"); + } + +// ----------------------------------------------------------------------------- +// CStartupUserWelcomeNote::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CStartupUserWelcomeNote* CStartupUserWelcomeNote::NewL( + CStartupAppUi& aStartupAppUi, + const TRect& aRect +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + , CStartupView& aView +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + ) + { + TRACES("CStartupUserWelcomeNote::NewL()"); +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + CStartupUserWelcomeNote* self = new (ELeave) CStartupUserWelcomeNote( aStartupAppUi, aView ); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + CStartupUserWelcomeNote* self = new (ELeave) CStartupUserWelcomeNote( aStartupAppUi ); +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + CleanupStack::PushL(self); + self->ConstructL(aRect); + CleanupStack::Pop(); + TRACES("CStartupUserWelcomeNote::NewL(): End"); + return self; + } + +// --------------------------------------------------------- +// CStartupUserWelcomeNote::CStartupUserWelcomeNote() +// --------------------------------------------------------- +CStartupUserWelcomeNote::CStartupUserWelcomeNote( CStartupAppUi& aStartupAppUi +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + , CStartupView& aView +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + ) : +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + iView( aView ), +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + iSplashScreenRemoved( EFalse ), +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + iStartupAppUi( aStartupAppUi ) +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION + , iUserWelcomeNoteShowing( EFalse ), + iUserWelcomeNoteCancelled( EFalse) +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + { + TRACES("CStartupUserWelcomeNote::CStartupUserWelcomeNote()"); + } + +// --------------------------------------------------------------------------- +// CStartupUseWelcomeNote::StartL() +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::StartL() + { + TRACES("CStartupUserWelcomeNote::StartL()"); + switch ( iNoteType ) + { + case ETextWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::StartL(): ETextWelcomeNote"); + ShowInformationNoteWrapperL(); + } + break; + case EImageWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::StartL(): EImageWelcomeNote"); + DrawImageWelcomeNote(); + } + break; + default: + { + TRACES("CStartupUserWelcomeNote::StartL(): default"); + switch ( iNoteDefaultVariationType ) + { + case EStartupUWNDefaultOperatorGraphic: + { + TRACES("CStartupUserWelcomeNote::StartL(): EStartupUWNDefaultOperatorGraphic"); + DrawImageWelcomeNote(); + } + break; + case EStartupUWNDefaultOperatorText: + { + TRACES("CStartupUserWelcomeNote::StartL(): EStartupUWNDefaultOperatorText"); + ShowInformationNoteWrapperL(); + } + break; + case EStartupUWNDefaultNoNote: + default: + TRACES("CStartupUserWelcomeNote::StartL(): EStartupUWNDefaultNoNote"); + break; + } + } + break; + } + ControlEnv()->WsSession().Flush(); // force draw of the context + TRACES("CStartupUserWelcomeNote::StartL(): End"); + } + +// --------------------------------------------------------- +// CStartupUserWelcomeNote::NoteTypeInformation() +// --------------------------------------------------------- +TStartupNoteTypeInformation CStartupUserWelcomeNote::NoteTypeInformation() + { + TRACES("CStartupUserWelcomeNote::NoteTypeInformation()"); + if( iNoteType == EDefaultWelcomeNote && iNoteDefaultVariationType == EStartupUWNDefaultNoNote ) + { + TRACES("CStartupUserWelcomeNote::NoteTypeInformation(): End, return EStartupNoNote"); + return EStartupNoNote; + } + else if( ( iNoteType == ETextWelcomeNote ) || + ( iNoteType == EDefaultWelcomeNote && + iNoteDefaultVariationType == EStartupUWNDefaultOperatorText ) ) + { + TRACES("CStartupUserWelcomeNote::NoteTypeInformation(): End, return EStartupText"); + return EStartupText; + } + else if( ( iNoteType == EImageWelcomeNote ) || + ( iNoteType == EDefaultWelcomeNote && + iNoteDefaultVariationType == EStartupUWNDefaultOperatorGraphic ) ) + { + TRACES("CStartupUserWelcomeNote::NoteTypeInformation(): End, return EStartupImage"); + return EStartupImage; + } + else + { + __ASSERT_DEBUG( EFalse, PANIC( EStartupNeverShouldBeHere ) ); + return EStartupNoNote; + } + } + +// --------------------------------------------------------------------------- +// CStartupUseWelcomeNote::DrawImageWelcomeNote +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::DrawImageWelcomeNote() + { + TRACES("CStartupUserWelcomeNote::DrawImageWelcomeNote()"); + + CWindowGc& gc = SystemGc(); + TInt xDelta=0; // for x coordinates + TInt yDelta=0; // for y coordinates + TSize bmpSizeInPixels = iBitmap->SizeInPixels(); + //center image to the center of the screen + TRect rect = Rect(); + xDelta=( rect.Width() - bmpSizeInPixels.iWidth ) / 2; + yDelta=( rect.Height() - bmpSizeInPixels.iHeight ) / 2; + TPoint pos = TPoint( xDelta , yDelta ); // displacement vector + ActivateGc(); + Window().Invalidate( rect ); + Window().BeginRedraw( rect ); + gc.BitBlt( pos, iBitmap ); // CWindowGc member function + DrawUtils::ClearBetweenRects(gc, Rect(), TRect(pos,bmpSizeInPixels)); + Window().EndRedraw(); + DeactivateGc(); + TRACES("CStartupUserWelcomeNote::DrawImageWelcomeNote(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupUseWelcomeNote::~CStartupUserWelcomeNote() +// --------------------------------------------------------------------------- +CStartupUserWelcomeNote::~CStartupUserWelcomeNote() + { + TRACES("CStartupUserWelcomeNote::~CStartupUserWelcomeNote()"); + + delete iBitmap; + +#ifdef RD_STARTUP_ANIMATION_CUSTOMIZATION + iView.RemoveComponent(); +#else // RD_STARTUP_ANIMATION_CUSTOMIZATION + if( iNoteCancelTimer ) + { + iNoteCancelTimer->Cancel(); + } + delete iNoteCancelTimer; +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + + TRACES("CStartupUserWelcomeNote::~CStartupUserWelcomeNote(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::ComponentControl(TInt aIndex) +// --------------------------------------------------------------------------- +CCoeControl* CStartupUserWelcomeNote::ComponentControl(TInt /*aIndex*/) const + { + return NULL; + } + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::DrawBlankScreen() const +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::DrawBlankScreen() const + { + TRACES("CStartupUserWelcomeNote::DrawBlankScreen()"); + CWindowGc& gc = SystemGc(); + TRect rect = Rect(); + gc.SetPenStyle(CGraphicsContext::ENullPen); + gc.SetBrushColor(KRgbWhite); + gc.SetBrushStyle(CGraphicsContext::ESolidBrush); + gc.DrawRect(rect); + ControlEnv()->WsSession().Flush(); // force draw of the context + TRACES("CStartupUserWelcomeNote::DrawBlankScreen(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::HandleControlEventL(...) +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::HandleControlEventL( + CCoeControl* /*aControl*/, + TCoeEvent /*aEventType*/) + { + //pure virtual from MCoeControlObserver + TRACES("CStartupUserWelcomeNote::HandleControlEventL()"); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::UserWelcomeNoteType() +// --------------------------------------------------------------------------- +TStartupWelcomeNoteType CStartupUserWelcomeNote::UserWelcomeNoteType() + { + return ( iNoteType ); + } + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::OfferKeyEventL(...) +// --------------------------------------------------------------------------- +TKeyResponse CStartupUserWelcomeNote::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/) + { + TRACES("CStartupUserWelcomeNote::OfferKeyEventL()"); + if( iUserWelcomeNoteShowing && !iStartupAppUi.HiddenReset() && !iUserWelcomeNoteCancelled ) + { + // Cancel UWN + TRACES("CStartupUserWelcomeNote::OfferKeyEventL(): Timer activated - before"); + iNoteCancelTimer->Start( 10000, 10000, + TCallBack( iStartupAppUi.DoStopTimingL, &iStartupAppUi ) ); + iUserWelcomeNoteCancelled = ETrue; + TRACES("CStartupUserWelcomeNote::OfferKeyEventL(): Timer activated - after"); + } + TRACES("CStartupUserWelcomeNote::OfferKeyEventL(): End"); + return EKeyWasConsumed; + } + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::CancelNoteCancelTimer() +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::CancelNoteCancelTimer() + { + TRACES("CStartupUserWelcomeNote::CancelNoteCancelTimer()"); + iNoteCancelTimer->Cancel(); + TRACES("CStartupUserWelcomeNote::CancelNoteCancelTimer(): End"); + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo() +// --------------------------------------------------------------------------- +TInt CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo() + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo()"); + TInt err( KErrGeneral ); + + CRepository* repository(NULL); + + TRAP( err, repository = CRepository::NewL( KCRUidStartupConf ) ); + if ( err == KErrNone ) + { + TInt type; + TBuf atext; + TBuf apath; + TBuf aoperatortext; + TBuf aoperatorpath; + + err = repository->Get( KStartupWelcomeNoteType, type ); + TRACES2("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Welcome note type = %d, err = %d", type, err ); + + err = repository->Get( KStartupWelcomeNoteText, atext ); + TRACES2("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Welcome note text = '%S', err = %d", &atext, err ); + + err = repository->Get( KStartupWelcomeNoteImage, apath ); + TRACES2("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Welcome note image path = '%S', err = %d", &apath, err); + + switch (type) + { + case EDefaultWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): EDefaultWelcomeNote"); + iNoteType = EDefaultWelcomeNote; + + repository->Get( KStartupOperatorNoteImage, aoperatorpath ); + TRACES1("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Operator image path: '%S'", &aoperatorpath); + TInt opImageStatus = CheckImage(aoperatorpath); + TRACES1("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Operator image status: %d", opImageStatus); + + repository->Get( KStartupOperatorNoteText, aoperatortext ); + TRACES1("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Operator text: '%S'", &aoperatortext); + + if ( opImageStatus == KErrNone ) + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Default note type is EStartupUWNDefaultOperatorGraphic"); + iNoteDefaultVariationType = EStartupUWNDefaultOperatorGraphic; + } + else if ( aoperatortext.Length() > 0 ) + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Default note type is EStartupUWNDefaultOperatorText"); + iNoteDefaultVariationType = EStartupUWNDefaultOperatorText; + } + else + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): Default note type is EStartupUWNDefaultNoNote"); + iNoteDefaultVariationType = EStartupUWNDefaultNoNote; + } + } + break; + case ETextWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): ETextWelcomeNote"); + iNoteType = ETextWelcomeNote; + } + break; + case EImageWelcomeNote: + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): EImageWelcomeNote"); + if (CheckImage(apath) != KErrNone) + { + //in error case default uwn (no note) is shown + iNoteType = EDefaultWelcomeNote; + iNoteDefaultVariationType = EStartupUWNDefaultNoNote; + } + else + { + iNoteType = EImageWelcomeNote; + } + } + break; + default: + { + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): default"); + delete repository; + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): End, return KErrNotFound"); + return KErrNotFound; + } + } + iNoteText = atext; + iNotePath = apath; + iNoteOperText = aoperatortext; + iNoteOperPath = aoperatorpath; + } + + delete repository; + TRACES("CStartupUserWelcomeNote::GetUserWelcomeNoteTypeInfo(): End, return KErrNone"); + return KErrNone; + } + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::ShowInformationNoteWrapperL() +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::ShowInformationNoteWrapperL() + { + TRACES("CStartupUserWelcomeNote::ShowInformationNoteWrapperL()"); + TRACES1("CStartupUserWelcomeNote::ShowInformationNoteWrapperL(): Note type = %d", iNoteDefaultVariationType); + + TRequestStatus status; + CAknGlobalNote* note = CAknGlobalNote::NewLC(); + if ( iNoteDefaultVariationType == EStartupUWNDefaultOperatorText) + { + // Set secondary display data if necessary + if ( iStartupAppUi.CoverUISupported() ) + { + SecondaryDisplay::TWelcomeNotePckg pckg(TPtrC(iNoteOperText.Ptr())); + CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatStartup, SecondaryDisplay::ECmdShowWelcomeNote, pckg); + note->SetSecondaryDisplayData(sd); // ownership to notifier client + } + TRACES1("CStartupUserWelcomeNote::ShowInformationNoteWrapperL(): Operator text is '%S'", &iNoteOperText); + note->ShowNoteL( status, EAknGlobalTextNote, TPtrC(iNoteOperText.Ptr()) ); + } + else + { + // Set secondary display data if necessary + if ( iStartupAppUi.CoverUISupported() ) + { + SecondaryDisplay::TWelcomeNotePckg pckg(TPtrC(iNoteText.Ptr())); + CAknSDData* sd = CAknSDData::NewL(SecondaryDisplay::KCatStartup, SecondaryDisplay::ECmdShowWelcomeNote, pckg); + note->SetSecondaryDisplayData(sd); // ownership to notifier client + } + TRACES1("CStartupUserWelcomeNote::ShowInformationNoteWrapperL(): Welcome text is '%S'", &iNoteText); + note->ShowNoteL( status, EAknGlobalTextNote, TPtrC(iNoteText.Ptr()) ); + } + User::WaitForRequest( status ); + CleanupStack::PopAndDestroy(); // note + TRACES("CStartupUserWelcomeNote::ShowInformationNoteWrapperL(): End"); + } + +#ifndef RD_STARTUP_ANIMATION_CUSTOMIZATION +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::SetUserWelcomeNoteShowing(...) +// --------------------------------------------------------------------------- +void CStartupUserWelcomeNote::SetUserWelcomeNoteShowing(TBool aValue) + { + TRACES1("CStartupUserWelcomeNote::SetUserWelcomeNoteShowing(): aValue = %d", aValue); + iUserWelcomeNoteShowing = aValue; + } +#endif // RD_STARTUP_ANIMATION_CUSTOMIZATION + +// --------------------------------------------------------------------------- +// CStartupUserWelcomeNote::SetUserWelcomeNoteShowing(...) +// --------------------------------------------------------------------------- +TInt CStartupUserWelcomeNote::CheckImage( const TDesC& aPath) + { + TRACES("CStartupUserWelcomeNote::CheckImage()"); + // Check if given welcome image is available + RFile welcomeimage; + TInt err( KErrNone ); + RFs fs; + + // Connect to file server + err = fs.Connect(); + if (err != KErrNone) + { + TRACES("CStartupUserWelcomeNote::CheckImage(): Unable to connect to file server. Do not show welcome image."); + fs.Close(); + TRACES1("CStartupUserWelcomeNote::CheckImage(): End, return %d", err); + return err; + } + + // Open welcome image + err = welcomeimage.Open(fs, aPath, EFileRead); + if (err != KErrNone) + { + TRACES("CStartupUserWelcomeNote::CheckImage(): Welcome image does not exists. Do not try to show it."); + welcomeimage.Close(); + fs.Close(); + TRACES1("CStartupUserWelcomeNote::CheckImage(): End, return %d", err); + return err; + } + + welcomeimage.Close(); + fs.Close(); + TRACES1("CStartupUserWelcomeNote::CheckImage(): End, return %d", err); + return err; + } + +// End of File + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/StartupWelcomeAnimation.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/src/StartupWelcomeAnimation.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,520 @@ +/* +* Copyright (c) 2002 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: +* This class is the container class of the CStartupWelcomeAnimation. +* Is used to show welcome animation. +* +*/ + + +// INCLUDE FILES +#include +#include +#include //use of TResourceReader +#include //used for RemoveSplashScreen +#include +#include +#include "StartupWelcomeAnimation.h" +#include +#include "StartupDefines.h" +#include "Startup.hrh" +#include "StartupAppUi.h" +#include + +// CONSTANTS +const TInt KStartupAnimationShowingDuration( 4200 );//4.2 sec + +// ================= MEMBER FUNCTIONS ======================= + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::ConstructL(const TRect& aRect) +// Symbian 2nd phase constructor can leave. +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::ConstructL(const TRect& /*aRect*/) + { + TRACES("CStartupWelcomeAnimation::ConstructL()"); + iShowingTime = KStartupAnimationShowingDuration; + UpdateDrawInfo( EStartupDIStart ); + + iAvkonAppUi->StatusPane()->MakeVisible(EFalse); + CreateWindowL(); + iAnimCancelTimer = CPeriodic::NewL( EPriorityNormal ); + + TRACES("CStartupWelcomeAnimation::ConstructL(): animation loading started"); + iAnim = CAknBitmapAnimation::NewL(); + iAnim->ExcludeAnimationFramesFromCache(); + iAnim->SetContainerWindowL( *this ); + iAnim->SetScaleModeForAnimationFrames(EAspectRatioPreservedAndUnusedSpaceRemoved); + TResourceReader rr; + iCoeEnv->CreateResourceReaderLC(rr, R_ANIM_IMAGE); + TRAPD(err, iAnim->ConstructFromResourceL( rr )) + if (err != KErrNone) + { + TRACES1("CStartupWelcomeAnimation::ConstructL(): ConstructFromResourceL() leaves, err = %d", err ); + } + CleanupStack::PopAndDestroy(); + + SetRect(iAvkonAppUi->ApplicationRect()); // Results in a call to SizeChanged() + ActivateL(); + + TRACES("CStartupWelcomeAnimation::ConstructL(): animation loading ended"); + TRACES("CStartupWelcomeAnimation::ConstructL(): End"); + } + +// ----------------------------------------------------------------------------- +// CStartupWelcomeAnimation::NewL +// Two-phased constructor. +// ----------------------------------------------------------------------------- +// +CStartupWelcomeAnimation* CStartupWelcomeAnimation::NewL( CStartupAppUi* aStartupAppUi, + const TRect& aRect) + { + TRACES("CStartupWelcomeAnimation::NewL()"); + CStartupWelcomeAnimation* self = new (ELeave) CStartupWelcomeAnimation( aStartupAppUi ); + CleanupStack::PushL(self); + self->ConstructL(aRect); + CleanupStack::Pop(); + TRACES("CStartupWelcomeAnimation::NewL(): End"); + return self; + } + +// --------------------------------------------------------- +// CStartupWelcomeAnimation::CStartupWelcomeAnimation() +// --------------------------------------------------------- +CStartupWelcomeAnimation::CStartupWelcomeAnimation( CStartupAppUi* aStartupAppUi ) : + iBackgroundBitmap( NULL ), + iSplashScreenRemoved( EFalse ), + iStartupAppUi( aStartupAppUi ), + iAnimationShowing( EFalse ), + iAnimationCancelled ( EFalse ) + { + TRACES("CStartupWelcomeAnimation::CStartupWelcomeAnimation()"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::StartL() +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::StartL() + { + TRACES("CStartupWelcomeAnimation::StartL()"); + iAnim->StartAnimationL(); + ControlEnv()->WsSession().Flush(); // force draw of the context + TRACES("CStartupWelcomeAnimation::StartL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::UpdateDrawInfo( TStartupDrawInfo aValue ) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::UpdateDrawInfo( TStartupDrawInfo aValue ) + { + TRACES("CStartupWelcomeAnimation::UpdateDrawInfo()"); + TRACES1("CStartupWelcomeAnimation::UpdateDrawInfo(): Value %d", aValue); + //Prevent state change if already EStartupDISystemFatalError + if( iDrawUpdateInfo == EStartupDISystemFatalError ) + { + TRACES("CStartupWelcomeAnimation::UpdateDrawInfo(): End, preventing state change - EStartupDISystemFatalError"); + return; + } + + iDrawUpdateInfo = aValue; + TRACES("CStartupWelcomeAnimation::UpdateDrawInfo(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::DoDrawingL() +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::DoDrawingL() const + { + TRACES("CStartupWelcomeAnimation::DoDrawingL()"); + switch ( iDrawUpdateInfo ) + { + case EStartupDIStart: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIStart"); + DrawBlankScreen(); // clears screen after code query emergency call + } + break; + case EStartupDITouchScreenCalib: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDITouchScreenCalib"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDICharging: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDICharging"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDIAlarm: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIAlarm"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDIHiddenReset: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIHiddenReset"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDIQueriesOn: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIQueriesOn"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDIQueriesOff: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIQueriesOff"); + } + break; + case EStartupDIWelcomeAnimStart: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIWelcomeAnimStart"); + RemoveSplashScreen(); + DrawBlankScreen(); + } + break; + case EStartupDIWelcomeAnimCancelled: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIWelcomeAnimCancelled"); + } + break; + case EStartupDIWelcomeAnimEnd: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIWelcomeAnimEnd"); + DrawBlankScreen(); + } + break; + case EStartupDIOperatorAnimEnd: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIOperatorAnimEnd"); + DrawBlankScreen(); + } + break; + case EStartupDICityTimeDateQueries: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDICityTimeDateQueries"); + DrawBlankScreen(); + } + break; + case EStartupDIEnd: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDIEnd"); + } + break; + case EStartupDISystemFatalError: + { + TRACES("CStartupWelcomeAnimation::DoDrawingL(): EStartupDISystemFatalError"); + } + break; + default: + TRACES("CStartupWelcomeAnimation::DoDrawingL(): default"); + break; + } + TRACES("CStartupWelcomeAnimation::DoDrawingL(): End"); + } + +// --------------------------------------------------------- +// CStartupWelcomeAnimation::RemoveSplashScreen() +// --------------------------------------------------------- +void CStartupWelcomeAnimation::RemoveSplashScreen() const + { + TRACES("CStartupWelcomeAnimation::RemoveSplashScreen()"); + //Remove SplashScreen + if( !iSplashScreenRemoved ) + { + TRACES("CStartupWelcomeAnimation::RemoveSplashScreen(): Connect to Starter"); + RStarterSession startersession; + if( startersession.Connect() == KErrNone ) + { + TRACES("CStartupWelcomeAnimation::RemoveSplashScreen(): Connected to Starter"); + startersession.EndSplashScreen(); + TRACES("CStartupWelcomeAnimation::RemoveSplashScreen(): Splash screen removed"); + startersession.Close(); + } + } + TRACES("CStartupWelcomeAnimation::RemoveSplashScreen(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::~CStartupWelcomeAnimation() +// --------------------------------------------------------------------------- +CStartupWelcomeAnimation::~CStartupWelcomeAnimation() + { + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation()"); + + if( iAnim ) + { + if( iAnimationShowing ) + { + iAnim->CancelAnimation(); + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): Animation cancelled"); + } + } + delete iAnim; + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): iAnim deleted"); + + if (iBackgroundBitmap) + { + delete iBackgroundBitmap; + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): iBackgroundBitmap deleted"); + } + + if( iAnimCancelTimer ) + { + iAnimCancelTimer->Cancel(); + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): Timer cancelled"); + } + delete iAnimCancelTimer; + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): iAnimCancelTimer deleted"); + + TRACES("CStartupWelcomeAnimation::~CStartupWelcomeAnimation(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::ComponentControl(TInt aIndex) +// --------------------------------------------------------------------------- +CCoeControl* CStartupWelcomeAnimation::ComponentControl(TInt aIndex) const + { + switch ( aIndex ) + { + case 0: + { + return iAnim; + } + default: + { + return NULL; + } + } + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::CountComponentControls() +// --------------------------------------------------------------------------- +TInt CStartupWelcomeAnimation::CountComponentControls() const + { + return iAnim ? 1 : 0; // return nbr of controls inside this container + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::Draw(const TRect& aRect) const +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::Draw(const TRect& /*aRect*/ ) const + { + TRACES("CStartupWelcomeAnimation::Draw()"); + TRAPD(err, DoDrawingL()); + if (err != KErrNone) + { + TRACES1("CStartupWelcomeAnimation::Draw(): DoDrawingL() leaves, err = %d", err ); + } + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::DrawBlankScreen() const +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::DrawBlankScreen() const + { + TRACES("CStartupWelcomeAnimation::DrawBlankScreen()"); + CWindowGc& gc = SystemGc(); + TRect rect = Rect(); + gc.SetPenStyle(CGraphicsContext::ENullPen); + gc.SetBrushColor(KRgbWhite); + gc.SetBrushStyle(CGraphicsContext::ESolidBrush); + gc.DrawRect(rect); + ControlEnv()->WsSession().Flush(); // force draw of the context + TRACES("CStartupWelcomeAnimation::DrawBlankScreen(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::ShowingTime() +// --------------------------------------------------------------------------- +TInt CStartupWelcomeAnimation::ShowingTime() + { + TRACES1("CStartupWelcomeAnimation::ShowingTime(): time = %d", iShowingTime); + return iShowingTime; + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::SizeChanged() +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::SizeChanged() + { + if( iAnim ) + { + iAnim->SetRect(Rect()); + iAnim->SetPosition( TPoint( + (iAvkonAppUi->ApplicationRect().Width()/2) - (iAnim->BitmapAnimData()->Size().iWidth/2), + (iAvkonAppUi->ApplicationRect().Height()/2) - (iAnim->BitmapAnimData()->Size().iHeight/2) + ) ); + } + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::EndAnimation() +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::EndAnimation() const + { + TRACES("CStartupWelcomeAnimation::EndAnimation()"); + if( iAnim ) + { + TRACES("CStartupWelcomeAnimation::EndAnimation(): Cancel animation"); + iAnim->CancelAnimation(); + } + TRACES("CStartupWelcomeAnimation::EndAnimation(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::HandleControlEventL(...) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::HandleControlEventL( + CCoeControl* /*aControl*/, + TCoeEvent /*aEventType*/) + { + //pure virtual from MCoeControlObserver + TRACES("CStartupWelcomeAnimation::HandleControlEventL()"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::HandlePointerEventL(...) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::HandlePointerEventL(const TPointerEvent& aPointerEvent) + { + TRACES("CStartupWelcomeAnimation::HandlePointerEventL()"); + if (AknLayoutUtils::PenEnabled()) + { + TRACES1("CStartupWelcomeAnimation::HandlePointerEventL: aPointerEvent.iType == %d",aPointerEvent.iType ); + switch (aPointerEvent.iType) + { + case TPointerEvent::EButton1Down: + CancelAnimation(); + break; + + default: + break; + } + } + TRACES("CStartupWelcomeAnimation::HandlePointerEventL(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::OfferKeyEventL(...) +// --------------------------------------------------------------------------- +TKeyResponse CStartupWelcomeAnimation::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode /*aType*/ ) + { + TRACES("CStartupWelcomeAnimation::OfferKeyEventL()"); + TRACES1("CStartupWelcomeAnimation::OfferKeyEventL(): aKeyEvent.iCode == %d",aKeyEvent.iCode); + TRACES1("CStartupWelcomeAnimation::OfferKeyEventL(): aKeyEvent.iScanCode == %d",aKeyEvent.iScanCode); + TRACES1("CStartupWelcomeAnimation::OfferKeyEventL(): iAnimationShowing == %d",iAnimationShowing); + TRACES1("CStartupWelcomeAnimation::OfferKeyEventL(): iAnimationCancelled == %d",iAnimationCancelled); + + if ( iStartupAppUi->GetOfflineModeQueryShown() ) + { + TRACES("CStartupWelcomeAnimation::OfferKeyEventL(): Key event from offline mode query"); + // first key event comes from Offline Mode Query + iStartupAppUi->SetOfflineModeQueryShown( EFalse ); + } + else + { + if( iAnimationShowing && !iStartupAppUi->HiddenReset() && !iAnimationCancelled ) + { + if (aKeyEvent.iScanCode == EStdKeyNkpAsterisk || aKeyEvent.iScanCode == 0x2a) + { + TRACES("CStartupWelcomeAnimation::OfferKeyEventL(): Set clean boot"); + iStartupAppUi->SetCleanBoot(); + } + // Cancel animation + CancelAnimation(); + } + else if( !iAnimationShowing && iStartupAppUi->StartupTonePlaying()) + { + TRACES("CStartupWelcomeAnimation::OfferKeyEventL() Animation has completed but tone is still playing. Stop it."); + iStartupAppUi->StopStartupTone(); + } + } + + TRACES("CStartupWelcomeAnimation::OfferKeyEventL(): End"); + return EKeyWasConsumed; + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::CancelAnimCancelTimer() +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::CancelAnimCancelTimer() + { + TRACES("CStartupWelcomeAnimation::CancelAnimCancelTimer()"); + iAnimCancelTimer->Cancel(); + TRACES("CStartupWelcomeAnimation::CancelAnimCancelTimer(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::CancelAnimation(...) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::CancelAnimation() + { + TRACES("CStartupWelcomeAnimation::CancelAnimation()"); + if( iAnimationShowing && !iStartupAppUi->HiddenReset() && !iAnimationCancelled ) + { + UpdateDrawInfo( EStartupDIWelcomeAnimCancelled ); + EndAnimation(); + TRACES("CStartupWelcomeAnimation::CancelAnimation(): Timer activated - before"); + iAnimCancelTimer->Start( 10000, 10000, + TCallBack( iStartupAppUi->DoStopTimingL, iStartupAppUi ) ); + TRACES("CStartupWelcomeAnimation::CancelAnimation(): Timer activated - after"); + iAnimationCancelled = ETrue; + } + TRACES("CStartupWelcomeAnimation::CancelAnimation(): End"); + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::IsAnimationCancelled(...) +// --------------------------------------------------------------------------- +TBool CStartupWelcomeAnimation::IsAnimationCancelled() + { + TRACES1("CStartupWelcomeAnimation::IsAnimationCancelled(): iAnimationCancelled: %d", iAnimationCancelled); + return iAnimationCancelled; + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::SetAnimationShowing(...) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::SetAnimationShowing(TBool aValue) + { + TRACES("CStartupWelcomeAnimation::SetAnimationShowing()"); + TRACES2("CStartupWelcomeAnimation::SetAnimationShowing(): iAnimationShowing changed from %d to %d",iAnimationShowing, aValue ); + iAnimationShowing = aValue; + } + +// --------------------------------------------------------------------------- +// CStartupWelcomeAnimation::HandleResourceChange(...) +// --------------------------------------------------------------------------- +void CStartupWelcomeAnimation::HandleResourceChange(TInt aType) + { + CCoeControl::HandleResourceChange(aType); + if(aType==KEikDynamicLayoutVariantSwitch) + { + SetRect(iAvkonAppUi->ApplicationRect()); // update rect + } + } + + + +// End of File diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/src/startupview.cpp --- a/startupservices/Startup/src/startupview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/src/startupview.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007,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" @@ -16,7 +16,9 @@ */ - +#include +#include // Skin support +#include // Skin support #include "startupview.h" #include "StartupDefines.h" @@ -50,7 +52,7 @@ CStartupView::~CStartupView() { TRACES("CStartupView::~CStartupView()"); - + delete iBgContext; TRACES("CStartupView::~CStartupView(): End"); } @@ -92,6 +94,12 @@ void CStartupView::SizeChanged() { TRACES("CStartupView::SizeChanged()"); + + if (iBgContext) + { + iBgContext->SetRect( Rect() ); + } + if ( iComponent ) { iComponent->SetRect( Rect() ); @@ -136,15 +144,23 @@ TRACES("CStartupView::Draw()"); CWindowGc& gc = SystemGc(); - + MAknsSkinInstance* skin = AknsUtils::SkinInstance(); gc.SetPenStyle( CGraphicsContext::ENullPen ); gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); - gc.SetClippingRect( aRect ); - gc.SetBrushColor( KRgbWhite ); - gc.Clear(); + + // Draw skin background + if ( !AknsDrawUtils::Background( skin, iBgContext, gc, aRect ) ) + { + // If Skin is missing, clear with default color + gc.SetClippingRect( aRect ); + gc.SetBrushColor( KRgbWhite ); + gc.Clear(); + } + TRACES("CStartupView::Draw(): End"); } + // --------------------------------------------------------------------------- // CStartupView::CStartupView // @@ -156,6 +172,7 @@ TRACES("CStartupView::CStartupView(): End"); } + // --------------------------------------------------------------------------- // CStartupView::ConstructL // @@ -164,11 +181,18 @@ void CStartupView::ConstructL( const TRect& aRect ) { TRACES("CStartupView::ConstructL()"); + + iAvkonAppUi->StatusPane()->MakeVisible( EFalse ); CreateWindowL(); SetRect( aRect ); // Create background drawing context TRect bgrect(aRect.Size()); + iBgContext = CAknsBasicBackgroundControlContext::NewL( + KAknsIIDQsnBgScreen, + bgrect, EFalse ); + ActivateL(); + TRACES("CStartupView::ConstructL(): End"); } diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/group/syserrcmd.mmp --- a/startupservices/Startup/syserrcmd/group/syserrcmd.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/syserrcmd/group/syserrcmd.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -34,11 +34,11 @@ MW_LAYER_SYSTEMINCLUDE +LIBRARY aknnotify.lib LIBRARY efsrv.lib LIBRARY euser.lib LIBRARY featmgr.lib LIBRARY commonengine.lib -LIBRARY hbwidgets.lib // >>> uncomment to enable function-level tracing @@ -49,5 +49,3 @@ // MACRO __SSM_TRACE_INTO_FILE__ // LIBRARY flogger.lib // <<< uncomment to direct trace output to file - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/inc/syserrcmd.h --- a/startupservices/Startup/syserrcmd/inc/syserrcmd.h Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/syserrcmd/inc/syserrcmd.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -22,7 +22,7 @@ #include #include - +class CAknGlobalNote; /** * A custom command for displaying a note about unrecoverable @@ -79,6 +79,11 @@ // Custom command environment. Not owned. Set in Initialize. CSsmCustomCommandEnv* iEnv; + /** Global note object used to show the notification on UI. Own */ + CAknGlobalNote* iNote; + + /** Global note id for cancelling the note. */ + TInt iNoteId; }; #endif // SYSERRCMD_H diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/src/syserrcmd.cpp --- a/startupservices/Startup/syserrcmd/src/syserrcmd.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/Startup/syserrcmd/src/syserrcmd.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* 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" @@ -19,15 +19,73 @@ #include "syserrcmd.h" #include "trace.h" - +#include +#include #include #include -#include +#include #include #include #include -#include + + +_LIT( KResourceFileName, "Z:startup.rsc" ); + +// ======== LOCAL FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CSysErrorPlugin::GetResourceFileNameLC +// +// --------------------------------------------------------------------------- +// +static TFileName* GetResourceFileNameLC() + { + FUNC_LOG; + + // TParse uses a lot of stack space, so allocate it from heap. + TParse* parse = new ( ELeave ) TParse; + CleanupDeletePushL( parse ); + TInt errorCode = parse->Set( KResourceFileName, + &KDC_APP_RESOURCE_DIR, + NULL ); + ERROR( errorCode, "parse::Set() failed with error code %d" ); + User::LeaveIfError( errorCode ); + + TFileName* filename = new ( ELeave ) TFileName( parse->FullName() ); + + CleanupStack::PopAndDestroy( parse ); + CleanupDeletePushL( filename ); + INFO_1( "Resource file name: %S", filename ); + + return filename; + } + +// --------------------------------------------------------------------------- +// CSysErrorPlugin::GetFatalErrorStringLC +// +// --------------------------------------------------------------------------- +// +static TBool IsCoverUiSupported() + { + FUNC_LOG; + + // If this fails, default to false. + TRAPD( errorCode, FeatureManager::InitializeLibL() ); + ERROR( errorCode, "Failed to initialize FeatureManager" ); + + TBool retVal = EFalse; + if ( errorCode == KErrNone && + FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) ) + { + retVal = ETrue; + } + + FeatureManager::UnInitializeLib(); + + INFO_1( "CoverUiSupported = %d", retVal ); + return retVal; + } // ======== MEMBER FUNCTIONS ======== @@ -49,6 +107,8 @@ CSysErrCmd::~CSysErrCmd() { FUNC_LOG; + + delete iNote; } @@ -88,6 +148,15 @@ { FUNC_LOG; + if ( iNote ) + { + TInt errorCode( KErrNone ); + TRAP( errorCode, iNote->CancelNoteL( iNoteId ) ); + ERROR( errorCode, "Failed to cancel global note" ); + } + + delete iNote; // Note must be deleted here! Otherwise it doesn't complete + iNote = NULL; // request with KErrCancel and Cancel() gets stuck. } @@ -118,14 +187,34 @@ // void CSysErrCmd::DoExecuteL( TRequestStatus& aRequest ) { - aRequest = NULL; - //Hb device message box implementation for global permanent note goes here - CHbDeviceMessageBoxSymbian *aMessageBox = NULL; - aMessageBox = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EWarning); - _LIT(KText, "Self-test failed. Contact retailer."); - aMessageBox->SetTextL(KText); - aMessageBox -> SetDismissPolicy(0); - aMessageBox -> SetTimeout(0); - aMessageBox->ExecL(); - delete aMessageBox; + delete iNote; + iNote = NULL; + iNote = CAknGlobalNote::NewL(); + + if ( IsCoverUiSupported() ) + { + CAknSDData* sdData = CAknSDData::NewL( + SecondaryDisplay::KCatStartup, + SecondaryDisplay::ECmdShowErrorNote, + TPckgBuf( SecondaryDisplay::EContactService ) ); + + // ownership to notifier client + iNote->SetSecondaryDisplayData( sdData ); + } + + TFileName* filename = GetResourceFileNameLC(); + + RFs& fs = const_cast( iEnv->Rfs() ); + + CStringResourceReader* resReader = CStringResourceReader::NewLC( *filename, + fs ); + + TPtrC errorStr( resReader->ReadResourceString( + R_SU_SELFTEST_FAILED_NOTE_TEXT ) ); + + iNoteId = iNote->ShowNoteL( aRequest, EAknGlobalPermanentNote, errorStr ); + + CleanupStack::PopAndDestroy( resReader ); + CleanupStack::PopAndDestroy( filename ); + } diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/group/bld.inf Wed Sep 01 12:24:48 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: +* Build information file for sf/mw/appsupport/startupservices/Startup/syserrcmd/tsrc tests. +* +*/ + +#include + +PRJ_PLATFORMS +DEFAULT + +PRJ_TESTEXPORTS + +PRJ_TESTMMPFILES +#include "../syserrcmdtest/group/bld.inf" +#include "../syserrcmdtestsstub/group/bld.inf" + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/bwins/syserrcmdtestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/bwins/syserrcmdtestu.def Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + ?LibEntryL@@YAPAVCSysErrCmdTest@@AAVCTestModuleIf@@@Z @ 1 NONAME ; class CSysErrCmdTest * LibEntryL(class CTestModuleIf &) + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/conf/syserrcmdtest.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/conf/syserrcmdtest.cfg Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,79 @@ +[Define] +// Add general definitions here +[Enddefine] + +[StifSettings] +// Add stif settings here +CheckHeapBalance= on +[EndStifSettings] + +// --------------------------------------------------------------------------- +// Test cases for Create and destroy +// --------------------------------------------------------------------------- + +[Test] +title Test Create and destroy +create syserrcmdtest testClass +testClass CreateAndDestroy +pause 1000 +delete testClass +[Endtest] + +// --------------------------------------------------------------------------- +// Test cases for init and close +// --------------------------------------------------------------------------- + +[Test] +title Test Init and close +create syserrcmdtest testClass +testClass InitAndClose +pause 1000 +delete testClass +[Endtest] +// --------------------------------------------------------------------------- +// Test cases for execute +// --------------------------------------------------------------------------- + +[Test] +title Test Execute +create syserrcmdtest testClass +testClass Execute +pause 1000 +delete testClass +[Endtest] + +// --------------------------------------------------------------------------- +// Test cases for execute and cancel +// --------------------------------------------------------------------------- + +[Test] +title Test Execute and cancel +create syserrcmdtest testClass +testClass ExecuteCancel +pause 1000 +delete testClass +[Endtest] + +// --------------------------------------------------------------------------- +// Test cases for execute after global note +// --------------------------------------------------------------------------- + +[Test] +title Test Execute after global note +create syserrcmdtest testClass +testClass ExecuteAfterGlobalNote +pause 1000 +delete testClass +[Endtest] + +// --------------------------------------------------------------------------- +// Test cases for execute after Ui service global note +// --------------------------------------------------------------------------- + +[Test] +title Test Execute after Ui service global note +create syserrcmdtest testClass +testClass ExecuteAfterUiServiceGlobalNote +pause 1000 +delete testClass +[Endtest] \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/eabi/syserrcmdtestu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/eabi/syserrcmdtestu.def Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _Z9LibEntryLR13CTestModuleIf @ 1 NONAME + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/bld.inf Wed Sep 01 12:24:48 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: +* Build information file for syserrcmdtest tests. +* +*/ + +#include + +PRJ_PLATFORMS +DEFAULT + +PRJ_TESTEXPORTS +//../init/syserrcmdtest.ini /epoc32/winscw/c/testframework/syserrcmdtest.ini +//../conf/syserrcmdtest.cfg /epoc32/winscw/c/testframework/syserrcmdtest.cfg + +PRJ_TESTMMPFILES +syserrcmdtest.mmp + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envrecall.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envrecall.cmd Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,28 @@ +@echo off +REM Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +REM All rights reserved. +REM This component and the accompanying materials are made available +REM under the terms of "Eclipse Public License v1.0" +REM which accompanies this distribution, and is available +REM at the URL "http://www.eclipse.org/legal/epl-v10.html". +REM +REM Initial Contributors: +REM Nokia Corporation - initial contribution. +REM +REM Contributors: +REM +REM Description: Environment setup for ssmlangselcmd tests. +REM +REM +@echo on + + +@echo Recall environment for syserrcmdtest... +@echo Cleaning up stub... +pushd ..\..\ssmlangselcmdteststub\group +call bldmake bldfiles +call abld test reallyclean -k +popd + +@echo Recall environment for syserrcmdtest... Finished. + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envsetup.cmd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/envsetup.cmd Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,28 @@ +@echo off +REM Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +REM All rights reserved. +REM This component and the accompanying materials are made available +REM under the terms of "Eclipse Public License v1.0" +REM which accompanies this distribution, and is available +REM at the URL "http://www.eclipse.org/legal/epl-v10.html". +REM +REM Initial Contributors: +REM Nokia Corporation - initial contribution. +REM +REM Contributors: +REM +REM Description: Environment setup for ssmlangselcmd tests. +REM +REM +@echo on + + +@echo Setup environment for syserrcmdtest... +@echo Setting up stub... +pushd ..\..\syserrcmdtestsstub\group +call bldmake bldfiles +call abld test reallyclean +call abld test build +popd +@echo Setup environment for syserrcmdtest... Finished. + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,49 @@ +/* +* 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: +* Project definition file for syserrcmdtest. +* +*/ + +#include + +TARGET syserrcmdtest.dll +TARGETTYPE dll + +UID 0x1000008D 0x101FB3E7 +VENDORID VID_DEFAULT +CAPABILITY ALL -TCB + +SOURCEPATH ../src +SOURCE syserrcmdtest.cpp + +USERINCLUDE ../inc +USERINCLUDE ../../inc +USERINCLUDE ../../../inc + +MW_LAYER_SYSTEMINCLUDE + +OS_LAYER_SYSTEMINCLUDE + +LIBRARY syserrcmd.lib +LIBRARY syserrcmdtestsstub.lib +LIBRARY euser.lib +LIBRARY stiftestinterface.lib +LIBRARY efsrv.lib +LIBRARY aknnotify.lib +LIBRARY akncapserverclient.lib +LIBRARY apparc.lib +LIBRARY eikcore.lib +//LIBRARY component_under_test.lib + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/group/syserrcmdtest.pkg Wed Sep 01 12:24:48 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: +; +;Languages +&EN + +#{"syserrcmdtest"},(0x101FB3E7),1,0,0,TYPE=SA + +;Localised Vendor name +%{"syserrcmdtest EN"} + +; Vendor name +: "syserrcmdtest" + +"\epoc32\release\armv5\urel\syserrcmdtest.dll"-"c:\sys\bin\syserrcmdtest.dll" +"..\init\syserrcmdtest.ini"-"c:\testframework\syserrcmdtest.ini" +"..\conf\syserrcmdtest.cfg"-"c:\testframework\syserrcmdtest.cfg" + +; Stub for tests +"\epoc32\release\armv5\urel\syserrcmdtestsstub.dll"-"c:\sys\bin\syserrcmdtestsstub.dll" + + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/asyncrequesthandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/asyncrequesthandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,220 @@ +/* + * 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 ASYNCREQUESTHANDLER_H +#define ASYNCREQUESTHANDLER_H + +// SYSTEM INCLUDE FILES +#include + +// DATA TYPES +_LIT( KPanicCat, "ASYNCREQUESTHANDLER" ); + +/** Panic codes */ +enum TArhPanicCodes + { + EArhNone, + EArhRequestPending + }; + +// CLASS DECLARATION + +/** + * A template class for handling asynchronous requests. + * + * @lib None. + * @since S60 TB9.2 + */ +template +NONSHARABLE_CLASS( CAsyncRequestHandler ): public CActive + { +public: + + // TYPE DEFINTIONS + + /** HandleIssueRequest callback */ + typedef void ( T::*HandleIssueRequest )( TRequestStatus& ); + + /** HandleRunL callback */ + typedef void ( T::*HandleRunL )( TInt ); + + /** HandleRunError callback */ + typedef TInt ( T::*HandleRunError )( TInt ); + + /** HandleDoCancel callback */ + typedef void ( T::*HandleDoCancel )(); + + // DATA TYPES + + /** Request type */ + enum TAsyncRequestType + { + ERequestOneShot, + ERequestContinuous + }; + +public: + + /** + * Symbian two phased constructor. + * + * @since S60 TB9.2 + * @param None. + * @return CAsyncRequestHandler* + */ + static CAsyncRequestHandler* NewL( T& aPtr, + HandleIssueRequest aHandleIssueRequest, + HandleRunL aHandleRunL, + HandleRunError aHandleRunError, + HandleDoCancel aHandleDoCancel, + TAsyncRequestType aType = ERequestContinuous ) + { + CAsyncRequestHandler* self = CAsyncRequestHandler::NewLC( aPtr, + aHandleIssueRequest, + aHandleRunL, + aHandleRunError, + aHandleDoCancel, + aType ); + CleanupStack::Pop( self ); + return self; + } + + /** + * Symbian two phased constructor. + * Instance is left in the cleanup stack. + * + * @since S60 TB9.2 + * @param None. + * @return CAsyncRequestHandler* + */ + static CAsyncRequestHandler* NewLC( T& aPtr, + HandleIssueRequest aHandleIssueRequest, + HandleRunL aHandleRunL, + HandleRunError aHandleRunError, + HandleDoCancel aHandleDoCancel, + TAsyncRequestType aType = ERequestContinuous ) + { + CAsyncRequestHandler* self = new CAsyncRequestHandler( aPtr, + aHandleIssueRequest, + aHandleRunL, + aHandleRunError, + aHandleDoCancel, + aType ); + CleanupStack::PushL( self ); + return self; + } + + /** + * C++ destructor. + */ + virtual ~CAsyncRequestHandler() + { + Cancel(); + } + +public: // New methods + + /** + * Issues a new request. + * Panic will occur if there already is a request pending. + * + * @since TB9.2 + * @param None. + * @return None. + */ + void IssueRequest() + { + __ASSERT_DEBUG( !IsActive(), + User::Panic( KPanicCat, EArhRequestPending ) ); + + // Call the HandleIssueRequest from the template class and set active + ( iPtr.*iHandleIssueRequest )( iStatus ); + SetActive(); + } + +protected: // From base classes + + // @see CActive + void RunL() + { + // Check result and issue request again + TInt status = iStatus.Int(); + if( iType == ERequestContinuous ) + { + IssueRequest(); + } + + // Call the HandleRunL from the template class + ( iPtr.*iHandleRunL )( status ); + } + + // @see CActive + TInt RunError( TInt aError ) + { + // Call the HandleRunError from the template class + TInt err = ( iPtr.*iHandleRunError )( aError ); + return err; + } + + // @see CActive + void DoCancel() + { + // Call the HandleDoCancel from the template class + ( iPtr.*iHandleDoCancel )(); + } + +private: + + CAsyncRequestHandler( T& aPtr, + HandleIssueRequest aHandleIssueRequest, + HandleRunL aHandleRunL, + HandleRunError aHandleRunError, + HandleDoCancel aHandleDoCancel, + TAsyncRequestType aType = ERequestContinuous ): + CActive( CActive::EPriorityStandard ), + iPtr( aPtr ), + iHandleIssueRequest( aHandleIssueRequest ), + iHandleRunL( aHandleRunL ), + iHandleRunError( aHandleRunError ), + iHandleDoCancel( aHandleDoCancel ), + iType( aType ) + { + CActiveScheduler::Add( this ); + } + +private: // Data + + /** Pointer to the template class */ + T& iPtr; + + /** HandleIssueRequest function pointer */ + HandleIssueRequest iHandleIssueRequest; + + /** HandleRunL function pointer */ + HandleRunL iHandleRunL; + + /** HandleRunError function pointer */ + HandleRunError iHandleRunError; + + /** HandleDoCancel function pointer */ + HandleDoCancel iHandleDoCancel; + + /** Request type */ + TAsyncRequestType iType; + }; + +#endif // ASYNCREQUESTHANDLER_H diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/syserrcmdtest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/syserrcmdtest.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,147 @@ +/* +* 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: +* Csyserrcmdtest class declaration. +* +*/ + + +#ifndef SYSERRCMDTEST_H +#define SYSERRCMDTEST_H + +#if defined (_MSC_VER) && (_MSC_VER >= 1000) +#pragma once +#endif + +// SYSTEM INCLUDES +#include + +#include "asyncrequesthandler.h" + +// FORWARD DECLARATIONS +class TCaseInfo; +class CSysErrCmdTest; +class MSsmCustomCommand; +class CSsmCustomCommandEnv; + +// DESCRIPTION +// This a Test Module interface template +// that does not really do anything. +typedef TInt ( CSysErrCmdTest::*TestFunction )( TTestResult& ); + +NONSHARABLE_CLASS( CSysErrCmdTest ) : public CScriptBase + { +public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSysErrCmdTest* NewL( CTestModuleIf& aTestModuleIf ); + + /** + * Destructor. + */ + virtual ~CSysErrCmdTest(); + +public: // Functions from base classes + + TInt RunMethodL( CStifItemParser& aItem ); + +protected: // New functions + + TInt CreateAndDestroyL( CStifItemParser& aItem ); + TInt InitAndCloseL( CStifItemParser& aItem ); + TInt ExecuteL( CStifItemParser& aItem ); + TInt ExecuteCancelL( CStifItemParser& aItem ); + TInt ShowAfterAknGlobalNoteL( CStifItemParser& aItem ); + TInt ShowAfterUiServerGlobalNoteL( CStifItemParser& aItem ); + + /** HandleIssueRequest callback */ + void HandleIssueRequest( TRequestStatus& ); + + /** HandleRunL callback */ + void HandleRunL( TInt ); + + /** HandleRunError callback */ + TInt HandleRunError( TInt ); + + /** HandleDoCancel callback */ + void HandleDoCancel(); + +private: + + /** + * C++ default constructor. + */ + CSysErrCmdTest( CTestModuleIf& aTestModuleIf ); + + /** + * By default Symbian OS constructor is private. + */ + void ConstructL(); + + /** + * Function returning test case name and pointer to test case function + */ + const TCaseInfo Case( const TInt aCaseNumber ) const; + +private: // Data + + TestFunction iMethod; + + CAsyncRequestHandler* iExecuteHandler; + + RFs iFs; + + MSsmCustomCommand* iSysErrCmd; + + CSsmCustomCommandEnv* iCustCmdEnvStub; + + TInt iExecutionResult; + }; + +// Function pointer related internal definitions + +// Hack around known GCC bug. +#ifndef __GCC32__ + #define GETPTR +#else + #define GETPTR & +#endif + + +// An internal structure containing a test case name and +// the pointer to function doing the test +class TCaseInfoInternal + { + public: + const TText* iCaseName; + TestFunction iMethod; + }; + +// An internal structure containing a test case name and +// the pointer to function doing the test +class TCaseInfo + { + public: + TPtrC iCaseName; + TestFunction iMethod; + + TCaseInfo( const TText* a ) : iCaseName( ( TText* ) a ) + { + }; + }; + +#endif // SYSERRCMDTEST_H + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/trace.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/trace.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,596 @@ +/* +* 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: +* Trace macro definitions. +* +*/ + +#ifndef TRACE_H +#define TRACE_H + +#include // TCleanupItem +#include "traceconfiguration.hrh" + +#ifdef TRACE_INTO_FILE +#include // RFileLogger +#else +#include // RDebug +#endif + +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- +// + +// NOTE! +// Replace all COMPONENT_NAME occurnaces with your own component / module name. + +/** +* Prefix trace macro to complete tracing with component name. +* Returns TDesC which can be used directly with RDebug or RFileLogger. +*/ +#define _PREFIX_TRACE( aMsg ) TPtrC( (const TText*)L"[syserrcmdtest]: " L##aMsg ) + +/** +* Prefix error trace +*/ +#define _PREFIX_ERROR( aMsg ) _PREFIX_TRACE( "[ERROR: %d]: " L##aMsg ) + +/** +* Prefix info trace. +*/ +#define _PREFIX_INFO( aMsg ) _PREFIX_TRACE( "[INFO]: " L##aMsg ) + +/** +* Prefix macro for strings +*/ +#define _PREFIX_CHAR( aMsg ) (const char*)"[syserrcmdtest]: " ##aMsg + +/** +* Define needed directories if TRACE_INTO_FILE macro in use +*/ +#ifdef TRACE_INTO_FILE + + _LIT( KDir, "syserrcmdtest" ); + _LIT( KFile, "syserrcmdtest_log.txt" ); + _LIT( KFullPath, "c:\\logs\\syserrcmdtest\\" ); + +#endif + +//----------------------------------------------------------------------------- +// Error trace macros +//----------------------------------------------------------------------------- +// +#ifdef ERROR_TRACE + + /** + * Error trace definitions. + */ + #ifdef TRACE_INTO_FILE + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4 );\ + }\ + } + #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\ + }\ + } + #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\ + {\ + if( aErr < KErrNone )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\ + }\ + } + + #else//TRACE_INTO_FILE not defined + + #define ERROR( aErr, aMsg )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr );\ + }\ + } + #define ERROR_1( aErr, aMsg, aP1 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1 );\ + }\ + } + #define ERROR_2( aErr, aMsg, aP1, aP2 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2 );\ + }\ + } + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3 );\ + }\ + } + #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4 );\ + }\ + } + #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5 );\ + }\ + } + #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\ + {\ + if( aErr < KErrNone )\ + {\ + RDebug::Print( _PREFIX_ERROR( aMsg ), aErr, aP1, aP2, aP3, aP4, aP5, aP6 );\ + }\ + } + + #endif//TRACE_INTO_FILE + + #define ERROR_GEN( aMsg ) ERROR( KErrGeneral, aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) ERROR_1( KErrGeneral, aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) ERROR_2( KErrGeneral, aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) ERROR_3( KErrGeneral, aMsg, aP1, aP3 ) + #define ERROR_GEN_4( aMsg, aP1, aP2, aP3, aP4 ) ERROR_4( KErrGeneral, aMsg, aP1, aP3, aP4 ) + #define ERROR_GEN_5( aMsg, aP1, aP2, aP3, aP4, aP5 ) ERROR_5( KErrGeneral, aMsg, aP1, aP3, aP4, aP5 ) + #define ERROR_GEN_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 ) ERROR_6( KErrGeneral, aMsg, aP1, aP3, aP4, aP5, aP6 ) + +#else//ERROR_TRACE not defined + + #define ERROR( aErr, aMsg ) + #define ERROR_1( aErr, aMsg, aP1 ) + #define ERROR_2( aErr, aMsg, aP1, aP2 ) + #define ERROR_3( aErr, aMsg, aP1, aP2, aP3 ) + #define ERROR_4( aErr, aMsg, aP1, aP2, aP3, aP4 ) + #define ERROR_5( aErr, aMsg, aP1, aP2, aP3, aP4, aP5 ) + #define ERROR_6( aErr, aMsg, aP1, aP2, aP3, aP4, aP5, aP6 ) + + #define ERROR_GEN( aMsg ) + #define ERROR_GEN_1( aMsg, aP1 ) + #define ERROR_GEN_2( aMsg, aP1, aP2 ) + #define ERROR_GEN_3( aMsg, aP1, aP2, aP3 ) + #define ERROR_GEN_4( aMsg, aP1, aP2, aP3, aP4 ) + #define ERROR_GEN_5( aMsg, aP1, aP2, aP3, aP4, aP5 ) + #define ERROR_GEN_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 ) + +#endif//ERROR_TRACE + +//----------------------------------------------------------------------------- +// TRAP and trace with error macro +//----------------------------------------------------------------------------- +// +#define TRAP_ERROR( aErr, aFunction )\ + {\ + TRAP( aErr, aFunction );\ + TPtrC8 file( ( TText8* )__FILE__ );\ + ERROR_2( aErr, "Trapped leave in '%S' line %d", &file, __LINE__);\ + } + +//----------------------------------------------------------------------------- +// Info trace macros +//----------------------------------------------------------------------------- +// +#ifdef INFO_TRACE + + /** + * Info log message definitions. + */ + #ifdef TRACE_INTO_FILE + + #define INFO( aMsg )\ + {\ + RFileLogger::Write( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + #define INFO_4( aMsg, aP1, aP2, aP3, aP4 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4 );\ + } + #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5 );\ + } + #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\ + {\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5, aP6 );\ + } + + #else//TRACE_INTO_FILE not defined + + #define INFO( aMsg )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ) );\ + } + #define INFO_1( aMsg, aP1 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1 );\ + } + #define INFO_2( aMsg, aP1, aP2 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2 );\ + } + #define INFO_3( aMsg, aP1, aP2, aP3 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3 );\ + } + #define INFO_4( aMsg, aP1, aP2, aP3, aP4 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4 );\ + } + #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5 );\ + } + #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 )\ + {\ + RDebug::Print( _PREFIX_INFO( aMsg ), aP1, aP2, aP3, aP4, aP5, aP6 );\ + } + + #endif//TRACE_INTO_FILE + +#else//INFO_TRACE not defined + + #define INFO( aMsg ) + #define INFO_1( aMsg, aP1 ) + #define INFO_2( aMsg, aP1, aP2 ) + #define INFO_3( aMsg, aP1, aP2, aP3 ) + #define INFO_4( aMsg, aP1, aP2, aP3, aP4 ) + #define INFO_5( aMsg, aP1, aP2, aP3, aP4, aP5 ) + #define INFO_6( aMsg, aP1, aP2, aP3, aP4, aP5, aP6 ) + +#endif//INFO_TRACE + +//----------------------------------------------------------------------------- +// Trace current client thread name and process id +//----------------------------------------------------------------------------- +// +#ifdef CLIENT_TRACE + + #define CLIENT_PROCESS\ + {\ + CLIENT_PROCESS_PREFIX( "" );\ + } + + #define CLIENT_PROCESS_PREFIX( aPrefix )\ + {\ + RProcess process;\ + TPtrC name( process.Name() );\ + TSecureId sid( process.SecureId() );\ + TPtrC prefix( _S( aPrefix ) );\ + if( prefix.Length() )\ + {\ + INFO_3( "%S: CLIENT - Name: [%S], Sid: [0x%x]", &prefix, &name, sid.iId );\ + }\ + else\ + {\ + INFO_2( "CLIENT - Name: [%S], Sid: [0x%x]", &name, sid.iId );\ + }\ + process.Close();\ + } + + #define CLIENT_MESSAGE( aMsg )\ + {\ + CLIENT_MESSAGE_PREFIX( "", aMsg );\ + } + + #define CLIENT_MESSAGE_PREFIX( aPrefix, aMsg )\ + {\ + RThread thread;\ + TInt err = aMsg.Client( thread );\ + if( err == KErrNone )\ + {\ + RProcess process;\ + err = thread.Process( process );\ + if( err == KErrNone )\ + {\ + TPtrC threadName( thread.Name() );\ + TUid processUid( process.SecureId() );\ + TPtrC prefix( _S( aPrefix ) );\ + if( prefix.Length() )\ + {\ + INFO_4( "%S: MSG - Name: [%S], Sid: [0x%x], Message ID: [%d]",\ + &prefix,\ + &threadName,\ + processUid,\ + aMsg.Function() );\ + }\ + else\ + {\ + INFO_3( "MSG - Name: [%S], Sid: [0x%x], Message ID: [%d]",\ + &threadName,\ + processUid,\ + aMsg.Function() );\ + }\ + }\ + process.Close();\ + }\ + thread.Close();\ + } + +#else + + #define CLIENT_PROCESS + #define CLIENT_PROCESS_PREFIX( aPrefix ) + #define CLIENT_MESSAGE( aMsg ) + #define CLIENT_MESSAGE_PREFIX( aPrefix, aMsg ) + +#endif + +//----------------------------------------------------------------------------- +// Function trace macros +//----------------------------------------------------------------------------- +// +#ifdef FUNC_TRACE + + /** + * Function logging definitions. + */ + #ifdef TRACE_INTO_FILE + + #define FUNC( aMsg, aP1 )\ + {\ + TPtrC8 trace( _S8( aMsg ) );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, trace, aP1 );\ + }\ + + #else//TRACE_INTO_FILE not defined + + #define FUNC( aMsg, aP1 )\ + {\ + RDebug::Printf( aMsg, aP1 );\ + }\ + + #endif//TRACE_INTO_FILE + + /** + * Function trace helper class. + * + * NOTE: + * LC -methods cannot be trapped. Therefore if LC -method leaves + * END trace is used instead of LEAVE trace. + * If you have an idea how to round this problem please tell. + */ + _LIT8( KFuncNameTerminator, "(" ); + _LIT8( KFuncLeavePatternL, "L" ); + class TFuncLog + { + public: + static void Cleanup( TAny* aPtr ) + { + TFuncLog* self = static_cast< TFuncLog* >( aPtr ); + self->iLeft = ETrue; + FUNC( _PREFIX_CHAR("%S-LEAVE"), &self->iFunc ); // Leave detected + } + inline TFuncLog( const char* aFunc ) : + iFunc( aFunc ? _S8( aFunc ) : _S8("") ), + iLeft( EFalse ), + iCleanupItem( Cleanup, this ), + iCanLeave( EFalse ) + { + TInt pos( iFunc.Find( KFuncNameTerminator ) ); + if( pos != KErrNotFound ) + { + iFunc.Set( iFunc.Left( pos ) ); + iCanLeave = !iFunc.Right( KFuncLeavePatternL().Length() ).Compare( KFuncLeavePatternL ); + if ( iCanLeave ) + { + CleanupStack::PushL( iCleanupItem ); // Ignore warnings + } + } + FUNC( _PREFIX_CHAR("%S-START"), &iFunc ); + } + + inline ~TFuncLog() + { + if ( !iLeft ) + { + if ( iCanLeave ) + { + CleanupStack::Pop( this ); // Pop the cleanup item + } + FUNC( _PREFIX_CHAR("%S-END"), &iFunc ); // Normally finished + } + } + + private: // Data + TPtrC8 iFunc; + TBool iLeft; + TCleanupItem iCleanupItem; + TBool iCanLeave; + }; + #define FUNC_LOG TFuncLog _fl( __PRETTY_FUNCTION__ ); + +#else//FUNC_TRACE not defined + + #define FUNC_LOG + +#endif//FUNC_TRACE + +//----------------------------------------------------------------------------- +// Timestamp trace macros +//----------------------------------------------------------------------------- +// +#ifdef TIMESTAMP_TRACE + + #ifdef TRACE_INTO_FILE + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend,\ + _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #else//TRACE_INTO_FILE not defined + + #define TIMESTAMP( aCaption )\ + {\ + TTime t;\ + t.HomeTime();\ + TDateTime dt = t.DateTime();\ + _LIT( KCaption, aCaption );\ + RDebug::Print( _PREFIX_TRACE("[TIMESTAMP] %S %d:%02d:%02d.%d us"),\ + &KCaption, dt.Hour(), dt.Minute(), dt.Second(), dt.MicroSecond() );\ + } + + #endif//TRACE_INTO_FILE + +#else//TIMESTAMP_TRACE not defined + + #define TIMESTAMP( aCaption ) + +#endif//TIMESTAMP_TRACE + +#ifdef HEAP_TRACE + + #ifdef TRACE_INTO_FILE + + #define HEAP( aMsg )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace );\ + } + #define HEAP_1( aMsg, aP1 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1 );\ + } + #define HEAP_2( aMsg, aP1, aP2 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2 );\ + } + #define HEAP_3( aMsg, aP1, aP2, aP3 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3 );\ + } + #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RFileLogger::WriteFormat( KDir, KFile, EFileLoggingModeAppend, _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3, aP4 );\ + } + + #else//TRACE_INTO_FILE not defined + + #define HEAP( aMsg )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace );\ + } + #define HEAP_1( aMsg, aP1 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1 );\ + } + #define HEAP_2( aMsg, aP1, aP2 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2 );\ + } + #define HEAP_3( aMsg, aP1, aP2, aP3 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3 );\ + } + #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 )\ + {\ + TInt totalAllocSpace = 0;\ + User::AllocSize( totalAllocSpace );\ + RDebug::Print( _PREFIX_HEAP( aMsg ), totalAllocSpace, aP1, aP2, aP3, aP4 );\ + } + + #endif//TRACE_INTO_FILE + +#else//HEAP_TRACE not defined + + #define HEAP( aMsg ) + #define HEAP_1( aMsg, aP1 ) + #define HEAP_2( aMsg, aP1, aP2 ) + #define HEAP_3( aMsg, aP1, aP2, aP3 ) + #define HEAP_4( aMsg, aP1, aP2, aP3, aP4 ) + +#endif//HEAP_TRACE + +#endif + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/traceconfiguration.hrh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/inc/traceconfiguration.hrh Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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: +* Trace Macro Configurations. +* +*/ + + +#ifndef TRACECONFIGURATION_HRH +#define TRACECONFIGURATION_HRH + +//----------------------------------------------------------------------------- +// Trace definitions +//----------------------------------------------------------------------------- +// + +/** +* Error trace enabled +*/ +#ifdef _DEBUG + #define ERROR_TRACE +#else + #undef ERROR_TRACE +#endif + +/** +* Info trace enabled +*/ +#ifdef _DEBUG + #define INFO_TRACE +#else + #undef INFO_TRACE +#endif + +/** +* Timestamp tracing on +*/ +#ifdef _DEBUG + #define TIMESTAMP_TRACE +#else + #undef TIMESTAMP_TRACE +#endif + +/** +* Tracing current client process and thread +*/ +#ifdef _DEBUG + #define CLIENT_TRACE +#else + #undef CLIENT_TRACE +#endif + +/** +* Function trace enabled +*/ +#ifdef _DEBUG + #define FUNC_TRACE +#else + #undef FUNC_TRACE +#endif + +/** +* Tracing into file enabled, default RDebug +*/ +#undef TRACE_INTO_FILE + +#endif + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/init/syserrcmdtest.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/init/syserrcmdtest.ini Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,186 @@ +# +# This is STIFTestFramework initialization file +# Comment lines start with '#'-character. +# See STIF TestFramework users guide.doc for instructions + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set following test engine settings: +# - Set Test Reporting mode. TestReportMode's possible values are: +# + 'Summary': Summary of the tested test cases. +# + 'Environment': Hardware and software info. +# + 'TestCases': Test case report. +# + 'FullReport': Set of all above ones. +# + Example 'TestReportMode= Summary TestCases' +# +# - CreateTestReport setting controls report creation mode +# + YES, Test report will created. +# + NO, No Test report. +# +# - File path indicates the base path of the test report. +# - File name indicates the name of the test report. +# +# - File format indicates the type of the test report. +# + TXT, Test report file will be txt type, for example 'TestReport.txt'. +# + HTML, Test report will be html type, for example 'TestReport.html'. +# +# - File output indicates output source of the test report. +# + FILE, Test report logging to file. +# + RDEBUG, Test report logging to using rdebug. +# +# - File Creation Mode indicates test report overwriting if file exist. +# + OVERWRITE, Overwrites if the Test report file exist. +# + APPEND, Continue logging after the old Test report information if +# report exist. +# - Sets a device reset module's dll name(Reboot). +# + If Nokia specific reset module is not available or it is not correct one +# StifHWResetStub module may use as a template for user specific reset +# module. +# - Sets STIF test measurement disable options. e.g. pluging1 and pluging2 disablation +# DisableMeasurement= stifmeasurementplugin01 stifmeasurementplugin02 +# + +[Engine_Defaults] + +TestReportMode= FullReport # Possible values are: 'Empty', 'Summary', 'Environment', 'TestCases' or 'FullReport' + +CreateTestReport= YES # Possible values: YES or NO + +TestReportFilePath= c:\LOGS\TestFramework\ +TestReportFileName= TestReport + +TestReportFormat= TXT # Possible values: TXT or HTML +TestReportOutput= FILE # Possible values: FILE or RDEBUG +TestReportFileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +DeviceResetDllName= StifResetForNokia.dll # e.g. 'StifHWResetStub.dll' for user specific reseting + +DisableMeasurement= stifmeasurementdisablenone # Possible values are: + # 'stifmeasurementdisablenone', 'stifmeasurementdisableall' + # 'stifmeasurementplugin01', 'stifmeasurementplugin02', + # 'stifmeasurementplugin03', 'stifmeasurementplugin04', + # 'stifmeasurementplugin05' or 'stifbappeaprofiler' + +[End_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Module configurations start +# Modules are added between module tags +# tags. Module name is specified after ModuleName= tag, like +# ModuleName= XXXXXXXXX +# Modules might have initialisation file, specified as +# IniFile= c:\testframework\YYYYYY +# Modules might have several configuration files, like +# TestCaseFile= c:\testframework\NormalCases.txt +# TestCaseFile= c:\testframework\SmokeCases.txt +# TestCaseFile= c:\testframework\ManualCases.txt + +# (TestCaseFile is synonym for old term ConfigFile) + +# Following case specifies demo module settings. Demo module +# does not read any settings from file, so tags +# IniFile and TestCaseFile are not used. +# In the simplest case it is enough to specify only the +# name of the test module when adding new test module +[New_Module] +ModuleName= TestScripter +TestCaseFile= c:\testframework\syserrcmdtest.cfg +[End_Module] + +# Load testmoduleXXX, optionally with initialization file and/or test case files +#[New_Module] +#ModuleName= testmodulexxx + +#TestModuleXXX used initialization file +#IniFile= c:\testframework\init.txt + +#TestModuleXXX used configuration file(s) +#TestCaseFile= c:\testframework\testcases1.cfg +#TestCaseFile= c:\testframework\testcases2.cfg +#TestCaseFile= c:\testframework\manualtestcases.cfg + +#[End_Module] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + + + +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +# Set STIFTestFramework logging overwrite parameters for Logger. +# Hardware and emulator environment logging path and styles can +# be configured from here to overwrite the Logger's implemented values. +# +# Settings description: +# - Indicates option for creation log directory/directories. If log directory/directories +# is/are not created by user they will make by software. +# + YES, Create log directory/directories if not allready exist. +# + NO, Log directory/directories not created. Only created one is used. +# +# - Overwrite emulator path setting. +# + Example: If 'EmulatorBasePath= C:\LOGS\TestFramework\' and in code is defined +# Logger's path 'D:\LOGS\Module\' with those definition the path +# will be 'C:\LOGS\TestFramework\LOGS\Module\' +# +# - Overwrite emulator's logging format. +# + TXT, Log file(s) will be txt type(s), for example 'Module.txt'. +# + HTML, Log file(s) will be html type(s), for example 'Module.html'. +# +# - Overwrited emulator logging output source. +# + FILE, Logging to file(s). +# + RDEBUG, Logging to using rdebug(s). +# +# - Overwrite hardware path setting (Same description as above in emulator path). +# - Overwrite hardware's logging format(Same description as above in emulator format). +# - Overwrite hardware's logging output source(Same description as above in emulator output). +# +# - File Creation Mode indicates file overwriting if file exist. +# + OVERWRITE, Overwrites if file(s) exist. +# + APPEND, Continue logging after the old logging information if file(s) exist. +# +# - Will thread id include to the log filename. +# + YES, Thread id to log file(s) name, Example filename 'Module_b9.txt'. +# + NO, No thread id to log file(s), Example filename 'Module.txt'. +# +# - Will time stamps include the to log file. +# + YES, Time stamp added to each line in log file(s). Time stamp is +# for example'12.Nov.2003 115958 LOGGING INFO' +# + NO, No time stamp(s). +# +# - Will line breaks include to the log file. +# + YES, Each logging event includes line break and next log event is in own line. +# + NO, No line break(s). +# +# - Will event ranking include to the log file. +# + YES, Event ranking number added to each line in log file(s). Ranking number +# depends on environment's tics, for example(includes time stamp also) +# '012 12.Nov.2003 115958 LOGGING INFO' +# + NO, No event ranking. +# + +[Logger_Defaults] + +#NOTE: If you want to set Logger using next setting(s) remove comment(s)'#' +#NOTE: TestEngine and TestServer logging settings cannot change here + +#CreateLogDirectories= YES # Possible values: YES or NO + +#EmulatorBasePath= C:\LOGS\TestFramework\ +#EmulatorFormat= HTML # Possible values: TXT or HTML +#EmulatorOutput= FILE # Possible values: FILE or RDEBUG + +#HardwareBasePath= D:\LOGS\TestFramework\ +#HardwareFormat= HTML # Possible values: TXT or HTML +#HardwareOutput= FILE # Possible values: FILE or RDEBUG + +#FileCreationMode= OVERWRITE # Possible values: OVERWRITE or APPEND + +#ThreadIdToLogFile= YES # Possible values: YES or NO +#WithTimeStamp= YES # Possible values: YES or NO +#WithLineBreak= YES # Possible values: YES or NO +#WithEventRanking= YES # Possible values: YES or NO + +[End_Logger_Defaults] +# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +# End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/src/syserrcmdtest.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtest/src/syserrcmdtest.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,343 @@ +/* +* 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: +* CSysErrCmdTest class implementation. +* +*/ + +#include +#include +#include + +#include +#include +#include + +#include "syserrcmdtest.h" +#include "syserrcmdfactory.h" +#include "syserrcmdtestsstub.h" +#include "trace.h" + +// INTERNAL INCLUDES +NONSHARABLE_CLASS( TWaitInfo ) + { + public: + + CPeriodic* iPeriodic; + CActiveSchedulerWait* iWait; + }; + + +/** +* Call back method when we need to stop active scheduler wait. +*/ +LOCAL_C TInt WaitCallBack( TAny* aSelf ) + { + if( aSelf ) + { + TWaitInfo* info = static_cast( aSelf ); + if( info->iPeriodic ) + { + info->iPeriodic->Cancel(); + } + if( info->iWait ) + { + if( info->iWait->IsStarted() ) + { + info->iWait->AsyncStop(); + } + } + } + + return KErrNone; + } + +/** +* Helper method to wait current scheduler before teardown is completed. +*/ +LOCAL_C void WaitL( TInt aIntervalInMicorseconds ) + { + TWaitInfo info; + + // Construct periodic + CPeriodic* periodic = CPeriodic::NewL( CActive::EPriorityStandard ); + CleanupStack::PushL( periodic ); + info.iPeriodic = periodic; + + // Construct active scheduler wait + CActiveSchedulerWait* wait = new( ELeave ) CActiveSchedulerWait; + CleanupStack::PushL( wait ); + info.iWait = wait; + + // Start timer and wait + TCallBack cb( WaitCallBack, &info ); + periodic->Start( aIntervalInMicorseconds, aIntervalInMicorseconds, cb ); + wait->Start(); + + // Cleanup + CleanupStack::PopAndDestroy( wait ); + CleanupStack::PopAndDestroy( periodic ); + } + +// --------------------------------------------------------- +// CSysErrCmdTest::LibEntryL +// Returns: Poiter to CSysErrCmdTest class +// --------------------------------------------------------- +EXPORT_C CSysErrCmdTest* LibEntryL( CTestModuleIf& aTestModuleIf ) + { + FUNC_LOG; + + CSysErrCmdTest* libEntry( CSysErrCmdTest::NewL( aTestModuleIf ) ); + return libEntry; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::CSysErrCmdTest +// --------------------------------------------------------- +CSysErrCmdTest::CSysErrCmdTest( CTestModuleIf& aTestModuleIf ) : + CScriptBase( aTestModuleIf ) + { + FUNC_LOG; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::ConstructL +// --------------------------------------------------------- +void CSysErrCmdTest::ConstructL() + { + FUNC_LOG; + + iExecuteHandler = CAsyncRequestHandler::NewL( + *this, + HandleIssueRequest, + HandleRunL, + HandleRunError, + HandleDoCancel, + CAsyncRequestHandler::ERequestOneShot ); + + User::LeaveIfError( iFs.Connect() ); + + iCustCmdEnvStub = SysErrCmdTestsStub::CustomCommandEnvStubL( iFs ); + } + +// --------------------------------------------------------- +// CSysErrCmdTest::NewL +// --------------------------------------------------------- +CSysErrCmdTest* CSysErrCmdTest::NewL( CTestModuleIf& aTestModuleIf ) + { + FUNC_LOG; + + CSysErrCmdTest* self = new (ELeave) CSysErrCmdTest( aTestModuleIf ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::~CSysErrCmdTest +// --------------------------------------------------------- +CSysErrCmdTest::~CSysErrCmdTest() + { + iFs.Close(); + delete iExecuteHandler; + delete iCustCmdEnvStub; + FUNC_LOG; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::RunMethodL +// --------------------------------------------------------- +TInt CSysErrCmdTest::RunMethodL( CStifItemParser& aItem ) + { + FUNC_LOG; + + const TStifFunctionInfo KFunctions[] = + { + // Copy this line for every implemented function. + // First string is the function name used in TestScripter script file. + // Second is the actual implementation member function. + ENTRY( "CreateAndDestroy", CSysErrCmdTest::CreateAndDestroyL ), + ENTRY( "InitAndClose", CSysErrCmdTest::InitAndCloseL ), + ENTRY( "Execute", CSysErrCmdTest::ExecuteL ), + ENTRY( "ExecuteCancel", CSysErrCmdTest::ExecuteCancelL ), + ENTRY( "ExecuteAfterGlobalNote", CSysErrCmdTest::ShowAfterAknGlobalNoteL ), + ENTRY( "ExecuteAfterUiServiceGlobalNote", CSysErrCmdTest::ShowAfterUiServerGlobalNoteL ) + }; + const TInt count( sizeof( KFunctions ) / sizeof( TStifFunctionInfo ) ); + TInt ret( RunInternalL( KFunctions, count, aItem ) ); + return ret; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::CreateAndDestroyL +// --------------------------------------------------------- + +TInt CSysErrCmdTest::CreateAndDestroyL( CStifItemParser& aItem ) + { + FUNC_LOG; + ( void )aItem; + MSsmCustomCommand* sysErrCmd = SysErrCmdFactory::SysErrCmdNewL(); + sysErrCmd->Release(); + return KErrNone; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::InitAndCloseL +// --------------------------------------------------------- +TInt CSysErrCmdTest::InitAndCloseL( CStifItemParser& aItem ) + { + FUNC_LOG; + ( void )aItem; + + MSsmCustomCommand* sysErrCmd = SysErrCmdFactory::SysErrCmdNewL(); + + TInt err( sysErrCmd->Initialize( iCustCmdEnvStub ) ); + ERROR( err, "Failed to init syserrcmd" ); + User::LeaveIfError( err ); + + sysErrCmd->Close(); + sysErrCmd->Release(); + + return KErrNone; + } +// --------------------------------------------------------- +// CSysErrCmdTest::ExecuteL +// --------------------------------------------------------- + +TInt CSysErrCmdTest::ExecuteL( CStifItemParser& aItem ) + { + FUNC_LOG; + ( void )aItem; + iSysErrCmd = SysErrCmdFactory::SysErrCmdNewL(); + TInt err( iSysErrCmd->Initialize( iCustCmdEnvStub ) ); + ERROR( err, "Failed to init syserrcmd" ); + User::LeaveIfError( err ); + + iExecuteHandler->IssueRequest(); + + WaitL( 5000 ); + + iSysErrCmd->Close(); + iSysErrCmd->Release(); + + INFO_1( "Execution result %d", iExecutionResult ); + + return iExecutionResult; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::ExecuteL +// --------------------------------------------------------- + +TInt CSysErrCmdTest::ExecuteCancelL( CStifItemParser& aItem ) + { + FUNC_LOG; + ( void )aItem; + iSysErrCmd = SysErrCmdFactory::SysErrCmdNewL(); + TInt err( iSysErrCmd->Initialize( iCustCmdEnvStub ) ); + ERROR( err, "Failed to init syserrcmd" ); + User::LeaveIfError( err ); + + iExecuteHandler->IssueRequest(); + + WaitL( 5000 ); + + iSysErrCmd->ExecuteCancel(); + + WaitL( 5000 ); + + iSysErrCmd->Close(); + iSysErrCmd->Release(); + + INFO_1( "ExecutionCancel result %d", iExecutionResult ); + + return ( iExecutionResult == KErrCancel ) ? KErrNone : KErrGeneral; + } + +// --------------------------------------------------------- +// CSysErrCmdTest::ShowAfterAknGlobalNoteL +// --------------------------------------------------------- +TInt CSysErrCmdTest::ShowAfterAknGlobalNoteL( CStifItemParser& aItem ) + { + CAknGlobalNote* note = CAknGlobalNote::NewLC(); + note->ShowNoteL( EAknGlobalInformationNote, _L("CAknGlobalNote::ShowNoteL()") ); + CleanupStack::PopAndDestroy( note ); + + return ExecuteL( aItem ); + } + +// --------------------------------------------------------- +// CSysErrCmdTest::ShowAfterUiServerGlobalNoteL +// --------------------------------------------------------- +TInt CSysErrCmdTest::ShowAfterUiServerGlobalNoteL( CStifItemParser& aItem ) + { + RAknUiServer aknSrv; + + User::LeaveIfError( aknSrv.Connect() ); + + CleanupClosePushL( aknSrv ); + + aknSrv.ShowGlobalNoteL( _L("RAknUiServer::ShowGlobalNoteL()"), EAknGlobalInformationNote ); + + CleanupStack::PopAndDestroy( &aknSrv ); + + return ExecuteL( aItem ); + } + +// --------------------------------------------------------- +// CSysErrCmdTest::HandleIssueRequest +// --------------------------------------------------------- + +void CSysErrCmdTest::HandleIssueRequest( TRequestStatus& aRequest ) + { + FUNC_LOG; + + iSysErrCmd->Execute( KNullDesC8, aRequest ); + + } +// --------------------------------------------------------- +// CSysErrCmdTest::HandleRunL +// --------------------------------------------------------- + +void CSysErrCmdTest::HandleRunL( TInt aStatus ) + { + FUNC_LOG; + INFO_1( "CSysErrCmdTest::HandleRunL %d", aStatus ); + + if ( KErrNone != aStatus ) + { + iExecutionResult = aStatus; + } + } +// --------------------------------------------------------- +// CSysErrCmdTest::HandleRunError +// --------------------------------------------------------- + +TInt CSysErrCmdTest::HandleRunError( TInt aError ) + { + FUNC_LOG; + ERROR( aError, "CSysErrCmdTest::HandleRunError" ); + return KErrNone; + } +// --------------------------------------------------------- +// CSysErrCmdTest::HandleDoCancel +// --------------------------------------------------------- + +void CSysErrCmdTest::HandleDoCancel() + { + FUNC_LOG; + } + + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/bwins/syserrcmdtestsstubu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/bwins/syserrcmdtestsstubu.def Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,4 @@ +EXPORTS + ?CustomCommandEnvStubL@SysErrCmdTestsStub@@SAPAVCSsmCustomCommandEnv@@AAVRFs@@@Z @ 1 NONAME ; class CSsmCustomCommandEnv * SysErrCmdTestsStub::CustomCommandEnvStubL(class RFs &) + ?Rfs@CSsmCustomCommandEnv@@UBEABVRFs@@XZ @ 2 NONAME ; class RFs const & CSsmCustomCommandEnv::Rfs(void) const + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/eabi/syserrcmdtestsstubu.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/eabi/syserrcmdtestsstubu.def Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,3 @@ +EXPORTS + _ZN18SysErrCmdTestsStub21CustomCommandEnvStubLER3RFs @ 1 NONAME + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/bld.inf Wed Sep 01 12:24:48 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: +* Build information file for ssmlangselcmdtest tests. +* +*/ + +#include + +PRJ_PLATFORMS +DEFAULT + +PRJ_TESTEXPORTS +../inc/syserrcmdtestsstub.h |../../inc/syserrcmdtestsstub.h + +PRJ_TESTMMPFILES +syserrcmdtestsstub.mmp + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/syserrcmdtestsstub.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/group/syserrcmdtestsstub.mmp Wed Sep 01 12:24:48 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: +* Project definition file for ssmlangselcmdtest. +* +*/ + +#include + +TARGET syserrcmdtestsstub.dll +TARGETTYPE dll + +UID 0x1000008D 0x101FB3E9 +VENDORID VID_DEFAULT +CAPABILITY ALL -TCB + +SOURCEPATH ../src +SOURCE ssmcustomcommandenvstub.cpp +SOURCE syserrcmdtestsstub.cpp + + +USERINCLUDE ../inc + +OS_LAYER_SYSTEMINCLUDE + +LIBRARY euser.lib + + + + diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/inc/syserrcmdtestsstub.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/inc/syserrcmdtestsstub.h Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,44 @@ +/* +* 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 SsmLangSelCmdTestStub class. +* +*/ + +#ifndef SYSERRCMDTESTSSTUB_H +#define SYSERRCMDTESTSSTUB_H + +#include + +class CSsmCustomCommandEnv; +class RFs; +/** +* Stub class for syserrcmd tests +* +*/ +NONSHARABLE_CLASS( SysErrCmdTestsStub ) + { +public: + /** + * Methods for mapping p&s, cenrep and feature Uids + * + * @param aUid The Uid to map + * @return The mapped Uid + */ + + IMPORT_C static CSsmCustomCommandEnv* CustomCommandEnvStubL( RFs& aRfs ); + + }; + +#endif // SYSERRCMDTESTSSTUB_H diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/ssmcustomcommandenvstub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/ssmcustomcommandenvstub.cpp Wed Sep 01 12:24:48 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: + * + */ + +// SYSTEM INCLUDES + +// USER INCLUDES +#include + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// C++ constructor. +// --------------------------------------------------------------------------- +// +CSsmCustomCommandEnv::CSsmCustomCommandEnv( RFs& aRfs ) +:iFs( aRfs ) + { + + } + + +// --------------------------------------------------------------------------- +// Symbian two phased constructor. +// --------------------------------------------------------------------------- +// +CSsmCustomCommandEnv* CSsmCustomCommandEnv::NewL( RFs& aRfs ) + { + CSsmCustomCommandEnv* self = new ( ELeave ) CSsmCustomCommandEnv( aRfs ); + return self; + } + + +// --------------------------------------------------------------------------- +// C++ destructor. +// --------------------------------------------------------------------------- +// +CSsmCustomCommandEnv::~CSsmCustomCommandEnv() + { + + } +// --------------------------------------------------------------------------- +// CSsmCustomCommandEnv::Rfs +// --------------------------------------------------------------------------- +// +const RFs& CSsmCustomCommandEnv::Rfs() const + { + return iFs; + } +// End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/syserrcmdtestsstub.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/syserrcmd/tsrc/syserrcmdtestsstub/src/syserrcmdtestsstub.cpp Wed Sep 01 12:24:48 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: + * + */ + +// SYSTEM INCLUDES + +// USER INCLUDES +#include "syserrcmdtestsstub.h" +#include + +// --------------------------------------------------------------------------- +// C++ destructor. +// --------------------------------------------------------------------------- +// +EXPORT_C CSsmCustomCommandEnv* SysErrCmdTestsStub::CustomCommandEnvStubL( + RFs& aRfs ) + { + return CSsmCustomCommandEnv::NewL( aRfs ); + } + +// End of file diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimctrl/group/sanimctrl.mmp --- a/startupservices/startupanimation/sanimctrl/group/sanimctrl.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimctrl/group/sanimctrl.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -37,7 +37,7 @@ APP_LAYER_SYSTEMINCLUDE // dependency to app layer (Profiles) - +LIBRARY avkon.lib LIBRARY centralrepository.lib LIBRARY cone.lib LIBRARY efsrv.lib @@ -46,5 +46,3 @@ LIBRARY featmgr.lib LIBRARY mediatorclient.lib LIBRARY sanimengine.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp --- a/startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimctrl/src/sanimstartupctrl.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2010 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" @@ -16,16 +16,15 @@ */ - - #include - +#include +#include #include #include #include #include #include #include "sanimengine.h" -#include +#include #include "sanimstartupctrl.h" #include "trace.h" @@ -36,7 +35,7 @@ const TInt KDefaultRepeatCount( 1 ); /** Default repeat count for animation and tone. */ const TInt KDefaultVolumeRamp( 0 ); /** Default volume ramp value in microseconds. */ -//static const TInt KMediatorTimeout( 1000000 ); /** Default timeout for Mediator commands. */ +static const TInt KMediatorTimeout( 1000000 ); /** Default timeout for Mediator commands. */ // ======== LOCAL FUNCTIONS ======== @@ -198,7 +197,7 @@ else if ( iCommandInitiator ) { INFO_1( "Secondary display data: %d", iSyncCommand ); - + iClientStatus = &aStatus; iWaitingForSyncResponse = ETrue; TInt errorCode = iCommandInitiator->IssueCommand( @@ -315,7 +314,7 @@ { iWaitingForSyncResponse = EFalse; StartAnimation(); - } + } } @@ -350,7 +349,21 @@ FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ); FeatureManager::UnInitializeLib(); - + if ( secondaryDisplaySupported ) + { + iCommandInitiator = CMediatorCommandInitiator::NewL( this ); + iCommandResponder = CMediatorCommandResponder::NewL( this ); + + TInt errorCode = iCommandResponder->RegisterCommand( + KMediatorSecondaryDisplayDomain, + SecondaryDisplay::KCatStartup, + SecondaryDisplay::ECmdStartupPhaseSkip, + TVersion( 0, 0, 0 ), + ECapabilitySwEvent, + KMediatorTimeout ); + ERROR( errorCode, "Failed to register command ECmdStartupPhaseSkip with mediator" ); + User::LeaveIfError( errorCode ); + } CSAnimCtrl::BaseConstructL( aRect, aContainer ); } @@ -491,7 +504,7 @@ if ( iPlayDefaultBeep ) { INFO( "Default startup beep requested" ); - /* + CAknAppUi* appUi = static_cast( iEikonEnv->EikAppUi() ); if ( appUi ) { @@ -499,7 +512,6 @@ appUi->KeySounds()->PlaySound( EAvkonSIDPowerOnTone ); } - */ } iEngine->Start( *iClientStatus ); diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimengine/group/sanimengine.mmp --- a/startupservices/startupanimation/sanimengine/group/sanimengine.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimengine/group/sanimengine.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -44,5 +44,3 @@ LIBRARY ecom.lib LIBRARY euser.lib LIBRARY fbscli.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimihlplugin/group/sanimihlplugin.mmp --- a/startupservices/startupanimation/sanimihlplugin/group/sanimihlplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimihlplugin/group/sanimihlplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -45,5 +45,3 @@ LIBRARY euser.lib LIBRARY ihl.lib LIBRARY sanimengine.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimmmfplugin/group/sanimmmfplugin.mmp --- a/startupservices/startupanimation/sanimmmfplugin/group/sanimmmfplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimmmfplugin/group/sanimmmfplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -43,5 +43,3 @@ LIBRARY euser.lib LIBRARY mediaclientaudio.lib LIBRARY sanimengine.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 startupservices/startupanimation/sanimsvgplugin/group/sanimsvgplugin.mmp --- a/startupservices/startupanimation/sanimsvgplugin/group/sanimsvgplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/startupservices/startupanimation/sanimsvgplugin/group/sanimsvgplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -48,5 +48,3 @@ LIBRARY gdi.lib LIBRARY sanimengine.lib LIBRARY svgengine.lib - -SMPSAFE diff -r 924385140d98 -r c2c61fdca848 sysdef_1_4_0.dtd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysdef_1_4_0.dtd Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 924385140d98 -r c2c61fdca848 sysdef_1_5_1.dtd --- a/sysdef_1_5_1.dtd Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/group/OODMonitor.mmp --- a/sysresmonitoring/oodmonitor/group/OODMonitor.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/group/OODMonitor.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -27,12 +27,11 @@ VENDORID VID_DEFAULT -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets USERINCLUDE ../inc -//APP_LAYER_SYSTEMINCLUDE -MW_LAYER_SYSTEMINCLUDE +APP_LAYER_SYSTEMINCLUDE + SOURCEPATH ../src SOURCE lafshut.cpp @@ -41,7 +40,7 @@ LIBRARY efsrv.lib LIBRARY bafl.lib LIBRARY ws32.lib -LIBRARY HbWidgets.lib +LIBRARY aknnotify.lib SOURCEPATH ../resource START RESOURCE lafmemorywatcher.rss @@ -50,7 +49,4 @@ LANGUAGE_IDS END - -SMPSAFE // End of file. - diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/inc/Ood.h --- a/sysresmonitoring/oodmonitor/inc/Ood.h Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/inc/Ood.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -20,7 +20,7 @@ #define LAFSHUT_H // SYSTEM INCLUDES -#include "hbdevicemessageboxsymbian.h" + // USER INCLUDES // CONSTANTS @@ -116,8 +116,7 @@ private: TMessageType iMessageType; CMessageInfo* iMessageInfo[4]; - - + CAknGlobalNote* iQuery; }; // ====================================================================== diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/oodmonitor2/group/OODMonitor.mmp --- a/sysresmonitoring/oodmonitor/oodmonitor2/group/OODMonitor.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/oodmonitor2/group/OODMonitor.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2002-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" @@ -26,13 +26,11 @@ CAPABILITY CAP_GENERAL_DLL VENDORID VID_DEFAULT -SYSTEMINCLUDE /epoc32/include/mw/hb/hbwidgets USERINCLUDE ../inc USERINCLUDE ../../inc - -MW_LAYER_SYSTEMINCLUDE +APP_LAYER_SYSTEMINCLUDE SOURCEPATH ../src @@ -47,12 +45,13 @@ LIBRARY efsrv.lib LIBRARY bafl.lib LIBRARY ws32.lib -LIBRARY platformenv.lib +LIBRARY aknnotify.lib +LIBRARY PlatformEnv.lib LIBRARY disknotifyhandler.lib LIBRARY commonengine.lib LIBRARY cone.lib +LIBRARY avkon.lib LIBRARY centralrepository.lib -LIBRARY HbWidgets.lib SOURCEPATH ../../resource START RESOURCE LafMemoryWatcher.rss @@ -68,7 +67,4 @@ LANGUAGE_IDS END - -SMPSAFE // End of file. - diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h --- a/sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/oodmonitor2/inc/outofdiskglobalnote.h Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-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" @@ -22,8 +22,7 @@ // SYSTEM INCLUDES #include #include -#include "hbdevicemessageboxsymbian.h" - +#include // USER INCLUDES @@ -45,7 +44,7 @@ * @lib None * @since S60 3.2 */ -NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public MHbDeviceMessageBoxObserver +NONSHARABLE_CLASS(COutOfDiskGlobalNote) : public CActive { public: COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ); @@ -53,21 +52,20 @@ ~COutOfDiskGlobalNote(); void DisplayL(const TDesC& aMessage); void ShowGlobalQueryL(TInt aStatus, TInt aDrive); + void CancelNoteL(); TBool NoteOnDisplay(); TNoteInfo GetNoteInfo(); - - void MessageBoxClosed(const CHbDeviceMessageBoxSymbian* aMessageBox, - CHbDeviceMessageBoxSymbian::TButtonId aButton); - private: void ConstructL(); HBufC* FormatStringL(const TDesC& aSource, const MDesCArray& aStrings); - + private: // From CActive + void DoCancel(); + void RunL(); private: // Data COutOfDiskMonitor* iOutOfDiskMonitor; //uses RFs& iFs; + CAknGlobalNote* iQuery; RResourceFile iOODResourceFile; TNoteInfo iNoteInfo; - CHbDeviceMessageBoxSymbian *iNote; }; #endif //__OUTOFDISKGLOBALNOTE_H__ diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/oodmonitor2/src/outofdiskglobalnote.cpp --- a/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdiskglobalnote.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/oodmonitor2/src/outofdiskglobalnote.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007 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" @@ -18,12 +18,16 @@ // SYSTEM INCLUDES #include +#include +#include +#include +#include #include #include #include #include // BaflUtils #include - +#include // USER INCLUDES #include "UiklafInternalCRKeys.h" @@ -56,9 +60,10 @@ COutOfDiskGlobalNote::~COutOfDiskGlobalNote() { TRACES("COutOfDiskGlobalNote::~COutOfDiskGlobalNote"); + delete iQuery; iOODResourceFile.Close(); - delete iNote; - iNote=NULL; + Cancel(); // Cancel active object + TRACES("COutOfDiskGlobalNote::~COutOfDiskGlobalNote: End"); } // --------------------------------------------------------- @@ -66,10 +71,12 @@ // --------------------------------------------------------- // COutOfDiskGlobalNote::COutOfDiskGlobalNote( COutOfDiskMonitor* aOutOfDiskMonitor, RFs& aFs ) : + CActive( EPriorityStandard ), iOutOfDiskMonitor( aOutOfDiskMonitor ), iFs( aFs ) { TRACES("COutOfDiskGlobalNote::COutOfDiskGlobalNote"); + CActiveScheduler::Add( this ); TRACES("COutOfDiskGlobalNote::COutOfDiskGlobalNote: End"); } @@ -83,7 +90,7 @@ iNoteInfo.iNoteId = KErrNotFound; iNoteInfo.iStatus = DISK_SPACE_OK; iNoteInfo.iDrive = KErrNotFound; - iNote= CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EWarning); + TRACES("COutOfDiskGlobalNote::ConstructL: Open OOD resource file"); TFileName OODFileName; OODFileName.Append(_L("Z")); @@ -103,13 +110,19 @@ void COutOfDiskGlobalNote::DisplayL(const TDesC& aMessage) { TRACES("COutOfDiskGlobalNote::DisplayL"); - - TRACES("COutOfDiskGlobalNote::COutOfDiskGlobalNote::DisplayL: set text and observer for the note"); - iNote->SetTextL(aMessage); - iNote->SetObserver(this); - iNote->SetTimeout(0); - iNote->ShowL(); - + if (iNoteInfo.iNoteId > KErrNotFound) + { + CancelNoteL(); + } + + if (!iQuery) + { + TRACES("COutOfDiskGlobalNote::COutOfDiskGlobalNote::DisplayL: Create iQuery"); + iQuery = CAknGlobalNote::NewL(); + iQuery->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY); + } + iNoteInfo.iNoteId = iQuery->ShowNoteL(iStatus, EAknGlobalWarningNote, aMessage); + SetActive(); TRACES("COutOfDiskGlobalNote::DisplayL: End"); } @@ -130,7 +143,8 @@ if (iOutOfDiskMonitor->GetGlobalNotesAllowed()) { - + TInt sdDialogId = 0; + TResourceReader resReader; HBufC8* str(NULL); CDesCArray* strings = new ( ELeave ) CDesCArrayFlat( 2 ); @@ -155,6 +169,7 @@ if (aDrive == iOutOfDiskMonitor->GetDefaultPhoneMemory()) { + sdDialogId = EAknDiskWarnignNote; str = iOODResourceFile.AllocReadLC(R_QTN_MEMLO_DEVICE_MEMORY_LOW); resReader.SetBuffer(str); strings->AppendL( driveName ); @@ -162,6 +177,7 @@ else if (driveStatus & DriveInfo::EDriveRemovable) { TRACES1("COutOfDiskGlobalNote::ShowGlobalQueryL: Warning note! volNameLength: %d", nameLength); + sdDialogId = EAknMMCWarningNote; TBufC name(volInfo.iName); if (nameLength) { @@ -180,6 +196,7 @@ } else { + sdDialogId = EAknDiskWarnignNote; str = iOODResourceFile.AllocReadLC(R_QTN_MEMLO_MASS_STORAGE_MEMORY_LOW); resReader.SetBuffer(str); strings->AppendL( driveName ); @@ -190,12 +207,14 @@ TRACES1("COutOfDiskGlobalNote::ShowGlobalQueryL: Critical note! Drive: %c", aDrive+'A'); if (aDrive == iOutOfDiskMonitor->GetDefaultPhoneMemory()) { + sdDialogId = EAknDiskFullNote; str = iOODResourceFile.AllocReadLC(R_QTN_MEMLO_DEVICE_MEMORY_FULL); resReader.SetBuffer(str); strings->AppendL( driveName ); } else if (driveStatus & DriveInfo::EDriveRemovable) { + sdDialogId = EAknMMCFullNote; TBufC name(volInfo.iName); if (nameLength) { @@ -214,19 +233,26 @@ } else { + sdDialogId = EAknDiskFullNote; str = iOODResourceFile.AllocReadLC(R_QTN_MEMLO_MASS_STORAGE_FULL); resReader.SetBuffer(str); strings->AppendL( driveName ); } } resReader.SetBuffer(str); - HBufC* resHandle = resReader.ReadHBufCL(); + HBufC* resHandle = resReader.ReadHBufCL(); CleanupStack::PushL( resHandle ); HBufC* message(FormatStringL(resHandle->Des(),*strings)); CleanupStack::PushL( message ); - TRACES1("COutOfDiskMonitor::ShowGlobalQueryL: txt: %S",message); + TRACES1("COutOfDiskMonitor::ShowGlobalQueryL: txt: %S",message); DisplayL(message->Des()); + TBuf8<2> sdDriveName; + sdDriveName.Append(aDrive+'A'); + sdDriveName.Append(_L8(":")); + CAknSDData* sd = CAknSDData::NewL(KAknSecondaryDisplayCategory, sdDialogId, sdDriveName); + iQuery->SetSecondaryDisplayData(sd); + iNoteInfo.iStatus = aStatus; iNoteInfo.iDrive = aDrive; CleanupStack::PopAndDestroy(message); @@ -284,13 +310,21 @@ } // ----------------------------------------------------------------------------- -// COutOfDiskGlobalNote::MessageBoxClosed +// COutOfDiskGlobalNote::DoCancel // ----------------------------------------------------------------------------- // -void COutOfDiskGlobalNote::MessageBoxClosed(const CHbDeviceMessageBoxSymbian* aMessageBox, - CHbDeviceMessageBoxSymbian::TButtonId aButton) +void COutOfDiskGlobalNote::DoCancel() { - TRACES("COutOfDiskGlobalNote::closed"); + TRACES("COutOfDiskGlobalNote::DoCancel"); + } + +// ----------------------------------------------------------------------------- +// COutOfDiskGlobalNote::RunL +// ----------------------------------------------------------------------------- +// +void COutOfDiskGlobalNote::RunL() + { + TRACES("COutOfDiskGlobalNote::RunL"); iNoteInfo.iNoteId = KErrNotFound; iNoteInfo.iStatus = DISK_SPACE_OK; iNoteInfo.iDrive = KErrNotFound; @@ -304,6 +338,21 @@ TRACES("COutOfDiskGlobalNote::RunL: End"); } +// ----------------------------------------------------------------------------- +// COutOfDiskGlobalNote::CancelNoteL +// ----------------------------------------------------------------------------- +// +void COutOfDiskGlobalNote::CancelNoteL() + { + TRACES("COutOfDiskGlobalNote::CancelNoteL"); + + if (iNoteInfo.iNoteId > KErrNotFound) + { + iQuery->CancelNoteL(iNoteInfo.iNoteId); + } + Cancel(); + TRACES("COutOfDiskGlobalNote::CancelNoteL: End"); + } // ----------------------------------------------------------------------------- // COutOfDiskGlobalNote::NoteOnDisplay diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oodmonitor/src/lafshut.cpp --- a/sysresmonitoring/oodmonitor/src/lafshut.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oodmonitor/src/lafshut.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-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" @@ -24,6 +24,10 @@ #include #include #include +#include +#include +#include +#include #include #include @@ -722,6 +726,7 @@ CLafShutdownManager::CGlobalQueryActive::~CGlobalQueryActive() { TRACES("CLafShutdownManager::CGlobalQueryActive::~CGlobalQueryActive"); + delete iQuery; delete iMessageInfo[ECritical]; delete iMessageInfo[EWarning]; delete iMessageInfo[EWarningMMC]; @@ -796,21 +801,50 @@ return; } - if (aType != ECallBack) + if (!iQuery) + { + iQuery = CAknGlobalNote::NewL(); + iQuery->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY); + } + + if (aType != ECallBack) { iMessageType = aType; } CleanupL(); - - CHbDeviceMessageBoxSymbian* globalNote = CHbDeviceMessageBoxSymbian::NewL(CHbDeviceMessageBoxSymbian::EWarning); - CleanupStack::PushL(globalNote); - globalNote->SetTextL((iMessageInfo[iMessageType]->iMessage)->Des()); - globalNote->SetTimeoutL(0); - globalNote->ExecL(); - CleanupStack::PopAndDestroy(globalNote); + if (iMessageType != ENone && (iMessageInfo[iMessageType]->iNoteId == KErrNotFound || aForcedNote)) + { + TInt dialogId = 0; + switch(iMessageType) + { + case EWarning: + dialogId = EAknDiskWarnignNote; + break; + case ECritical: + dialogId = EAknDiskFullNote; + break; + case ECriticalMMC: + dialogId = EAknMMCFullNote; + break; + default: + dialogId = EAknMMCWarningNote; + break; + } + CAknSDData* sd = CAknSDData::NewL(KAknSecondaryDisplayCategory, dialogId, KNullDesC8); + iQuery->SetSecondaryDisplayData(sd); + + TInt noteid = iQuery->ShowNoteL(EAknGlobalWarningNote, + (iMessageInfo[iMessageType]->iMessage)->Des()); + + if (noteid != KErrNotFound) // Note was added to queue successfully. + { + iMessageInfo[iMessageType]->iNoteId = noteid; + } + } + iMessageType = ENone; TRACES("CLafShutdownManager::CGlobalQueryActive::DisplayL: End"); } @@ -843,7 +877,11 @@ break; } - } + if (cancelNoteId != KErrNotFound && aCancel) + { + iQuery->CancelNoteL(cancelNoteId); + } + } TRACES("CLafShutdownManager::CGlobalQueryActive::CleanupL: End"); } diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oommonitor/bwins/oommonitorU.DEF --- a/sysresmonitoring/oommonitor/bwins/oommonitorU.DEF Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oommonitor/bwins/oommonitorU.DEF Wed Sep 01 12:24:48 2010 +0100 @@ -17,4 +17,5 @@ ?RequestOptionalRam@ROomMonitorSession@@QAEHHHHAAH@Z @ 16 NONAME ; int ROomMonitorSession::RequestOptionalRam(int, int, int, int &) ?RequestOptionalRam@ROomMonitorSession@@QAEXHHHAAVTRequestStatus@@@Z @ 17 NONAME ; void ROomMonitorSession::RequestOptionalRam(int, int, int, class TRequestStatus &) ?SetOomPriority@ROomMonitorSession@@QAEXW4TOomPriority@1@@Z @ 18 NONAME ; void ROomMonitorSession::SetOomPriority(enum ROomMonitorSession::TOomPriority) + ?AppId@COomMonitorPlugin@@UBE?BVTUid@@XZ @ 19 NONAME ; class TUid const COomMonitorPlugin::AppId(void) const diff -r 924385140d98 -r c2c61fdca848 sysresmonitoring/oommonitor/data/oomconfig.xml --- a/sysresmonitoring/oommonitor/data/oomconfig.xml Tue Aug 31 15:24:25 2010 +0300 +++ b/sysresmonitoring/oommonitor/data/oomconfig.xml Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/resources/qtg_large_wlan.svg --- a/systemsettings/accindicatorplugin/accindicatorsettings/resources/qtg_large_wlan.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/resources/resources.qrc --- a/systemsettings/accindicatorplugin/accindicatorsettings/resources/resources.qrc Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - - - headset.docml - tvout.docml - - - wired_accessory.svg - wireless_accessory.svg - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/resources/tvout.docml --- a/systemsettings/accindicatorplugin/accindicatorsettings/resources/tvout.docml Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/resources/wired_accessory.svg --- a/systemsettings/accindicatorplugin/accindicatorsettings/resources/wired_accessory.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/resources/wireless_accessory.svg --- a/systemsettings/accindicatorplugin/accindicatorsettings/resources/wireless_accessory.svg Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/rom/accindicatorsettings.iby --- a/systemsettings/accindicatorplugin/accindicatorsettings/rom/accindicatorsettings.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -/* -* Copyright (c) 2010 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 __ACCINDICATORSETTINGS_IBY__ -#define __ACCINDICATORSETTINGS_IBY__ - -REM DLL -file = ABI_DIR\BUILD_DIR\accindicatorsettings.exe \sys\bin\accindicatorsettings.exe -data = \epoc32\data\z\resource\apps\accindicatorsettings.rsc \resource\apps\accindicatorsettings.rsc -data = \epoc32\data\z\private\10003a3f\import\apps\accindicatorsettings_reg.rsc \private\10003a3f\import\apps\accindicatorsettings_reg.rsc -data=\epoc32\data\z\resource\accindicator\wired_accessory.svg \resource\accindicator\wired_accessory.svg -data=\epoc32\data\z\resource\accindicator\wireless_accessory.svg \resource\accindicator\wireless_accessory.svg -#endif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/src/headsetttyview.cpp --- a/systemsettings/accindicatorplugin/accindicatorsettings/src/headsetttyview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,122 +0,0 @@ -/* -* Copyright (c) 2010 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: -* -* Name : headsetttyview.cpp -* -* Description: -* -* -*/ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "headsetttyview.h" - -HeadsetTtyView::HeadsetTtyView(HbMainWindow *window,int accessoryType) - { - // Handle to the central repository. - iAccessoryRepository = CRepository::NewL( KCRUidAccessorySettings ); - - TInt error = iAccServer.Connect(); - if(error != KErrNone) - { - qDebug() << "Failed to connect to accessory server"; - return; - } - error = iAccessorySettings.CreateSubSession( iAccServer ); - if(error != KErrNone) - { - qDebug() << "Failed to connect to accessory sub session"; - return; - } - - HbDocumentLoader loader; - bool viewLoaded(false); - loader.load(":/xml/headset.docml", &viewLoaded); - Q_ASSERT_X(viewLoaded, "MainView", "Invalid xml file"); - - HbLabel *image; - HbLabel *acctype; - // set the image to be displayed. - if( accessoryType == KPCWired || accessoryType == KPCUSB ) //wired - { - image = qobject_cast(loader.findWidget("image")); - image->setIcon(HbIcon(":/images/wired_accessory.svg")); - } - else // wireless - { - image = qobject_cast(loader.findWidget("image")); - image->setIcon(HbIcon(":/images/wireless_accessory.svg")); - } - - HbComboBox *comboHandler = qobject_cast(loader.findWidget("combobox")); - QStringList comboItems; - comboItems <<"HeadSet" <<"TTY"; - comboHandler->addItems(comboItems); - - connect(comboHandler , SIGNAL(currentIndexChanged(int)) , this , SLOT(currentIndexModified(int))); - - User::LeaveIfError( iAccessoryRepository->Get(KSettingsAccDefaultInfo, defaultaccessory )); - - // set the name to be displayed along with the image. - if( defaultaccessory == 0) // HeadSet - { - acctype = qobject_cast(loader.findWidget("label")); - acctype->setPlainText("HeadSet"); - acctype->setTextWrapping(Hb::TextWordWrap); - comboHandler->setCurrentIndex(0); // set headset as default - } - else - { - acctype = qobject_cast(loader.findWidget("label")); - acctype->setPlainText("TTY"); - acctype->setTextWrapping(Hb::TextWordWrap); - comboHandler->setCurrentIndex(1); // set TTY as default - } - - // heading for the combobox for user selection - acctype = qobject_cast(loader.findWidget("label_2")); - acctype->setPlainText("Accessory Type"); - acctype->setTextWrapping(Hb::TextWordWrap); - - window->addView(loader.findWidget("view")); - } - -HeadsetTtyView::~HeadsetTtyView() - { - iAccessorySettings.CloseSubSession(); - iAccServer.Disconnect(); - delete iAccessoryRepository; - } - -void HeadsetTtyView::currentIndexModified(int var) - { - if(var == 0) // make headset as default - { - User::LeaveIfError((iAccessoryRepository->Set(KSettingsAccDefaultInfo, 0))); // 0 is for Headset - iAccessorySettings.SetHWDeviceSettingsL( KASHeadset ); - } - else - { - User::LeaveIfError((iAccessoryRepository->Set(KSettingsAccDefaultInfo, 7))); // 7 is for TTY - iAccessorySettings.SetHWDeviceSettingsL( KASTTY ); - } - } diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/src/main.cpp --- a/systemsettings/accindicatorplugin/accindicatorsettings/src/main.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2010 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: Process launched by the accessory indicator plugin to - * show the view and user can change the settings. - * - */ - -#include - -#include "headsetttyview.h" -#include "tvoutview.h" - -int main(int argc, char *argv[]) - { - HbApplication app(argc, argv); - int retVal; - // Get the params from the process. - QStringList args(app.arguments()); - int accessoryMode = QString(args.at(1)).toInt(); // HeadSet,TTY,TV-OUT - int accessoryType = QString(args.at(2)).toULong();// Wired or Wireless - - HbMainWindow *window = new HbMainWindow(); - - // If accessory mode is Tv-Out load tvout.docml or else load headset.docml - QObject *view; - if( accessoryMode == EAccModeTVOut ) - { - view = new TvOutView(window,accessoryType); - } - else - { - view = new HeadsetTtyView(window,accessoryType); - } - - window->show(); - retVal = app.exec(); - delete window; - delete view; - return retVal; - } diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/accindicatorsettings/src/tvoutview.cpp --- a/systemsettings/accindicatorplugin/accindicatorsettings/src/tvoutview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2010 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: Shows the view of the TV-OUT accessory. - * - */ - -#include "tvoutview.h" - -#include -#include -#include -#include -#include -#include - -TvOutView::TvOutView(HbMainWindow *window,int accessoryType) - { - HbDocumentLoader loader; - bool viewLoaded(false); - loader.load(":/xml/tvout.docml", &viewLoaded); - Q_ASSERT_X(viewLoaded, "AccSettings", "Invalid docml file"); - - HbLabel *label; - if( accessoryType == KPCWired || accessoryType == KPCUSB ) // wired - { - label = qobject_cast(loader.findWidget("image")); - label->setIcon(HbIcon(":/images/wired_accessory.svg")); - } - else // wireless - { - label = qobject_cast(loader.findWidget("image")); - label->setIcon(HbIcon(":/images/wireless_accessory.svg")); - } - - label = qobject_cast(loader.findWidget("label")); - label->setPlainText("Tv-Out"); - label->setTextWrapping(Hb::TextWordWrap); - - label = qobject_cast(loader.findWidget("label_4")); - label->setPlainText("TV Aspect Ratio"); - label->setTextWrapping(Hb::TextWordWrap); - - HbComboBox *comboHandler = qobject_cast(loader.findWidget("combobox")); - - // prepare the list of items to be there in combobox. - QStringList comboItems; - comboItems <<"4:3" <<"16:9"; - comboHandler->addItems(comboItems); - - //set the current index of combobox to the current AspectRatio. - iServerEngine = CGSServerEngine::NewL(); - currentValue = iServerEngine->AspectRatioL(); - comboHandler->setCurrentIndex(currentValue); - - //If the index changed in the combobox update the AspectRatio of the TV-Out Settings. - QObject::connect(comboHandler , SIGNAL(currentIndexChanged(int)) , this , SLOT(currentIndexModified(int))); - - window->addView(loader.findWidget("view")); - - } - -TvOutView::~TvOutView() - { - if(iServerEngine) - { - delete iServerEngine; - } - } - -void TvOutView::currentIndexModified(int modifiedSlot) - { - iServerEngine->SetAspectRatioL( modifiedSlot ); - } diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/inc/accindicator.h --- a/systemsettings/accindicatorplugin/inc/accindicator.h Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2010 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: Accessory Indicator class - * - */ - -#ifndef ACCINDICATOR_H -#define ACCINDICATOR_H - -#include - -#include -#include - -#include -#include - -#include - -/** - * Accessory indicator class. - * Handles client request and shows the indications. - */ -class AccIndicatorPlugin : public HbIndicatorInterface, public HbIndicatorPluginInterface -{ - Q_OBJECT - Q_INTERFACES(HbIndicatorPluginInterface) -public: - - AccIndicatorPlugin(); - ~AccIndicatorPlugin(); -public: - //from HbindicatorInterface - bool handleInteraction(InteractionType type); - QVariant indicatorData(int role) const; - -public: - //from HbIndicatorPluginInterface - QStringList indicatorTypes() const; - bool accessAllowed(const QString &indicatorType, const QVariantMap &securityInfo) const; - HbIndicatorInterface* createIndicator(const QString &indicatorType); - int error() const; - -protected: - //from HbindicatorInterface - bool handleClientRequest(RequestType type, const QVariant ¶meter); - -private: - void prepareDisplayName(); - -private: - - QString mDisplayName; - QProcess mProcess; - TAccMode mAccMode; - int mAccType; - QStringList mIndicatorTypes; - QStringList mArgs; - -private slots: - void processError(QProcess::ProcessError err); // handler for error codes - -private: - Q_DISABLE_COPY(AccIndicatorPlugin) - int mError; - }; - -#endif // ACCINDICATOR_H - diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/rom/accindicatorplugin.iby --- a/systemsettings/accindicatorplugin/rom/accindicatorplugin.iby Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -/* -* Copyright (c) 2010 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 __ACCINDICATORPLUGIN_IBY__ -#define __ACCINDICATORPLUGIN_IBY__ - -REM DLL -file=ABI_DIR\UREL\accindicatorplugin.dll SHARED_LIB_DIR\accindicatorplugin.dll UNPAGED -data=\epoc32\data\z\resource\plugins\indicators\accindicatorplugin.qtplugin \resource\plugins\indicators\accindicatorplugin.qtplugin -#endif \ No newline at end of file diff -r 924385140d98 -r c2c61fdca848 systemsettings/accindicatorplugin/src/accindicator.cpp --- a/systemsettings/accindicatorplugin/src/accindicator.cpp Tue Aug 31 15:24:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,250 +0,0 @@ -/* - * Copyright (c) 2010 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 "accindicator.h" - -#include -#include -#include - -Q_EXPORT_PLUGIN(AccIndicatorPlugin) -const static char IndicatorType[] = "com.nokia.accessory.indicatorplugin/1.0"; -QString KAccMode = "AccMode"; -QString KAccType = "AccType"; - -AccIndicatorPlugin::AccIndicatorPlugin() : -HbIndicatorInterface(IndicatorType, - HbIndicatorInterface::SettingCategory, - InteractionActivated) - { - mIndicatorTypes << "com.nokia.accessory.indicatorplugin/1.0"; - } - -AccIndicatorPlugin::~AccIndicatorPlugin() - { - } - -// ---------------------------------------------------------------------------- -// AccIndicatorPlugin::indicatorTypes -// returns the indicator types handled by this plugin -// ---------------------------------------------------------------------------- - -QStringList AccIndicatorPlugin::indicatorTypes() const - { - return mIndicatorTypes; - } - -// ---------------------------------------------------------------------------- -// AccIndicatorPlugin::createIndicator -// creates an indicator. -// ---------------------------------------------------------------------------- - -HbIndicatorInterface* AccIndicatorPlugin::createIndicator( - const QString &indicatorType) - { - Q_UNUSED(indicatorType) - return this; - } - -// ---------------------------------------------------------------------------- -// AccIndicatorPlugin::error -// returns the error code. -// ---------------------------------------------------------------------------- - -int AccIndicatorPlugin::error() const - { - return mError; - } - -// ---------------------------------------------------------------------------- -// AccIndicatorPlugin::accessAllowed -// check for the access rights of the client. As there are no restrictions for -// this plugin it always returns true. -// ---------------------------------------------------------------------------- - -bool AccIndicatorPlugin::accessAllowed(const QString &indicatorType,const QVariantMap &securityInfo) const - { - Q_UNUSED(indicatorType) - Q_UNUSED(securityInfo) - - return true; - } - -// ---------------------------------------------------------------------------- -// AccIndicator::handleInteraction -// called when the user interacts with the indicator.Enable the interaction only -// for headset,tty and tv-out for user to change the settings. -// ---------------------------------------------------------------------------- -bool AccIndicatorPlugin::handleInteraction(InteractionType type) - { - bool handled = false; - if (type == InteractionActivated) - { - // If it is 3-pole ( i.e., HeadSet or TTY ) and TV-Out enable the handleInteraction() to change the settings. - if(mAccMode == EAccModeWiredHeadset || mAccMode == EAccModeWirelessHeadset || mAccMode == EAccModeTextDevice || mAccMode == EAccModeTVOut ) - { - QObject::connect( &mProcess, SIGNAL(error(QProcess::ProcessError)), - this, SLOT(processError(QProcess::ProcessError))); - - QVariant mode,type; - mode.setValue((int)mAccMode); - type.setValue((int)mAccType); - mArgs.append(mode.toString()); - mArgs.append(type.toString()); - - // Launch the process to show the view. - mProcess.start("accindicatorsettings" , mArgs); - handled = true; - } - } - return handled; - } - -// ---------------------------------------------------------------------------- -// AccIndicator::indicatorData -// returns the name and icon to be displayed in the universal indicator menu. -// ---------------------------------------------------------------------------- -QVariant AccIndicatorPlugin::indicatorData(int role) const - { - switch(role) - { - //for displaying the string in indicator. - case PrimaryTextRole: - { - QString type(mDisplayName); - return type; - } - //for displaying the icon in indicator. - case MonoDecorationNameRole: - { - QString iconName; - if(mAccType == KPCWired || mAccType == KPCUSB) - { - iconName = QString("z:/resource/accindicator/wired_accessory.svg"); - } - else if (mAccType == KPCBluetooth || mAccType == KPCInfraRed) - { - iconName = QString("z:/resource/accindicator/wireless_accessory.svg"); - } - return iconName; - } - default: - return QVariant(); - } - } - -// ---------------------------------------------------------------------------- -// AccIndicatorPlugin::handleClientRequest -// this function gets called when client activates plugin -// ---------------------------------------------------------------------------- -bool AccIndicatorPlugin::handleClientRequest( RequestType type, - const QVariant ¶meter) - { - bool handled(false); - switch (type) { - case RequestActivate: - { - // Get the params(acctype and mode) from the hbindicator.activate() which is called from sysap. - - QVariantMap mapValues = parameter.toMap(); - if(mapValues.contains(KAccMode)) - { - mAccMode = static_cast(mapValues.value(KAccMode).toInt()); - } - if(mapValues.contains(KAccType)) - { - mAccType = mapValues.value(KAccType).toInt(); - } - - // prepare the name to be displayed in the universal indicator menu. - prepareDisplayName(); - emit dataChanged(); - handled = true; - } - break; - case RequestDeactivate: - { - // reset data - mDisplayName = QString(); - emit deactivate(); - } - break; - default: - break; - } - return handled; - } - -// ---------------------------------------------------------------------------- -// AccIndicator::prepareDisplayName -// prepare the name to be displayed in the indicator menu. -// ---------------------------------------------------------------------------- -void AccIndicatorPlugin::prepareDisplayName() - { - mDisplayName.clear(); - switch(mAccMode) - { - case EAccModeWiredHeadset: - mDisplayName.append(QString("Wired Headset")); - break; - case EAccModeWirelessHeadset: - mDisplayName.append(QString("Wireless Headset")); - break; - case EAccModeWiredCarKit: - mDisplayName.append(QString("Wired CarKit")); - break; - case EAccModeWirelessCarKit: - mDisplayName.append(QString("Wireless Carkit")); - break; - case EAccModeTextDevice: - mDisplayName.append(QString("TTY")); - break; - case EAccModeLoopset: - mDisplayName.append(QString("LoopSet")); - break; - case EAccModeMusicStand: - mDisplayName.append(QString("Music Stand")); - break; - case EAccModeTVOut: - mDisplayName.append(QString("TV Out")); - break; - case EAccModeHeadphones: - mDisplayName.append(QString("Head Phones")); - break; - default : - mDisplayName.append(QString("Unknown")); - } - } - -// ---------------------------------------------------------------------------- -// AccIndicator::processError -// handle the error conditions reurned by the QProcess. -// ---------------------------------------------------------------------------- - -void AccIndicatorPlugin::processError(QProcess::ProcessError err) - { - switch (err) { - case QProcess::FailedToStart: - case QProcess::Crashed: - case QProcess::Timedout: - case QProcess::ReadError: - case QProcess::WriteError: - case QProcess::UnknownError: - break; - default: - break; - } - } diff -r 924385140d98 -r c2c61fdca848 systemsettings/group/bld.inf --- a/systemsettings/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -24,6 +24,7 @@ PRJ_MMPFILES #include "../gssensorplugin/group/bld.inf" +#include "../GSAccessoryPlugin/group/bld.inf" PRJ_TESTMMPFILES diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/conf/sensorplugin_10282DF0.crml Binary file systemsettings/gssensorplugin/conf/sensorplugin_10282DF0.crml has changed diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/data/gssensorpluginrsc.rss --- a/systemsettings/gssensorplugin/data/gssensorpluginrsc.rss Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/data/gssensorpluginrsc.rss Wed Sep 01 12:24:48 2010 +0100 @@ -404,7 +404,9 @@ // RESOURCE AVKON_VIEW r_gs_checkbox_view { - cba = r_gs_sen_softkeys_ok_back__change; + //cba = r_gs_sen_softkeys_ok_back__change; ou1cimx1#467503 + menubar = r_gs_sen_menubar_change_exit; + cba =R_GS_SOFTKEYS_OPTIONS_BACK_CHANGE; } // *** SENSOR ACTIVE STATUS *** diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/group/bld.inf --- a/systemsettings/gssensorplugin/group/bld.inf Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/group/bld.inf Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-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" @@ -25,14 +25,14 @@ ../conf/sensorplugin.confml MW_LAYER_CONFML(sensorplugin.confml) ../conf/sensorplugin_10282DF0.crml MW_LAYER_CRML(sensorplugin_10282DF0.crml) -// ../loc/gssensorplugin.loc MW_LAYER_LOC_EXPORT_PATH(gssensorplugin.loc) +../loc/gssensorplugin.loc MW_LAYER_LOC_EXPORT_PATH(gssensorplugin.loc) // Iby file exports -// ../rom/gssensorplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(gssensorplugin.iby) -// ../rom/gssenpluginresources.iby LANGUAGE_MW_LAYER_IBY_EXPORT_PATH(gssenpluginresources.iby) +../rom/gssensorplugin.iby CORE_MW_LAYER_IBY_EXPORT_PATH(gssensorplugin.iby) +../rom/gssenpluginresources.iby LANGUAGE_MW_LAYER_IBY_EXPORT_PATH(gssenpluginresources.iby) PRJ_MMPFILES -// gssensorplugin.mmp +gssensorplugin.mmp PRJ_EXTENSIONS diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/group/gssensorplugin.mmp --- a/systemsettings/gssensorplugin/group/gssensorplugin.mmp Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/group/gssensorplugin.mmp Wed Sep 01 12:24:48 2010 +0100 @@ -74,13 +74,11 @@ LIBRARY egul.lib // For GulIcon in checkbox icons LIBRARY eikctl.lib // For checkbox icons -LIBRARY commonengine.lib // For RConeResourceLoader -LIBRARY featmgr.lib // Feature manager -LIBRARY centralrepository.lib // for CenRep +LIBRARY CommonEngine.lib // For RConeResourceLoader +LIBRARY FeatMgr.lib // Feature manager +LIBRARY CentralRepository.lib // for CenRep LIBRARY aknskins.lib // for enhanced skinning LIBRARY hlplch.lib // for "Help" options menu -LIBRARY gsframework.lib // For base classes -LIBRARY gslistbox.lib // For CGSListBoxItemTextArray -LIBRARY gsecomplugin.lib // For base classes - -SMPSAFE +LIBRARY GSFramework.lib // For base classes +LIBRARY GSListBox.lib // For CGSListBoxItemTextArray +LIBRARY GSEcomPlugin.lib // For base classes diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/inc/gssenturnctrlview.h --- a/systemsettings/gssensorplugin/inc/gssenturnctrlview.h Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/inc/gssenturnctrlview.h Wed Sep 01 12:24:48 2010 +0100 @@ -71,6 +71,11 @@ * Checks currently activated item in list and updates MSK label if needed */ void CheckMiddleSoftkeyLabelL(); + + /** + * Deactivates current view. + */ + void DoDeactivate(); private: diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/src/gssenbasecontainer.cpp --- a/systemsettings/gssensorplugin/src/gssenbasecontainer.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/src/gssenbasecontainer.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006-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" @@ -189,11 +189,7 @@ // cleanup checkboxOnIcon, checkboxOffIcon, iconArray CleanupStack::Pop( checkboxOffIcon ); CleanupStack::Pop( checkboxOnIcon ); - - if(iconArray) - { - CleanupStack::Pop( iconArray ); - } + CleanupStack::Pop( iconArray ); TRACE_( "[GSSensorPlugin] CGSSenBaseContainer::AddCheckboxIconsL() - return" ); } diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/src/gssensorplugin.cpp --- a/systemsettings/gssensorplugin/src/gssensorplugin.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/src/gssensorplugin.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2006 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" @@ -235,8 +235,8 @@ case EGSSenMenuExit: { CheckExitStatusL(); - aCommand = EAknCmdExit; //"break" is removed to continue the flow to default case with the exit command - // coverity[MISSING_BREAK] + // Proceed with the command + aCommand = EAknCmdExit; } default: iAppUi->HandleCommandL( aCommand ); diff -r 924385140d98 -r c2c61fdca848 systemsettings/gssensorplugin/src/gssenturnctrlview.cpp --- a/systemsettings/gssensorplugin/src/gssenturnctrlview.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/systemsettings/gssensorplugin/src/gssenturnctrlview.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -29,6 +29,8 @@ #include #include #include +#include +#include // ========================= MEMBER FUNCTIONS ================================ @@ -121,24 +123,52 @@ break; } case EGSCmdOk: - // Check selections + case EAknSoftkeyBack: + { + // Check selections Container()->CheckSelections(); // Store changes and show previous view Container()->StoreSelectionsL(); // cont. to next case - case EAknSoftkeyBack: - { // activate previous view iAppUi->ActivateLocalViewL( KGSSensorPluginUid ); break; } + case EAknCmdHelp: + { + if ( FeatureManager::FeatureSupported( KFeatureIdHelp ) ) + { + HlpLauncher::LaunchHelpApplicationL( + iEikonEnv->WsSession(), iAppUi->AppHelpContextL() ); + } + break; + } + case EGSSenMenuExit: + { + aCommand=EAknCmdExit; + iAppUi->HandleCommandL( aCommand ); + break; + } + default: iAppUi->HandleCommandL( aCommand ); break; } TRACE_( "[GSSensorPlugin] CGSSenTurnCtrlView::HandleCommandL() - return" ); } - +// --------------------------------------------------------------------------- +// CGSSenTurnCtrlView::DoDeactivate +// Deactivates the current view +// --------------------------------------------------------------------------- +void CGSSenTurnCtrlView::DoDeactivate() + { + // Check selections + Container()->CheckSelections(); + // Store changes and show previous view + Container()->StoreSelectionsL(); + CGSSensorBaseView::DoDeactivate(); + + } // --------------------------------------------------------------------------- // CGSSenTurnCtrlView::Container // Returns call container item diff -r 924385140d98 -r c2c61fdca848 tzpcside/tzcompiler/doc_pub/SGL.GT0197.232 App-Services Tz 9.1 How-To Create the Tz Database.doc Binary file tzpcside/tzcompiler/doc_pub/SGL.GT0197.232 App-Services Tz 9.1 How-To Create the Tz Database.doc has changed diff -r 924385140d98 -r c2c61fdca848 tzpcside/tzcompiler/test/integration/TzCompilerTests/doc_pub/TestTzCompiler Description Document.doc Binary file tzpcside/tzcompiler/test/integration/TzCompilerTests/doc_pub/TestTzCompiler Description Document.doc has changed diff -r 924385140d98 -r c2c61fdca848 tzservices/tzloc/doc_pub/SGL.GT0284.216 - Time Zone Services CR1606 How-To.doc Binary file tzservices/tzloc/doc_pub/SGL.GT0284.216 - Time Zone Services CR1606 How-To.doc has changed diff -r 924385140d98 -r c2c61fdca848 tzservices/tzloc/inc/TzLocalizationDbAccessor.h --- a/tzservices/tzloc/inc/TzLocalizationDbAccessor.h Tue Aug 31 15:24:25 2010 +0300 +++ b/tzservices/tzloc/inc/TzLocalizationDbAccessor.h Wed Sep 01 12:24:48 2010 +0100 @@ -88,10 +88,8 @@ private: TInt CreateFrequentlyUsedZoneTableL(); TInt CreateUserCityTableL(); - TBool IsTableCreatedL(const TDesC& aTableName) const; void CloseDb(); void OpenDbL(); - protected: //Member data diff -r 924385140d98 -r c2c61fdca848 tzservices/tzloc/src/TzLocalizationDbAccessor.cpp --- a/tzservices/tzloc/src/TzLocalizationDbAccessor.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/tzservices/tzloc/src/TzLocalizationDbAccessor.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -103,21 +103,29 @@ { //Database file doesn't exist. Attempt to create a new one. error = iLocalizedTimeZoneDb.Create(iDbsSession,KTzLocalizationDbName,KTzLocalizationDbSecurityPolicy); - User::LeaveIfError(error); - - //Check whether tables exist and create them if they do not - if (!IsTableCreatedL(KCZTableName)) - { - User::LeaveIfError(CreateFrequentlyUsedZoneTableL()); - } - if (!IsTableCreatedL(KUCTableName)) - { - User::LeaveIfError(CreateUserCityTableL()); - } - } + if (error == KErrNone) + { + User::LeaveIfError(CreateFrequentlyUsedZoneTableL()); + User::LeaveIfError(CreateUserCityTableL()); + } + } + User::LeaveIfError(error); + // Check if both tables are created. + CDbColSet *colSet = NULL; + TRAP(error, colSet = iLocalizedTimeZoneDb.ColSetL(KCZTableName)); + delete colSet; + if (error) + { + User::LeaveIfError(CreateFrequentlyUsedZoneTableL()); + } + TRAP(error, colSet = iLocalizedTimeZoneDb.ColSetL(KUCTableName)); + delete colSet; + if (error) + { + User::LeaveIfError(CreateUserCityTableL()); + } } - /** Destructor Closes the database tables, the database and the database session @@ -309,24 +317,3 @@ User::LeaveIfError(iZoneView.EvaluateAll()); } -TBool CTzLocalizationDbAccessor::IsTableCreatedL(const TDesC& aTableName) const - { - TBool result = EFalse; - CDbTableNames* tableNames = iLocalizedTimeZoneDb.TableNamesL(); - CleanupStack::PushL(tableNames); - if(tableNames) - { - const TInt count = tableNames->Count(); - for(TInt i = 0; i < count; i++) - { - if((*tableNames)[i] == aTableName) - { - result = ETrue; - break; - } - } - } - CleanupStack::PopAndDestroy(tableNames); - return result; - } - diff -r 924385140d98 -r c2c61fdca848 tzservices/tzserver/analysis/DAYLIGHT SAVINGS ANALYSIS.mdl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tzservices/tzserver/analysis/DAYLIGHT SAVINGS ANALYSIS.mdl Wed Sep 01 12:24:48 2010 +0100 @@ -0,0 +1,6210 @@ + +(object Petal + version 43 + _written "Rose 6.5.9232.10" + charSet 0) + +(object Design "Logical View" + is_unit TRUE + is_loaded TRUE + quid "36D487460258" + defaults (object defaults + rightMargin 0.250000 + leftMargin 0.250000 + topMargin 0.250000 + bottomMargin 0.500000 + pageOverlap 0.250000 + clipIconLabels TRUE + autoResize TRUE + snapToGrid FALSE + gridX 16 + gridY 16 + defaultFont (object Font + size 9 + face "Arial" + bold FALSE + italics FALSE + underline FALSE + strike FALSE + color 0 + default_color TRUE) + showMessageNum 1 + showClassOfObject TRUE + notation "Unified") + root_usecase_package (object Class_Category "Use Case View" + quid "34DBB4830142" + documentation +|The Use Case View organizes the Use-Case Model and the optional Business Use-Case Model. +| + + exportControl "Public" + global TRUE + logical_models (list unit_reference_list + (object Class_Category "Business Use-Case Model" + quid "35B677D701B8" + documentation +|Optional Model: +|The business modeling workflow in Rational Unified Process produces two models: the business use-case model, and the business object model. Both show the business +|processes, but different aspects of them. In the business use-case model each business use case represents a business process, described (text and/or activity diagrams) from an "external" view point without worrying about who does what to whom inside of the organization. +|In the business object model, you include realizations of each business use case to show how workers and entities collaborate to perform the process. You do that using class diagrams, activity diagrams with swimlanes, collaboration diagrams, and/or interaction diagrams. +| +| + + exportControl "Public" + logical_models (list unit_reference_list) + logical_presentations (list unit_reference_list + (object UseCaseDiagram "Global View of Business Actors and Business Use Cases" + quid "35C0DFF50172" + title "Global View of Business Actors and Business Use Cases" + documentation "This is a global view of the system showing all Busines Use Cases and Business Actors. It is intended to be an overview diagram, so if the diagram becomes too complex for easy comprehension, use several diagrams, each of which should focus on a different aspect of the system. Usually, organizing use case diagrams around actors is a good approach." + zoom 100 + max_height 28350 + max_width 21600 + origin_x 0 + origin_y 0 + items (list diagram_item_list + (object NoteView @1 + location (464, 352) + label (object ItemLabel + Parent_View @1 + location (42, 11) + fill_color 13434879 + nlines 14 + max_width 809 + label +|Global View of Business Actors and BusinessUse Cases +| +|This diagram presents all Business Actors and all concrete Business Use Cases (those that are directly instantiable). +| +|Related Rational Unified Process Activities: +|- Activity: Find Business Actors and Use Cases +|- Activity: Structure the Business Use Case Model +| +|*Note: this note may be deleted once the diagram is created. + ) + line_color 3342489 + fill_color 13434879 + width 869 + height 694) + (object NoteView @2 + location (1280, 160) + label (object ItemLabel + Parent_View @2 + location (942, 29) + fill_color 13434879 + nlines 5 + max_width 640 + label +|Created/modified by: +|Date: +| +|Approved by: +|Date: + ) + line_color 3342489 + fill_color 13434879 + width 700 + height 275))))) + (object Class_Category "Use-Case Model" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\UseCases.cat" + quid "35B677F4010E")) + logical_presentations (list unit_reference_list + (object UseCaseDiagram "Main" + quid "35C6339B029F" + title "Main" + documentation +|This diagram depicts the relationships between the packages (models) contained in the 'Use-Case View": the Use-Case Model (for the system) and the Business Use-Case Model (describing the business). + + zoom 90 + max_height 28350 + max_width 21600 + origin_x 0 + origin_y 0 + items (list diagram_item_list + (object CategoryView "Use Case View::Use-Case Model" @3 + location (400, 864) + font (object Font + size 10) + label (object ItemLabel + Parent_View @3 + location (256, 780) + fill_color 13434879 + nlines 2 + max_width 288 + justify 0 + label "Use-Case Model") + icon_style "Icon" + line_color 3342489 + fill_color 13434879 + quidu "35B677F4010E" + width 300 + height 180) + (object NoteView @4 + location (1168, 592) + font (object Font + size 10) + label (object ItemLabel + Parent_View @4 + location (941, 390) + fill_color 13434879 + nlines 9 + max_width 419 + label "The Use-Case Model is traceable to (and derives from) the Business Model. The system (as described in the Use Case Model) provides behavior that supports the business.") + line_color 3342489 + fill_color 13434879 + width 479 + height 416) + (object CategoryView "Use Case View::Business Use-Case Model" @5 + location (384, 320) + label (object ItemLabel + Parent_View @5 + location (189, 229) + fill_color 13434879 + nlines 2 + max_width 390 + justify 0 + label "Business Use-Case Model") + icon_style "Icon" + line_color 3342489 + fill_color 13434879 + quidu "35B677D701B8" + width 403 + height 194) + (object ImportView "" @6 + stereotype TRUE + line_color 3342489 + quidu "35C633DA030C" + client @3 + supplier @5 + line_style 0) + (object AttachView "" @7 + stereotype TRUE + line_color 3342489 + client @6 + supplier @4 + line_style 0))))) + root_category (object Class_Category "Logical View" + quid "34DBB4830141" + documentation +|Rational Unified Process uses the "Logical View in Rose" to organize the Design Model and the Process View and the optional Business Object Model and Analysis Model. + + exportControl "Public" + global TRUE + subsystem "Component View" + quidu "34DBB4830143" + logical_models (list unit_reference_list + (object Class_Category "Analysis Model" + quid "35B678170028" + documentation +|This model is optional. +|The Analysis Model contains a set of Analysis Classes, which describe an abstract realization of the use cases of the system. The analysis classes evolve into associated design elements which are modeled in the Design Model. + + exportControl "Public" + logical_models (list unit_reference_list + (object Class_Category "Business Object Model" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\LogicalBusinessObjects.cat" + quid "35B678080064") + (object Class_Category "TZ Compiler" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\TZCOMPILER.CAT" + quid "40E569BC024F") + (object Class_Category "LTClasses" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\Classes.cat" + quid "40A89DC203B0") + (object Class_Category "Time Zone Database Management" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\LogicalTZDBM.cat" + quid "40B1E4A6003A") + (object Class_Category "Local Time Conversion" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\LogicalLocaltimeConv.cat" + quid "40B1D43200B7") + (object Class_Category "System Time Management" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\LogicalSysTimeMngmt.cat" + quid "40B1D49203C5") + (object Class_Category "TZClasses" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\TZClasses.cat" + quid "40F3CEAF0324") + (object Class_Category "BClasses" + is_unit TRUE + is_loaded FALSE + file_name "M:\\DST\\analysis\\BClasses.cat" + quid "40F3CFB10172")) + logical_presentations (list unit_reference_list)) + (object Class_Category "Design Model" + quid "35B6782302DA" + documentation +|The Design Model in Rational Unified Process. +|The design model is adapted to model the real implementation environment, and serves as an abstraction of the source code. It is a "blueprint" of how the source code is structured and written. +| +|The design model is a hierarchy of packages (design subsystems and design-service packages), with "leaves" that are classes. Subsystems are a design "view" of the components that are defined in the Implementation Model. +| +|The design model hierarchy consists of layers. +| +|Classes represent abstractions of classes in the system's implementation. They define the objects, which in turn are abstractions of the objects in the system's implementation. The use cases are realized by the objects, and this is represented by use-case realizations in the Design Model. Each use-case realization has a realize dependency to a use case in the Use-Case Model. + + exportControl "Public" + logical_models (list unit_reference_list + (object Class_Category " Layer" + quid "34E3686A00F0" + documentation +|The design model is normally organized in layers. The number of layers is not fixed, but varies from situation to situation. +| +|During architectural analysis, focus is normally on the two high-level layers, that is, the application and business-specific layers; this is what is meant by the "high-level organization of subsystems." The other lower-level layers are in focus during architectural design, refer to the activity Architectural Design for more information. +| +|Layers are identified using the naming conventions shown in the name of this package. + + exportControl "Public" + logical_models (list unit_reference_list + (object Class_Category "" + quid "34E36BB7017C" + documentation +|